Lemmas 2.13–2.14, Theorem 2.15, Corollaries 2.16 & 2.18, and Lemma 2.19: Fracture and Gluing of Computation Types
ProvedGrodin2026.lemma_2_13_to_theorem_2_15_computation_fracture_gluingProves compatibility of the underlying-value functor with and ( and , Lemma 2.13), lex pullback preservation for and on (Lemma 2.14), the fracture and gluing equivalence on computation types together with modal recovery of and (Theorem 2.15), the equivalence (Definition 2.17) and (Corollary 2.18), and modal coherence for computation homomorphisms (Corollary 2.16, Lemma 2.19).
import Definitions.Def_Grodin2026_Physicist
namespace Grodin2026
/-- **Lemma 2.13, Lemma 2.14, Theorem 2.15, Corollary 2.16, Corollary 2.18, and Lemma 2.19 (§2.2):**
1. **Underlying Value Compatibility (Lemma 2.13):** For all computation types $A : \mathcal{C}$,
$U(\bigcirc A) = \bigcirc(UA)$ and $U(\bullet A) = \bullet(UA)$.
2. **Lex Preservation of Pullbacks (Lemma 2.14):** Both $\bigcirc$ and $\bullet$ preserve pullbacks
in $\mathcal{C}$ up to computation equivalence (`CompEquiv`):
$\bigcirc(A \times_C B) \simeq \bigcirc A \times_{\bigcirc C} \bigcirc B$ and
$\bullet(A \times_C B) \simeq \bullet A \times_{\bullet C} \bullet B$.
3. **Fracture and Gluing of $\mathcal{C}$ (Theorem 2.15):** Every computation type $A : \mathcal{C}$
is canonically equivalent (`CompEquiv`) to its pullback gluing
$\mathsf{Glue}(\bullet A, \bigcirc A, \bullet \eta^\circ_A)$, and fracturing the glued type
recovers $\bullet A$ and $\bigcirc A$ up to equivalence.
4. **$\mathsf{Abstraction}$ on Computation Types (Corollary 2.16, Definition 2.17, Corollary 2.18, Lemma 2.19):**
- For any cost algebra homomorphism $\alpha : A_\top \multimap A_{\mathsf{abs}}$,
$\mathsf{Glue}(\bullet A_\top, \bigcirc A_{\mathsf{abs}}, \bullet(\eta^\circ \circ \alpha)) \simeq \mathsf{Abstraction}(\alpha)$;
- For any single-world cost algebra $C_0$, $\mathsf{ConstComp}\,C_0 \simeq \mathsf{GlueAbstractionComp}\,C_0\,C_0\,\mathrm{id}_{C_0}$;
- Every computation homomorphism $f : A \multimap B$ induces coherent $\bullet f$ and $\bigcirc f$
satisfying $(\bullet \eta^\circ_B) \circ \bullet f = \bullet(\bigcirc f \circ \eta^\circ_A)$. -/
theorem lemma_2_13_to_theorem_2_15_computation_fracture_gluing :
(∀ A : CompType,
ForgetComp (OpenComp A) = OpenVal (ForgetComp A) ∧
ForgetComp (ClosedComp A) = ClosedVal (ForgetComp A)) ∧
(∀ {A B C : CompType} (f : CompHom A C) (g : CompHom B C),
Nonempty (CompEquiv (OpenComp (CompPullback f g))
(CompPullback (OpenComp.map f) (OpenComp.map g))) ∧
Nonempty (CompEquiv (ClosedComp (CompPullback f g))
(CompPullback (ClosedComp.map f) (ClosedComp.map g)))) ∧
(∀ A : CompType,
Nonempty (CompEquiv A (FractureGlueComp A)) ∧
Nonempty (CompEquiv (ClosedComp (FractureGlueComp A)) (ClosedComp A)) ∧
Nonempty (CompEquiv (OpenComp (FractureGlueComp A)) (OpenComp A))) ∧
(∀ (A_top A_abs : CostAlg) (alpha : CostHom A_top A_abs),
Nonempty (CompEquiv (GlueAbstractionComp A_top A_abs alpha)
(AbstractionComp A_top A_abs alpha))) ∧
(∀ C₀ : CostAlg,
Nonempty (CompEquiv (ConstComp C₀) (GlueAbstractionComp C₀ C₀ (CostHom.id C₀)))) ∧
(∀ {A B : CompType} (f : CompHom A B),
(ClosedComp.map (etaOpenComp B)).comp (ClosedComp.map f) =
ClosedComp.map ((OpenComp.map f).comp (etaOpenComp A))) := by
sorry
end Grodin2026Read-back
What the Lean code literally says, in plain math · Gemini 3.1 Pro (Independent Blind Auditor)
Read-back:
The theorem lemma_2_13_to_theorem_2_15_computation_fracture_gluing asserts the conjunction of the following six statements:
- Compatibility of Forgetful Functor with Modalities: For every phased computation type , the underlying phased value types satisfy the strict equalities
where .
2. Lex Preservation of Pullbacks by and : For all phased computation types and computation homomorphisms and , there exist computation type equivalences (CompEquiv):
- Fracture and Gluing Equivalence for Phased Computation Types: For every phased computation type , where :
- there exists a
CompEquivbetween and ; - there exists a
CompEquivbetween and ; and - there exists a
CompEquivbetween and .
- there exists a
- Gluing Presentation of on Computation Types: For all cost algebras and every cost algebra homomorphism , there exists a
CompEquivbetween and . - Gluing of the Identity Cost Algebra Homomorphism: For every cost algebra , there exists a
CompEquivbetween and . - Coherence of Fractured Computation Homomorphisms: For all phased computation types and every computation homomorphism ,
as computation homomorphisms in .
Assessment: sound
Concerns: None