Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Main Theorem: Realisability Model Soundness, Concrete Model Instantiation, Consistency, and Construction of (Co)inductive Types via Large Sizes

Open
LaarakkerOttenVanDenBerg2026.main_consistency_and_coinductive_encoding

by 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:NatPCAP : \mathsf{NatPCA}P:NatPCA (such as Kleene's first algebra K1\mathcal{K}_1K1​):

  1. Realisability Model Soundness, Consistency, and Parametricity over ∇ω1\nabla\omega_1∇ω1​ (Section 4 & Appendix C): In the Category with Families of assemblies over PPP with semantic size type semSize P Γ=∇ω1\mathsf{semSize}\,P\,\Gamma = \nabla\omega_1semSizePΓ=∇ω1​, botPER\mathsf{botPER}botPER has an empty quotient (¬Nonempty(botPER.Quotient)\neg\mathrm{Nonempty}(\mathsf{botPER}.\mathrm{Quotient})¬Nonempty(botPER.Quotient)), PPP admits a PCA fixpoint combinator (IsPCAFixpoint), the existential size quantifier semEx P Γ (λ_. R) γ\mathsf{semEx}\,P\,\Gamma\,(\lambda \_.\,R)\,\gammasemExPΓ(λ_.R)γ on any size-independent R:PERR : \mathsf{PER}R:PER relates k1,k2∈Nk_1, k_2 \in \mathbb{N}k1​,k2​∈N if and only if RRR relates (unpair k1)2(\mathrm{unpair}\,k_1)_2(unpairk1​)2​ and (unpair k2)2(\mathrm{unpair}\,k_2)_2(unpairk2​)2​ (Proposition 3a in the model), the universal size quantifier semAll P Γ C γ\mathsf{semAll}\,P\,\Gamma\,C\,\gammasemAllPΓCγ relates d,e∈Nd, e \in \mathbb{N}d,e∈N if and only if ddd and eee uniformly track C⟨γ,s⟩C\langle\gamma, s\rangleC⟨γ,s⟩ across all countable ordinals s∈ω1s \in \omega_1s∈ω1​ and all realisers m,n∈Nm, n \in \mathbb{N}m,n∈N, every tracked assembly morphism ∇ω1→ι(R)\nabla\omega_1 \to \iota(R)∇ω1​→ι(R) into a modest type is constant across all sizes (Proposition 3b in the model), ω1\omega_1ω1​ is well-founded with bottom 000 and strict successor s<s+1s < s + 1s<s+1, and every family of countable ordinals indexed by a small PER quotient R.QuotientR.\mathrm{Quotient}R.Quotient is strictly bounded below some α∈ω1\alpha \in \omega_1α∈ω1​ (Section 4.3, p. 15).
  2. Concrete Model Instantiation and Consistency of ParametricSizeTheory.{1, 0} (Section 4 & Appendix C): There exists a concrete model M:ParametricSizeTheory.{1,0}M : \mathsf{ParametricSizeTheory}.\{1, 0\}M:ParametricSizeTheory.{1,0} extending perSizeCoreTheory (M.toSizeCoreTheory=perSizeCoreTheoryM.\mathrm{toSizeCoreTheory} = \mathrm{perSizeCoreTheory}M.toSizeCoreTheory=perSizeCoreTheory, so M.U=ULift.{1} PERM.U = \mathrm{ULift}.\{1\}\,\mathsf{PER}M.U=ULift.{1}PER, M.El R=R.down.QuotientM.\mathrm{El}\,R = R.\mathrm{down}.\mathrm{Quotient}M.ElR=R.down.Quotient, M.Size=Ω1M.\mathsf{Size} = \Omega_1M.Size=Ω1​, M.zero=0Ω1M.\mathsf{zero} = 0_{\Omega_1}M.zero=0Ω1​​, M.succ=omega1SuccM.\mathsf{succ} = \mathrm{omega1Succ}M.succ=omega1Succ, and M.⊥U=ULift.up botPERM.\bot_U = \mathrm{ULift.up}\,\mathsf{botPER}M.⊥U​=ULift.upbotPER) such that ¬Nonempty(M.El M.⊥U)\neg\mathrm{Nonempty}(M.\mathrm{El}\,M.\bot_U)¬Nonempty(M.ElM.⊥U​) and every polynomial endofunctor PA,BP_{A, B}PA,B​ in MMM admits an initial algebra (WWW-type) and a terminal coalgebra (MMM-type) with tracked half-adjoint equivalence structure maps.
  3. General Construction of Inductive WWW-Types and Coinductive MMM-Types via Large Sizes (Sections 2–3, Theorems 11 & 23): In any M:ParametricSizeTheory.{u,v}M : \mathsf{ParametricSizeTheory}.\{u, v\}M:ParametricSizeTheory.{u,v}, every polynomial endofunctor PA,BP_{A, B}PA,B​ (both finitely and infinitely branching) weakly commutes with ∃\exists∃ and ∀\forall∀ and therefore admits both an initial algebra (WWW-type) μPA,B:=∃i. (μ◊PA,B) i\mu P_{A, B} := \exists i.\,(\mu^\Diamond P_{A, B})\,iμPA,B​:=∃i.(μ◊PA,B​)i and a terminal coalgebra (MMM-type) νPA,B:=∀i. (ν□PA,B) i\nu P_{A, B} := \forall i.\,(\nu^\Box P_{A, B})\,iν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 LaarakkerOttenVanDenBerg2026
Source
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 PPP (NatPCA), the theorem main_consistency_and_coinductive_encoding asserts the conjunction of three main claims:

  1. Concrete Realisability / PER CwF Soundness, Consistency, and Parametricity over ∇ω1\nabla \omega_1∇ω1​ (Section 4 & Appendix C):

    • Consistency of the PER Universe (botPER): ¬Nonempty(botPER.Quotient)\neg \mathrm{Nonempty}(\mathrm{botPER}.\mathrm{Quotient})¬Nonempty(botPER.Quotient).
    • PCA Fixpoint Combinator (Proposition 16 / Proposition 36): ∃fixComb∈N,  IsPCAFixpoint(P.toPCA,fixComb)\exists \mathrm{fixComb} \in \mathbb{N},\; \mathrm{IsPCAFixpoint}(P.\mathrm{toPCA}, \mathrm{fixComb})∃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)))\forall (\Gamma : \mathrm{SemCtx.\{1\}}(P.\mathrm{toPCA}))\; (\gamma : \Gamma.\mathrm{Carrier})\; (R : \mathrm{PER})\; (k_1, k_2 : \mathbb{N}),\; \mathrm{semEx}(P.\mathrm{toPCA}, \Gamma, \_ \mapsto R, \gamma).\mathrm{rel}(k_1, k_2) \iff R.\mathrm{rel}(\pi_2(\mathrm{unpair}(k_1)), \pi_2(\mathrm{unpair}(k_2)))∀(Γ: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)\forall (\Gamma : \mathrm{SemCtx.\{1\}}(P.\mathrm{toPCA}))\; (\gamma : \Gamma.\mathrm{Carrier})\; (C : (\mathrm{ctxExt}(P.\mathrm{toPCA}, \Gamma, \mathrm{semSize}(P.\mathrm{toPCA}, \Gamma))).\mathrm{Carrier} \to \mathrm{PER})\; (d, e : \mathbb{N}),\; \mathrm{semAll}(P.\mathrm{toPCA}, \Gamma, C, \gamma).\mathrm{rel}(d, e) \iff \forall s \in \Omega_1,\; \forall m, n \in \mathbb{N},\; \exists dm, en \in \mathbb{N},\; P.\mathrm{app}(d, m) = \mathrm{some}(dm) \land P.\mathrm{app}(e, n) = \mathrm{some}(en) \land C(\langle \gamma, s \rangle).\mathrm{rel}(dm, en)∀(Γ: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\nabla \omega_1∇ω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)\forall (R : \mathrm{PER})\; (g : \mathrm{AsmHom}(P.\mathrm{toPCA}, \nabla \Omega_1, \iota_{\mathrm{Lift}}(R)))\; (s_1, s_2 \in \Omega_1),\; g(s_1) = g(s_2)∀(R:PER)(g:AsmHom(P.toPCA,∇Ω1​,ιLift​(R)))(s1​,s2​∈Ω1​),g(s1​)=g(s2​).
    • Well-Foundedness and Strict Successor on ω1\omega_1ω1​ (Appendix C.7–C.8, pp. 32–33): WellFounded((<) on Ω1)∧∀s∈Ω1,  0Ω1≤s∧s<s+1\mathrm{WellFounded}((<) \text{ on } \Omega_1) \land \forall s \in \Omega_1,\; 0_{\Omega_1} \le s \land s < s + 1WellFounded((<) 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≤α\forall (R : \mathrm{PER})\; (f : R.\mathrm{Quotient} \to \Omega_1),\; \exists \alpha \in \Omega_1,\; \forall c \in R.\mathrm{Quotient},\; f(c) + 1 \le \alpha∀(R:PER)(f:R.Quotient→Ω1​),∃α∈Ω1​,∀c∈R.Quotient,f(c)+1≤α.
  2. Concrete Model Instantiation and Consistency of ParametricSizeTheory.{1, 0} (Section 4 & Appendix C): There exists a concrete model M:ParametricSizeTheory.{1,0}M : \mathrm{ParametricSizeTheory.\{1, 0\}}M:ParametricSizeTheory.{1,0} extending perSizeCoreTheory (M.toSizeCoreTheory=perSizeCoreTheoryM.\mathrm{toSizeCoreTheory} = \mathrm{perSizeCoreTheory}M.toSizeCoreTheory=perSizeCoreTheory, so M.U=ULift.{1}(PER)M.U = \mathrm{ULift.\{1\}}(\mathrm{PER})M.U=ULift.{1}(PER), M.El(R)=R.down.QuotientM.\mathrm{El}(R) = R.\mathrm{down}.\mathrm{Quotient}M.El(R)=R.down.Quotient, M.Size=Ω1M.\mathrm{Size} = \Omega_1M.Size=Ω1​, M.zero=0Ω1M.\mathrm{zero} = 0_{\Omega_1}M.zero=0Ω1​​, M.succ=omega1SuccM.\mathrm{succ} = \mathrm{omega1Succ}M.succ=omega1Succ, and M.⊥U=ULift.up(botPER)M.\bot_U = \mathrm{ULift.up}(\mathrm{botPER})M.⊥U​=ULift.up(botPER)) such that:

    • ¬Nonempty(M.El(M.⊥U))\neg \mathrm{Nonempty}(M.\mathrm{El}(M.\bot_U))¬Nonempty(M.El(M.⊥U​)), witnessing logical consistency of MMM, and
    • for every polynomial signature (A:M.U,B:M.El(A)→M.U)(A : M.U, B : M.\mathrm{El}(A) \to M.U)(A:M.U,B:M.El(A)→M.U), PA,BP_{A, B}PA,B​ weakly commutes with both ∃\exists∃ and ∀\forall∀ and admits both an initial algebra (μPA,B\mu P_{A, B}μPA,B​) and a terminal coalgebra (νPA,B\nu P_{A, B}νPA,B​) with tracked half-adjoint equivalence structure maps.
  3. General Construction of Inductive WWW-Types and Coinductive MMM-Types in Any ParametricSizeTheory.{u, v} (Sections 2–3, Theorems 11 & 23): For every M:ParametricSizeTheory.{u,v}M : \mathrm{ParametricSizeTheory.\{u, v\}}M:ParametricSizeTheory.{u,v}, A∈M.UA \in M.UA∈M.U, and B:M.El(A)→M.UB : M.\mathrm{El}(A) \to M.UB:M.El(A)→M.U, letting FA,B:=polyEndofunctor(M.toSizeCoreTheory,A,B)F_{A, B} := \mathrm{polyEndofunctor}(M.\mathrm{toSizeCoreTheory}, A, B)FA,B​:=polyEndofunctor(M.toSizeCoreTheory,A,B):

    • There exists hEx:WeaklyCommutesEx(M.toSizeCoreTheory,FA,B)h_{\mathrm{Ex}} : \mathrm{WeaklyCommutesEx}(M.\mathrm{toSizeCoreTheory}, F_{A, B})hEx​:WeaklyCommutesEx(M.toSizeCoreTheory,FA,B​) such that Nonempty(IsInitialFAlg(μAlg(M.toSizeCoreTheory,hEx)))\mathrm{Nonempty}(\mathrm{IsInitialFAlg}(\mu\mathrm{Alg}(M.\mathrm{toSizeCoreTheory}, h_{\mathrm{Ex}})))Nonempty(IsInitialFAlg(μAlg(M.toSizeCoreTheory,hEx​))) and Nonempty(IsTrackedHAEquiv(M.toSizeCoreTheory,μAlg(M.toSizeCoreTheory,hEx).str))\mathrm{Nonempty}(\mathrm{IsTrackedHAEquiv}(M.\mathrm{toSizeCoreTheory}, \mu\mathrm{Alg}(M.\mathrm{toSizeCoreTheory}, h_{\mathrm{Ex}}).\mathrm{str}))Nonempty(IsTrackedHAEquiv(M.toSizeCoreTheory,μAlg(M.toSizeCoreTheory,hEx​).str)).
    • There exists hAll:WeaklyCommutesAll(M.toSizeCoreTheory,FA,B)h_{\mathrm{All}} : \mathrm{WeaklyCommutesAll}(M.\mathrm{toSizeCoreTheory}, F_{A, B})hAll​:WeaklyCommutesAll(M.toSizeCoreTheory,FA,B​) such that Nonempty(IsTerminalFCoalg(νCoalg(M.toSizeCoreTheory,hAll)))\mathrm{Nonempty}(\mathrm{IsTerminalFCoalg}(\nu\mathrm{Coalg}(M.\mathrm{toSizeCoreTheory}, h_{\mathrm{All}})))Nonempty(IsTerminalFCoalg(νCoalg(M.toSizeCoreTheory,hAll​))) and Nonempty(IsTrackedHAEquiv(M.toSizeCoreTheory,νCoalg(M.toSizeCoreTheory,hAll).str))\mathrm{Nonempty}(\mathrm{IsTrackedHAEquiv}(M.\mathrm{toSizeCoreTheory}, \nu\mathrm{Coalg}(M.\mathrm{toSizeCoreTheory}, h_{\mathrm{All}}).\mathrm{str}))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

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me