The direct presuppositions are Γ,𝑥:𝐴⊢𝑎:𝐵andΓ,𝑥:𝐴⊢𝑏:𝐵. Each term judgment presupposes Γ,𝑥:𝐴⊢𝐵𝗍𝗒𝗉𝖾, which in turn presupposes Γ,𝑥:𝐴𝖼𝗍𝗑. Context formation then gives Γ⊢𝐴𝗍𝗒𝗉𝖾 and Γ𝖼𝗍𝗑. If Γ=𝑦1:𝐶1,…,𝑦𝑛:𝐶𝑛, transitively this includes the formation of every prefix and the judgment that each 𝐶𝑘 is a type in the preceding prefix. There are no further presuppositions.
The simultaneous context clause supplies Γ,𝑥:𝐴,Δ𝖼𝗍𝗑. If 𝑧:𝐶 occurs in Γ, the same declaration occurs in the prefix of this enlarged context, so Assum immediately derives Γ,𝑥:𝐴,Δ⊢𝑧:𝐶. Otherwise write Δ=Δ1,𝑧:𝐶,Δ2. The context clause gives Γ,𝑥:𝐴,Δ1,𝑧:𝐶,Δ2𝖼𝗍𝗑; the declaration selected by the original rule is still present with the same type, and a second application of Assum gives the weakened judgment. Freshness of 𝑥 ensures that neither case changes the selected declaration or its type. The required context derivation is why context weakening and judgment weakening are proved simultaneously.
The componentwise composite is 𝑓∘𝑔=(𝑏1[𝑐1/𝑢,𝑐2/𝑣],𝑏2[𝑐1/𝑢,𝑐2/𝑣]). The typing premises for 𝑓 include Γ,Θ⊢𝑏1:𝐴,Γ,Θ⊢𝑏2:𝐵(𝑏1). Substitution by the telescope map 𝑔 in the second judgment gives Γ,Ξ⊢𝑏2[𝑐1/𝑢,𝑐2/𝑣]:𝐵(𝑏1[𝑐1/𝑢,𝑐2/𝑣]), which is exactly the required type after the first composite component has been installed. Substitution in the first premise gives Γ,Ξ⊢𝑏1[𝑐1/𝑢,𝑐2/𝑣]:𝐴, because the target declaration 𝐴 is formed over Γ and contains no variable of Θ.
For ℎ:Ω⇒ΓΞ, either association sends a component 𝑏𝑖 to (𝑏𝑖[𝑔])[ℎ]. The structural-induction calculation in proposition 71.51 identifies this expression with 𝑏𝑖[𝑔∘ℎ]. Hence every corresponding component is alpha-equivalent, so (𝑓∘𝑔)∘ℎ=𝑓∘(𝑔∘ℎ) with the same substituted target types.
Unpack the two hypotheses. There are fresh names, say 𝑟 and 𝑠, such that 𝑒⟨𝑟/𝑥⟩=𝛼𝑓⟨𝑟/𝑦⟩,𝑓⟨𝑠/𝑦⟩=𝛼𝑔⟨𝑠/𝑢⟩. Choose one further name 𝑡 occurring in none of 𝑒,𝑓,𝑔 and distinct from 𝑥,𝑦,𝑢,𝑟,𝑠. Fresh-opening independence is used twice here: by proposition 26.7.1, the first displayed comparison remains true when its common opening 𝑟 is replaced by 𝑡, and the second remains true when 𝑠 is replaced by the same 𝑡. Hence 𝑒⟨𝑡/𝑥⟩=𝛼𝑓⟨𝑡/𝑦⟩=𝛼𝑔⟨𝑡/𝑢⟩. Transitivity for the strictly smaller opened bodies gives 𝑒⟨𝑡/𝑥⟩=𝛼𝑔⟨𝑡/𝑢⟩. This is a common opening witnessing, by the operator clause in definition 26.6, 𝐿(𝑥.𝑒)=𝛼𝐿(𝑢.𝑔). Equivalently, rather than citing fresh-opening independence as a black box, one may open the first comparison successively at 𝑟 and 𝑡, use (26.1), and do the same with the second comparison. The only nonformal step is again the assertion that changing a fresh common opening does not change the alpha-comparison.
The displayed binder 𝑦 is not clean, because 𝑦 is free in the term being inserted. Choose distinct fresh names 𝑟 and 𝑠, both outside {𝑥,𝑦,𝑧}. The two clean displays give respectively 𝐿(𝑦.𝑃(𝑥;𝑦))[𝑃(𝑦;𝑧)/𝑥]=𝛼𝐿(𝑟.𝑃(𝑥;𝑟))[𝑃(𝑦;𝑧)/𝑥]=𝐿(𝑟.𝑃(𝑃(𝑦;𝑧);𝑟)), and 𝐿(𝑦.𝑃(𝑥;𝑦))[𝑃(𝑦;𝑧)/𝑥]=𝛼𝐿(𝑠.𝑃(𝑥;𝑠))[𝑃(𝑦;𝑧)/𝑥]=𝐿(𝑠.𝑃(𝑃(𝑦;𝑧);𝑠)). To compare the two results, choose 𝑡 fresh for both. Their common openings are literally the same expression: 𝑃(𝑃(𝑦;𝑧);𝑟)⟨𝑡/𝑟⟩=𝑃(𝑃(𝑦;𝑧);𝑡)=𝑃(𝑃(𝑦;𝑧);𝑠)⟨𝑡/𝑠⟩. Therefore 𝐿(𝑟.𝑃(𝑃(𝑦;𝑧);𝑟))=𝛼𝐿(𝑠.𝑃(𝑃(𝑦;𝑧);𝑠)). The calculation also exhibits why the naive result 𝐿(𝑦.𝑃(𝑃(𝑦;𝑧);𝑦)) is wrong: it captures the free 𝑦 in the inserted copy of 𝑃(𝑦;𝑧).
The displayed binder must first be freshened, since the letter 𝑥 is also the source variable of the substitution lemma. Choose 𝑧 outside {𝑥,𝑦}∪FV(𝑎)∪FV(𝑐)∪FV(𝑎[𝑐/𝑦]) and write the unary expression as 𝐿(𝑧.𝑒). Substitution passes through this clean binder, so the operator case is 𝐿(𝑧.𝑒)[𝑎/𝑥][𝑐/𝑦]=𝐿(𝑧.𝑒[𝑎/𝑥])[𝑐/𝑦]=𝐿(𝑧.𝑒[𝑎/𝑥][𝑐/𝑦])=𝐿(𝑧.𝑒[𝑐/𝑦][𝑎[𝑐/𝑦]/𝑥])(inductionhypothesison𝑒)=𝐿(𝑧.𝑒[𝑐/𝑦])[𝑎[𝑐/𝑦]/𝑥]=𝐿(𝑧.𝑒)[𝑐/𝑦][𝑎[𝑐/𝑦]/𝑥]. No binder is altered in this calculation because 𝑧 was chosen clean for all substituends.
The load-bearing side condition is 𝑥∉FV(𝑐). It is needed already in the variable case 𝑒=𝑦: the two sides become 𝑐 and 𝑐[𝑎[𝑐/𝑦]/𝑥], which agree precisely because substitution for 𝑥 leaves 𝑐 unchanged. Thus the term inserted for 𝑦 cannot reintroduce a free occurrence of 𝑥 that the later substitution would modify.
For the requested expression, choose the displayed binder 𝑢 outside all FV(𝑎𝑖) and distinct from 𝑥1,𝑥2. One-pass substitution gives 𝑃(𝑥1;𝐿(𝑢.𝑃(𝑥2;𝑢)))[𝑎1/𝑥1,𝑎2/𝑥2]=𝑃(𝑎1;𝐿(𝑢.𝑃(𝑎2;𝑢))). The iterated calculation is 𝑃(𝑥1;𝐿(𝑢.𝑃(𝑥2;𝑢)))[𝑎1/𝑥1][𝑎2/𝑥2]=𝑃(𝑎1;𝐿(𝑢.𝑃(𝑥2;𝑢)))[𝑎2/𝑥2]=𝑃(𝑎1;𝐿(𝑢.𝑃(𝑎2;𝑢))). The second step does not alter the already inserted 𝑎1, since 𝑥2∉FV(𝑎1).
For the general proof, choose one display of 𝑒 whose bound names avoid all source variables 𝑥𝑖 and all free variables of the 𝑎𝑗, and induct structurally on that display. At a variable 𝑣:
if 𝑣=𝑥𝑖, every substitution before the 𝑖-th leaves 𝑣 unchanged, the 𝑖-th replaces it by 𝑎𝑖, and every later substitution leaves 𝑎𝑖 unchanged because 𝑥𝑗∉FV(𝑎𝑖); both operations therefore return 𝑎𝑖;
if 𝑣∉{𝑥1,…,𝑥𝑛}, both operations leave 𝑣 unchanged.
At an operator 𝑜(⃗𝑢1.𝑒1;…;⃗𝑢𝑘.𝑒𝑘), every substitution passes through each clean binder list. Apply the induction hypothesis to every body and reattach the same operator and binder lists. This proves 𝑒[𝑎1/𝑥1,…,𝑎𝑛/𝑥𝑛]=𝑒[𝑎1/𝑥1]⋯[𝑎𝑛/𝑥𝑛]. The freshness assumptions are essential: without them, a later sequential substitution could rewrite a term inserted by an earlier one, whereas the simultaneous operation deliberately traverses each inserted term zero times.
Here 𝑦∉FV(𝑎), so the declaration name survives and the new declaration really is 𝑦:𝐵[𝑎/𝑥]. Now use the given typing judgment for 𝑏 as the first premise of a second substitution:
Γ⊢𝑏:𝐵[𝑎/𝑥]Γ,𝑦:𝐵[𝑎/𝑥],Δ[𝑎/𝑥]⊢J[𝑎/𝑥]
Γ,Δ[𝑎/𝑥][𝑏/𝑦]⊢J[𝑎/𝑥][𝑏/𝑦]
Subst
The declared variables of Δ were chosen outside FV(𝑎)∪FV(𝑏), so both displayed telescope substitutions are defined. The second rule instance has ambient context Γ, declaration type 𝐵[𝑎/𝑥], and telescope Δ[𝑎/𝑥], which is exactly why the premise for 𝑏 has the stated dependent type.
Write Γ=𝑥1:𝐴1,…,𝑥𝑛:𝐴𝑛. By proposition 26.25, derivability of Γ,Δ𝖼𝗍𝗑 is equivalent to the collection of all prefix typings for its declarations. Split that collection into two parts: 𝑥1:𝐴1,…,𝑥𝑘−1:𝐴𝑘−1⊢𝐴𝑘𝗍𝗒𝗉𝖾(1≤𝑘≤𝑛) and Γ,𝑦1:𝐵1,…,𝑦𝑖−1:𝐵𝑖−1⊢𝐵𝑖𝗍𝗒𝗉𝖾(1≤𝑖≤𝑚). The same proposition says that the first group is equivalent to Γ𝖼𝗍𝗑. Consequently the entire collection is equivalent to Γ𝖼𝗍𝗑 together with every displayed typing judgment for 𝐵𝑖, as required.
For the reverse direction one may also see the construction directly: starting with Γ𝖼𝗍𝗑, apply Ctx-Ext successively using the premises for 𝐵1,…,𝐵𝑚. The forward direction repeatedly applies context inversion to the final context.
First substitute 𝑎′ ordinarily into the given formation judgment:
Γ⊢𝑎′:𝐴Γ,𝑥:𝐴,𝑦:𝐶⊢𝐵𝗍𝗒𝗉𝖾
Γ,𝑦:𝐶[𝑎′/𝑥]⊢𝐵[𝑎′/𝑥]𝗍𝗒𝗉𝖾
Subst
The typing premise for 𝑎′ is a presupposition of Γ⊢𝑎≡𝑎′:𝐴.
Context inversion of the original formation judgment gives Γ,𝑥:𝐴⊢𝐶𝗍𝗒𝗉𝖾. Equal substitution with empty telescope then gives Γ⊢𝐶[𝑎/𝑥]≡𝐶[𝑎′/𝑥]𝗍𝗒𝗉𝖾. Use Ty-Sym to orient this equality from the current declaration type to the desired one, and apply declaration conversion:
Γ⊢𝐶[𝑎/𝑥]≡𝐶[𝑎′/𝑥]𝗍𝗒𝗉𝖾
Γ⊢𝐶[𝑎′/𝑥]≡𝐶[𝑎/𝑥]𝗍𝗒𝗉𝖾
Ty-Sym
Γ,𝑦:𝐶[𝑎′/𝑥]⊢𝐵[𝑎′/𝑥]𝗍𝗒𝗉𝖾
Γ,𝑦:𝐶[𝑎/𝑥]⊢𝐵[𝑎′/𝑥]𝗍𝗒𝗉𝖾
Ctx-Conv
Thus 𝐵[𝑎′/𝑥] is formed in the common context based on 𝑎. Notice that the thesis is not substituted again during Ctx-Conv; only the type of the declaration 𝑦 changes.
Prove the following assertions simultaneously by rule induction:
if 𝑥1:𝐴1,…,𝑥𝑛:𝐴𝑛𝖼𝗍𝗑, then FV(𝐴𝑖)⊆{𝑥1,…,𝑥𝑖−1}(1≤𝑖≤𝑛);
if Γ⊢J, then the preceding property holds for Γ and FV(J)⊆dom(Γ).
Here FV(J) includes every expression displayed in the thesis.
For Ctx-Emp there is nothing to prove. In Ctx-Ext, the induction hypothesis for Γ⊢𝐴𝗍𝗒𝗉𝖾 gives both the property for Γ and FV(𝐴)⊆dom(Γ), exactly the new final declaration condition.
Each presupposition rule is immediate. A rule that keeps the context merely discards some constituents of its premise thesis, so its free-variable set can only shrink. For Presup-Ext, the context induction hypothesis for Γ,𝑥:𝐴 directly says FV(𝐴)⊆dom(Γ). The reflexivity, symmetry, and transitivity rules for both equalities likewise retain or combine expressions already scoped in the same context; in transitivity the free-variable set of the conclusion is contained in the union of those of the two premises.
For Ctx-Conv, the equality premise gives FV(𝐴′),FV(𝐴)⊆dom(Γ). The second induction hypothesis scopes every declaration in Δ and the thesis in a context whose domain is dom(Γ)∪{𝑥}∪dom(Δ). Replacing 𝐴 by 𝐴′ changes no declared names and no expression in Δ or J, so all the same inclusions hold in the converted context.
For Subst, the premise induction hypotheses give FV(𝑎)⊆dom(Γ),FV(𝐸)⊆dom(Γ)∪{𝑥}∪dom(Δ) for every declaration type or thesis constituent 𝐸 to the right of 𝑥:𝐴. The free-variable formula for substitution therefore yields FV(𝐸[𝑎/𝑥])⊆dom(Γ)∪dom(Δ), which is the domain of Γ,Δ[𝑎/𝑥]. Applying this argument to each declaration type in order proves the context part as well. The two equal-substitution rules are identical except that both 𝑎 and 𝑎′ occur in the conclusion; the equality premise scopes both in Γ, so the same calculation applies to 𝐸[𝑎/𝑥] and 𝐸[𝑎′/𝑥].
For Wk, the first premise scopes 𝐴 in Γ. The second scopes Δ and J in Γ,Δ; inserting the fresh name 𝑥 only enlarges every relevant prefix domain, while none of the old expressions acquires an occurrence of 𝑥. Hence the target context and thesis are scoped. For Var, the premise scopes 𝐴 in Γ, and FV(𝑥:𝐴)={𝑥}∪FV(𝐴)⊆dom(Γ,𝑥:𝐴). These cases exhaust the structural rules.
An added type-former rule may be included only after verifying that every free variable in its conclusion occurs in a premise expression already scoped by the induction hypotheses, or is one of its declared local binders. No theorem is possible for an arbitrary added rule: for example, a rule Γ𝖼𝗍𝗑Γ⊢𝑅(𝑧)𝗍𝗒𝗉𝖾 with 𝑧∉dom(Γ) immediately derives a judgment violating the desired inclusion. Rule induction preserves properties supplied by the rules; it does not manufacture a missing scoping discipline out of optimism.
Let D1:Γ⊢𝑎≡𝑏:𝐴,D2:Γ⊢𝐴≡𝐴′𝗍𝗒𝗉𝖾. Restoring presuppositions gives Γ⊢𝑎:𝐴,Γ⊢𝑏:𝐴,Γ⊢𝐴𝗍𝗒𝗉𝖾,Γ⊢𝐴′𝗍𝗒𝗉𝖾,Γ𝖼𝗍𝗑. The two term typings come from D1 and its symmetry via Presup-Eq-Tm; the two type formations come from D2 and its symmetry via Presup-Eq-Ty; the context follows by Presup-Ctx. Element conversion, already established in lemma 26.31, also supplies Γ⊢𝑎:𝐴′,Γ⊢𝑏:𝐴′, which are the direct presuppositions of the desired conclusion.
Choose 𝑥 fresh. The generic-element branch, with its omitted premises restored, is
D2:Γ⊢𝐴≡𝐴′𝗍𝗒𝗉𝖾
Γ⊢𝐴′≡𝐴𝗍𝗒𝗉𝖾
Ty-Sym
Γ⊢𝐴′𝗍𝗒𝗉𝖾Γ𝖼𝗍𝗑
Γ,𝑥:𝐴′⊢𝑥:𝐴′
Var
Γ,𝑥:𝐴⊢𝐴′𝗍𝗒𝗉𝖾Γ,𝑥:𝐴𝖼𝗍𝗑
Γ,𝑥:𝐴⊢𝑥:𝐴′
Ctx-Conv
The last two displayed premises are the direct presuppositions of the target judgment and context; they are derived respectively by the type instance of Wk from 𝐴𝗍𝗒𝗉𝖾 and 𝐴′𝗍𝗒𝗉𝖾, and by Ctx-Ext from 𝐴𝗍𝗒𝗉𝖾. The Ctx-Conv node is the precise point at which the declaration type of the generic element is converted from 𝐴′ to 𝐴; the element remains classified by 𝐴′.
Now apply the fully expanded equal-substitution instance with empty telescope:
D1:Γ⊢𝑎≡𝑏:𝐴Γ,𝑥:𝐴⊢𝑥:𝐴′Γ⊢𝑎:𝐴′Γ⊢𝑏:𝐴′Γ⊢𝐴′𝗍𝗒𝗉𝖾Γ𝖼𝗍𝗑
Γ⊢𝑎≡𝑏:𝐴′
Subst-Eq-Tm
The last four lines are exactly the direct and transitive presuppositions that are normally suppressed by convention 26.14. Substitution computes 𝑥[𝑎/𝑥]=𝑎, 𝑥[𝑏/𝑥]=𝑏, and 𝐴′[𝑎/𝑥]=𝐴′ because 𝑥 was fresh.
Let the proposed permutation be represented by contexts Γ(0)=Γ,Γ(1),…,Γ(𝑘)=Γ′, where Γ(𝑖+1) is obtained from Γ(𝑖) by one certified adjacent swap. Induct on 𝑖. Suppose Γ(𝑖)⊢J has been derived and write the relevant context as Γ(𝑖)=Γ0,𝑥:𝐴,𝑦:𝐵,Γ1. The certificate for this stage is a derivation Γ0⊢𝐵𝗍𝗒𝗉𝖾. Apply Exch with telescope Γ1:
Γ0⊢𝐵𝗍𝗒𝗉𝖾Γ0,𝑥:𝐴,𝑦:𝐵,Γ1⊢J
Γ0,𝑦:𝐵,𝑥:𝐴,Γ1⊢J
Exch
This is the required derivation in Γ(𝑖+1). Repeating the step 𝑘 times yields Γ′⊢J. Each intermediate context is derivable as a presupposition of its transported judgment.
The test 𝑥∉FV(𝐵) is only a syntactic nonoccurrence test. It does not produce the typing derivation Γ0⊢𝐵𝗍𝗒𝗉𝖾 required by Exch. In particular, 𝐵 could mention another undeclared name, fail to be a type for theory-specific reasons, or have been derivable in Γ0,𝑥:𝐴 only by a context-sensitive added rule for which no strengthening theorem is available. Removing a name from a free-variable set is not the same operation as removing a declaration from a derivation.
Put Γ𝑚=Γ0,𝑥:𝐴,𝑦1:𝐵1,…,𝑦𝑚:𝐵𝑚 and prove by induction on 𝑚 that Γ𝑚𝖼𝗍𝗑 entails Γ𝑚⊢𝑥:𝐴.
For 𝑚=0, Presup-Ext applied to Γ0,𝑥:𝐴𝖼𝗍𝗑 gives Γ0⊢𝐴𝗍𝗒𝗉𝖾. Its own direct presupposition is Γ0𝖼𝗍𝗑. Hence the fully supplied Var instance is
Γ0⊢𝐴𝗍𝗒𝗉𝖾Γ0𝖼𝗍𝗑Γ0,𝑥:𝐴𝖼𝗍𝗑
Γ0,𝑥:𝐴⊢𝑥:𝐴
Var
where the final context premise is Ctx-Ext applied to the type premise. The extra lines are precisely what compression normally omits.
For the step, assume the result for 𝑚 and start from Γ𝑚+1𝖼𝗍𝗑, where Γ𝑚+1=Γ𝑚,𝑦𝑚+1:𝐵𝑚+1. Then Presup-Ext gives Γ𝑚⊢𝐵𝑚+1𝗍𝗒𝗉𝖾, and repeated context peeling gives Γ𝑚𝖼𝗍𝗑. The induction hypothesis gives Γ𝑚⊢𝑥:𝐴. The relevant Wk instance, with empty telescope, is
Γ𝑚⊢𝐵𝑚+1𝗍𝗒𝗉𝖾Γ𝑚⊢𝑥:𝐴Γ𝑚𝖼𝗍𝗑Γ𝑚⊢𝐴𝗍𝗒𝗉𝖾Γ𝑚+1𝖼𝗍𝗑Γ𝑚+1⊢𝐴𝗍𝗒𝗉𝖾
Γ𝑚+1⊢𝑥:𝐴
Wk
Here Γ𝑚⊢𝐴𝗍𝗒𝗉𝖾 is Presup-Ty of the induction-hypothesis term judgment. The target context is Ctx-Ext applied to 𝐵𝑚+1𝗍𝗒𝗉𝖾. Finally, Γ𝑚+1⊢𝐴𝗍𝗒𝗉𝖾, the direct presupposition of the target term judgment, is the type-formation instance of Wk applied to 𝐵𝑚+1𝗍𝗒𝗉𝖾 and 𝐴𝗍𝗒𝗉𝖾. Thus every premise suppressed by convention 26.14 has a derivation at each step, completing the induction.
The last premise is the direct presupposition of the conclusion; it follows from the 𝑄-formation rule but is displayed because the exercise asks for the full scheme.
For pointwise-equal parameters, take primed data satisfying Γ⊢𝐶≡𝐶′𝗍𝗒𝗉𝖾,Γ,𝑦:𝐶⊢𝐷≡𝐷′𝗍𝗒𝗉𝖾,Γ,𝑦:𝐶′⊢𝐷′𝗍𝗒𝗉𝖾, and term data satisfying Γ,𝑦:𝐶⊢𝑑≡𝑑′:𝐷,Γ,𝑦:𝐶′⊢𝑑′:𝐷′. In the equality judgments containing 𝐷′ or 𝑑′, the primed local context and classifier have first been transported to the unprimed ones using the earlier equalities. The formation congruence for 𝑄 supplies Γ⊢𝑄(𝐶;𝑦.𝐷)≡𝑄(𝐶′;𝑦.𝐷′)𝗍𝗒𝗉𝖾. The term-congruence scheme, stated at the unprimed result type, is therefore
The final type-equality premise converts the primed constructor term from 𝑄(𝐶′;𝑦.𝐷′) to the unprimed 𝑄(𝐶;𝑦.𝐷), supplying the conclusion’s second term presupposition.
Now begin with an instance over Γ,𝑧:𝐸, a derivation Γ⊢𝑎:𝐸, and choose 𝑦∉FV(𝑎). Structural stability under substitution gives
Ctx-Emp, Ctx-Ext, all type- and term-equality equivalence rules, and every added structurally stable scheme are also rules of 𝑇. A full-premise instance of an added rule is in particular an instance of its compressed 𝑇-form; surplus derivable presuppositions may simply be left unused.
Primitive Assum of 𝑇− is a derived rule of 𝑇 by lemma 26.34: context inversion extracts the declaration’s type, Var introduces the variable at that point, and successive Wk steps restore the suffix.
Primitive Conv of 𝑇− is derived in 𝑇 by lemma 26.31, using a fresh generic element, Ctx-Conv, and Subst.
Primitive Conv-Eq of 𝑇− is derived in 𝑇 by lemma 26.32, using the same converted generic element and Subst-Eq-Tm.
Thus every primitive 𝑇−-rule has a finite 𝑇-derivation whose open leaves are exactly its premises.
Translate a whole 𝑇−-derivation by induction on its proof tree. First translate all immediate premise subderivations. If the final rule is shared, reapply it. If it is Assum, Conv, or Conv-Eq, take the corresponding finite derived-rule tree above and graft the translated premise derivations into its open leaves. The result has the same conclusion as the original node. This explains why derivability is sufficient: proof trees are closed under such grafting, and no uniform derivation-transformation theorem beyond ordinary induction on the input tree is needed for this direction.
The second removes the transformed declaration of 𝑦:
Γ⊢𝑏:𝐵[𝑎/𝑥]Γ,𝑦:𝐵[𝑎/𝑥]⊢J[𝑎/𝑥]
Γ⊢J[𝑎/𝑥][𝑏/𝑦]
Subst
The boxed premise is used precisely as the element premise of this second Subst instance; it could not have type 𝐵, because the first substitution has already changed the declaration. Under the freshness conditions in definition 26.45, the iterated result is the one-pass notation J[𝑎/𝑥,𝑏/𝑦].
The identity map would have components (𝑢,𝑣). Its first component already violates the proposed side condition, since 𝑢∈FV(𝑢) and 𝑢 is a target variable. Thus that definition excludes every nonempty identity map and cannot support the claimed unit law.
The repair is to keep (𝑢,𝑣) as a legitimate relative map and rename only the target declarations in the derivation on which the map acts. With a fresh copy ̂Δ=(̂𝑢:𝐴,̂𝑣:𝐵(̂𝑢)), weaken the renamed derivation into the source context and substitute 𝑢 for ̂𝑢, then 𝑣 for ̂𝑣. Freshness now belongs to this auxiliary derivation, where it is obtainable by alpha-renaming, rather than to the map data, where identity makes it false.