natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism = propositions as types +programs as proofs +relation type theory/category theory
In homotopy type theory, the notion of h-proposition (or just a proposition, if no ambiguity will result) is an internalization of the notion of proposition / (-1)-truncated object.
h-Propositions are how logic is embedded into homotopy type theory, via the propositions as some types / bracket types approach.
h-Propositions are also said to be of h-level .
Consider intensional type theory with dependent sums, dependent products, and identity types.
There are many equivalent definitions of a type being an h-proposition. Perhaps the simplest is as follows.
For a tpye, let denote the dependent product of the identity types for all pairs of terms of :
We say that is an h-proposition if is an inhabited type.
In propositions as types language, this can be pronounced as “every two elements of are equal”.
The following are two provably equivalent definitions of , in terms of the dependent type that checks for contractible types:
The first fits into the general inductive definition of n-groupoid: an -groupoid is an -groupoid if all its hom-groupoids are -groupoids. The second says that being a proposition is equivalent to being “contractible if inhabited”.
We can prove that for any , the type is an h-proposition, i.e. . Thus, any two inhabitants of (witnesses that is an h-proposition) are “equal”.
If and are h-props and there exist maps and , then and are equivalent.
We discuss the categorical semantics of h-propositions.
Let be a locally cartesian closed category with sufficient structure to intepret all the above type theory. This means that has a weak factorization system with stable path objects, and that trivial cofibrations are preserved by pullback along fibrations between fibrant objects. (We ignore questions of coherence, which are not important for this discussion.)
Then for a fibrant object , the object defined above (with the first definition) is obtained by taking dependent product of the path-object along the projection . By adjunction, a global element of is therefore equivalent to a section of the path-object, which exactly means a (right) homotopy between the two projections . The existence of such a homotopy, in turn, is equivalent to saying that any two maps are homotopic.
More generally, we may apply this locally. Suppose that is a fibration, which we can regard as a dependent type
Then we have a dependent type
represented by a fibration . By applying the above argument in the slice category , we see that has a section exactly when any two maps in into are homotopic over . We can also construct the type
in global context, which has a global element precisely when has a section.
| homotopy level | n-truncation | homotopy theory | higher category theory | higher topos theory | homotopy type theory |
|---|---|---|---|---|---|
| h-level 0 | (-2)-truncated | contractible space | (-2)-groupoid | true/unit type/contractible type | |
| h-level 1 | (-1)-truncated | (-1)-groupoid/truth value | h-proposition | ||
| h-level 2 | 0-truncated | discrete space | 0-groupoid/set | sheaf | h-set |
| h-level 3 | 1-truncated | homotopy 1-type | 1-groupoid/groupoid | (2,1)-sheaf/stack | h-groupoid |
| h-level 4 | 2-truncated | homotopy 2-type | 2-groupoid | h-2-groupoid | |
| h-level 5 | 3-truncated | homotopy 3-type | 3-groupoid | h-3-groupoid | |
| h-level | -truncated | homotopy n-type | n-groupoid | h--groupoid | |
| h-level | untruncated | homotopy type | ∞-groupoid | (∞,1)-sheaf/∞-stack | h--groupoid |
Coq-code for h-propositions is in