Main Theorem: Realisability Model Soundness, Concrete Model Instantiation, Consistency, and Construction of (Co)inductive Types via Large Sizes
OpenLaarakkerOttenVanDenBerg2026.main_consistency_and_coinductive_encodingby kmehltretter82 · Nov 7, 2026 · Mathlib 0df444a (Lean v4.33.1)
coinductive-typesdependent-type-theoryinductive-typesparametricityrealizabilitysized-types
Main Theorem of Laarakker, Otten & van den Berg (FSCD 2026, Sections 2–4 & Appendices A–C):
Over any computable PCA P:NatPCA (such as Kleene's first algebra K1):
- Realisability Model Soundness, Consistency, and Parametricity over ∇ω1 (Section 4 & Appendix C): In the Category with Families of assemblies over P with semantic size type semSizePΓ=∇ω1, botPER has an empty quotient (¬Nonempty(botPER.Quotient)), P admits a PCA fixpoint combinator (
IsPCAFixpoint), the existential size quantifier semExPΓ(λ_.R)γ on any size-independent R:PER relates k1,k2∈N if and only if R relates (unpairk1)2 and (unpairk2)2 (Proposition 3a in the model), the universal size quantifier semAllPΓCγ relates d,e∈N if and only if d and e uniformly track C⟨γ,s⟩ across all countable ordinals s∈ω1 and all realisers m,n∈N, every tracked assembly morphism ∇ω1→ι(R) into a modest type is constant across all sizes (Proposition 3b in the model), ω1 is well-founded with bottom 0 and strict successor s<s+1, and every family of countable ordinals indexed by a small PER quotient R.Quotient is strictly bounded below some α∈ω1 (Section 4.3, p. 15).
- Concrete Model Instantiation and Consistency of
ParametricSizeTheory.{1, 0} (Section 4 & Appendix C): There exists a concrete model M:ParametricSizeTheory.{1,0} extending perSizeCoreTheory (M.toSizeCoreTheory=perSizeCoreTheory, so M.U=ULift.{1}PER, M.ElR=R.down.Quotient, M.Size=Ω1, M.zero=0Ω1, M.succ=omega1Succ, and M.⊥U=ULift.upbotPER) such that ¬Nonempty(M.ElM.⊥U) and every polynomial endofunctor PA,B in M admits an initial algebra (W-type) and a terminal coalgebra (M-type) with tracked half-adjoint equivalence structure maps.
- General Construction of Inductive W-Types and Coinductive M-Types via Large Sizes (Sections 2–3, Theorems 11 & 23): In any M:ParametricSizeTheory.{u,v}, every polynomial endofunctor PA,B (both finitely and infinitely branching) weakly commutes with ∃ and ∀ and therefore admits both an initial algebra (W-type) μPA,B:=∃i.(μ◊PA,B)i and a terminal coalgebra (M-type) νPA,B:=∀i.(ν□PA,B)i with tracked half-adjoint equivalence structure maps.
Retired after the 2026-11-17 definition review. This node depends on the superseded realizability-restricted abstract theory, strengthened functor assumptions, or non-PCA product interpretation. Corrected replacement: LaarakkerOttenVanDenBerg2026.V2.main_consistency_and_coinductive_encoding in mission proposal b9ee7685-2b00-4d20-9dc7-7769cb6f414a.
Preamble
import Definitions.Def_LaarakkerOttenVanDenBerg2026_Model
Formal statement
namespace LaarakkerOttenVanDenBerg2026
universe u v
theorem main_consistency_and_coinductive_encoding
(P : NatPCA) :
(¬ Nonempty botPER.Quotient ∧
(∃ (fixComb : ℕ), IsPCAFixpoint P.toPCA fixComb) ∧
(∀ (Γ : SemCtx.{1} P.toPCA) (γ : Γ.Carrier) (R : PER) (k₁ k₂ : ℕ),
(semEx P.toPCA Γ (fun _ => R) γ).rel k₁ k₂ ↔
R.rel (Nat.unpair k₁).2 (Nat.unpair k₂).2) ∧
(∀ (Γ : SemCtx.{1} P.toPCA) (γ : Γ.Carrier)
(C : (ctxExt P.toPCA Γ (semSize P.toPCA Γ)).Carrier → PER) (d e : ℕ),
(semAll P.toPCA Γ C γ).rel d e ↔
∀ (s : Omega1) (m n : ℕ),
∃ (dm en : ℕ),
P.app d m = some dm ∧
P.app e n = some en ∧
(C ⟨γ, s⟩).rel dm en) ∧
(∀ (R : PER)
(g : AsmHom P.toPCA (nabla P.toPCA Omega1) (iotaModLift.{1} P.toPCA R).toAsm)
(s₁ s₂ : Omega1),
g.toFun s₁ = g.toFun s₂) ∧
(WellFounded (fun (s₁ s₂ : Omega1) => s₁ < s₂) ∧
∀ (s : Omega1), omega1Zero ≤ s ∧ s < omega1Succ s) ∧
(∀ (R : PER) (f : R.Quotient → Omega1),
∃ (α : Omega1), ∀ (c : R.Quotient), omega1Succ (f c) ≤ α)) ∧
(∃ (M : ParametricSizeTheory.{1, 0}),
M.toSizeCoreTheory = perSizeCoreTheory ∧
¬ Nonempty (M.El M.botU) ∧
∀ (A : M.U) (B : M.El A → M.U),
(∃ (hEx : WeaklyCommutesEx M.toSizeCoreTheory
(polyEndofunctor M.toSizeCoreTheory A B)),
Nonempty (IsInitialFAlg (muAlg M.toSizeCoreTheory hEx)) ∧
Nonempty (IsTrackedHAEquiv M.toSizeCoreTheory (muAlg M.toSizeCoreTheory hEx).str)) ∧
(∃ (hAll : WeaklyCommutesAll M.toSizeCoreTheory
(polyEndofunctor M.toSizeCoreTheory A B)),
Nonempty (IsTerminalFCoalg (nuCoalg M.toSizeCoreTheory hAll)) ∧
Nonempty (IsTrackedHAEquiv M.toSizeCoreTheory (nuCoalg M.toSizeCoreTheory hAll).str))) ∧
∀ (M : ParametricSizeTheory.{u, v}) (A : M.U) (B : M.El A → M.U),
(∃ (hEx : WeaklyCommutesEx M.toSizeCoreTheory
(polyEndofunctor M.toSizeCoreTheory A B)),
Nonempty (IsInitialFAlg (muAlg M.toSizeCoreTheory hEx)) ∧
Nonempty (IsTrackedHAEquiv M.toSizeCoreTheory (muAlg M.toSizeCoreTheory hEx).str)) ∧
(∃ (hAll : WeaklyCommutesAll M.toSizeCoreTheory
(polyEndofunctor M.toSizeCoreTheory A B)),
Nonempty (IsTerminalFCoalg (nuCoalg M.toSizeCoreTheory hAll)) ∧
Nonempty (IsTrackedHAEquiv M.toSizeCoreTheory (nuCoalg M.toSizeCoreTheory hAll).str)) := by
sorry
end LaarakkerOttenVanDenBerg2026Source
Bastiaan Laarakker, Daniël Otten, and Benno van den Berg, 'Constructing (Co)inductive Types via Large Sizes', FSCD 2026 (arXiv:2602.18921), Sections 2–4 & Appendices A–C (pp. 1–35)
Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Plain-English Meaning
For any natural-number partial combinatory algebra P (NatPCA), the theorem main_consistency_and_coinductive_encoding asserts the conjunction of three main claims:
-
Concrete Realisability / PER CwF Soundness, Consistency, and Parametricity over ∇ω1 (Section 4 & Appendix C):
- Consistency of the PER Universe (
botPER): ¬Nonempty(botPER.Quotient).
- PCA Fixpoint Combinator (Proposition 16 / Proposition 36): ∃fixComb∈N,IsPCAFixpoint(P.toPCA,fixComb).
- Existential Size Quantifier Semantics (Proposition 3a in the model, p. 35):
∀(Γ:SemCtx.{1}(P.toPCA))(γ:Γ.Carrier)(R:PER)(k1,k2:N),semEx(P.toPCA,Γ,_↦R,γ).rel(k1,k2)⟺R.rel(π2(unpair(k1)),π2(unpair(k2))).
- Universal Size Quantifier Semantics (Section 4.5, p. 15 & Appendix C.5, p. 30):
∀(Γ:SemCtx.{1}(P.toPCA))(γ:Γ.Carrier)(C:(ctxExt(P.toPCA,Γ,semSize(P.toPCA,Γ))).Carrier→PER)(d,e:N),semAll(P.toPCA,Γ,C,γ).rel(d,e)⟺∀s∈Ω1,∀m,n∈N,∃dm,en∈N,P.app(d,m)=some(dm)∧P.app(e,n)=some(en)∧C(⟨γ,s⟩).rel(dm,en).
- Parametricity of ∇ω1 into Modest Types (Proposition 3b in the model, p. 15):
∀(R:PER)(g:AsmHom(P.toPCA,∇Ω1,ιLift(R)))(s1,s2∈Ω1),g(s1)=g(s2).
- Well-Foundedness and Strict Successor on ω1 (Appendix C.7–C.8, pp. 32–33):
WellFounded((<) on Ω1)∧∀s∈Ω1,0Ω1≤s∧s<s+1.
- Countable-Ordinal Supremum Bound for Small PER Quotients (Section 4.3, p. 15):
∀(R:PER)(f:R.Quotient→Ω1),∃α∈Ω1,∀c∈R.Quotient,f(c)+1≤α.
-
Concrete Model Instantiation and Consistency of ParametricSizeTheory.{1, 0} (Section 4 & Appendix C):
There exists a concrete model M:ParametricSizeTheory.{1,0} extending perSizeCoreTheory (M.toSizeCoreTheory=perSizeCoreTheory, so M.U=ULift.{1}(PER), M.El(R)=R.down.Quotient, M.Size=Ω1, M.zero=0Ω1, M.succ=omega1Succ, and M.⊥U=ULift.up(botPER)) such that:
- ¬Nonempty(M.El(M.⊥U)), witnessing logical consistency of M, and
- for every polynomial signature (A:M.U,B:M.El(A)→M.U), PA,B weakly commutes with both ∃ and ∀ and admits both an initial algebra (μPA,B) and a terminal coalgebra (νPA,B) with tracked half-adjoint equivalence structure maps.
-
General Construction of Inductive W-Types and Coinductive M-Types in Any ParametricSizeTheory.{u, v} (Sections 2–3, Theorems 11 & 23):
For every M:ParametricSizeTheory.{u,v}, A∈M.U, and B:M.El(A)→M.U, letting FA,B:=polyEndofunctor(M.toSizeCoreTheory,A,B):
- There exists hEx:WeaklyCommutesEx(M.toSizeCoreTheory,FA,B) such that Nonempty(IsInitialFAlg(μAlg(M.toSizeCoreTheory,hEx))) and Nonempty(IsTrackedHAEquiv(M.toSizeCoreTheory,μAlg(M.toSizeCoreTheory,hEx).str)).
- There exists hAll:WeaklyCommutesAll(M.toSizeCoreTheory,FA,B) such that Nonempty(IsTerminalFCoalg(νCoalg(M.toSizeCoreTheory,hAll))) and Nonempty(IsTrackedHAEquiv(M.toSizeCoreTheory,νCoalg(M.toSizeCoreTheory,hAll).str)).
Edge Cases & Degeneracies
- None: Part 2 explicitly constructs the concrete model
perParametricSizeTheory : ParametricSizeTheory.{1, 0} with M.toSizeCoreTheory = perSizeCoreTheory and proves ¬ Nonempty (M.El M.botU), establishing that ParametricSizeTheory is consistent and non-vacuous.
View graph