Proposition 2.13: Subject Reduction for the Affine Term Calculus
OpenABHS2004.proposition_2_13implicit-computational-complexitypolynomial-timeproof-theoryrealizabilitytype-theory
If Δ; Γ ⊢ M : ρ and M ↦ M', then Δ; Γ' ⊢ M' : ρ for a subcontext Γ' ⊆ Γ, preserving both types and the separation between passive (Δ) and linear (Γ) free variables.
Preamble
import Definitions.Def_ABHS2004_TermSystem
Formal statement
namespace ABHS2004
theorem proposition_2_13 {w : Term} {τ : Ty}
(ht : HasType w τ) (hac : IsAlmostClosed w) (hnorm : IsNormal w) :
HasCanonicalNormalForm τ w := 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). Proposition 2.13, 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_proposition_2_13.lean
Declaration proposition_2_13.
For any raw term and any finite linear type , suppose that:
- is linearly well-typed of type ();
- is almost closed (, meaning that every free variable has type ); and
- is in normal form (, meaning there does not exist any term such that via , where reduction is allowed anywhere except under ).
Then satisfies the canonical normal form predicate , which means the syntactic shape of is determined by the outermost type constructor of as follows:
- if , then ;
- if , then is a variable with ;
- if , then holds, meaning there exists such that has the spine (with forcing all );
- if , then there exist terms such that ;
- if , then there exist a type and terms such that ;
- if , then there exists a term such that either or ;
- if , then either for some variable and term , or for some constant and some (possibly empty) list of argument terms , or for some terms .