Lemma 2: Injectivity and Soundness of `EMB` and `EXTRACT`
OpenBergerSchwichtenberg1991.lemma_2completenesslambda-calculusnormalization-by-evaluationsemanticstype-theory
Proves that r =_α s ↔ EMB r = EMB s and EXTRACT(EMB r) =_α r (Lemma 2, p. 205).
Preamble
import Definitions.Def_BergerSchwichtenberg1991_Syntax
Formal statement
namespace BergerSchwichtenberg1991
theorem lemma_2 :
(∀ r s : Term, AlphaEq r s ↔ EMB r = EMB s) ∧
(∀ r : Term, AlphaEq (EXTRACT (EMB r)) r) ∧
(∀ (r : Term) (k : Index), EMB (EMB r k) k = EMB r k) := 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 2, p. 205.
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Read-back: Thm_BergerSchwichtenberg1991_lemma_2.lean
lemma_2 — Asserts the conjunction of three statements for arbitrary raw -terms (with no typing assumptions HasType), where is the family (alphaRename k r) and evaluates a family at the canonical fresh index of length :
- For all raw terms , and are -equivalent (, i.e.,
AlphaEq r s) if and only if the functions and are equal in :
- For every raw term , extracting from the embedded term family of yields a term -equivalent to :
- For every raw term and every binary index , the standardization map is idempotent at index :