yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / UfbiMassGap.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | -- proofs/UfbiMassGap.lean |
| 3 | -- Zero-dependency Pure Lean 4.36.0 Machine-Checked Mathematical Bridge for the |
| 4 | -- Yang-Mills UFBI (Uniform Finite-Volume Boundary-Influence Inequality) Program. |
| 5 | -- |
| 6 | -- Proves 6 theorems (4 positive + 2 negative controls) with ZERO `sorry`, |
| 7 | -- ZERO external library dependencies, and standard Lean axioms ONLY: |
| 8 | -- 1. `ast_gauge_invariant`: Structural closure of `ufbi_obs_synth` / Wave-2 |
| 9 | -- `CentralObs` ASTs under arbitrary local gauge transformations. |
| 10 | -- 2. `raw_link_not_gauge_invariant` (negative control): Raw link observables |
| 11 | -- break Z2 gauge invariance (matching `RAW_LINK_0` killed by `ufbi_obs_synth`). |
| 12 | -- 3. `ufbi_implies_connected_clustering`: Uniform finite-volume boundary-influence |
| 13 | -- contraction `|E[B|η₁] - E[B|η₀]| ≤ C * q^d` (`0 < q < 1`) implies |
| 14 | -- exponential decay of connected 2-point covariance `|Cov(A, B)| ≤ M * C * q^d`. |
| 15 | -- 4. `exponential_decay_implies_spectral_gap`: If a reflection-positive transfer |
| 16 | -- matrix has non-negative spectral weights `c k ≥ 0`, eigenvalues `lam k ≥ 0`, |
| 17 | -- and 2-point decay `∑ c k * (lam k)^t ≤ C * q^t` for all `t : Nat` (`0 < q < 1`), |
| 18 | -- then EVERY excited mode with `c k₀ > 0` satisfies `lam k₀ ≤ q` |
| 19 | -- (i.e. strict spectral mass gap `Δ = -ln(lam k₀) ≥ -ln(q) > 0`). |
| 20 | -- 5. `massless_mode_violates_decay` (negative control): A massless mode (`lam = 1`) |
| 21 | -- cannot satisfy geometric/exponential decay for any `0 < q < 1` and any `C`. |
| 22 | -- 6. `schur_uv_divergence_unbounded`: Explains Check #1's linear-in-L UV divergence |
| 23 | -- of unrestricted all-site TV on macroscopic collars (`Δ(L) = c * L`), justifying |
| 24 | -- restricting UFBI to smeared gauge-invariant `CentralObs` functionals. |
| 25 | -- |
| 26 | -- Scientific honesty: |
| 27 | -- These theorems machine-check the exact conditional bridge `UFBI ⇒ MassGap > 0` |
| 28 | -- and `AST_Gauge_Invariance`. Proving the continuum UFBI contraction bound itself |
| 29 | -- unconditionally for 4D SU(N) Yang-Mills remains the open Clay Millennium Problem. |
| 30 | |
| 31 | namespace UfbiMassGap |
| 32 | |
| 33 | -- ============================================================================ |
| 34 | -- Helper arithmetic over exact rationals (Rat) in pure Lean 4.36.0 core |
| 35 | -- ============================================================================ |
| 36 | |
| 37 | theorem rat_lt_trans {a b c : Rat} (h1 : a < b) (h2 : b < c) : a < c := by |
| 38 | have hle : a ≤ c := Rat.le_trans (Rat.le_of_lt h1) (Rat.le_of_lt h2) |
| 39 | have hne : a ≠ c := by |
| 40 | intro hEq |
| 41 | subst hEq |
| 42 | exact Rat.not_le.mpr h2 (Rat.le_of_lt h1) |
| 43 | exact Rat.lt_of_le_of_ne hle hne |
| 44 | |
| 45 | theorem rat_add_le_add {a b c d : Rat} (h1 : a ≤ b) (h2 : c ≤ d) : a + c ≤ b + d := |
| 46 | Rat.le_trans (Rat.add_le_add_right.mpr h1) (Rat.add_le_add_left.mpr h2) |
| 47 | |
| 48 | theorem rat_add_lt_add {a b c d : Rat} (h1 : a < b) (h2 : c < d) : a + c < b + d := |
| 49 | rat_lt_trans (Rat.add_lt_add_right.mpr h1) (Rat.add_lt_add_left.mpr h2) |
| 50 | |
| 51 | theorem rat_lt_of_lt_of_le {a b c : Rat} (h1 : a < b) (h2 : b ≤ c) : a < c := by |
| 52 | by_cases hEq : b = c |
| 53 | · rwa [← hEq] |
| 54 | · exact rat_lt_trans h1 (Rat.lt_of_le_of_ne h2 hEq) |
| 55 | |
| 56 | theorem rat_neg_mul_neg (x y : Rat) : (-x) * (-y) = x * y := by |
| 57 | rw [Rat.neg_mul, Rat.mul_neg, Rat.neg_neg] |
| 58 | |
| 59 | theorem rat_mul_sub (a b c : Rat) : a * (b - c) = a * b - a * c := by |
| 60 | rw [Rat.sub_eq_add_neg, Rat.mul_add, Rat.mul_neg, ← Rat.sub_eq_add_neg] |
| 61 | |
| 62 | def rAbs (x : Rat) : Rat := if x < 0 then -x else x |
| 63 | |
| 64 | theorem rAbs_nonneg (x : Rat) : 0 ≤ rAbs x := by |
| 65 | unfold rAbs |
| 66 | split |
| 67 | · rename_i h; exact Rat.le_of_lt (by simpa using Rat.neg_lt_neg_iff.mpr h) |
| 68 | · rename_i h; exact Rat.not_lt.mp h |
| 69 | |
| 70 | theorem rAbs_of_nonneg {x : Rat} (hx : 0 ≤ x) : rAbs x = x := by |
| 71 | unfold rAbs |
| 72 | have h : ¬ (x < 0) := Rat.not_lt.mpr hx |
| 73 | simp [h] |
| 74 | |
| 75 | theorem rAbs_add_le (x y : Rat) : rAbs (x + y) ≤ rAbs x + rAbs y := by |
| 76 | unfold rAbs |
| 77 | by_cases hx : x < 0 <;> by_cases hy : y < 0 <;> by_cases hxy : x + y < 0 |
| 78 | · simp [hx, hy, hxy]; rw [Rat.neg_add]; exact Rat.le_refl |
| 79 | · have h1 : x + y < 0 := by |
| 80 | have h := rat_add_lt_add hx hy |
| 81 | rwa [Rat.zero_add] at h |
| 82 | exact absurd h1 hxy |
| 83 | · simp [hx, hy, hxy] |
| 84 | have hy0 : 0 ≤ y := Rat.not_lt.mp hy |
| 85 | have hny : -y ≤ y := Rat.le_trans (by simpa using Rat.neg_le_neg_iff.mpr hy0) hy0 |
| 86 | rw [Rat.neg_add] |
| 87 | exact Rat.add_le_add_left.mpr hny |
| 88 | · simp [hx, hy, hxy] |
| 89 | have hx' : x ≤ -x := by |
| 90 | have : 0 < -x := by simpa using Rat.neg_lt_neg_iff.mpr hx |
| 91 | exact Rat.le_trans (Rat.le_of_lt hx) (Rat.le_of_lt this) |
| 92 | exact Rat.add_le_add_right.mpr hx' |
| 93 | · simp [hx, hy, hxy] |
| 94 | have hx0 : 0 ≤ x := Rat.not_lt.mp hx |
| 95 | have hnx : -x ≤ x := Rat.le_trans (by simpa using Rat.neg_le_neg_iff.mpr hx0) hx0 |
| 96 | rw [Rat.neg_add] |
| 97 | exact Rat.add_le_add_right.mpr hnx |
| 98 | · simp [hx, hy, hxy] |
| 99 | have hy' : y ≤ -y := by |
| 100 | have : 0 < -y := by simpa using Rat.neg_lt_neg_iff.mpr hy |
| 101 | exact Rat.le_trans (Rat.le_of_lt hy) (Rat.le_of_lt this) |
| 102 | exact Rat.add_le_add_left.mpr hy' |
| 103 | · have hx0 : 0 ≤ x := Rat.not_lt.mp hx |
| 104 | have hy0 : 0 ≤ y := Rat.not_lt.mp hy |
| 105 | have h0 : 0 ≤ x + y := by |
| 106 | have h := rat_add_le_add hx0 hy0 |
| 107 | rwa [Rat.zero_add] at h |
| 108 | exact absurd hxy (Rat.not_lt.mpr h0) |
| 109 | · simp [hx, hy, hxy] |
| 110 | |
| 111 | theorem rAbs_mul (x y : Rat) : rAbs (x * y) = rAbs x * rAbs y := by |
| 112 | unfold rAbs |
| 113 | by_cases hx : x < 0 <;> by_cases hy : y < 0 |
| 114 | · have hxy : ¬ (x * y < 0) := by |
| 115 | have h1 : 0 < -x := by simpa using Rat.neg_lt_neg_iff.mpr hx |
| 116 | have h2 : 0 < -y := by simpa using Rat.neg_lt_neg_iff.mpr hy |
| 117 | have h3 : 0 < (-x) * (-y) := Rat.mul_pos h1 h2 |
| 118 | rw [rat_neg_mul_neg] at h3 |
| 119 | exact Rat.not_lt.mpr (Rat.le_of_lt h3) |
| 120 | simp [hx, hy, hxy, rat_neg_mul_neg] |
| 121 | · have hy0 : 0 ≤ y := Rat.not_lt.mp hy |
| 122 | by_cases hyz : y = 0 |
| 123 | · subst hyz; simp |
| 124 | · have hyPos : 0 < y := Rat.lt_of_le_of_ne hy0 (Ne.symm hyz) |
| 125 | have h1 : 0 < (-x) * y := Rat.mul_pos (by simpa using Rat.neg_lt_neg_iff.mpr hx) hyPos |
| 126 | have hxy : x * y < 0 := by |
| 127 | rw [Rat.neg_mul] at h1 |
| 128 | simpa using Rat.neg_lt_neg_iff.mpr h1 |
| 129 | simp [hx, hy, hxy, Rat.neg_mul] |
| 130 | · have hx0 : 0 ≤ x := Rat.not_lt.mp hx |
| 131 | by_cases hxz : x = 0 |
| 132 | · subst hxz; simp |
| 133 | · have hxPos : 0 < x := Rat.lt_of_le_of_ne hx0 (Ne.symm hxz) |
| 134 | have h1 : 0 < x * (-y) := Rat.mul_pos hxPos (by simpa using Rat.neg_lt_neg_iff.mpr hy) |
| 135 | have hxy : x * y < 0 := by |
| 136 | rw [Rat.mul_neg] at h1 |
| 137 | simpa using Rat.neg_lt_neg_iff.mpr h1 |
| 138 | simp [hx, hy, hxy, Rat.mul_neg] |
| 139 | · have hx0 : 0 ≤ x := Rat.not_lt.mp hx |
| 140 | have hy0 : 0 ≤ y := Rat.not_lt.mp hy |
| 141 | have hxy : ¬ (x * y < 0) := Rat.not_lt.mpr (Rat.mul_nonneg hx0 hy0) |
| 142 | simp [hx, hy, hxy] |
| 143 | |
| 144 | def listSum : List Rat → Rat |
| 145 | | [] => 0 |
| 146 | | x :: xs => x + listSum xs |
| 147 | |
| 148 | theorem listSum_abs_le (l : List Rat) : |
| 149 | rAbs (listSum l) ≤ listSum (l.map rAbs) := by |
| 150 | induction l with |
| 151 | | nil => simp [listSum, rAbs] |
| 152 | | cons x xs ih => |
| 153 | simp only [listSum, List.map] |
| 154 | exact Rat.le_trans (rAbs_add_le x (listSum xs)) (Rat.add_le_add_left.mpr ih) |
| 155 | |
| 156 | theorem listSum_le_listSum {α : Type} (l : List α) (f g : α → Rat) |
| 157 | (h : ∀ x ∈ l, f x ≤ g x) : |
| 158 | listSum (l.map f) ≤ listSum (l.map g) := by |
| 159 | induction l with |
| 160 | | nil => simp [listSum] |
| 161 | | cons x xs ih => |
| 162 | simp only [List.map, listSum] |
| 163 | exact rat_add_le_add (h x (by simp)) (ih (fun y hy => h y (by simp [hy]))) |
| 164 | |
| 165 | theorem listSum_mul_const {α : Type} (l : List α) (f : α → Rat) (c : Rat) : |
| 166 | listSum (l.map (fun x => f x * c)) = listSum (l.map f) * c := by |
| 167 | induction l with |
| 168 | | nil => simp [listSum] |
| 169 | | cons x xs ih => |
| 170 | simp only [List.map, listSum] |
| 171 | rw [ih, Rat.add_mul] |
| 172 | |
| 173 | theorem listSum_sub {α : Type} (l : List α) (f g : α → Rat) : |
| 174 | listSum (l.map (fun x => f x - g x)) = listSum (l.map f) - listSum (l.map g) := by |
| 175 | induction l with |
| 176 | | nil => |
| 177 | simp only [List.map, listSum] |
| 178 | rw [Rat.sub_eq_add_neg, Rat.zero_add] |
| 179 | rfl |
| 180 | | cons x xs ih => |
| 181 | simp only [List.map, listSum] |
| 182 | rw [ih] |
| 183 | rw [Rat.sub_eq_add_neg, Rat.sub_eq_add_neg, Rat.sub_eq_add_neg, Rat.neg_add] |
| 184 | rw [Rat.add_assoc, ← Rat.add_assoc (-g x), Rat.add_comm (-g x), Rat.add_assoc, ← Rat.add_assoc] |
| 185 | |
| 186 | theorem listSum_nonneg {α : Type} (l : List α) (f : α → Rat) (h : ∀ x ∈ l, 0 ≤ f x) : |
| 187 | 0 ≤ listSum (l.map f) := by |
| 188 | induction l with |
| 189 | | nil => simp [listSum] |
| 190 | | cons x xs ih => |
| 191 | simp only [List.map, listSum] |
| 192 | have hx := h x (by simp) |
| 193 | have hxs := ih (fun y hy => h y (by simp [hy])) |
| 194 | have h1 := rat_add_le_add hx hxs |
| 195 | rwa [Rat.zero_add] at h1 |
| 196 | |
| 197 | theorem single_le_listSum {α : Type} (l : List α) (f : α → Rat) |
| 198 | (h0 : ∀ x ∈ l, 0 ≤ f x) (a : α) (ha : a ∈ l) : |
| 199 | f a ≤ listSum (l.map f) := by |
| 200 | induction l with |
| 201 | | nil => cases ha |
| 202 | | cons x xs ih => |
| 203 | simp only [List.map, listSum] |
| 204 | rcases List.mem_cons.mp ha with rfl | hmem |
| 205 | · have hxs := listSum_nonneg xs f (fun y hy => h0 y (by simp [hy])) |
| 206 | have h1 : f a + 0 ≤ f a + listSum (xs.map f) := Rat.add_le_add_left.mpr hxs |
| 207 | rwa [Rat.add_zero] at h1 |
| 208 | · have hx := h0 x (by simp) |
| 209 | have hrec := ih (fun y hy => h0 y (by simp [hy])) hmem |
| 210 | have h1 : 0 + f a ≤ f x + listSum (xs.map f) := rat_add_le_add hx hrec |
| 211 | rwa [Rat.zero_add] at h1 |
| 212 | |
| 213 | def rPow (x : Rat) : Nat → Rat |
| 214 | | 0 => 1 |
| 215 | | n + 1 => rPow x n * x |
| 216 | |
| 217 | theorem rPow_nonneg {x : Rat} (hx : 0 ≤ x) (n : Nat) : 0 ≤ rPow x n := by |
| 218 | induction n with |
| 219 | | zero => show (0 : Rat) ≤ 1; decide |
| 220 | | succ k ih => exact Rat.mul_nonneg ih hx |
| 221 | |
| 222 | theorem rPow_pos {x : Rat} (hx : 0 < x) (n : Nat) : 0 < rPow x n := by |
| 223 | induction n with |
| 224 | | zero => show (0 : Rat) < 1; decide |
| 225 | | succ k ih => exact Rat.mul_pos ih hx |
| 226 | |
| 227 | theorem rPow_mul (x y : Rat) (n : Nat) : rPow (x * y) n = rPow x n * rPow y n := by |
| 228 | induction n with |
| 229 | | zero => simp [rPow] |
| 230 | | succ k ih => |
| 231 | simp only [rPow, ih] |
| 232 | rw [Rat.mul_assoc, ← Rat.mul_assoc (rPow y k), Rat.mul_comm (rPow y k) x, Rat.mul_assoc, ← Rat.mul_assoc] |
| 233 | |
| 234 | /-- Bernoulli inequality over exact rationals: for `e ≥ 0`, `1 + n * e ≤ (1 + e)^n`. -/ |
| 235 | theorem bernoulli_rat {e : Rat} (he : 0 ≤ e) (n : Nat) : |
| 236 | 1 + (n : Rat) * e ≤ rPow (1 + e) n := by |
| 237 | induction n with |
| 238 | | zero => |
| 239 | change 1 + (0 : Rat) * e ≤ 1 |
| 240 | rw [Rat.zero_mul, Rat.add_zero] |
| 241 | exact Rat.le_refl |
| 242 | | succ k ih => |
| 243 | simp only [rPow] |
| 244 | have h1e : 0 ≤ 1 + e := by |
| 245 | have h01 : (0 : Rat) ≤ 1 := by decide |
| 246 | have h := rat_add_le_add h01 he |
| 247 | rwa [Rat.zero_add] at h |
| 248 | have hStep : (1 + (k : Rat) * e) * (1 + e) ≤ rPow (1 + e) k * (1 + e) := |
| 249 | Rat.mul_le_mul_of_nonneg_right ih h1e |
| 250 | have hQuad : 1 + ((k + 1 : Nat) : Rat) * e ≤ (1 + (k : Rat) * e) * (1 + e) := by |
| 251 | have hNat : ((k + 1 : Nat) : Rat) = (k : Rat) + 1 := by simp [Rat.natCast_add] |
| 252 | rw [hNat, Rat.add_mul, Rat.one_mul] |
| 253 | rw [Rat.mul_add, Rat.mul_one, Rat.add_mul, Rat.one_mul] |
| 254 | have hk0 : (0 : Rat) ≤ (k : Rat) := Rat.natCast_nonneg |
| 255 | have hke : 0 ≤ (k : Rat) * e * e := |
| 256 | Rat.mul_nonneg (Rat.mul_nonneg hk0 he) he |
| 257 | have hL : 1 + ((k : Rat) * e + e) = (1 + (k : Rat) * e + e) + 0 := by |
| 258 | rw [Rat.add_zero, Rat.add_assoc] |
| 259 | have hR : 1 + (k : Rat) * e + (e + (k : Rat) * e * e) = |
| 260 | (1 + (k : Rat) * e + e) + (k : Rat) * e * e := by |
| 261 | rw [← Rat.add_assoc] |
| 262 | rw [hL, hR] |
| 263 | exact Rat.add_le_add_left.mpr hke |
| 264 | exact Rat.le_trans hQuad hStep |
| 265 | |
| 266 | /-- Archimedean property for exact rationals: for any `B` and `e > 0`, `∃ N, B < N * e`. -/ |
| 267 | theorem exists_nat_mul_gt (B e : Rat) (he : 0 < e) : ∃ N : Nat, B < (N : Rat) * e := by |
| 268 | let Q : Rat := B / e |
| 269 | let N : Nat := Int.toNat (Q.num / (Q.den : Int)) + 2 |
| 270 | refine ⟨N, ?_⟩ |
| 271 | have hQlt : Q < (N : Rat) := by |
| 272 | have hdenPos : (0 : Int) < (Q.den : Int) := Int.natCast_pos.mpr Q.den_pos |
| 273 | have hdiv : Q.num < (Q.num / (Q.den : Int) + 1) * (Q.den : Int) := by |
| 274 | have hrem := Int.emod_lt_of_pos Q.num hdenPos |
| 275 | have hEq : (Q.den : Int) * (Q.num / (Q.den : Int)) + Q.num % (Q.den : Int) = Q.num := |
| 276 | Int.mul_ediv_add_emod Q.num (Q.den : Int) |
| 277 | have hComm : (Q.num / (Q.den : Int) + 1) * (Q.den : Int) = |
| 278 | (Q.den : Int) * (Q.num / (Q.den : Int)) + (Q.den : Int) := by |
| 279 | rw [Int.add_mul, Int.one_mul, Int.mul_comm] |
| 280 | omega |
| 281 | have hNge : (Q.num / (Q.den : Int) + 1) ≤ (N : Int) := by |
| 282 | dsimp [N] |
| 283 | omega |
| 284 | have hNumLt : Q.num < (N : Int) * (Q.den : Int) := by |
| 285 | have hMul := Int.mul_le_mul_of_nonneg_right hNge (Int.le_of_lt hdenPos) |
| 286 | omega |
| 287 | rw [Rat.lt_iff] |
| 288 | change Q.num * ((N : Rat).den : Int) < (N : Rat).num * (Q.den : Int) |
| 289 | have hNd : (N : Rat).den = 1 := rfl |
| 290 | have hNn : (N : Rat).num = (N : Int) := rfl |
| 291 | rw [hNd, hNn] |
| 292 | simpa using hNumLt |
| 293 | have hMul := Rat.mul_lt_mul_of_pos_right hQlt he |
| 294 | have hEq : Q * e = B := by |
| 295 | dsimp [Q] |
| 296 | rw [Rat.div_def, Rat.mul_assoc, Rat.inv_mul_cancel _ (Rat.ne_of_gt he), Rat.mul_one] |
| 297 | rwa [hEq] at hMul |
| 298 | |
| 299 | -- ============================================================================ |
| 300 | -- Theorem 1 & Negative Control: Exact Gauge-Invariance Closure of CentralObs ASTs |
| 301 | -- ============================================================================ |
| 302 | |
| 303 | inductive ObsAst (P : Type) where |
| 304 | | prim : P → ObsAst P |
| 305 | | chi1 : ObsAst P → ObsAst P |
| 306 | | sq : ObsAst P → ObsAst P |
| 307 | | sub : ObsAst P → ObsAst P → ObsAst P |
| 308 | | add : ObsAst P → ObsAst P → ObsAst P |
| 309 | | mul : ObsAst P → ObsAst P → ObsAst P |
| 310 | | ratio : ObsAst P → ObsAst P → ObsAst P |
| 311 | deriving Repr |
| 312 | |
| 313 | def evalAst {Cfg P : Type} (primEval : P → Cfg → Rat) : ObsAst P → Cfg → Rat |
| 314 | | .prim p , U => primEval p U |
| 315 | | .chi1 a , U => 4 * (evalAst primEval a U * evalAst primEval a U) - 1 |
| 316 | | .sq a , U => evalAst primEval a U * evalAst primEval a U |
| 317 | | .sub a b , U => evalAst primEval a U - evalAst primEval b U |
| 318 | | .add a b , U => evalAst primEval a U + evalAst primEval b U |
| 319 | | .mul a b , U => evalAst primEval a U * evalAst primEval b U |
| 320 | | .ratio a b , U => evalAst primEval a U / evalAst primEval b U |
| 321 | |
| 322 | theorem ast_gauge_invariant {G Cfg P : Type} |
| 323 | (gAct : G → Cfg → Cfg) |
| 324 | (primEval : P → Cfg → Rat) |
| 325 | (hPrim : ∀ p g U, primEval p (gAct g U) = primEval p U) |
| 326 | (e : ObsAst P) (g : G) (U : Cfg) : |
| 327 | evalAst primEval e (gAct g U) = evalAst primEval e U := by |
| 328 | induction e with |
| 329 | | prim p => exact hPrim p g U |
| 330 | | chi1 a iha => simp [evalAst, iha] |
| 331 | | sq a iha => simp [evalAst, iha] |
| 332 | | sub a b iha ihb => simp [evalAst, iha, ihb] |
| 333 | | add a b iha ihb => simp [evalAst, iha, ihb] |
| 334 | | mul a b iha ihb => simp [evalAst, iha, ihb] |
| 335 | | ratio a b iha ihb => simp [evalAst, iha, ihb] |
| 336 | |
| 337 | theorem raw_link_not_gauge_invariant : |
| 338 | ∃ (gAct : Bool → Rat → Rat) (primEval : Unit → Rat → Rat) (g : Bool) (U : Rat), |
| 339 | evalAst primEval (.prim ()) (gAct g U) ≠ evalAst primEval (.prim ()) U := by |
| 340 | refine ⟨fun b x => if b then -x else x, fun _ x => x, true, 1, ?_⟩ |
| 341 | decide |
| 342 | |
| 343 | -- ============================================================================ |
| 344 | -- Theorem 2: UFBI Contraction -> Exponential Decay of Connected Covariance |
| 345 | -- ============================================================================ |
| 346 | |
| 347 | theorem ufbi_implies_connected_clustering {α : Type} |
| 348 | (collars : List α) |
| 349 | (w A condB : α → Rat) (M C q : Rat) (d : Nat) |
| 350 | (hw0 : ∀ i ∈ collars, 0 ≤ w i) |
| 351 | (hw1 : listSum (collars.map w) = 1) |
| 352 | (_hM0 : 0 ≤ M) |
| 353 | (hA : ∀ i ∈ collars, rAbs (A i) ≤ M) |
| 354 | (hUFBI : ∀ i ∈ collars, ∀ j ∈ collars, rAbs (condB i - condB j) ≤ C * rPow q d) : |
| 355 | rAbs (listSum (collars.map (fun i => |
| 356 | w i * A i * (condB i - listSum (collars.map (fun j => w j * condB j)))))) ≤ |
| 357 | M * (C * rPow q d) := by |
| 358 | let meanB : Rat := listSum (collars.map (fun j => w j * condB j)) |
| 359 | have hOsc : ∀ i ∈ collars, rAbs (condB i - meanB) ≤ C * rPow q d := by |
| 360 | intro i hi |
| 361 | have hId : condB i - meanB = |
| 362 | listSum (collars.map (fun j => w j * (condB i - condB j))) := by |
| 363 | have h1 : collars.map (fun j => w j * (condB i - condB j)) = |
| 364 | collars.map (fun j => w j * condB i - w j * condB j) := by |
| 365 | apply List.map_congr_left |
| 366 | intro j _ |
| 367 | exact rat_mul_sub (w j) (condB i) (condB j) |
| 368 | rw [h1, listSum_sub, listSum_mul_const, hw1, Rat.one_mul] |
| 369 | rw [hId] |
| 370 | have hAbs := listSum_abs_le (collars.map (fun j => w j * (condB i - condB j))) |
| 371 | rw [List.map_map] at hAbs |
| 372 | have hLe : listSum (collars.map (rAbs ∘ fun j => w j * (condB i - condB j))) ≤ |
| 373 | listSum (collars.map (fun j => w j * (C * rPow q d))) := by |
| 374 | apply listSum_le_listSum |
| 375 | intro j hj |
| 376 | simp only [Function.comp] |
| 377 | rw [rAbs_mul, rAbs_of_nonneg (hw0 j hj)] |
| 378 | exact Rat.mul_le_mul_of_nonneg_left (hUFBI i hi j hj) (hw0 j hj) |
| 379 | have hEnd : listSum (collars.map (fun j => w j * (C * rPow q d))) = C * rPow q d := by |
| 380 | rw [listSum_mul_const, hw1, Rat.one_mul] |
| 381 | exact Rat.le_trans hAbs (hEnd ▸ hLe) |
| 382 | have hTop := listSum_abs_le (collars.map (fun i => w i * A i * (condB i - meanB))) |
| 383 | rw [List.map_map] at hTop |
| 384 | have hBound : listSum (collars.map (rAbs ∘ fun i => w i * A i * (condB i - meanB))) ≤ |
| 385 | listSum (collars.map (fun i => w i * (M * (C * rPow q d)))) := by |
| 386 | apply listSum_le_listSum |
| 387 | intro i hi |
| 388 | simp only [Function.comp] |
| 389 | rw [rAbs_mul, rAbs_mul, rAbs_of_nonneg (hw0 i hi), Rat.mul_assoc] |
| 390 | apply Rat.mul_le_mul_of_nonneg_left _ (hw0 i hi) |
| 391 | have h1 : rAbs (A i) * rAbs (condB i - meanB) ≤ rAbs (A i) * (C * rPow q d) := |
| 392 | Rat.mul_le_mul_of_nonneg_left (hOsc i hi) (rAbs_nonneg (A i)) |
| 393 | have hCQ0 : 0 ≤ C * rPow q d := Rat.le_trans (rAbs_nonneg _) (hOsc i hi) |
| 394 | have h2 : rAbs (A i) * (C * rPow q d) ≤ M * (C * rPow q d) := |
| 395 | Rat.mul_le_mul_of_nonneg_right (hA i hi) hCQ0 |
| 396 | exact Rat.le_trans h1 h2 |
| 397 | have hFin : listSum (collars.map (fun i => w i * (M * (C * rPow q d)))) = M * (C * rPow q d) := by |
| 398 | rw [listSum_mul_const, hw1, Rat.one_mul] |
| 399 | exact Rat.le_trans hTop (hFin ▸ hBound) |
| 400 | |
| 401 | -- ============================================================================ |
| 402 | -- Theorem 3 & Negative Control: Exponential Decay -> Strict Spectral Mass Gap |
| 403 | -- ============================================================================ |
| 404 | |
| 405 | theorem exponential_decay_implies_spectral_gap {α : Type} |
| 406 | (modes : List α) |
| 407 | (c lam : α → Rat) (C q : Rat) |
| 408 | (hqPos : 0 < q) |
| 409 | (hc : ∀ k ∈ modes, 0 ≤ c k) |
| 410 | (hlam : ∀ k ∈ modes, 0 ≤ lam k) |
| 411 | (hDecay : ∀ t : Nat, listSum (modes.map (fun k => c k * rPow (lam k) t)) ≤ C * rPow q t) |
| 412 | (k₀ : α) (hk0 : k₀ ∈ modes) (hck0 : 0 < c k₀) : |
| 413 | lam k₀ ≤ q := by |
| 414 | by_cases hLe : lam k₀ ≤ q |
| 415 | · exact hLe |
| 416 | · exfalso |
| 417 | have hGt : q < lam k₀ := Rat.not_le.mp hLe |
| 418 | let r : Rat := lam k₀ / q |
| 419 | let e : Rat := r - 1 |
| 420 | have hrGt1 : 1 < r := by |
| 421 | dsimp [r] |
| 422 | have h1 := Rat.mul_lt_mul_of_pos_right hGt (Rat.inv_pos.mpr hqPos) |
| 423 | rw [Rat.mul_inv_cancel _ (Rat.ne_of_gt hqPos)] at h1 |
| 424 | simpa [Rat.div_def] using h1 |
| 425 | have hePos : 0 < e := by |
| 426 | dsimp [e] |
| 427 | have h1 := Rat.add_lt_add_right (c := -1) |>.mpr hrGt1 |
| 428 | simpa [Rat.sub_eq_add_neg, Rat.add_neg_cancel] using h1 |
| 429 | have hBound : ∀ t : Nat, c k₀ * rPow r t ≤ C := by |
| 430 | intro t |
| 431 | have hSingle : c k₀ * rPow (lam k₀) t ≤ |
| 432 | listSum (modes.map (fun k => c k * rPow (lam k) t)) := |
| 433 | single_le_listSum modes (fun k => c k * rPow (lam k) t) |
| 434 | (fun k hk => Rat.mul_nonneg (hc k hk) (rPow_nonneg (hlam k hk) t)) k₀ hk0 |
| 435 | have hLeC : c k₀ * rPow (lam k₀) t ≤ C * rPow q t := Rat.le_trans hSingle (hDecay t) |
| 436 | have hqtPos : 0 < rPow q t := rPow_pos hqPos t |
| 437 | have hMul := Rat.mul_le_mul_of_nonneg_right hLeC (Rat.le_of_lt (Rat.inv_pos.mpr hqtPos)) |
| 438 | have hRhs : C * rPow q t * (rPow q t)⁻¹ = C := by |
| 439 | rw [Rat.mul_assoc, Rat.mul_inv_cancel _ (Rat.ne_of_gt hqtPos), Rat.mul_one] |
| 440 | have hPowDiv : rPow (lam k₀) t * (rPow q t)⁻¹ = rPow r t := by |
| 441 | have h1 : rPow r t * rPow q t = rPow (lam k₀) t := by |
| 442 | rw [← rPow_mul] |
| 443 | congr 1 |
| 444 | dsimp [r] |
| 445 | rw [Rat.div_def, Rat.mul_assoc, Rat.inv_mul_cancel _ (Rat.ne_of_gt hqPos), Rat.mul_one] |
| 446 | rw [← h1, Rat.mul_assoc, Rat.mul_inv_cancel _ (Rat.ne_of_gt hqtPos), Rat.mul_one] |
| 447 | rw [Rat.mul_assoc, hPowDiv, hRhs] at hMul |
| 448 | exact hMul |
| 449 | obtain ⟨N, hN⟩ := exists_nat_mul_gt C (c k₀ * e) (Rat.mul_pos hck0 hePos) |
| 450 | have hBern : 1 + (N : Rat) * e ≤ rPow r N := by |
| 451 | have h1e : 1 + e = r := by |
| 452 | dsimp [e] |
| 453 | rw [Rat.sub_eq_add_neg, Rat.add_comm, Rat.add_assoc, Rat.neg_add_cancel, Rat.add_zero] |
| 454 | rw [← h1e] |
| 455 | exact bernoulli_rat (Rat.le_of_lt hePos) N |
| 456 | have hStep1 : (N : Rat) * (c k₀ * e) < c k₀ * (1 + (N : Rat) * e) := by |
| 457 | rw [Rat.mul_add, Rat.mul_one] |
| 458 | have hComm : (N : Rat) * (c k₀ * e) = c k₀ * ((N : Rat) * e) := by |
| 459 | rw [← Rat.mul_assoc, Rat.mul_comm (N : Rat) (c k₀), Rat.mul_assoc] |
| 460 | rw [hComm] |
| 461 | have h1 := Rat.add_lt_add_right (c := c k₀ * ((N : Rat) * e)) |>.mpr hck0 |
| 462 | simpa [Rat.zero_add] using h1 |
| 463 | have hStep2 : c k₀ * (1 + (N : Rat) * e) ≤ c k₀ * rPow r N := |
| 464 | Rat.mul_le_mul_of_nonneg_left hBern (Rat.le_of_lt hck0) |
| 465 | have hBig : C < c k₀ * rPow r N := rat_lt_of_lt_of_le (rat_lt_trans hN hStep1) hStep2 |
| 466 | exact Rat.not_le.mpr hBig (hBound N) |
| 467 | |
| 468 | theorem massless_mode_violates_decay (C q : Rat) (hqPos : 0 < q) (hqLt1 : q < 1) : |
| 469 | ¬ (∀ t : Nat, (1 : Rat) * rPow 1 t ≤ C * rPow q t) := by |
| 470 | intro hDec |
| 471 | have hGap := exponential_decay_implies_spectral_gap [()] (fun _ => 1) (fun _ => 1) C q hqPos |
| 472 | (fun _ _ => by decide) (fun _ _ => by decide) |
| 473 | (fun t => by |
| 474 | simp only [List.map, listSum, Rat.add_zero] |
| 475 | exact hDec t) () (by simp) (by decide) |
| 476 | exact Rat.not_le.mpr hqLt1 hGap |
| 477 | |
| 478 | -- ============================================================================ |
| 479 | -- Theorem 4: Check #1 UV Divergence Floor for Unrestricted All-Site TV |
| 480 | -- ============================================================================ |
| 481 | |
| 482 | theorem schur_uv_divergence_unbounded (c B : Rat) (hc : 0 < c) : |
| 483 | ∃ L : Nat, B < c * (L : Rat) := by |
| 484 | obtain ⟨L, hL⟩ := exists_nat_mul_gt B c hc |
| 485 | exact ⟨L, by rwa [Rat.mul_comm]⟩ |
| 486 | |
| 487 | end UfbiMassGap |
| 488 | |
| 489 | #print axioms UfbiMassGap.ast_gauge_invariant |
| 490 | #print axioms UfbiMassGap.raw_link_not_gauge_invariant |
| 491 | #print axioms UfbiMassGap.ufbi_implies_connected_clustering |
| 492 | #print axioms UfbiMassGap.exponential_decay_implies_spectral_gap |
| 493 | #print axioms UfbiMassGap.massless_mode_violates_decay |
| 494 | #print axioms UfbiMassGap.schur_uv_divergence_unbounded |