Theorem 4.8: Polynomial Normalization of Closed Terms Applied to Base Arguments
OpenAehligSchwichtenberg2002.theorem_4_8For every closed well-typed term r : !B → ... → !B → B, there exists a polynomial P such that r (!v₁) ... (!vₖ) normalizes in at most P(|v₁| + ... + |vₖ|) steps with all intermediate terms bounded in size by P(|v₁| + ... + |vₖ|).
import Definitions.Def_AehligSchwichtenberg2002_Bounds
namespace AehligSchwichtenberg2002
theorem theorem_4_8 {Γ : Context} {t : Term} {τ : Ty}
(ht : HasType Γ t τ) :
(∀ (N : Nat) (t' : Term),
freeVarCard t ≤ N → RedStep t t' → stepMeasure t' N < stepMeasure t N) ∧
(∀ (k : Nat) (t' : Term),
RedSteps k t t' → k ≤ stepMeasure t (freeVarCard t)) := 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_theorem_4_8.lean
Theorem theorem_4_8
Let be a context (a finite list of typed variables), let be a raw term, and let be a type in . Assume that (HasType Γ t τ) in the affine linear typing system.
Then both of the following properties hold:
- Strict decrease under one-step reduction: For every natural number and every raw term , if (
freeVarCard t ≤ N, where is the number of distinct free variables of ) and (RedStep t t'), then
- Global bound on reduction length: For every natural number and every raw term , if (
RedSteps k t t', meaning there is a reduction sequence of length ), then
Here (termLength r) is the term length defined by , , , , and ; and (theta r N) is the polynomial step-bound valuation evaluated at . In the special case where is closed (), part (1) applies for any (including ), and part (2) bounds any reduction sequence starting from by steps.