The omitted right-hand presuppositions follow by symmetry: from Γ⊢𝐴≡𝐵𝗍𝗒𝗉𝖾 derive Γ⊢𝐵𝗍𝗒𝗉𝖾, and from Γ⊢𝑎≡𝑏:𝐴 derive Γ⊢𝑏:𝐴.
Equivalence and conversion
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾
Γ⊢𝐴≡𝐴𝗍𝗒𝗉𝖾
Ty-Refl
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝐵𝗍𝗒𝗉𝖾Γ⊢𝐴≡𝐵𝗍𝗒𝗉𝖾
Γ⊢𝐵≡𝐴𝗍𝗒𝗉𝖾
Ty-Sym
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝐵𝗍𝗒𝗉𝖾Γ⊢𝐶𝗍𝗒𝗉𝖾Γ⊢𝐴≡𝐵𝗍𝗒𝗉𝖾Γ⊢𝐵≡𝐶𝗍𝗒𝗉𝖾
Γ⊢𝐴≡𝐶𝗍𝗒𝗉𝖾
Ty-Trans
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴
Γ⊢𝑎≡𝑎:𝐴
Tm-Refl
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴Γ⊢𝑏:𝐴Γ⊢𝑎≡𝑏:𝐴
Γ⊢𝑏≡𝑎:𝐴
Tm-Sym
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴Γ⊢𝑏:𝐴Γ⊢𝑐:𝐴Γ⊢𝑎≡𝑏:𝐴Γ⊢𝑏≡𝑐:𝐴
Γ⊢𝑎≡𝑐:𝐴
Tm-Trans
Derived conversion and assumption (primitive economically)
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝐵𝗍𝗒𝗉𝖾Γ⊢𝐴≡𝐵𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴
Γ⊢𝑎:𝐵
Conv
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝐵𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴Γ⊢𝑏:𝐴Γ⊢𝑎≡𝑏:𝐴Γ⊢𝐴≡𝐵𝗍𝗒𝗉𝖾
Γ⊢𝑎≡𝑏:𝐵
Conv-Eq
Γ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾(𝑥:𝐴)∈Γ
Γ⊢𝑥:𝐴
Assum
These three rules are not primitive in the official presentation: they are the derived rules of lemma 26.31, lemma 26.32, lemma 26.34. They are recorded here because they are used constantly and become primitive in the economical presentation of definition 26.35.
Weakening, substitution, and context conversion
In the next rules J is any of the four judgment theses of convention 26.17, and all contexts occurring in premises are required to be well formed.
Γ,𝑥:𝐴,Δ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ,Δ⊢J
Γ,𝑥:𝐴,Δ⊢J
Wk
Γ𝖼𝗍𝗑Γ,𝑥:𝐴,Δ𝖼𝗍𝗑Γ⊢𝐴𝗍𝗒𝗉𝖾Γ⊢𝑎:𝐴Γ,𝑥:𝐴,Δ⊢J
Γ,Δ[𝑎/𝑥]⊢J[𝑎/𝑥]
Subst
Γ,𝑥:𝐴,Δ𝖼𝗍𝗑Γ⊢𝐴′𝗍𝗒𝗉𝖾Γ⊢𝐴≡𝐴′𝗍𝗒𝗉𝖾Γ,𝑥:𝐴,Δ⊢J
Γ,𝑥:𝐴′,Δ⊢J
Ctx-Conv
Derived renaming and interchange
The freshness and independence side conditions belong to the reference rules:
The phrase congruence in every argument is interpreted through a classified parameter telescope, as in definition 26.36. Write P=(𝑝1:𝐽1,…,𝑝𝑛:𝐽𝑛), where each 𝐽𝑖 is either a type formation judgment or a term typing judgment in a displayed local context; both that context and the classifier may depend on 𝑝1,…,𝑝𝑖−1. Given a primed telescope P′, compare the parameters in order. A type parameter is compared by type equality in the local context already transported along the earlier equalities. A term parameter is compared at the unprimed classifier after transporting the primed classifier and local context along those same earlier equalities. For a type former 𝐹 and a term former 𝑓:𝐹, the resulting rules are
P≡P′inclassifiedorder
Γ⊢𝐹(⃗𝑝)≡𝐹(⃗𝑝′)𝗍𝗒𝗉𝖾
Cong-Ty
P≡P′inclassifiedorder
Γ⊢𝑓(⃗𝑝)≡𝑓(⃗𝑝′):𝐹(⃗𝑝)
Cong-Tm
where the primed result in Cong-Tm is first converted along Cong-Ty. Thus P≡P′ abbreviates one precisely classified equality premise per parameter; it is not a new judgment.
For reference, the classified telescopes of the annotated inductive eliminators are as follows. Every entry is in ambient context Γ; a context in brackets is local to that parameter.
For 𝗂𝗇𝖽𝟎(𝑧.𝐶;𝑣): first 𝐶𝗍𝗒𝗉𝖾[𝑧:𝟎], then 𝑣:𝟎.
For 𝗂𝗇𝖽𝟐(𝑧.𝐶;𝑐𝑡,𝑐𝑓;𝑏): first 𝐶𝗍𝗒𝗉𝖾[𝑧:𝟐], followed in order by 𝑐𝑡:𝐶[𝗍𝗍/𝑧], 𝑐𝑓:𝐶[𝖿𝖿/𝑧], and 𝑏:𝟐.
For 𝗂𝗇𝖽+(𝑧.𝐶;𝑓,𝑔;𝑠): first 𝐴𝗍𝗒𝗉𝖾 and 𝐵𝗍𝗒𝗉𝖾, then 𝐶𝗍𝗒𝗉𝖾[𝑧:𝐴+𝐵],𝑓:∏𝑥:𝐴𝐶[𝗂𝗇𝗅(𝑥)/𝑧],𝑔:∏𝑦:𝐵𝐶[𝗂𝗇𝗋(𝑦)/𝑧],𝑠:𝐴+𝐵.
For 𝗂𝗇𝖽ℕ(𝑛.𝐶;𝑐0,𝑐𝑠;𝑚): first 𝐶𝗍𝗒𝗉𝖾[𝑛:ℕ], then 𝑐0:𝐶[𝟢/𝑛],𝑐𝑠:∏𝑘:ℕ(𝐶[𝑘/𝑛]→𝐶[𝗌𝗎𝖼(𝑘)/𝑛]),𝑚:ℕ.
For 𝗂𝗇𝖽𝖶(𝑤.𝐶;ℎ,𝑡) the telescope is 𝐴𝗍𝗒𝗉𝖾;𝐵𝗍𝗒𝗉𝖾[𝑥:𝐴];𝑊:=𝖶𝑥:𝐴𝐵;𝐶𝗍𝗒𝗉𝖾[𝑤:𝑊];ℎ:∏𝑎:𝐴∏𝛼:𝐵[𝑎/𝑥]→𝑊((∏𝑦:𝐵[𝑎/𝑥]𝐶[𝛼(𝑦)/𝑤])→𝐶[𝗌𝗎𝗉(𝑎,𝛼)/𝑤]);𝑡:𝑊. Applying the ordered scheme to these lists supplies motive equality beneath its binder, branch equalities in their substituted fibers, equality of the scrutinee, and conversion of the primed result to the unprimed result type.
Illustrative stable binding extension
The structurally stable operator used to test the congruence scheme has the full rules