Proposition 5, Lemmas 19–20, Proposition 22, Theorem 23 & M-Type Corollary: Terminal Coalgebras via Universal Size Quantification
OpenLaarakkerOttenVanDenBerg2026.theorem_23_coinductive_typesProposition 5 (p. 9), Lemmas 19–20 (p. 25), Proposition 22 (p. 26), Theorem 23 (p. 26), and Polynomial -Type Corollary (p. 27):
In any ParametricSizeTheory :
- Proposition 5: The bounded universal modality (
boxMap) and lifted operation (liftBoxMap) satisfy the size-indexed functor laws. - Lemma 19: The size-indexed -coalgebra (
nuBoxCoalg) is a terminal -coalgebra. - Lemma 20 & Proposition 22: Constant size-indexing and universal quantification lift coalgebra morphisms between and and form an adjunction ().
- Theorem 23 & Polynomial -Type Corollary: For any weakly commuting with ,
nuCoalgwith carrier is a terminal -coalgebra with tracked half-adjoint equivalence structure map , and every polynomial endofunctor weakly commutes with and thus admits a terminal coalgebra (-type).
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.theorem_23_coinductive_types in mission proposal b9ee7685-2b00-4d20-9dc7-7769cb6f414a.
import Definitions.Def_LaarakkerOttenVanDenBerg2026_Encoding
namespace LaarakkerOttenVanDenBerg2026
universe u v
theorem theorem_23_coinductive_types
(P : ParametricSizeTheory.{u, v}) :
(∀ (F : WildEndofunctor P.toSizeCoreTheory),
(∀ (A : SizeTy P.toSizeCoreTheory) (i : P.Size) (x : P.El (P.boxU A i)),
boxMap P.toSizeCoreTheory (sizeHomId P.toSizeCoreTheory A) i x = x) ∧
(∀ {A B C : SizeTy P.toSizeCoreTheory}
(g : SizeHom P.toSizeCoreTheory B C) (f : SizeHom P.toSizeCoreTheory A B)
(i : P.Size) (x : P.El (P.boxU A i)),
boxMap P.toSizeCoreTheory (sizeHomComp P.toSizeCoreTheory g f) i x =
boxMap P.toSizeCoreTheory g i (boxMap P.toSizeCoreTheory f i x)) ∧
(∀ (A : SizeTy P.toSizeCoreTheory) (i : P.Size)
(x : P.El (liftBoxObj P.toSizeCoreTheory F A i)),
liftBoxMap P.toSizeCoreTheory F (sizeHomId P.toSizeCoreTheory A) i x = x) ∧
(∀ {A B C : SizeTy P.toSizeCoreTheory}
(g : SizeHom P.toSizeCoreTheory B C) (f : SizeHom P.toSizeCoreTheory A B)
(i : P.Size) (x : P.El (liftBoxObj P.toSizeCoreTheory F A i)),
liftBoxMap P.toSizeCoreTheory F (sizeHomComp P.toSizeCoreTheory g f) i x =
liftBoxMap P.toSizeCoreTheory F g i (liftBoxMap P.toSizeCoreTheory F f i x)) ∧
Nonempty (IsTerminalSizedFCoalg P.toSizeCoreTheory (nuBoxCoalg P.toSizeCoreTheory F)) ∧
(∀ {X Y : FCoalg F} (f : FCoalgHom X Y) (i : P.Size)
(c : P.El ((constSizedFCoalg P.toSizeCoreTheory X).carrier i)),
(constSizedFCoalg P.toSizeCoreTheory Y).str i
(constSizeHom P.toSizeCoreTheory f.hom i c) =
liftBoxMap P.toSizeCoreTheory F (constSizeHom P.toSizeCoreTheory f.hom) i
((constSizedFCoalg P.toSizeCoreTheory X).str i c)) ∧
(∀ (hF : WeaklyCommutesAll P.toSizeCoreTheory F)
{C D : SizedFCoalg P.toSizeCoreTheory F}
(g : SizedFCoalgHom P.toSizeCoreTheory C D)
(x : P.El (allFCoalg P.toSizeCoreTheory hF C).carrier),
(allFCoalg P.toSizeCoreTheory hF D).str (allMap P.toSizeCoreTheory g.hom x) =
F.map (allMap P.toSizeCoreTheory g.hom)
((allFCoalg P.toSizeCoreTheory hF C).str x)) ∧
(∀ (hF : WeaklyCommutesAll P.toSizeCoreTheory F)
(X : FCoalg F) (Y : SizedFCoalg P.toSizeCoreTheory F),
Nonempty (FCoalgHom X (allFCoalg P.toSizeCoreTheory hF Y) ≃
SizedFCoalgHom P.toSizeCoreTheory (constSizedFCoalg P.toSizeCoreTheory X) Y)) ∧
(∀ (hF : WeaklyCommutesAll P.toSizeCoreTheory F),
Nonempty (IsTerminalFCoalg (nuCoalg P.toSizeCoreTheory hF)) ∧
Nonempty (IsTrackedHAEquiv P.toSizeCoreTheory (nuCoalg P.toSizeCoreTheory hF).str))) ∧
(∀ (A : P.U) (B : P.El A → P.U),
∃ (hPoly : WeaklyCommutesAll P.toSizeCoreTheory
(polyEndofunctor P.toSizeCoreTheory A B)),
Nonempty (IsTerminalFCoalg (nuCoalg P.toSizeCoreTheory hPoly)) ∧
Nonempty (IsTrackedHAEquiv P.toSizeCoreTheory (nuCoalg P.toSizeCoreTheory hPoly).str)) := by
sorry
end LaarakkerOttenVanDenBerg2026Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Plain-English Meaning
Fix universe levels and and a parametric size theory with underlying core theory . The theorem theorem_23_coinductive_types asserts the conjunction of two top-level statements (Proposition 5, Lemmas 19–20, Proposition 22, Theorem 23, and the Polynomial -Type Corollary of Laarakker, Otten & van den Berg, FSCD 2026, Section 3.2, 3.4 & Appendix B, pp. 9, 24–27):
- General Coinductive Machinery for Any Wild Endofunctor : For every , the following nine properties hold:
- (-functor identity and composition, Proposition 5):
boxMappreserves identity and composition of tracked size-indexed morphisms (SizeHom). - (-functor identity and composition, Proposition 5):
liftBoxMappreserves identity and composition of tracked size-indexed morphisms. - (Terminality of , Lemma 19, p. 25): , asserting that for every size-indexed -coalgebra , the type is contractible.
- (Coalgebra morphism preservation for , Lemma 20, p. 25):
constSizeHomlifts any tracked -coalgebra homomorphism to a size-indexed -coalgebra homomorphism from to . - (Coalgebra morphism preservation for , Proposition 22, p. 26): Given ,
allMaplifts any size-indexed -coalgebra homomorphism to an -coalgebra homomorphism from to . - (Adjointness on Coalgebra Hom-Types, Proposition 22, p. 26): Given , , and , there is an explicit equivalence of hom-types:
- (-functor identity and composition, Proposition 5):
- (Theorem 23 — Terminal -Coalgebra and Tracked Lambek Equivalence for , p. 26): Given , on carrier satisfies both and .
- Polynomial -Type Corollary (p. 27): For every small type code and family , let . Then there exists such that:
- , and
- .
Edge Cases & Degeneracies
- None: The explicit hom-type adjunction equivalence is included in the theorem statement and used directly in the proof of Theorem 23.