Theorem 2.3, Corollaries 2.4 & 2.6, Lemma 2.7, and Example 2.8: Fracture and Gluing of Value Types
ProvedGrodin2026.theorems_2_3_to_2_7_value_fracture_gluingProves contractibility of the concrete pushout under (Definition 2.2), the fracture and gluing equivalence on phased value types together with modal recovery of and (Theorem 2.3), the equivalence (Definition 2.5) and (Corollary 2.6), modal coherence for value maps (Corollary 2.4, Lemma 2.7), and the batched queue enqueue coherence square (Example 2.8).
import Definitions.Def_Grodin2026_Physicist
namespace Grodin2026
/-- **Theorem 2.3, Corollary 2.4, Corollary 2.6, Lemma 2.7, and Example 2.8 (§2.1):**
1. **Synthetic Concrete Collapse (Definition 2.2):** Under the phase assumption `h : abs`, the
pushout $\bullet X$ (`ClosedModal abs X`) collapses to a contractible point: any two elements
$z_1, z_2 : \bullet X$ are equal.
2. **Fracture and Gluing of $\mathcal{V}$ (Theorem 2.3):** Every phased value type $X : \mathcal{V}$
is canonically equivalent (`ValEquiv`) to its pullback gluing
$\mathsf{Glue}(\bullet X, \bigcirc X, \bullet \eta^\circ_X)$, and fracturing a glued type
recovers $\bullet X$ and $\bigcirc X$ up to equivalence.
3. **$\mathsf{Abstraction}$ Gluing Equivalence and Identity (Definition 2.5 & Corollary 2.6):**
For any $\chi : X_\top \to X_{\mathsf{abs}}$, the pullback gluing
$\mathsf{Glue}(\bullet X_\top, \bigcirc X_{\mathsf{abs}}, \bullet(\eta^\circ \circ \chi))$ is
equivalent to $\mathsf{Abstraction}(\chi)$, and for any type $T$,
$\mathsf{ConstVal}\,T \simeq \mathsf{GlueAbstractionVal}\,T\,T\,\mathrm{id}_T$.
4. **Representation Independence Square and Batched Queue (Corollary 2.4, Lemma 2.7, Example 2.8):**
Every morphism $f : X \to Y$ induces coherent $\bullet f$ and $\bigcirc f$ satisfying
$(\bullet \eta^\circ_Y) \circ \bullet f = \bullet(\bigcirc f \circ \eta^\circ_X)$, and for any
type $\alpha$ and element $n : \alpha$, the batched queue operations $\mathsf{enqueue}_\top\,n$
and $\mathsf{enqueue}_{\mathsf{abs}}\,n$ commute with $\chi(l_1, l_2) = l_1 \mathbin{+\!+} \mathrm{reverse}\,l_2$
to form a morphism `ValHom (BatchedQueueVal α) (BatchedQueueVal α)`. -/
theorem theorems_2_3_to_2_7_value_fracture_gluing :
(∀ (abs : Prop) (X : Type), abs → ∀ z₁ z₂ : ClosedModal abs X, z₁ = z₂) ∧
(∀ X : ValType,
Nonempty (ValEquiv X (FractureGlueVal X)) ∧
Nonempty (ValEquiv (ClosedVal (FractureGlueVal X)) (ClosedVal X)) ∧
Nonempty (ValEquiv (OpenVal (FractureGlueVal X)) (OpenVal X))) ∧
(∀ (X_top X_abs : Type) (chi : X_top → X_abs),
Nonempty (ValEquiv (GlueAbstractionVal X_top X_abs chi) (AbstractionVal X_top X_abs chi))) ∧
(∀ T : Type,
Nonempty (ValEquiv (ConstVal T) (GlueAbstractionVal T T id))) ∧
(∀ {X Y : ValType} (f : ValHom X Y),
(ClosedVal.map (etaOpenVal Y)).comp (ClosedVal.map f) =
ClosedVal.map ((OpenVal.map f).comp (etaOpenVal X))) ∧
(∀ (α : Type) (n : α),
∃ enq : ValHom (BatchedQueueVal α) (BatchedQueueVal α),
enq.f_top = enqueueValTop n ∧ enq.f_abs = enqueueValAbs n) := 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 theorems_2_3_to_2_7_value_fracture_gluing asserts the conjunction of the following six statements:
- Contractibility of the Synthetic Concrete Modality under : For every proposition and every type , if holds, then for all , .
- Fracture and Gluing Equivalence for Phased Value Types: For every phased value type , where is the pullback (having concrete carrier and abstract carrier ):
- there exists an equivalence of phased value types (
ValEquiv) between and ; - there exists a
ValEquivbetween and ; and - there exists a
ValEquivbetween and .
- there exists an equivalence of phased value types (
- Gluing Presentation of on Value Types: For all types and every function , there exists a
ValEquivbetween the pullback gluing and the direct phased value type . - Gluing of the Identity Abstraction: For every type , there exists a
ValEquivbetween the constant phased value type and . - Coherence of Fractured Value Morphisms: For all phased value types and every morphism (
ValHom X Y),
as morphisms in . 6. Batched Queue Enqueue Morphism: For every type and element , there exists a phased value morphism (where ) such that () and ().
Assessment: sound
Concerns: None