IndisputableMonolith.Gap45.SyncMinimization
IndisputableMonolith/Gap45/SyncMinimization.lean · 181 lines · 47 declarations
show as:
view math explainer →
1import Mathlib
2
3/-!
4# Sync Period Minimization: Why 45 Is Uniquely Selected
5
6This module formalizes **constraint (S)** from the Dimensional Rigidity paper
7(Washburn/Zlatanović/Allahyarov, 2026): among odd spatial dimensions D ≥ 3,
8D = 3 uniquely minimizes the synchronization period `lcm(2^D, T(D²))`.
9
10## The Argument
11
12For dimension D:
13- The 8-tick period generalizes to `2^D`
14- The parity matrix of the hypercube Q_D has `D²` entries
15- Cumulative phase = `T(D²)` (triangular number)
16- Sync period = `lcm(2^D, T(D²))`
17
18For **even D**, `T(D²)` is even, so `gcd(2^D, T(D²)) > 1` — the periods
19partially align, reducing the uncomputability barrier. Only **odd D** gives
20full coprimality (T(D²) is odd when D is odd).
21
22Among odd D ≥ 3:
23- D = 3: T(9) = 45, sync = lcm(8, 45) = 360
24- D = 5: T(25) = 325, sync = lcm(32, 325) = 10400
25- D = 7: T(49) = 1225, sync = lcm(128, 1225) = 156800
26
27D = 3 gives the **minimal** sync period, uniquely. This is WHY 45 is selected:
28it is T(D²) at the dimension that minimizes synchronization cost.
29-/
30
31namespace IndisputableMonolith
32namespace Gap45
33namespace SyncMinimization
34
35/-! ## Triangular Numbers -/
36
37/-- The n-th triangular number: T(n) = n(n+1)/2. -/
38def T (n : ℕ) : ℕ := n * (n + 1) / 2
39
40@[simp] theorem T_0 : T 0 = 0 := rfl
41@[simp] theorem T_1 : T 1 = 1 := rfl
42@[simp] theorem T_9 : T 9 = 45 := by native_decide
43@[simp] theorem T_25 : T 25 = 325 := by native_decide
44@[simp] theorem T_49 : T 49 = 1225 := by native_decide
45@[simp] theorem T_81 : T 81 = 3321 := by native_decide
46@[simp] theorem T_121 : T 121 = 7381 := by native_decide
47@[simp] theorem T_4 : T 4 = 10 := by native_decide
48@[simp] theorem T_16 : T 16 = 136 := by native_decide
49
50/-! ## Parity of T(D²) -/
51
52/-- T(D²) for a given dimension. -/
53def phasePeriod (D : ℕ) : ℕ := T (D * D)
54
55@[simp] theorem phasePeriod_3 : phasePeriod 3 = 45 := by native_decide
56@[simp] theorem phasePeriod_5 : phasePeriod 5 = 325 := by native_decide
57@[simp] theorem phasePeriod_7 : phasePeriod 7 = 1225 := by native_decide
58@[simp] theorem phasePeriod_9 : phasePeriod 9 = 3321 := by native_decide
59@[simp] theorem phasePeriod_11 : phasePeriod 11 = 7381 := by native_decide
60
61/-- For even D, T(D²) is even: no coprimality with 2^D. Verified for D ∈ {2,4,6,8,10}. -/
62theorem phasePeriod_even_2 : 2 ∣ phasePeriod 2 := by native_decide
63theorem phasePeriod_even_4 : 2 ∣ phasePeriod 4 := by native_decide
64theorem phasePeriod_even_6 : 2 ∣ phasePeriod 6 := by native_decide
65theorem phasePeriod_even_8 : 2 ∣ phasePeriod 8 := by native_decide
66theorem phasePeriod_even_10 : 2 ∣ phasePeriod 10 := by native_decide
67
68/-- For odd D, T(D²) is odd. -/
69theorem phasePeriod_odd_3 : ¬ 2 ∣ phasePeriod 3 := by native_decide
70theorem phasePeriod_odd_5 : ¬ 2 ∣ phasePeriod 5 := by native_decide
71theorem phasePeriod_odd_7 : ¬ 2 ∣ phasePeriod 7 := by native_decide
72theorem phasePeriod_odd_9 : ¬ 2 ∣ phasePeriod 9 := by native_decide
73theorem phasePeriod_odd_11 : ¬ 2 ∣ phasePeriod 11 := by native_decide
74
75/-! ## Coprimality with 2^D -/
76
77theorem coprime_3 : Nat.Coprime (2^3) (phasePeriod 3) := by native_decide
78theorem coprime_5 : Nat.Coprime (2^5) (phasePeriod 5) := by native_decide
79theorem coprime_7 : Nat.Coprime (2^7) (phasePeriod 7) := by native_decide
80theorem coprime_9 : Nat.Coprime (2^9) (phasePeriod 9) := by native_decide
81theorem coprime_11 : Nat.Coprime (2^11) (phasePeriod 11) := by native_decide
82
83/-! ## Sync Periods -/
84
85/-- The synchronization period for dimension D. -/
86def syncPeriod (D : ℕ) : ℕ := Nat.lcm (2^D) (phasePeriod D)
87
88@[simp] theorem syncPeriod_3 : syncPeriod 3 = 360 := by native_decide
89@[simp] theorem syncPeriod_5 : syncPeriod 5 = 10400 := by native_decide
90@[simp] theorem syncPeriod_7 : syncPeriod 7 = 156800 := by native_decide
91@[simp] theorem syncPeriod_9 : syncPeriod 9 = 1700352 := by native_decide
92@[simp] theorem syncPeriod_11 : syncPeriod 11 = 15116288 := by native_decide
93
94/-! ## The Minimization Theorem (Constraint S) -/
95
96/-- D = 3 has strictly smaller sync period than D = 5. -/
97theorem sync_3_lt_5 : syncPeriod 3 < syncPeriod 5 := by native_decide
98
99/-- D = 3 has strictly smaller sync period than D = 7. -/
100theorem sync_3_lt_7 : syncPeriod 3 < syncPeriod 7 := by native_decide
101
102/-- D = 3 has strictly smaller sync period than D = 9. -/
103theorem sync_3_lt_9 : syncPeriod 3 < syncPeriod 9 := by native_decide
104
105/-- D = 3 has strictly smaller sync period than D = 11. -/
106theorem sync_3_lt_11 : syncPeriod 3 < syncPeriod 11 := by native_decide
107
108/-- **CONSTRAINT (S)**: Among odd dimensions D ∈ {3,5,7,9,11},
109 D = 3 uniquely minimizes the synchronization period lcm(2^D, T(D²)).
110
111 This is the formalization of constraint (S) from the Dimensional Rigidity
112 paper (Washburn/Zlatanović/Allahyarov 2026). It answers:
113 "Why 45 specifically?" — because 45 = T(9) = T(3²) is the phase period
114 at the dimension that minimizes synchronization cost.
115
116 The sync periods grow super-exponentially:
117 - D=3: 360
118 - D=5: 10400 (28.9× larger)
119 - D=7: 156800 (435.6× larger)
120 - D=9: 1700352 (4723.2× larger)
121 - D=11: 15116288 (41989.7× larger) -/
122theorem constraint_S_minimization :
123 ∀ D ∈ ({5, 7, 9, 11} : Finset ℕ), syncPeriod 3 < syncPeriod D := by
124 intro D hD
125 fin_cases hD <;> native_decide
126
127/-- D = 3 is the unique minimizer: for all odd D with 3 ≤ D ≤ 11 and D ≠ 3,
128 the sync period at D strictly exceeds that at D = 3. -/
129theorem D3_unique_minimizer :
130 ∀ D : ℕ, D % 2 = 1 → 3 ≤ D → D ≤ 11 → D ≠ 3 →
131 syncPeriod 3 < syncPeriod D := by
132 intro D hodd hge hle hne
133 interval_cases D <;> simp_all [syncPeriod, phasePeriod, T] <;> native_decide
134
135/-- Even dimensions fail coprimality: 2 | T(D²) when 2 | D, so the
136 uncomputability barrier is weakened. Verified for D ∈ {2,4,6,8,10}. -/
137theorem even_D_not_coprime :
138 ∀ D ∈ ({2, 4, 6, 8, 10} : Finset ℕ),
139 ¬ Nat.Coprime (2^D) (phasePeriod D) := by
140 intro D hD
141 fin_cases hD <;> native_decide
142
143/-! ## Monotonicity (sync period grows with D for odd D) -/
144
145/-- The sync period is strictly increasing along odd dimensions. -/
146theorem sync_strictly_increasing_odd :
147 syncPeriod 3 < syncPeriod 5 ∧
148 syncPeriod 5 < syncPeriod 7 ∧
149 syncPeriod 7 < syncPeriod 9 ∧
150 syncPeriod 9 < syncPeriod 11 := by
151 exact ⟨by native_decide, by native_decide, by native_decide, by native_decide⟩
152
153/-! ## Complete Certificate -/
154
155/-- The full constraint (S) certificate packaging the dimensional selection of 45. -/
156structure ConstraintS_Cert where
157 phase_at_D3 : phasePeriod 3 = 45
158 sync_at_D3 : syncPeriod 3 = 360
159 coprime_at_D3 : Nat.Coprime (2^3) (phasePeriod 3)
160 even_D_fails : ∀ D ∈ ({2, 4, 6, 8, 10} : Finset ℕ),
161 ¬ Nat.Coprime (2^D) (phasePeriod D)
162 D3_minimizes : ∀ D : ℕ, D % 2 = 1 → 3 ≤ D → D ≤ 11 → D ≠ 3 →
163 syncPeriod 3 < syncPeriod D
164 monotone_odd : syncPeriod 3 < syncPeriod 5 ∧
165 syncPeriod 5 < syncPeriod 7 ∧
166 syncPeriod 7 < syncPeriod 9 ∧
167 syncPeriod 9 < syncPeriod 11
168
169/-- The verified constraint (S) certificate. -/
170def constraintS : ConstraintS_Cert where
171 phase_at_D3 := by native_decide
172 sync_at_D3 := by native_decide
173 coprime_at_D3 := by native_decide
174 even_D_fails := even_D_not_coprime
175 D3_minimizes := D3_unique_minimizer
176 monotone_odd := sync_strictly_increasing_odd
177
178end SyncMinimization
179end Gap45
180end IndisputableMonolith
181