Redirected from "propositional heterogeneous equality".
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
Foundations
foundations
The basis of it all
-
mathematical logic
-
deduction system, natural deduction, sequent calculus, lambda-calculus, judgment
-
type theory, simple type theory, dependent type theory
-
collection, object, type, term, set, element
-
equality, judgmental equality, typal equality
-
universe, size issues
-
higher-order logic
Set theory
Foundational axioms
Removing axioms
Contents
Idea
A form of equality which allows for elements of families of types to be compared for equality.
Definition
Typal heterogeneous equality
In the type theory literature, there are different kinds of types which are called heterogeneous equality types:
Propositional heterogeneous equality
In any two-layer type theory with a layer of types and a layer of propositions, or equivalently a first order logic over type theory or a first-order theory, every type has a binary relation called propositional equality, according to which two elements and of are related if and only if they are equal; in this case we write . Similarly, every type family indexed by has a family of binary relations, according to which, given two elements and of where , and two elements of and of , and are related if and only if they are equal across the equality . Since relations are propositions in the context of a term variable judgment in the type layer, this is called propositional heterogeneous equality or heterogeneous propositional equality. The formation and introduction rules for propositional heterogeneous equality is as follows
Then we have the elimination rules for propositional heterogeneous equality:
Properties
Heterogeneous equalities are equivalence relations
The introduction rule of heterogeneous equality says that heterogeneous equality is reflexive.
We can show that heterogeneous equality is symmetric, that for all and such that , and for all and such that , we have . Non-heterogeneous equality is symmetric, which means that for all and such that , . By the introduction rule, we have that for all and , we have that , and because all propositions imply themselves, we have that implies . Thus, by the elimination rules for heterogeneous equality, for all and such that , and for all and such that , we have .
We can also show that heterogeneous equality is transitive, that for all , , and such that and , and for all , , and such that , implies . Non-heterogeneous equality is transitive, that for all , , and such that and , . By the introduction rule, we have that for all and , we have that , and because all propositions imply themselves, we have that implies , and because true propositions imply true propositions, we have that implies that implies . Thus, by the elimination rules for heterogeneous equality, or all , , and such that and , and for all , , and such that , implies .
Thus, heterogeneous equality is an equivalence relation.
Dependent functions are extensional
For all dependent function and elements and such that , :
This is because for all dependent function , by the introduction rule for heterogeneous equality, for all elements , , and the elimination rule for heterogeneous equality states that if for all elements , , then for all elements and such that , .
Dependent function extensionality
The extensionality principle for dependent product types (dependent function extensionality) states that for all dependent functions and , if and only if for all and such that ,
Relation to non-heterogeneous propositional equality
Given elements , and for all and , if and only if
This is because by the introduction rules of propositional equality and heterogeneous propositional equality, we have that for all , and , and since true propositions imply true propositions, we have implies and implies . By the elimination rules for propositional equality, for all and , we have implies , and by the elimination rules for heterogeneous propositional equality, we have implies . Thus, if and only if .
Transport functions
The analogue of identity functions on a type , a function such that for all elements , is the notion of transport functions between a family of types indexed by elements .
Given elements and such that , a transport function is a function such that for all ,
These transport functions, if they exist, are unique up to equality. Suppose we have a second function such that implies that for all , . Then by symmetry and transitivity of heterogeneous equality, we have , which is logically equivalent to . Then by function extensionality, we have , which implies that transport functions, if they exist, are unique up to equality.
Suppose that for all elements and such that , there exists a transport function . Then for all and , if and only if
In particular, this means that we have , and by the fact that functions preserve equality, , which by transitivity of propositional equality implies that . Similarly, we have , which by transitivity of propositional equality implies that . Thus, the transport functions and are inverse functions of each other, and thus both transport functions are bijections, and could be written as and respectively.