nLab
proposition

Context

Foundations

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism = propositions as types +programs as proofs +relation type theory/category theory

logiccategory theorytype theory
trueterminal object/(-2)-truncated objecth-level 0-type/unit type
falseinitial objectempty type
proposition(-1)-truncated objecth-level 1-type/h-prop
proofgeneralized elementprogram
conjunctionproductproduct type
disjunctioncoproduct ((-1)-truncation of)sum type (bracket type of)
implicationinternal homfunction type
negationinternal hom into initial objectfunction type into empty type
universal quantificationdependent productdependent product type
existential quantificationdependent sum ((-1)-truncation of)dependent sum type (bracket type of)
equivalencepath space objectidentity type
equivalence classquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
completely presented setdiscrete object/0-truncated objecth-level 2-type/preset/h-set
setinternal 0-groupoidBishop set/setoid
universeobject classifiertype of types
modalityclosure operator monadmodal type theory, monad (in computer science)

homotopy levels

semantics

Contents

Idea

In logic, a proposition is intended to be interpreted semantically as having a truth value. In modern logic, it’s cleanest to start by specifying a context and considering the propositions in that context.

Predicates

If (in a given context Γ) we have a type A, then we may extend Γ to a context ΔΓ,x:A (assuming that the variable x is not otherwise in use). We may then think of any proposition in Δ as a predicate P in Γ with the free variable x of type A; this generalises to more complicated extensions of contexts (say by several variables).

If P is a predicate with free variable x of type A and t is a term of type A, then we get a proposition P[t/x] by substituting t for every instance of x in P. Conversely, any proposition Q may be interpreted as a predicate Q[x^] in which the free variable x simply doesn’t appear. (We have Q[x^][t/x]=Q for every term t.)

There is a more traditional approach of viewing a predicate as a function from terms to propositions, a propositional function. Then P[t/x] is written P(t), while P itself from above is written P(x) (since a variable is a term). In this approach, less care is usually taken with the context, so that Q[x^] may be conflated with Q (since Q[x^](x)=Q, or this would be so if x were a term in Γ instead of only in Δ).

In category-theoretic logic

In categorial logic/categorical semantics, we have a category 𝒞 and a class of monomorphisms? (often all monomorphisms) in 𝒞. Then a context is an object of 𝒞 and a proposition in the context Γ is an -subobject of Γ. We also have a class of display maps (often all morphisms in 𝒞) such that is closed under pullbacks both along display maps and along sections of display maps. These two ways of pulling back propositions in one context to propositions in another context correspond (respectively) to forming Q[x^] and P[t/x].

More specifically, if 𝒞 is a finitely complete category, then the objects of 𝒞 may equivalently be viewed as contexts and as types in the internal language of 𝒞; a morphism from Γ to A is a term of type A in context Γ. The extension of Γ by a variable x of type A is the product Γ×A, and the display map to Γ is simply the projection. Every term t:ΓA defines a section of this display map, and we may literally construct Q[x^] and P[t/x] as pullbacks.

If 𝒞 is even a topos, then a proposition Q in Γ may be identified with a term whose type is the subobject classifier Ω, and the predicate Q[x^] is the composite Γ×AΓΩ. Given a term t:ΓA and a predicate P:Γ×AΩ, the proposition P[t/x] is the composite ΓΓ×AΩ. Internalising a bit (by currying), we may view Q as a global element 1Ω Γ and P as a morphism AΩ Γ, recovering the view that predicates are proposition-valued ‘functions’ (morphisms).

In general, we may intuitively think of an object A in the slice category 𝒞/Γ as the ‘set’ (object) of possible values of terms t of type A in context Γ, and think of a predicate P with a free variable of type A (in the same context) as being the ‘subset’ (subobject) on those t for which the statement P(t) is true.

Propositional and predicate logic

In propositional logic, we fix a single context (considered the empty context?) and consider the logic of propositions in that context. In predicate logic, we fix the empty context but work also in extensions of that context by free variables. Predicate logic uses quantifiers as a way to move between contexts, more specifically to move from a predicate P in a given context Γ (which is a proposition in some extension of Γ) to a proposition in Γ. The free variables in the predicate still appear in the written form of the proposition, but they are now bound variables and are not free in the proposition's context; some logicians prefer to systematically replace bound variables with numbered placeholders (especially when defining Gödel number?s and the like).

Revised on September 5, 2012 00:05:25 by Urs Schreiber (82.169.65.155)