nLab
logic

Context

Foundations

Type theory

Logic

Idea

As a discipline, logic is the study of methods of reasoning. While in the past (and often today in philosophical circles), this discipline was prescriptive (describing how one should reason), it is increasingly (and usually in mathematical circles) descriptive (describing how one does reason).

As a (potentially) mathematical object, a logic is a specific method of reasoning. There are several ways to formalise this which for the moment we will not to get into, but maybe later.

Category-theoretic logic

It turns out that logic is naturally expressed in the language of category theory: given any category C, its objects T may be understood as types of terms, and morphisms ψΨT as terms (generalized elements of T). A proposition is then a subobject, ϕT – the subobject of all those variables for which the proposition is true.

In summary:

For instance,

See also:

Entries on logic