Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.Bid.Source |
| 2 | import YM.Extraction.Round |
| 3 | import YM.Maxwell.Exterior |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Linearized plaquette sampler |
| 8 | |
| 9 | Work on the infinite cover. Each unit square circulation of the integrated potential |
| 10 | is a difference of two iterated averages (no interchange of integrals needed). |
| 11 | Shrink the grid after extracting the highest degree by homogeneity. The different |
| 12 | orders of integration in the two averages become immaterial in the zero mesh limit. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Work.G03 |
| 18 | open Lattice Labels RG Source Source.Drops Filter Set Function MeasureTheory |
| 19 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 20 | |
| 21 | variable {G : Gauge} {k d : ℕ} |
| 22 | |
| 23 | def castPos (x : Cover) : E4 := WithLp.toLp 2 fun i => (x i : ℝ) |
| 24 | |
| 25 | theorem castPos_step (x : Cover) (i : Axis) : castPos (x + step i) = castPos x + basis i := by |
| 26 | apply PiLp.ext; intro j |
| 27 | change (((x + step i : Cover) j : ℤ) : ℝ) = ((x j : ℤ) : ℝ) + basis i j |
| 28 | by_cases h : j = i <;> simp [h] |
| 29 | |
| 30 | def edgeInt (A : Taylor G k) (i : Axis) (x : E4) := ∫ s : ℝ in 0..1, A.value i (x + s • basis i) |
| 31 | |
| 32 | theorem continuous_value (A : Taylor G k) (i : Axis) : Continuous (A.value i) := |
| 33 | (Tensor.diag_smooth (A.val i) ∞).continuous |
| 34 | |
| 35 | theorem continuous_grad (A : Taylor G k) (i j : Axis) : |
| 36 | Continuous (Maxwell.grad i (A.value j)) := by |
| 37 | refine (contDiff_iff_contDiffAt.mpr fun x => Maxwell.grad_smooth (f:=A.value j) (m:=1) (n:=∞) i ?_ ?_).continuous |
| 38 | · exact (Tensor.diag_smooth _ ∞).contDiffAt |
| 39 | · exact WithTop.coe_le_coe.mpr (le_top (a := (1+1 : ℕ∞))) |
| 40 | |
| 41 | theorem grad_scale (A : Taylor G k) (i j : Axis) (v : E4) (t : ℝ) : |
| 42 | Maxwell.grad i (A.value j) (t • v) = t^k • Maxwell.grad i (A.value j) v := by |
| 43 | unfold Maxwell.grad Analysis.D Taylor.value |
| 44 | simp only [Tensor.differential_diagonal _ (A.property.1 j)] |
| 45 | change (k+1) • Tensor.diagonal _ (t • v) = t^k • ((k+1) • Tensor.diagonal _ v) |
| 46 | rw [Tensor.homogeneous, smul_comm] |
| 47 | |
| 48 | def meanPartial (A : Taylor G k) (i j : Axis) (x : E4) (t : ℝ) := |
| 49 | ∫ s : ℝ in 0..1, ∫ r : ℝ in 0..1, |
| 50 | Maxwell.grad i (A.value j) (x + (t*s) • basis j + (t*r) • basis i) |
| 51 | |
| 52 | def net (A : Taylor G k) (i j : Axis) (x : E4) (t : ℝ) := |
| 53 | meanPartial A i j x t - meanPartial A j i x t |
| 54 | |
| 55 | theorem continuous_partial (A : Taylor G k) (i j : Axis) : |
| 56 | Continuous fun p : E4 × ℝ => meanPartial A i j p.1 p.2 := by |
| 57 | unfold meanPartial |
| 58 | apply intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' |
| 59 | unfold uncurry |
| 60 | apply intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' |
| 61 | exact (continuous_grad A i j).comp (by fun_prop) |
| 62 | |
| 63 | theorem continuous_net (A : Taylor G k) (i j : Axis) : |
| 64 | Continuous fun p : E4 × ℝ => net A i j p.1 p.2 := |
| 65 | (continuous_partial A i j).sub (continuous_partial A j i) |
| 66 | |
| 67 | theorem net_at_zero (A : Taylor G k) (i j : Axis) (x : E4) : |
| 68 | net A i j x 0 = Tensor.diagonal (Maxwell.takeCurl A i j) x := by |
| 69 | rw [Maxwell.takeCurl_diag] |
| 70 | simp [net, meanPartial] |
| 71 | |
| 72 | theorem scale_partial (A : Taylor G k) (i j : Axis) (x : E4) (t : ℝ) : |
| 73 | meanPartial A i j (t • x) t = t^k • meanPartial A i j x 1 := by |
| 74 | have he (s r : ℝ) : t • x + (t*s) • basis j + (t*r) • basis i = |
| 75 | t • (x + s • basis j + r • basis i) := by simp only [smul_add, smul_smul] |
| 76 | simp only [meanPartial, he, grad_scale, intervalIntegral.integral_smul, one_mul] |
| 77 | |
| 78 | theorem scale_net (A : Taylor G k) (i j : Axis) (x : E4) (t : ℝ) : |
| 79 | net A i j (t • x) t = t^k • net A i j x 1 := by rw [net, scale_partial, scale_partial, net, smul_sub] |
| 80 | |
| 81 | theorem partial_eq_diff (A : Taylor G k) (i j : Axis) (x : E4) : |
| 82 | meanPartial A i j x 1 = edgeInt A j (x + basis i) - edgeInt A j x := by |
| 83 | have hdiff (z : E4) : DifferentiableAt ℝ (A.value j) z := |
| 84 | (Tensor.diag_smooth (A.val j) ∞).differentiable (by simp) z |
| 85 | have hf (z : E4) (r : ℝ) : HasDerivAt (fun u : ℝ => A.value j (z + u • basis i)) |
| 86 | (Maxwell.grad i (A.value j) (z + r • basis i)) r := by |
| 87 | have hu : HasDerivAt (fun u : ℝ => z + u • basis i) (basis i) r := by |
| 88 | simpa only [Pi.add_apply, one_smul, zero_add] using! (hasDerivAt_const r z).add ((hasDerivAt_id' r).smul_const (basis i)) |
| 89 | exact (hdiff _).hasFDerivAt.comp_hasDerivAt r hu |
| 90 | have he (s : ℝ) : (∫ r : ℝ in 0..1, Maxwell.grad i (A.value j) (x + s • basis j + r • basis i)) = |
| 91 | A.value j (x + basis i + s • basis j) - A.value j (x + s • basis j) := by |
| 92 | rw [intervalIntegral.integral_eq_sub_of_hasDerivAt (fun u _ => hf (x + s • basis j) u)] |
| 93 | · simp [add_right_comm] |
| 94 | exact ((continuous_grad A i j).comp (by fun_prop)).intervalIntegrable .. |
| 95 | have ht (z : E4) : IntervalIntegrable (fun s : ℝ => A.value j (z + s • basis j)) volume 0 1 := |
| 96 | ((continuous_value A j).comp (by fun_prop)).intervalIntegrable .. |
| 97 | simp_rw [meanPartial, one_mul, he, intervalIntegral.integral_sub (ht _) (ht _), edgeInt] |
| 98 | |
| 99 | theorem square_sum (f : Edge Cover → G.Color) (x : Cover) (i j : Axis) : |
| 100 | Exterior.linkSum f x (square i j) = f (x,i) + f (x+step i,j) - f (x+step j,i) - f (x,j) := by |
| 101 | have he : x + step i + step j - step i = x + step j := by abel |
| 102 | have ht : x + step i + step j + -step i - step j = x := by abel |
| 103 | simp only [Exterior.linkSum, square, Step.used, Step.vec, negDir, posDir, |
| 104 | Bool.false_eq_true, ↓reduceIte, add_zero, he, ht] |
| 105 | abel |
| 106 | |
| 107 | theorem edge_sum (A : Snap G d) (x : Cover) (i : Axis) : |
| 108 | access A (x,i) = ∑ k ∈ Finset.range (d-1), edgeInt (expand d A k) i (castPos x) := by |
| 109 | unfold access partConnection potential |
| 110 | simp only [one_smul] |
| 111 | apply intervalIntegral.integral_finsetSum |
| 112 | intro k hk |
| 113 | exact ((continuous_value (expand d A k) i).comp (by fun_prop)).intervalIntegrable .. |
| 114 | |
| 115 | theorem glow_sums {A : Snap G d} (h : ∀ b, glow A b = 0) (x : Cover) {i j : Axis} (hi : i < j) : |
| 116 | ∑ k ∈ Finset.range (d-1), net (expand d A k) i j (castPos x) 1 = 0 := by |
| 117 | let b : Slot := ⟨route 0 x 1,⟨(i,j),hi⟩⟩ |
| 118 | have he : b.offset = x := route_end .. |
| 119 | have hh := h b |
| 120 | unfold glow at hh |
| 121 | rw [he] at hh |
| 122 | change Exterior.linkSum _ _ (square i j) = 0 at hh |
| 123 | rw [square_sum] at hh |
| 124 | simp only [edge_sum, castPos_step] at hh |
| 125 | simp_rw [net, partial_eq_diff, Finset.sum_sub_distrib] |
| 126 | rw [← hh]; abel |
| 127 | |
| 128 | theorem net_zero (i j : Axis) (x : E4) (t : ℝ) : net (0 : Taylor G k) i j x t = 0 := by |
| 129 | unfold net meanPartial Maxwell.grad Analysis.D |
| 130 | change (∫ s : ℝ in 0..1, ∫ r : ℝ in 0..1, fderiv ℝ (fun _ : E4 => (0:G.Color)) _ _) - |
| 131 | (∫ s : ℝ in 0..1, ∫ r : ℝ in 0..1, fderiv ℝ (fun _ : E4 => (0:G.Color)) _ _) = _ |
| 132 | simp |
| 133 | |
| 134 | /-- If the zero-mesh antisymmetric partials vanish even just in plaquette order, the |
| 135 | homogeneous radial variable is zero. -/ |
| 136 | theorem zero_of_zero_partials (A : Taylor G k) |
| 137 | (h : ∀ (i j : Axis) (x : E4), i < j → net A i j x 0 = 0) : A = 0 := by |
| 138 | have hc (i j : Axis) (x : E4) : Tensor.diagonal (Maxwell.takeCurl A i j) x = 0 := by |
| 139 | rw [← net_at_zero] |
| 140 | rcases lt_trichotomy i j with h'|h'|h' |
| 141 | · exact h i j x h' |
| 142 | · simp [net,h'] |
| 143 | · have hh := h j i x h' |
| 144 | rw [net, ← neg_sub, ← net, hh, neg_zero] |
| 145 | apply Taylor.value_ext; funext i x |
| 146 | nth_rw 1 [← Maxwell.potential_recover A] |
| 147 | rw [Maxwell.contracted_diag] |
| 148 | simp only [hc, smul_zero, Finset.sum_const_zero] |
| 149 | rfl |
| 150 | |
| 151 | def index (t : ℝ) (x : E4) : Cover := Extraction.address t (points (n:=1) fun _ => x) 0 |
| 152 | |
| 153 | theorem shrink_grid (x : E4) : Tendsto (fun t : ℝ => t • castPos (index t x)) (𝓝[>] 0) (𝓝 x) := by |
| 154 | let y := points (n:=1) fun _ => x |
| 155 | have hh : Tendsto (fun t : ℝ => Extraction.tag t (Extraction.address t y)) (𝓝[>] 0) (𝓝 y) := by |
| 156 | rw [tendsto_iff_dist_tendsto_zero] |
| 157 | refine squeeze_zero' (Eventually.of_forall (fun _ => dist_nonneg)) |
| 158 | (eventually_nhdsWithin_of_forall (fun t ht => Extraction.approximate (x:=y) ht)) ?_ |
| 159 | have ht : Tendsto id (𝓝[>] (0:ℝ)) (𝓝 0) := tendsto_id.mono_left nhdsWithin_le_nhds |
| 160 | simpa using ht.const_mul (4*(1:ℕ) : ℝ) |
| 161 | exact ((PiLp.continuous_apply _ _ (0 : Fin 1)).tendsto y).comp hh |
| 162 | |
| 163 | /-- Rescale term `l` by `t^k` (pay `t^(k-l)` after homogeneity) and let the mesh go to zero. -/ |
| 164 | theorem top_term (A : Jet G) (k : ℕ) |
| 165 | (h : ∀ (x : Cover) (i j : Axis), i < j → ∑ l ∈ Finset.range (k+1), net (A l) i j (castPos x) 1 = 0) : A k = 0 := by |
| 166 | apply zero_of_zero_partials |
| 167 | intro i j x hij |
| 168 | let f (p : E4 × ℝ) := ∑ l ∈ Finset.range (k+1), p.2^(k-l) • net (A l) i j p.1 p.2 |
| 169 | have he (t : ℝ) (y : Cover) : f (t • castPos y, t) = 0 := calc |
| 170 | _ = ∑ l ∈ Finset.range (k+1), t^k • net (A l) i j (castPos y) 1 := by |
| 171 | unfold f; apply Finset.sum_congr rfl |
| 172 | intro l hl; rw [scale_net, smul_smul, ← pow_add, Nat.sub_add_cancel (by simpa only [Finset.mem_range, Nat.lt_succ_iff] using hl)] |
| 173 | _ = 0 := by rw [← Finset.smul_sum, h y i j hij, smul_zero] |
| 174 | have hx : f (x,0) = net (A k) i j x 0 := by |
| 175 | unfold f |
| 176 | rw [Finset.sum_range_succ, Finset.sum_eq_zero] |
| 177 | · simp |
| 178 | intro l hl; rw [zero_pow (Nat.sub_ne_zero_of_lt (Finset.mem_range.mp hl)), zero_smul] |
| 179 | have hcf : Continuous f := by |
| 180 | apply continuous_finsetSum |
| 181 | exact fun l _ => (continuous_snd.pow _).smul (continuous_net ..) |
| 182 | have ht : Tendsto (fun t : ℝ => f (t • castPos (index t x),t)) (𝓝[>] 0) (𝓝 (f (x,0))) := |
| 183 | (hcf.tendsto _).comp ((shrink_grid x).prodMk_nhds (tendsto_id.mono_left nhdsWithin_le_nhds)) |
| 184 | simp only [he, hx] at ht |
| 185 | exact tendsto_nhds_unique ht tendsto_const_nhds |
| 186 | |
| 187 | theorem all_terms (A : Jet G) (k : ℕ) |
| 188 | (h : ∀ (x : Cover) (i j : Axis), i < j → ∑ l ∈ Finset.range k, net (A l) i j (castPos x) 1 = 0) : |
| 189 | ∀ l < k, A l = 0 := by |
| 190 | induction k with |
| 191 | | zero => simp |
| 192 | | succ k ih => |
| 193 | have hk := top_term A k h |
| 194 | intro l hl |
| 195 | obtain hl|rfl := (Nat.le_of_lt_succ hl).lt_or_eq |
| 196 | · apply ih ?_ l hl; simpa only [Finset.sum_range_succ, hk, net_zero, add_zero] using h |
| 197 | exact hk |
| 198 | |
| 199 | theorem detects_all (H : Hol G) (d : ℕ) (peg : Peg H d) (A : Snap G d) |
| 200 | (h : ∀ i, Blurb H d i A = 0) : A = 0 := by |
| 201 | simp only [peg.initial] at h |
| 202 | have he := all_terms (expand d A) (d-1) (fun x i j hij => glow_sums h x hij) |
| 203 | funext ⟨i,hi⟩ |
| 204 | simpa only [expand, dif_pos hi, Pi.zero_apply] using he i hi |
| 205 | |
| 206 | def kernel (H : Hol G) (d : ℕ) {m} (B : Fin m → Slot) : Submodule ℝ (Snap G d) := |
| 207 | ⨅ i, LinearMap.ker (Blurb H d (B i)).toLinearMap |
| 208 | |
| 209 | theorem mem_kernel (H : Hol G) (d : ℕ) {m} (B : Fin m → Slot) (A : Snap G d) : |
| 210 | A ∈ kernel H d B ↔ ∀ i, Blurb H d (B i) A = 0 := Submodule.mem_iInf _ |
| 211 | |
| 212 | theorem answer : YM.Bid.G03 := by |
| 213 | intro G H d peg |
| 214 | let r {m : ℕ} (B : Fin m → Slot) := Module.finrank ℝ (kernel H d B) |
| 215 | let s : Set ℕ := {k | ∃ (m : ℕ) (B : Fin m → Slot), r B = k} |
| 216 | obtain ⟨n,⟨m,B,rfl⟩,hmin⟩ := wellFounded_lt.has_min s ⟨_,0,Fin.elim0,rfl⟩ |
| 217 | refine ⟨m,B,fun A ha => detects_all H d peg A (fun b => ?_)⟩ |
| 218 | let B' : Fin (m+1) → Slot := Fin.cons b B |
| 219 | have hh : kernel H d B' ≤ kernel H d B := by |
| 220 | intro x hx; rw [mem_kernel] at hx ⊢; exact fun i => by simpa only [B', Fin.cons_succ] using hx i.succ |
| 221 | have he : kernel H d B = kernel H d B' := Eq.symm (hh.eq_of_not_lt (fun hl => |
| 222 | hmin (r B') ⟨_,B',rfl⟩ (Submodule.finrank_lt_finrank_of_lt hl))) |
| 223 | have hA : A ∈ kernel H d B' := he ▸ (mem_kernel ..).2 ha |
| 224 | exact (mem_kernel ..).1 hA 0 |
| 225 | |
| 226 | /- Degree checks without Peg: weights below 2 have nothing to sample; for d=2, |
| 227 | every positive plaquette sees the same oriented constant curl, independently of the walk. -/ |
| 228 | example (d : ℕ) (h : d < 2) (A : Snap G d) : A = 0 := by |
| 229 | funext i |
| 230 | have := i.isLt |
| 231 | omega |
| 232 | |
| 233 | example (A : Snap G 2) (b : Slot) : glow A b = |
| 234 | Tensor.diagonal (Maxwell.takeCurl (A ⟨0, by decide⟩) b.plaq.val.1 b.plaq.val.2) 0 := by |
| 235 | let p : Taylor G 0 := A ⟨0, by decide⟩ |
| 236 | let x := castPos b.offset |
| 237 | change glow A b = Tensor.diagonal (Maxwell.takeCurl p _ _) _ |
| 238 | rw [← net_at_zero, show net p b.plaq.val.1 b.plaq.val.2 0 0 = |
| 239 | net p b.plaq.val.1 b.plaq.val.2 x 1 by simpa using scale_net p b.plaq.val.1 b.plaq.val.2 x 0] |
| 240 | simp only [glow, square_sum, edge_sum, castPos_step, net, partial_eq_diff] |
| 241 | simp [expand, p, x]; abel |
| 242 | end YM.Work.G03 |