nLab
universal quantifier

Context

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, the universal quantifier” is the quantifier used to express, given a predicate ϕ with a free variable x of type T, the proposition

x:T,ϕx,\forall\, x\colon T, \phi x \,,

which is intended to be true if and only if ϕa is true for every possible element a of T.

Note that it is quite possible that ϕa may be provable (in a given context) for every term a of type T that can actually be constructed in that context yet x:T,ϕx cannot be proved. Therefore, we cannot define the quantifier by taking the idea literally and applying it to terms.

Definition

We work in a logic in which we are concerned with which propositions entail which propositions (in a given context); in particular, two propositions which entail each other are considered equivalent.

Let Γ be an arbitrary context and T a type in Γ so that ΔΓ,x:T is Γ extended by a free variable x of type T. We assume that we have a weakening? principle that allows us to interpret any proposition Q in Γ as a proposition Q[x^] in Δ. Fix a proposition P in Δ, which we think of as a predicate in Γ with the free variable x. Then the universal quantification of P is any proposition x:T,P in Γ such that, given any proposition Q in Γ, we have

  • Q Γx:T,P if and only if Q[x^] Γ,x:TP.

It is then a theorem that the universal quantification of P, if it exists, is unique. The existence is typically asserted as an axiom in a particular logic, but this may be also be deduced from other principles (as in the topos-theoretic discussion below).

Often one makes the appearance of the free variable in P explicit by thinking of P as a propositional function and writing P(x) instead; to go along with this one usually conflates Q and Q[x^]. Then the rule appears as follows:

  • Q Γx:T,P(x) if and only if Q Γ,x:TP(x).

In terms of semantics (as for example topos-theoretic semantics; see the next section), the weakening from Q to Q[x^] corresponds to pulling back along a product projection σ(T)×AA, where σ(T) is the interpretation of the type T, and A is the interpretation of Γ. In other words, if a statement Q read in context Γ is interpreted as a subobject of A, then the statement Q read in context Δ=Γ,x:T is interpreted by pulling back along the projection, obtaining a subobject of σ(T)×A.

As observed by Lawvere, we are not particularly constrained to product projections; we can pull back along any map f:BA. (Often we have a class of display maps and require f to be one of these.) Alternatively, any pullback functor f *:Set/ASet/B can be construed as pulling back along an object X=(f:BA), i.e., along the unique map !:X1 corresponding to an object X in the slice Set/A, since we have the identification Set/B(Set/A)/X.

In topos theory / in terms of adjunctions

In terms of the internal logic in some ambient topos ,

Universal quantification is essentially the restriction of the direct image right adjoint of a canonical étale geometric morphism X *,

/XX *X *X !,\mathcal{E}/X \stackrel{\overset{X_!}{\to}}{\stackrel{\overset{X^*}{\leftarrow}}{\underset{X_*}{\to}}} \mathcal{E} \,,

where X * is the functor that takes an object A to the product projection π:X×AX, where X !=Σ X is the dependent sum (i.e., forgetful functor taking f:AX to A) that is left adjoint to X *, and where X *=Π X is the dependent product operation that is right adjoint to X *.

The dependent product operation restricts to propositions by pre- and postcomposition with the truncation adjunctions

τ 1τ 1\tau_{\leq -1} \mathcal{E} \stackrel{\overset{\tau_{\leq -1}}{\leftarrow}}{\underset{}{\hookrightarrow}} \mathcal{E}

to give universal quantification over the domain (or context) X:

/X X *X *X ! τ 1 τ 1 τ 1/X X X τ 1.\array{ \mathcal{E}/X & \stackrel{\overset{X_!}{\to}}{\stackrel{\overset{X^*}{\leftarrow}}{\underset{X_*}{\to}}} & \mathcal{E} \\ {}^\mathllap{\tau_{\leq_{-1}}}\downarrow \uparrow && {}^\mathllap{\tau_{\leq_{-1}}}\downarrow \uparrow \\ \tau_{\leq_{-1}} \mathcal{E}/X & \stackrel{\overset{\exists_X}{\to}}{\stackrel{\overset{}{\leftarrow}}{\underset{\forall_X}{\to}}} & \tau_{\leq_{-1}}\mathcal{E} } \,.

Dually, the extra left adjoint X, obtained from the dependent sum X ! by pre- and post-composition with the truncation adjunctions, expresses the existential quantifier. (The situation with the universal quantifier is somewhat simpler than for the existential one, since the dependent product automatically preserves (1)-truncated objects (= subterminal objects), whereas the dependent sum does not.)

The same makes sense, verbatim, also in the (∞,1)-logic of any (∞,1)-topos.

This interpretation of universal quantification as the right adjoint to context extension is also used in the notion of hyperdoctrine.

Examples

Let = Set, let X= be the set of natural numbers and let ϕ2 be the subset of even natural numebrs. This expresses the proposition ϕ(x)IsEven(x).

Then the dependent product

(ϕSet/)( x:Xϕ(x)Set)(\phi \in Set/{\mathbb{N}}) \mapsto (\prod_{x\colon X} \phi(x) \in Set)

is the set of sections of the bundle 2. But since over odd numbers the fiber of this bundle is the empty set, there is no possible value of such a section and hence the set of sections is itself the empty set, so the statement “all natural numbers are even” is, indeed, false.

References

The observation that substitution forms an adjoint pair/adjoint triple with the existential/universal quantifiers is due to

  • Bill Lawvere, Adjointness in Foundations, (TAC), Dialectica 23 (1969), 281-296

  • Bill Lawvere Quantifiers and sheaves, Actes, Congrès intern, math., 1970. Tome 1, p. 329 à 334 (pdf)

and further developed in

  • Bill Lawvere, Equality in hyperdoctrines and comprehension schema as an adjoint functor, Proceedings of the AMS Symposium on Pure Mathematics XVII (1970), 1-14.

Revised on December 13, 2012 19:58:09 by David Corfield (129.12.18.29)