Corollary 2.22: Polynomial Step and Space Bounds for Closed Terms
OpenABHS2004.corollary_2_22For every well-typed closed term M : ρ of the !-free affine term system, its normal form is computable in |M|^{2^{d+1}} steps with intermediate terms of size at most |M|^{2^d}, where d is the nesting depth of it in M.
import Definitions.Def_ABHS2004_TermSystem
namespace ABHS2004
theorem corollary_2_22 {r : Term} {ρ : Ty} (ht : HasType r ρ) :
(∀ (n : Nat) (r' : Term), RedStepBounded n r r' → theta n r' < theta n r) ∧
(∀ (k : Nat) (r' : Term), RedSteps k r r' → k ≤ theta (freeVarCount r) r) := by sorry
end ABHS2004Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Blind Read-back: Thm_ABHS2004_corollary_2_22.lean
Declaration corollary_2_22.
For any raw term and any finite linear type such that is linearly well-typed of type (), the following two properties hold simultaneously:
- Strict decrease of under bounded-free-variable reduction: For every natural number (including ) and every term , if (, meaning is obtained from by converting a redex subterm not under any such that the number of free-variable occurrences with multiplicity in the redex satisfies ), then
where () is defined recursively by , , , and , with () equal to if is a list term of length and equal to otherwise. 2. Upper bound on reduction sequence length: For every step count (including ) and every term , if reduces to in steps of unrestricted one-step reduction (, i.e., ), then
where is the number of free variable occurrences in counted with multiplicity.