Lemma 3: Every pr-Model is Admissible
OpenBergerSchwichtenberg1991.lemma_3Every λ-model M representing all unary and binary primitive recursive functions (PRModel) with an effective repetition-free numbering (EffectiveNumbering) and the required λ-combinators can be equipped with an admissible model structure (AdmissibleModel) with f = ι = o.
import Definitions.Def_BergerSchwichtenberg1991_Models
namespace BergerSchwichtenberg1991
universe u
theorem lemma_3 (M : PRModel.{u}) (N : EffectiveNumbering)
(hExtractComb :
∀ indextBar : M.Dom (.arr .base (.arr .base .base)),
∃ extractBar : M.Dom (.arr (.arr .base .base) .base),
∀ a : M.Dom (.arr .base .base),
M.eqM .base (M.appM extractBar a)
(M.appM a
(M.appM
(M.appM indextBar (M.appM a (M.nu (N.natOfIdx epsIdx))))
(M.appM a (M.nu (N.natOfIdx zeroIdx))))))
(hStepComb :
∀ (abstBar : Ty → M.Dom (.arr .base (.arr .base .base)))
(funBar appendBar : M.Dom (.arr .base (.arr .base .base)))
(ρ : Ty) (body : M.Dom .base → M.Dom .base),
(∀ p₁ p₂ : M.Dom .base, M.eqM .base p₁ p₂ → M.eqM .base (body p₁) (body p₂)) →
∃ step : M.Dom (.arr .base .base),
∀ p : M.Dom .base,
M.eqM .base (M.appM step p)
(M.appM (M.appM (abstBar ρ) p)
(M.appM (M.appM funBar (body p))
(M.appM (M.appM appendBar p) (M.nu (N.natOfIdx zeroIdx)))))) :
∃ A : AdmissibleModel.{u},
A.toLambdaModel = M.toLambdaModel ∧
A.tyF = .base ∧
A.tyIdx = .base ∧
(∀ r : Term, HEq (A.codeTerm r) (M.nu (N.natOfTerm r))) ∧
(∀ k : Index, HEq (A.codeIdx k) (M.nu (N.natOfIdx k))) := by sorry
end BergerSchwichtenberg1991Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Read-back: Thm_BergerSchwichtenberg1991_lemma_3.lean
lemma_3 — Given a primitive recursive -model in universe (with carrier family , application , equivalence , evaluation , and numeral injection representing all unary and binary primitive recursive functions) and an effective numbering (providing mutually inverse bijections on and on under which the syntactic operations are primitive recursive), together with two explicit combinator-existence hypotheses:
- (
hExtractComb) for every binary operation , there exists an element such that for all ,
- (
hStepComb) for every type-indexed family , elements , simple type , and meta-level function satisfying , there exists such that for all ,
the theorem asserts that there exists an admissible model in universe such that:
- 's underlying equals 's underlying ();
- both the term-family type and the index type of are the ground type ( and );
- for every raw term , is heterogeneously equal () to ; and
- for every binary index , is heterogeneously equal () to .
Note that the existence of the higher-order extraction combinator and the step combinators (for arbitrary -respecting meta-level functions ) is assumed via the hypotheses hExtractComb and hStepComb rather than derived solely from the fields of PRModel and EffectiveNumbering.