Exercise 29.5.
The nullary rules first give ⌜ℕ⌝:U0,⌜𝟏⌝:U0. Rule TU-Sum therefore gives 𝑐:=⌜+⌝(⌜ℕ⌝,⌜𝟏⌝):U0. Weakening 𝑐 to the context 𝑥 :𝖤𝗅(⌜ℕ⌝), followed by TU-Pi, constructs 𝑑:=⌜Π⌝(⌜ℕ⌝,𝑥.𝑐):U0. Decode from the outside inward. Rule TU-Pi-El gives 𝖤𝗅(𝑑)≡∏𝑥:𝖤𝗅(⌜ℕ⌝)𝖤𝗅(𝑐)𝗍𝗒𝗉𝖾. Next TU-Sum-El and the two base decoding equations give 𝖤𝗅(𝑐)≡𝖤𝗅(⌜ℕ⌝)+𝖤𝗅(⌜𝟏⌝)≡ℕ+𝟏. Also 𝖤𝗅(⌜ℕ⌝) ≡ℕ by TU-Nat-El. Dependent-product congruence, with context conversion for the codomain after changing the domain, now produces ⋅⊢𝖤𝗅(𝑑)≡ℕ→(ℕ+𝟏) 𝗍𝗒𝗉𝖾. The codomain is constant in 𝑥, so the context conversion has no effect on its raw expression.
More generally, suppose in 𝑥 :𝖤𝗅(⌜ℕ⌝) that 𝑥 :𝖤𝗅(⌜ℕ⌝) ⊢𝑐 ≡𝑐′ :U0. The TU-Cong scheme gives ⋅⊢⌜Π⌝(⌜ℕ⌝,𝑥.𝑐)≡⌜Π⌝(⌜ℕ⌝,𝑥.𝑐′):U0. Thus judgmentally equal codomain codes produce judgmentally equal product codes, as required.
Exercise 29.6.
For a representative TU-Sig instance, Γ⊢𝑎:U𝑖Γ,𝑥:𝖤𝗅(𝑎)⊢𝑏:U𝑖Γ⊢⌜Σ⌝(𝑎,𝑥.𝑏):U𝑖, erasure gives |Γ|⊢|𝑎|:U𝑖|Γ|,𝑥:|𝑎|⊢|𝑏|:U𝑖|Γ|⊢∑𝑥:|𝑎||𝑏|:U𝑖, which is exactly U-Sig. A TU-W-El conclusion erases as ∣𝖤𝗅(⌜𝖶⌝(𝑎,𝑥.𝑏))∣=𝖶𝑥:|𝑎||𝑏|≡∣𝖶𝑥:𝖤𝗅(𝑎)𝖤𝗅(𝑏)∣=𝖶𝑥:|𝑎||𝑏|, so it becomes type reflexivity. Likewise TU-Sum-El erases to |𝑎|+|𝑏|≡|𝑎|+|𝑏| 𝗍𝗒𝗉𝖾.
Here is the binder calculation needed in the dependent cases. Choose the bound name 𝑦 fresh for the substituting term 𝑐 and distinct from 𝑥. Then ∣⌜Σ⌝(𝑎,𝑦.𝑏)[𝑐/𝑥]∣=∣⌜Σ⌝(𝑎[𝑐/𝑥],𝑦.𝑏[𝑐/𝑥])∣=∑𝑦:|𝑎[𝑐/𝑥]||𝑏[𝑐/𝑥]|=∑𝑦:|𝑎|[|𝑐|/𝑥]|𝑏|[|𝑐|/𝑥]=(∑𝑦:|𝑎||𝑏|)[|𝑐|/𝑥]=∣⌜Σ⌝(𝑎,𝑦.𝑏)∣[|𝑐|/𝑥]. The third line is the induction hypothesis on the two immediate subexpressions. For W, instantiate each of the five lines with ⌜𝖶⌝ and 𝖶−:− − in place of ⌜Σ⌝ and ∑−:− − (five lines). This directly verifies |𝑒[𝑐/𝑥]| =|𝑒|[|𝑐|/𝑥] for the two displayed dependent constructors.
Exercise 29.7.
Write 𝐿:=𝖤𝗅(⌜Π⌝(𝑎,𝑥.𝑏)),𝑅:=∏𝑥:𝖤𝗅(𝑎)𝖤𝗅(𝑏), and let the chosen definitional isomorphism consist of 𝐹:𝐿→𝑅,𝐺:𝑅→𝐿,𝐺(𝐹(𝑢))≡𝑢,𝐹(𝐺(𝑣))≡𝑣. For 𝑝 :𝐿 and 𝑠 :𝖤𝗅(𝑎), define weak application by 𝖺𝗉𝗉𝜙(𝑝,𝑠):=𝐹(𝑝)(𝑠):𝖤𝗅(𝑏[𝑠/𝑥]). For a term 𝑡 :𝖤𝗅(𝑏) in context 𝑥 :𝖤𝗅(𝑎), define weak abstraction by 𝗅𝖺𝗆𝜙(𝑥.𝑡):=𝐺(𝜆𝑥.𝑡):𝐿. The beta calculation uses exactly one round-trip law and ordinary product beta: 𝖺𝗉𝗉𝜙(𝗅𝖺𝗆𝜙(𝑥.𝑡),𝑠)=𝐹(𝐺(𝜆𝑥.𝑡))(𝑠)≡(𝜆𝑥.𝑡)(𝑠)≡𝑡[𝑠/𝑥]. The first judgmental step is 𝐹 ∘𝐺 ≡id𝑅; the second is Π-beta. For 𝑝 :𝐿, the other calculation is explicit: 𝗅𝖺𝗆𝜙(𝑥.𝖺𝗉𝗉𝜙(𝑝,𝑥))=𝐺(𝜆𝑥.𝐹(𝑝)𝑥)Π−𝜂≡𝐺(𝐹(𝑝))inverse law≡𝑝.
This local argument proves only the beta behavior of this one chosen isomorphism. It says nothing about compatibility of separately chosen isomorphisms with substitution, congruence, nested Π-, Σ-, or W-codes, composition of decodings, or two different paths through a chain of weak decoding laws. Those are commuting-diagram conditions on a whole family of choices. They require a separate coherence theorem and do not follow from the two round-trip equations for one 𝜙.
Exercise 75.4.
Erasure sends the open code variable 𝑎 :U0 to the same Russell term. If decoration follows the resulting U-El derivation, it returns the Tarski type 𝖤𝗅(𝑎), and code mode returns 𝑎 by the variable rule. Thus the fixed syntax-directed round trip is reflexive. If a second Russell derivation forms the same erased type directly, its decoration need not end in TU-El. Equating that output with 𝖤𝗅(𝑎) is exactly the missing mixed coherence equation. It must be stable under every substitution into the context. At the semantic signature cited in the chapter, this stability is supplied by natural inverse operations 𝖢𝗈𝖽𝖾 and 𝖤𝗅, together with the Russell identification 𝖤𝗅(𝑡) =𝑡. None of those equations is supplied by structural recursion on the raw terms of definition 75.1.
Exercise 75.5.
Each 𝐶𝑖 =𝑉𝜅𝑖 ×{0,1} is a set. If 𝑗 <𝑖, then rank(𝐶𝑗) <𝜅𝑖, so (𝐶𝑗,0) ∈𝐶𝑖; decoding this pair returns 𝐶𝑗, which proves TU-Hier and TU-Hier-El.
For the dependent-product case, write 𝑎 =(𝐴,𝜖) and suppose the body assigns 𝑏𝑥 =(𝐵𝑥,𝜖𝑥) ∈𝐶𝑖 to every 𝑥 ∈𝐴. Strong inaccessibility gives 𝑃:=∏𝑥∈𝐴𝐵𝑥∈𝑉𝜅𝑖. Interpret the product constructor by (𝑃,0) ∈𝐶𝑖. Its decoding is 𝖤𝗅𝑖(𝑃,0) =𝑃, exactly the dependent product of the decoded domain and fibres. This proves TU-Pi and TU-Pi-El; the other constructors use the corresponding closure operation.
Let 1 be the singleton interpretation of 𝟏. The codes (1,0) and (1,1) are distinct elements of 𝐶𝑖, but 𝖤𝗅𝑖(1,0)=1=𝖤𝗅𝑖(1,1). Thus decoding is not injective in this model. The comparison theorem uses only formation, congruence, substitution, and the named decoding equalities; it never reflects equality of decoded types back to equality of codes. Consequently the collision does not refute theorem 75.6.