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
basic constructions:
strong axioms
further
In dependent type theory, uniqueness of identity proofs or UIP refers to a couple of different axioms and rules applicable to individual types to turn them into h-sets, type families to turn them into families of sets (and in particular, universes to turn them into internal types of sets), as well as the type theory as a whole to turn it into an actual set-level type theory, where all types are h-sets. Under certain conditions, uniqueness of identity proofs for universes is incompatible with the univalence axiom, and uniqueness of identity proofs for the whole type theory is incompatible with the existence of a univalent universe.
Heuristically, the axiom asserts that for each element and , every two identification and of the identity type are typally equal to each other. This is equivalent to saying that every identity type is an h-proposition.
There are multiple notions of uniqueness of identity proofs: for individual types, for type families and Tarski universes, and for the type theory itself.
Given a type , uniqueness of identity proofs is the axiom that for all elements and and identifications and , there is an identification . This is the same as stating that there is a dependent function
Uniqueness of identity proofs implies that is an h-set, and can be used in the definition of an h-set.
Uniqueness of identity proofs for type families says that given a type with a type family indexed by elements , the typal uniqueness of identity proofs holds for the dependent type of every element of the index type . This is the same as stating that there is a dependent function
This definition of uniqueness of identity proofs could be used in the definition of family of sets. Since this definition applies to type families, this should probably be called the familial uniqueness of identity proofs to distinguish it from the uniqueness of identity proofs axiom above.
Since every Tarski universe consists of a type of encodings and a type family representing the actual small types indexed by the type , with addition structure representing the closure of under all type formers, the familial uniqueness of identity proofs definition works for Tarski universes as well, and this could equivalently be called the Tarski universe uniqueness of identity proofs.
Uniqueness of identity proofs could also be rewritten as a rule instead of an axiom, by making the hypotheses of the axioms into premises of the rule. This makes uniqueness of identity proofs applicable not only to universes, but to the entire type theory. In addition, one could use, in addition to typal equality, either judgmental equality or propositional equality, resulting in judgmental uniqueness of identity proofs and propositional uniqueness of identity proofs, with the original uniqueness of identity proofs axiom called typal uniqueness of identity proofs
In this manner, uniqueness of identity proofs then becomes the rules:
Uniqueness of identity proofs is a axiom of set truncation, and turns the type theory into a set-level type theory. Judgmental uniqueness of identity proofs holds in XTT, where it follows from boundary separation.
There is also a notion of uniqueness of identity proofs for heterogeneous identity types, which is given by the following rule:
Judgmental uniqueness of identity proofs for heterogeneous identity types:
Propositional uniqueness of identity proofs for heterogeneous identity types:
Typal uniqueness of identity proofs for heterogeneous identity types:
and likewise for dependent heterogeneous identity types:
Judgmental uniqueness of identity proofs for dependent heterogeneous identity types:
Propositional uniqueness of identity proofs for dependent heterogeneous identity types:
Typal uniqueness of identity proofs for dependent heterogeneous identity types:
In this section we assume that the universe is a Tarski universe. Uniqueness of identity proofs is inconsistent with having a univalent type with a type family with at least one term where the dependent type is provably not a proposition
because by univalence, is then provably not a set, which contradicts uniqueness of identity proofs. In particular, having a univalent universe in the type theory is inconsistent with uniqueness of identity proofs.
The familial uniqueness of identity proofs axiom applied to Tarski universes implies that for all the type is a set. This means the type reflection of the internal equivalences is an h-set, and the univalence axiom then implies that is an h-groupoid. If has h-sets which can be proven not to be an h-proposition, such as the booleans type, then is provably not an h-set.
However, unlike the case for uniqueness of identity proofs, the familial uniqueness of identity proofs and the univalence axiom for universes are inconsistent with each other only if the Tarski universe has objects which can be proven not to be an h-set, such as internal univalent Tarski universes where the type has terms such that is an h-set which is not an h-proposition, such as the booleans type. As a result, can be proven to not be a set, causing uniqueness of identity proofs for to be inconsistent with the existence of and univalence.
Discussion in Coq is in
For definitional UIP in XTT
Jonathan Sterling, Carlo Angiuli, Daniel Gratzer, Cubical syntax for reflection-free extensional equality. In Herman Geuvers, editor, 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019), volume 131 of Leibniz International Proceedings in Informatics (LIPIcs), pages 31:1-31:25. (arXiv:1904.08562, doi:10.4230/LIPIcs.FCSD.2019.31)
Jonathan Sterling, Carlo Angiuli, Daniel Gratzer, A Cubical Language for Bishop Sets, Logical Methods in Computer Science, 18 (1), 2022. (arXiv:2003.01491).
Last revised on February 24, 2024 at 11:57:28. See the history of this page for a list of all contributions to it.