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
constructive mathematics, realizability, computability
propositions as types, proofs as programs, computational trinitarianism
In homotopy type theory an h-set is a type – hence a homotopy type – with the special property that any two of its terms are equal (equivalent) in an at most essentially unique way, hence that the identity type is an h-proposition.
The notion of h-set is an internalization of the notion of 0-truncated object into homotopy type theory, essentially an internalization of the notion of set (or possibly of preset). See below in Relation to internal sets for more on this.
h-Sets can also be regarded as a way of embedding extensional type theory into intensional type theory.
Let be a type in intensional type theory with dependent sums, dependent products, and identity types. We define a new type as follows:
(using any equivalent definition of the predicate isProp for h-propositions; and where “” denotes dependent product types and “” denotes identity types).
In other words, the only relationship between two elements of an h-set is whether they are equal; there is no room for more than one path between them. By beta-reducing this definition, we can express it as
In other words, any two parallel paths in are equal.
A provably equivalent definition is
This says that a version of Streicher’s “axiom K” holds for h-sets. (See also at axiom UIP.)
One interesting consequence of this definition is the following, first proven in (Hedberg)
Suppose that is a type which has decidable equality in the propositions as types logic (which is not the logic of h-propositions usually used in HoTT). In other words, the projection
(where is the path type of , “+” forms the sum type, and on the right we have the -dependent function type into the empty type), has a section.
Then is a h-set.
Let be the given section. Thus, for any , is either a path from to or a function from to the empty type (implying that is also empty).
It suffices to exhibit an operation connecting any endo-path to the identity path . Given such a path, define . If lies in the second case, then is empty, a contradiction since we know it contains ; hence we may assume as well.
Let be the image of under the section . This is a path in the total space lying over the path in . Equivalently, it is a path in the fiber over from to , where denotes transport in the fibration along the path . However, we have defined , and transport in a path-space is just composition, so may be regarded as a path from to . Canceling , we obtain a path from to .
Not every h-set has decidable equality (unless the law of excluded middle hold), but there are some other related equivalent characterizations.
A type is an h-set if and only if all its identity types have split support, i.e. . This is proven in (KECA).
More generally, is an h-set if and only if there is some which is reflexive (i.e. ) and such that . This is Theorem 7.2.2 in the HoTT Book.
When using homotopy type theory as the ambient foundations, h-sets generally play the role of the sets. When homotopy type theory is the internal logic of some (∞,1)-category, then the h-sets are the “internal sets” in this internal logic. (Not to be confused with the other meaning of internal set.)
Note, though, that this notion of “internal set” is of a different sort from the usual notions of internal category or internal groupoid. If an internal set is an h-set, then an “internal groupoid” should mean a 1-truncated type, whereas an internal groupoid usually means some kind of groupoid object in an (∞,1)-category. Conversely, the usual meaning of “internal groupoid” suggests that the meaning of “internal set” should be something more like a setoid, with the h-sets being more like presets. This latter meaning is how “sets” are more often defined by constructive type theorists.
The point is that to be worthy of the name “set”, a notion ought to come with “quotients of equivalence relations”. If we start with a notion which does not have quotients, such as the types in ordinary Martin-Löf dependent type theory, then in order to get a good notion of “set” we need to “freely add quotients”, which semantically means passing to the exact completion whose objects are setoids. But if we start with a notion that does have quotients, then this is unnecessary. In homotopy type theory, h-sets do have quotients, which can be constructed using higher inductive types; thus it makes sense to call them “sets” rather than “presets”.
A good way to reconcile these seemingly clashing terminologies is to talk about exact completions of unary sites or (∞,1)-sites. The presence of a Grothendieck topology allows us to “remember” to what extent our given notion has well-behaved quotients: if we have no quotients, then we use the trivial topology, whereas if we have quotients, we can use the regular topology. And the exact completion builds in quotients “freely” but preserving those which the topology asserts to already exist. In particular, if we start with quotients (an exact category or -category), then the exact completion of the regular topology is idempotent, whereas if we start with a trivial topology, then the exact completion gives a category of setoids. Thus, in general, the good notion of “internal set” in a unary site is “object of the exact completion”.
The h-sets in HoTT form a ΠW-pretopos (Rijke-Spitters 13). See also at structural set theory.
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 | contractible-if-inhabited | (-1)-groupoid/truth value | (0,1)-sheaf/ideal | mere proposition/h-proposition |
h-level 2 | 0-truncated | homotopy 0-type | 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 | (3,1)-sheaf/2-stack | h-2-groupoid |
h-level 5 | 3-truncated | homotopy 3-type | 3-groupoid | (4,1)-sheaf/3-stack | h-3-groupoid |
h-level | -truncated | homotopy n-type | n-groupoid | (n+1,1)-sheaf/n-stack | h--groupoid |
h-level | untruncated | homotopy type | ∞-groupoid | (∞,1)-sheaf/∞-stack | h--groupoid |
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
Michael Hedberg, A coherence theorem for Martin-Löf’s type theory, J. Functional Programming, (1998)
Nicolai Kraus, A direct proof of Hedberg’s theorem, blog post
Nicolai Kraus, Martin Escardo, Thierry Coquand , Thorsten Altenkirch, Generalizations of Hedberg’s theorem, in M. Hasegawa (Ed.): TLCA 2013, LNCS 7941, pp. 173-188. Springer, Heidelberg 2013. (pdf)
Formalization of set theory via h-sets in homotopy type theory (see at Set in homotopy type theory)
which became one chapter in
Last revised on June 9, 2022 at 15:14:07. See the history of this page for a list of all contributions to it.