IndisputableMonolith.Papers.GCIC.GCICDerivation
IndisputableMonolith/Papers/GCIC/GCICDerivation.lean · 161 lines · 15 declarations
show as:
view math explainer →
1import Mathlib
2import IndisputableMonolith.Cost
3import IndisputableMonolith.Papers.GCIC.GraphRigidity
4import IndisputableMonolith.Papers.GCIC.ReducedPhasePotential
5import IndisputableMonolith.Papers.GCIC.DiscreteGauge
6
7/-!
8# GCIC Derivation from RS Forcing Chain
9
10Derives the Global Co-Identity Constraint (GCIC) from the J-cost forcing chain
11with zero empirical axioms. The full chain:
12
13 T5 (J unique) → ratio rigidity (constant field at J=0)
14 T6+T7 → compact phase Θ ∈ ℝ/ℤ (discrete gauge)
15 Ratio rigidity + compact phase → GCIC (uniform Θ at J-stationarity)
16
17## Main Results
18
19* `gcic_from_forcing_chain` — the GCIC is a theorem of the forcing chain.
20* `phase_alignment_minimizes_Jtilde` — aligned phases minimize J̃.
21* `aligned_beats_perturbed` — aligned collective cost < sum of perturbed costs.
22-/
23
24namespace IndisputableMonolith.Papers.GCIC.GCICDerivation
25
26open IndisputableMonolith.Cost
27open IndisputableMonolith.Papers.GCIC.GraphRigidity
28open IndisputableMonolith.Papers.GCIC.ReducedPhasePotential
29open IndisputableMonolith.Papers.GCIC.DiscreteGauge
30
31noncomputable section
32
33/-! ## Part 1: GCIC from Ratio Rigidity + Discrete Gauge -/
34
35/-- On a connected graph with positive field x, J-cost minimization (all edge
36 costs zero) forces constant field. -/
37theorem J_stationary_implies_constant_field {V : Type*} {adj : V → V → Prop}
38 (hconn : ∀ u v : V, Relation.ReflTransGen adj u v)
39 {x : V → ℝ} (hpos : ∀ v, 0 < x v)
40 (hstat : ∀ v w, adj v w → Jcost (x v / x w) = 0) :
41 ∀ v w : V, x v = x w :=
42 ratio_rigidity hconn hpos hstat
43
44/-- The compact phase of a constant positive field is constant. -/
45theorem constant_field_constant_phase {V : Type*}
46 {x : V → ℝ} (hconst : ∀ v w : V, x v = x w)
47 (v w : V) :
48 compactPhase (Real.log (x v)) = compactPhase (Real.log (x w)) := by
49 rw [hconst v w]
50
51/-- **GCIC FROM FORCING CHAIN** (Main Result)
52
53 On a connected graph with a designated base vertex:
54 1. T5 forces J unique with J(x)=0 iff x=1 (ratio rigidity)
55 2. T6+T7 force compact phase Θ ∈ ℝ/ℤ (discrete gauge)
56 3. J-stationarity (all edge costs zero) → constant field → constant Θ
57
58 Therefore: at J-cost minimum, all vertices share the same compact phase Θ. -/
59theorem gcic_from_forcing_chain {V : Type*} [Nonempty V] {adj : V → V → Prop}
60 (hconn : ∀ u v : V, Relation.ReflTransGen adj u v)
61 {x : V → ℝ} (hpos : ∀ v, 0 < x v)
62 (hstat : ∀ v w, adj v w → Jcost (x v / x w) = 0) :
63 ∃ Θ₀ : ℝ, (0 ≤ Θ₀ ∧ Θ₀ < 1) ∧
64 ∀ v : V, compactPhase (Real.log (x v)) = Θ₀ := by
65 have hconst := J_stationary_implies_constant_field hconn hpos hstat
66 let v₀ := Classical.arbitrary V
67 refine ⟨compactPhase (Real.log (x v₀)), compactPhase_range _, ?_⟩
68 intro v
69 exact constant_field_constant_phase hconst v v₀
70
71/-! ## Part 2: Θ-Coupling Form from J̃ Minimization -/
72
73/-- Phase-aligned configurations minimize J̃: J̃(λ, 0) ≤ J̃(λ, δ) for all δ. -/
74theorem phase_alignment_minimizes_Jtilde (lam : ℝ) (δ : ℝ) :
75 Jtilde lam 0 ≤ Jtilde lam δ := by
76 have h0 : Jtilde lam 0 = 0 := by
77 unfold Jtilde distZ
78 simp [Int.fract_zero, Real.cosh_zero]
79 rw [h0]
80 exact Jtilde_nonneg lam δ
81
82/-- J̃ is zero only at integer phase differences. -/
83theorem coupling_vanishes_iff_aligned {lam : ℝ} (hlam : lam ≠ 0) (δ : ℝ) :
84 Jtilde lam δ = 0 ↔ ∃ n : ℤ, δ = ↑n :=
85 Jtilde_zero_iff hlam δ
86
87/-- J̃ stiffness lower bound: quadratic growth near alignment. -/
88theorem theta_coupling_stiffness (lam : ℝ) (δ : ℝ) :
89 (lam * distZ δ) ^ 2 / 2 ≤ Jtilde lam δ :=
90 Jtilde_stiffness_lb lam δ
91
92/-- The negative of J̃ defines an attractive coupling: zero at alignment,
93 negative (attractive) for misalignment. Periodicity is inherited. -/
94theorem neg_Jtilde_coupling_nonpos (lam : ℝ) (δ : ℝ) : -Jtilde lam δ ≤ 0 := by
95 linarith [Jtilde_nonneg lam δ]
96
97theorem neg_Jtilde_coupling_zero_iff {lam : ℝ} (hlam : lam ≠ 0) (δ : ℝ) :
98 -Jtilde lam δ = 0 ↔ ∃ n : ℤ, δ = ↑n := by
99 constructor
100 · intro h; exact (Jtilde_zero_iff hlam δ).mp (by linarith)
101 · intro h; have := (Jtilde_zero_iff hlam δ).mpr h; linarith
102
103theorem neg_Jtilde_coupling_periodic (lam : ℝ) (δ : ℝ) (n : ℤ) :
104 -Jtilde lam (δ + ↑n) = -Jtilde lam δ := by
105 rw [Jtilde_add_int]
106
107/-- GCIC stiffness for base φ. -/
108theorem phi_coupling_stiffness (δ : ℝ) :
109 (Real.log Constants.phi * distZ δ) ^ 2 / 2 ≤
110 Jtilde (Real.log Constants.phi) δ :=
111 Jtilde_stiffness_lb _ δ
112
113/-! ## Part 3: Collective Cost Subadditivity from J-Cost -/
114
115/-- At alignment (ratio = 1), J-cost is zero. -/
116theorem aligned_collective_cost_zero : Jcost 1 = 0 := Jcost_unit0
117
118/-- Individual perturbed costs are positive. -/
119theorem perturbed_cost_positive {x : ℝ} (hx : 0 < x) (hne : x ≠ 1) :
120 0 < Jcost x :=
121 Jcost_pos_of_ne_one x hx hne
122
123/-- A list of positive reals has positive sum. -/
124private theorem list_sum_pos :
125 ∀ (costs : List ℝ), 0 < costs.length → (∀ c ∈ costs, 0 < c) → 0 < costs.sum := by
126 intro costs hlen hpos
127 induction costs with
128 | nil => simp at hlen
129 | cons hd tl ih =>
130 simp only [List.sum_cons]
131 have hhd : 0 < hd := hpos hd (List.mem_cons.mpr (Or.inl rfl))
132 rcases tl with _ | ⟨hd', tl'⟩
133 · simp; linarith
134 · have htl_pos : ∀ c ∈ (hd' :: tl'), 0 < c :=
135 fun c hc => hpos c (List.mem_cons.mpr (Or.inr hc))
136 have htl_len : 0 < (hd' :: tl').length := by simp
137 linarith [ih htl_len htl_pos]
138
139/-- **COLLECTIVE SUBADDITIVITY FROM J-COST** (replaces empirical axiom)
140
141 The aligned configuration (J=0) is strictly less costly than any collection
142 of perturbed boundaries (Σ J(xᵢ) > 0 when xᵢ ≠ 1). -/
143theorem aligned_beats_perturbed
144 (costs : List ℝ) (hlen : 0 < costs.length)
145 (hpos : ∀ c ∈ costs, 0 < c) :
146 Jcost 1 < costs.sum := by
147 rw [Jcost_unit0]
148 exact list_sum_pos costs hlen hpos
149
150/-! ## Part 4: Full Derivation Certificate -/
151
152theorem gcic_derivation_cert :
153 (∀ lam δ, Jtilde lam 0 ≤ Jtilde lam δ) ∧
154 (∀ (costs : List ℝ), 0 < costs.length → (∀ c ∈ costs, 0 < c) → Jcost 1 < costs.sum) ∧
155 (Jcost 1 = 0) :=
156 ⟨phase_alignment_minimizes_Jtilde, aligned_beats_perturbed, Jcost_unit0⟩
157
158end
159
160end IndisputableMonolith.Papers.GCIC.GCICDerivation
161