Context
Type theory
Deduction and Induction
Constructivism, Realizability, Computability
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
Definition
Judgmental congruence rules
In dependent type theory with judgmental equality, a (judgmental) congruence rule is an inference rule which states that judgmental equality is respected.
For example, there is a congruence rule for element conversion, which states that given judgmentally equal types and and judgmentally equal elements and of , and are judgmentally equal elements of :
There are many other different judgmental congruence rules, one for every term or type that is formed in the natural deduction inference rules in the type theory:
Congruence rules for dependent function types
If the dependent function type is weak, then there are also the following congruence rules for the computation and uniqueness rules of dependent function types:
Congruence rules for dependent pair types:
If the dependent pair type is weak, then there is also the following congruence rule for the computation rule of dependent pair types:
Congruence rules for identity types:
If the identity types are weak, then there is also the following congruence rule for the computation rule of identity types:
Congruence rules for the empty type:
Congruence rules for the type of booleans:
If the type of booleans is weak, then there are also the following congruence rules for the computation rules of the type of booleans:
Congruence rules for the natural numbers type:
If the natural numbers type is weak, then there are also the following congruence rules for the computation rules of the natural numbers type:
Congruence rules for axioms
Similarly, we have congruence rules for every axiom in the dependent type theory, such as
Typal congruence rules
In dependent type theory, a typal congruence rule is an derivable inference rule which states that given identifications of the component terms and equivalences of the component types in the hypotheses of the natural deduction inference rules, one could derive the corresponding identification and equivalences of the derived terms and types in the conclusion of the inference rules.
For example, the typal congruence rule for element conversion states that given equivalent types and with equivalence and typally equal elements and of with identification , and are typally elements of , and is given by application of to :
There are many other different typal congruence rules which are derivable, one for every term or type that is formed in the natural deduction inference rules in the type theory:
Congruence rules for dependent function types
Congruence rules for identity types:
where is the diagonal function of .
See also
References