Contents
Context
Equality and Equivalence
equivalence
-
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
-
natural equivalence, natural isomorphism
-
gauge equivalence
-
Examples.
principle of equivalence
equation
-
fiber product, pullback
-
homotopy pullback
-
Examples.
-
linear equation, differential equation, ordinary differential equation, critical locus
-
Euler-Lagrange equation, Einstein equation, wave equation
-
Schrödinger equation, Knizhnik-Zamolodchikov equation, Maurer-Cartan equation, quantum master equation, Euler-Arnold equation, Fuchsian equation, Fokker-Planck equation, Lax equation
Type theory
Induction
Contents
Idea
In dependent type theory, a version of the identity type where elements from two different types can be compared for equality. Given types and and an equivalence of types , the two-type identity type between two elements and is a type whose elements witness that and are “equal” over or modulo the equivalence .
The phrase “two-type identity type” is a placeholder name for a concept which may or may not have another name in the type theory literature. The idea however is that two-type identity types are the “non-dependent” versions of dependent identity types in that it directly compares elements between two equivalent types, rather than between a family of dependent types which are equivalent via transport across an identification in the index type.
Definition
Given types and , two-type identity types are an inductive family of types
generated by the family of elements
where is the identity equivalence on .
Inference rules
The inference rules for forming two-type identity types and terms are as follows. First the inference rule that defines the two-type identity type itself, as a dependent type, in some context .
Formation rule for two-type identity types:
Now the basic “introduction” rule, which says that everything is equal to itself in a canonical way.
Introduction rule for two-type identity types:
Next we have the “elimination” rule:
Elimination rule for two-type identity types:
The elimination rule then says that if:
- for any equivalence , any elements and , and any two-type identification we have a type , and
- we have a specified dependent function
then we can construct a canonically defined term called the eliminator
for any , , , and .
Then, we have the computation rule or beta-reduction rule. This says that for all elements , substituting the dependent function into the eliminator along the constructor for yields an element equal to itself. Normally “equal” here means judgmental equality (a.k.a. definitional equality), but it is also possible for it to mean propositional equality (a.k.a. typal equality), so there are two possible computation rules
Computation rules for two-type identity types:
Finally, one might consider a uniqueness rule or eta-conversion rule. But similar to the case for identity types, a judgmental uniqueness rule for two-type identity types implies that the type theory is an extensional type theory, in which case there is not much need for two-type identity types, so such a rule is almost never written down. And as for identity types and other inductive types, the propositional/typal uniqueness rule is provable from the other four inference rules, so we don’t write it out explicitly.
Dependent universal property
The elimination, typal computation, and typal uniqueness rules for two-type identity types state that two-type identity types satisfy the dependent universal property of two-type identity types. With the uniqueness quantifier, the dependent universal property of two-type identity types could be simplified to the following rule:
In natural language this states that given types and , and given a type family indexed by elements , , , and , for all elements and , there exists a unique function with domain
and codomain
such that is equal to in the type .
Properties
Relation with identity types
One could then show that there exist equivalences between identity types and two-type identity types
and
for all , , and .
Relation with dependent identity types
Dependent identity types are two-type identity type for which the equivalence used is transport across the given identification :
On the other hand, every two-type identity type can be made into a dependent identity type. We first define a dependent type from the interval type defined as
-
,
-
, and
-
Then,
Universes
Given a Tarski universe , there is an equivalence
One could treat Russell universes as a Tarski universe whose type family is represented by the zero-width whitespace instead of , yielding
for the dependent identity type and
for the equivalence.
Given a Tarski universes , if is univalent with equivalence
then there is an equivalence of types
for -small types and and equivalence
For Russell universes , the univalence axiom is represented by
and the above equivalence is represented by
for the equivalence.
One-to-one correspondence structure
Two-type identity types are one-to-one correspondences. Given an equivalence ,
- for all elements , there exists a unique element such that ; the witness is given by the right projection function of the equivalence
- for all elements , there exists a unique element such that ; the witness is given by the right projection function of the inverse equivalence