Lemma 5 (Main Lemma): Reification of Long β-Normal Forms in `η_θ`
OpenBergerSchwichtenberg1991.lemma_5completenesslambda-calculusnormalization-by-evaluationsemanticstype-theory
For every long β-normal term r ∈ Λ^ρ and well-typed substitution θ, Φ_ρ(|r|_{η_θ}) =_f emb(⌈rθ⌉), and if ρ = o then |r|_{η_θ} =_o ⌈EXTRACT(EMB(rθ))⌉.
Preamble
import Definitions.Def_BergerSchwichtenberg1991_Models
Formal statement
namespace BergerSchwichtenberg1991
universe u
theorem lemma_5 (M : AdmissibleModel.{u}) (IF : InversionFunctionals M)
{ρ : Ty} {r : Term} (θ : Substitution)
(ht : HasType r ρ)
(hnorm : IsLongBetaNormal ρ r)
(hθ : IsWellTypedSubst θ) :
M.eqM M.tyF
(M.appM (IF.Phi ρ) (M.eval r (IF.etaSubst θ) ρ))
(M.appM M.emb (M.codeTerm (applySubst θ r))) ∧
(∀ hbase : ρ = .base,
M.eqM .base
(hbase ▸ M.eval r (IF.etaSubst θ) ρ)
(M.codeTerm (EXTRACT (EMB (applySubst θ r))))) := by sorry
end BergerSchwichtenberg1991Source
Ulrich Berger and Helmut Schwichtenberg, 'An inverse of the evaluation functional for typed λ-calculus', Proceedings of the Sixth Annual IEEE Symposium on Logic in Computer Science (LICS 1991), pp. 203-211 (doi:10.1109/LICS.1991.151645). Lemma 5 (Main Lemma), p. 207.
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Read-back: Thm_BergerSchwichtenberg1991_lemma_5.lean
lemma_5 — Given an admissible model in universe , an inversion functional package (providing and for each ), an implicit simple type , an implicit raw term , and a substitution such that:
- has type (),
- is in long -normal form at type (), and
- is well-typed (, i.e., ),
the theorem asserts the conjunction of two claims, where is the environment and is the simultaneous capture-avoiding substitution of into :
- Applying to the evaluation of in environment equals up to :
- For every proof , transporting along to yields an element equal up to to the code of :