Lectures onType Theory
Extensional type theory: the delta
appendix sectionrules

Extensional type theory: the delta

ETT extends the raw binding signature by EqA(a,b) of arity (0,0,0) and the annotated constructor eqrefla of arity (0). We print the latter as refl when its expected type determines a.

Γ ctxΓA typeΓa:AΓb:A
ΓEqA(a,b) type
Eq-F
Γ ctxΓA typeΓa:A
Γrefl:EqA(a,a)
Eq-I

When Russell universes are present, the additional closure rule is

Γ ctxΓA:UiΓa:AΓb:A
ΓEqA(a,b):Ui
Eq-Form-U
Γ ctxΓA typeΓa:AΓb:AΓp:EqA(a,b)
Γab:A
Eq-Reflect
Γ ctxΓA typeΓa:AΓb:AΓp:EqA(a,b)
Γprefl:EqA(a,b)
Eq-Uniq

The classified congruence rules are

ΓAA typeΓaa:AΓbb:A
ΓEqA(a,b)EqA(a,b) type
Eq-F-eq
Γaa:A
Γeqreflaeqrefla:EqA(a,a)
Eq-I-eq

The optional ETT propositional-truncation delta is the following. In Tr-E, the equality premise says that C is a proposition. Its raw signature adds A and |a| of arity (0) and the recursor recA(x.c,t) of arity (1,0), binding x in c.

Γ ctxΓA type
ΓA type
Tr-F
Γ ctxΓA typeΓa:A
Γ|a|:A
Tr-I
Γ ctxΓA typeΓp:AΓq:A
Γpq:A
Tr-Uniq

Its classified congruence rules are

ΓAA type
ΓAA type
Tr-F-eq
Γaa:A
Γ|a||a|:A
Tr-I-eq
Γ ctxΓA typeΓC typeΓ,y:C,z:C ctxΓ,y:C,z:Cyz:CΓ,x:Ac:CΓt:A
ΓrecA(x.c,t):C
Tr-E

After conversion of the primed data to the displayed common types, recursor congruence is

ΓCC typeΓ,y:C,z:Cyz:CΓ,x:Acc:CΓtt:A
ΓrecA(x.c,t)recA(x.c,t):C
Tr-E-eq

There is no separate computation rule: both the recursor applied to |a| and c[a/x] inhabit the proposition C, so the displayed proof-irrelevance premise already makes them judgmentally equal. No base rule is removed; equality reflection makes transport silent and derives UIP and function extensionality.

Search the book

Type to search the local edition.