Strong normalization for simply typed lambda calculus
Statement
If in the simply typed lambda calculus, then is strongly normalizing: every sequence of -reductions starting from terminates after finitely many steps.
Why is it true?
This is why simply typed lambda calculus, despite having function application and recursion-like nesting, is not Turing-complete — no well-typed term can loop forever, which is exactly what makes type-checkers in this fragment always terminate.
Proof sketch
(Tait's reducibility method.) Define, by induction on the structure of types, a set of "reducible terms" for every type : for a base type , let be the set of all strongly normalizing terms; for a function type, let .
One first proves, by induction on , three technical properties together: (CR1) every term in is strongly normalizing; (CR2) is closed under -reduction (if and then ); (CR3) any "neutral" term (a variable or application, not an abstraction) all of whose one-step reducts already lie in must itself lie in . The base case is immediate from the definition of ; the function-type case unfolds the definition of and uses the induction hypothesis on the smaller types and .
Next, one shows every well-typed term is reducible under any substitution of reducible terms for its free variables: by induction on the typing derivation of , if assigns each variable in a term , then . The variable case is immediate. The application case follows directly from the definition of . The abstraction case needs the most care: for applied to any , the term reduces in one -step to , which is in by the induction hypothesis (applied to the extended substitution); property (CR3) — closure under "expansion" for terms whose reducts are all already reducible — then places itself in , so by definition.
Finally, apply this to the identity substitution: every variable is itself neutral with no reducts at all, so it is vacuously in by (CR3). So for any closed derivation , taking to map each to itself gives . By (CR1), , so : every well-typed term is strongly normalizing.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- The Univalent Foundations Program (2013). Homotopy Type Theory: Univalent Foundations of Mathematics
- Wikipedia contributors (2024). Curry–Howard correspondence
- Wikipedia contributors (2024). Intuitionistic type theory