Lemma 4.7: Exponential Tower Step Bound by Iteration Depth
OpenAehligSchwichtenberg2002.lemma_4_7Every term r of iteration depth d = d(r) normalizes in at most |r|_d^{2^{d+1}} reduction steps, with every intermediate term having size at most |r|_d^{2^d}.
import Definitions.Def_AehligSchwichtenberg2002_Bounds
namespace AehligSchwichtenberg2002
theorem lemma_4_7 {Γ₁ Γ₂ : Context} {t s : Term} {τ ρ : Ty} (x : Var)
(ht : HasType Γ₁ t τ)
(hs : HasType Γ₂ s ρ)
(hdj : DisjointCtx Γ₁ Γ₂) :
PolyLe (theta (substTerm t x s)) (fun m => theta t m + theta s m) := by sorry
end AehligSchwichtenberg2002Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Read-back: Thm_AehligSchwichtenberg2002_lemma_4_7.lean
Theorem lemma_4_7
Let and be contexts (finite lists of typed variables), let and be raw terms, let and be types in , and let be a typed variable. Assume the following three hypotheses:
- Typing of (
ht): (HasType Γ₁ t τ). - Typing of (
hs): (HasType Γ₂ s ρ). - Disjoint contexts (
hdj): and are set-wise disjoint (DisjointCtx Γ₁ Γ₂), meaning that for every variable , .
Then holds in the pointwise order (PolyLe), meaning that for every natural number ,
where (substTerm t x s) is the capture-avoiding substitution of for in , and (theta r m) is the polynomial step-bound valuation defined by , , , , if and if , and when is not braced.
Note on hypotheses and edge cases: the statement does not require , nor does it require . When , only performs capture-avoiding -renaming (or leaves unchanged), and the inequality holds for any and . When , the typing judgment forces , and even if (so that need not be well-typed), the inequality is asserted for all , , and satisfying the three hypotheses above.