Lemma 2.11: Non-Size-Increasing Base Constants
OpenABHS2004.lemma_2_11implicit-computational-complexitypolynomial-timeproof-theoryrealizabilitytype-theory
Every base-level constant c (0, S₀, S₁, par, +_⋄, if, destr, case) is non-size-increasing: its value on arguments w⃗ has size at most the sum of its linear (0-modal) arguments plus 1 when the leading argument is nonlinear (!).
Preamble
import Definitions.Def_ABHS2004_TermSystem
Formal statement
namespace ABHS2004
theorem lemma_2_11 {r s : Term} {ρ : Ty}
(ht : HasType r ρ) (hred : RedStep r s) :
HasType s ρ ∧ ∀ v ∈ freeVarOccurrences s, v ∈ freeVarOccurrences r := by sorry
end ABHS2004Source
Klaus Aehlig, Ulrich Berger, Martin Hofmann, and Helmut Schwichtenberg, 'An arithmetic for non-size-increasing polynomial-time computation', Theoretical Computer Science 318(1-2), 2004, pp. 3-27 (doi:10.1016/j.tcs.2003.10.023). Lemma 2.11, p. 11.
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Blind Read-back: Thm_ABHS2004_lemma_2_11.lean
Declaration lemma_2_11.
For any raw terms and any finite linear type , suppose that:
- is linearly well-typed of type (, meaning is built from typed variables and typed constants by -abstraction, binary application where and have disjoint sets of free variables, and list iteration where the step term has no free variables); and
- reduces in a single step to (, i.e., , meaning is obtained from by applying one of the eight conversion rules of —including capture-avoiding -conversion and list iteration on only when is a list spine —at a subterm of not underneath any -binder).
Then both of the following hold:
- is linearly well-typed of the same type (); and
- every variable that occurs free in () also occurs free in (). Note that this second conclusion asserts set-theoretic inclusion of the set of free variables, rather than multiset inclusion or the numerical inequality on the number of free-variable occurrences with multiplicity.