This article is about the notion of equality as a type. For equality as a proposition or predicate, see propositional equality. For equality as a judgment, see judgmental equality. For other notions of equality, see equality.
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
equality (definitional, propositional, computational, judgemental, extensional, intensional, decidable)
identity type, equivalence of types, definitional isomorphism
isomorphism, weak equivalence, homotopy equivalence, weak homotopy equivalence, equivalence in an (∞,1)-category
Examples.
basic constructions:
strong axioms
further
In dependent type theory, the term typal equality is used to describe the use of the identity type to represent the notion of equality of terms, and is primarily used to distinguish from the notion of judgmental equality of terms.
In dependent type theory with type variables and identity types between types, in the absence of the univalence axiom, the term typal equality is also used for types to distinguish between when two types are typally equal via the identity type between the two types and when two types are equivalent to each other.
In dependent type theory, there are two different interpretations of propositions and thus propositional equality:
The propositions as types interpretation, which says that all types are propositions. The term propositional equality is used as a synonym of typal equality in referring to identifications or identity types. In the presence of univalence, all equivalences of types are equivalent to propositional equalities.
The propositions as some types interpretation, which says that only the subsingletons or h-propositions are propositions. The term propositional equality in this interpretation is not a synonym of typal equality and only refers to the unique identifications or the h-proposition valued identity types.
However, in any set-level type theory, typal equality and propositional equality are the same, since any axiom of set truncation implies that all identity types are valued in h-propositions. As a result, this distinction between typal equality and propositional equality only matters in dependent type theories which are not set-level type theories.
Most homotopy type theorists use the propositions as types interpretation of propositional equality as a synonym of typal equality, even by those who use the propositions as some types interpretation for everything else. Kevin Buzzard in Buzzard 2024 has used this fact and how that contradicts the interpretation of propositional equality elsewhere in mathematics as an argument for adopting a set-level type theory instead of homotopy type theory.
By Buzzard’s argument, homotopy type theorists should not be using the term “equality” to refer to arbitrary identifications or identity types, whether in its bare form or as “typal equality” or “propositional equality”, instead restricting the use of equality / propositional equality for only the unique identifications and the h-proposition valued identity types, and using a suitable alternative for “typal equality”, such as “identification” and “identified” and “identity type”.
In logic over dependent type theory, the term typal equality is also used to distinguish identity types from the external notion of propositional equality, which is the equality judged to be a proposition; i.e. , in addition to the usual internal notion of propositional equality as a mere proposition valued identity type.
The parallels between the structural rules for judgmental equality and typal equality in dependent type theory with type variables are shown below:
judgmental equality | typal equality |
---|---|
judgmental equality of terms | identification between terms |
reflexivity of judgmental equality of terms | identity identification between terms |
symmetry of judgmental equality of terms | inverse identification between terms |
transitivity of judgmental equality of terms | concatenation of identifications between terms |
judgmental equality of types | identification between types |
reflexivity of judgmental equality of types | identity identification between types |
symmetry of judgmental equality of types | inverse identification between types |
transitivity of judgmental equality of types | concatenation of identification between types |
principle of substitution | action on identifications |
Last revised on June 16, 2025 at 12:41:14. See the history of this page for a list of all contributions to it.