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.Next.MAXWELL.Current |
| 2 | import YM.Next.MAXWELL.Source |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Stress test regulator: source at a and observation off the source |
| 7 | |
| 8 | With true colors, and Bochner integration conventions in `Current` and |
| 9 | `Source`. Avoid extending the **products** of fields onto the diagonal. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Maxwell.Free |
| 14 | open Set Function Filter Tensor Analysis MeasureTheory |
| 15 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 16 | |
| 17 | variable {G : Gauge} {j : ℕ} |
| 18 | |
| 19 | section curl |
| 20 | variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 21 | |
| 22 | def exteriorD (p : Axis → E4 → F) : Field F := fun a b => grad a (p b) - grad b (p a) |
| 23 | |
| 24 | lemma grad_sum_f {s : Finset Axis} (f : Axis → E4 → F) {x : E4} (H : ∀ i ∈ s, DifferentiableAt ℝ (f i) x) (k : Axis) : |
| 25 | grad k (fun x => ∑ i ∈ s, f i x) x = ∑ i ∈ s, grad k (f i) x := by |
| 26 | unfold grad D |
| 27 | rw [fderiv_fun_sum H, sum_apply] |
| 28 | |
| 29 | lemma grad_dif {f g : E4 → F} {x} (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (k : Axis) : |
| 30 | grad k (f-g) x = grad k f x - grad k g x := by unfold grad D; rw [fderiv_sub hf hg]; rfl |
| 31 | |
| 32 | lemma exterior_closed {A : Axis → E4 → F} {U : Set E4} (H : ∀ i x, x ∈ U → ContDiffAt ℝ ∞ (A i) x) : |
| 33 | Bianchi U (exteriorD A) := by |
| 34 | refine ⟨fun a b x hx => (grad_smooth a (m := ∞) (H _ _ hx) (by simp)).sub |
| 35 | (grad_smooth _ (H _ _ hx) (by simp)),fun a b x _ => by simp [exteriorD],?_⟩ |
| 36 | intro a b c x hx |
| 37 | have hd (a b : Axis) : DifferentiableAt ℝ (grad a (A b)) x := |
| 38 | (grad_smooth a (m := ∞) (H _ _ hx) (by simp)).differentiableAt (by simp) |
| 39 | have ht (i a b : Axis) : grad a (grad b (A i)) x = grad b (grad a (A i)) x := grad_comm |
| 40 | ((H i x hx).of_le (show ((↑(2 : ℕ)) : WithTop ℕ∞) ≤ ∞ from WithTop.coe_le_coe.mpr le_top)) _ _ |
| 41 | unfold exteriorD |
| 42 | rw [grad_dif (hd b c) (hd c b), grad_dif (hd c a) (hd a c), grad_dif (hd a b) (hd b a), |
| 43 | ht c a b,ht b a c,ht a b c] |
| 44 | abel |
| 45 | |
| 46 | /-- Lie_v f = d i_v f here. -/ |
| 47 | def tangent (v : Drive) (f : Field F) (a : Axis) (x : E4) := ∑ b : Axis, v b x • f b a x |
| 48 | |
| 49 | def variation (v : Drive) (f : Field F) := exteriorD (tangent v f) |
| 50 | |
| 51 | lemma tangent_diff (v : Drive) (f : Field F) {x} (a : Axis) (H : Killing v) |
| 52 | (h : ∀ i l, ContDiffAt ℝ ∞ (f i l) x) : ContDiffAt ℝ ∞ (tangent v f a) x := |
| 53 | ContDiffAt.sum fun i _ => (H.diff _).contDiffAt.smul (h i a) |
| 54 | |
| 55 | lemma variation_closed (v : Drive) (f : Field F) {U : Set E4} (H : Killing v) (h : Bianchi U f) : |
| 56 | Bianchi U (variation v f) := exterior_closed fun a x hx => tangent_diff _ _ a H fun i l => h.smooth i l x hx |
| 57 | |
| 58 | end curl |
| 59 | |
| 60 | section regulator |
| 61 | |
| 62 | def opposite (q : E4 → ℝ) (i l : Axis) (b : Axis) := |
| 63 | (if i=b then grad l q else 0) - (if l=b then grad i q else 0) |
| 64 | |
| 65 | def cure (t : ℝ) (i l : Axis) : Field ℝ := exteriorD (opposite (soften t) i l) |
| 66 | |
| 67 | lemma cure_0 (i l : Axis) : cure 0 i l = fun a b => bareCurl a b i l := by rw [cure,soften_zero]; rfl |
| 68 | |
| 69 | lemma opp_grad_formula {t : ℝ} (b i l : Axis) {x : E4} (ht : ContDiffAt ℝ ∞ (soften t) x) (a : Axis) : |
| 70 | grad a (opposite (soften t) i l b) x = kr i b * grad a (grad l (soften t)) x - |
| 71 | kr l b * grad a (grad i (soften t)) x := by |
| 72 | have h (i k : Axis) : DifferentiableAt ℝ (if i=b then grad k (soften t) else 0) x := by |
| 73 | split_ifs |
| 74 | · exact (grad_smooth k (m := ∞) ht (by simp)).differentiableAt (by simp) |
| 75 | exact differentiableAt_const _ |
| 76 | rw [opposite, grad_dif (h i l) (h l i),kr_eq,kr_eq] |
| 77 | split_ifs <;> simp [grad,D] |
| 78 | |
| 79 | lemma cure_continuous (i l a b : Axis) {z : ℝ × E4} (h : z.2 ≠ 0) : |
| 80 | ContinuousAt (fun w : ℝ × E4 => cure w.1 i l a b w.2) z := by |
| 81 | let L (a c : Axis) (w : ℝ × E4) := grad a (opposite (soften w.1) i l c) w.2 |
| 82 | have hl (a c : Axis) : ContinuousAt (L a c) z := by |
| 83 | let H (a j : Axis) (w : ℝ × E4) := -2 * normal * basis a j * (w.1^2+‖w.2‖^2)⁻¹^2 + |
| 84 | 8 * normal * w.2 a * w.2 j * (w.1^2+‖w.2‖^2)⁻¹^3 |
| 85 | have hw (a j : Axis) : ContinuousAt (H a j) z := by |
| 86 | have ht : ContinuousAt (fun w : ℝ × E4 => (w.1^2+‖w.2‖^2)⁻¹) z := by |
| 87 | have hv := norm_pos_iff.mpr h |
| 88 | apply ContinuousAt.inv₀ |
| 89 | · fun_prop |
| 90 | positivity |
| 91 | unfold H; fun_prop |
| 92 | refine (((hw a l).const_mul (kr i c)).sub ((hw a i).const_mul (kr l c))).congr ?_ |
| 93 | filter_upwards [continuousAt_snd.eventually_ne h] with w hw |
| 94 | have hs : 0 < ‖w.2‖ := norm_pos_iff.mpr hw |
| 95 | have he : w.1^2+‖w.2‖^2 ≠ 0 := by positivity |
| 96 | have hc : ContDiffAt ℝ ∞ (soften w.1) w.2 := contDiffAt_const.mul |
| 97 | ((contDiffAt_const.add (contDiff_norm_sq ℝ).contDiffAt).inv he) |
| 98 | change kr i c * H a l w - kr l c * H a i w = _ |
| 99 | dsimp only [L]; rw [opp_grad_formula _ _ _ hc a,soften_second he,soften_second he] |
| 100 | exact (hl a b).sub (hl b a) |
| 101 | |
| 102 | lemma cure_law {t : ℝ} (ht : 0 < t) (i l : Axis) : Bianchi univ (cure t i l) := by |
| 103 | apply exterior_closed |
| 104 | intro a x _; unfold opposite; apply ContDiffAt.sub <;> split_ifs |
| 105 | all_goals first |
| 106 | | exact contDiffAt_const |
| 107 | | exact grad_smooth _ ((soften_diff ht).contDiffAt.of_le (m := ∞) le_top) (by simp) |
| 108 | |
| 109 | lemma cure_charge {t : ℝ} (ht : 0 < t) (i l : Axis) (b : Axis) (x : E4) : |
| 110 | divF (cure t i l) b x = kr l b * grad i (source t) x - kr i b * grad l (source t) x := by |
| 111 | let f := soften t |
| 112 | let A := opposite (soften t) i l |
| 113 | have H (x : E4) : ContDiffAt ℝ ω f x := (soften_diff ht).contDiffAt |
| 114 | have hs (a x) : ContDiffAt ℝ ω (A a) x := by |
| 115 | unfold A opposite |
| 116 | apply ContDiffAt.sub <;> split_ifs |
| 117 | all_goals first |
| 118 | | exact contDiffAt_const |
| 119 | | exact grad_smooth _ (H _) le_top |
| 120 | have hw (y : E4) : (∑ a : Axis, grad a (A a) y) = 0 := by |
| 121 | simp_rw [A, opp_grad_formula _ _ _ ((soften_diff ht).contDiffAt.of_le (m := ∞) le_top), |
| 122 | Finset.sum_sub_distrib, kr_eq,ite_mul] |
| 123 | simp [grad_comm ((soften_diff ht).contDiffAt.of_le (x:=y) le_top) i l] |
| 124 | have hu : (∑ a : Axis, grad a (grad b (A a)) x) = 0 := by |
| 125 | simp_rw [show ∀ a, grad a (grad b (A a)) x = grad b (grad a (A a)) x from fun a => grad_comm ((hs _ _).of_le le_top) a b] |
| 126 | rw [← grad_sum_f (fun i => grad i (A i)) (fun i _ => (grad_smooth _ (hs _ _) (m:=ω) le_top).differentiableAt (by simp)), |
| 127 | funext hw]; simp [grad,D] |
| 128 | have hk (a b) := (grad_smooth a (hs b x) (m := ω) le_top).differentiableAt (by simp) |
| 129 | have he (a) : grad a (cure t i l a b) x = grad a (grad a (A b)) x - grad a (grad b (A a)) x := |
| 130 | grad_dif (hk a b) (hk b a) _ |
| 131 | simp_rw [divF,he,Finset.sum_sub_distrib,hu,sub_zero] |
| 132 | change lap (A b) x = _ |
| 133 | have hp : A b = (kr i b • grad l (soften t)) + ((-kr l b) • grad i (soften t)) := by |
| 134 | unfold A opposite; simp only [kr_eq] |
| 135 | split_ifs <;> simp [sub_eq_add_neg] |
| 136 | have hD (i) : grad i (lap (soften t)) x = - grad i (source t) x := by rw [minus_lap ht,grad,D,fderiv_neg]; rfl |
| 137 | have hc (a) (z : ℝ) : lap (z • grad a (soften t)) x = z * (-grad a (source t) x) := by |
| 138 | have h := lap_linear (z • ContinuousLinearMap.id ℝ ℝ) (grad_smooth a (m := ω) (H x) le_top) |
| 139 | change lap (z • grad a (soften t)) x = z * lap (D (basis a) (soften t)) x at h |
| 140 | rw [h,lap_D]; |
| 141 | · rw [show D (basis a) (lap (soften t)) x = _ from hD a] |
| 142 | exact H x |
| 143 | rw [hp,lap_add (show ContDiffAt ℝ ω (kr i b • grad l (soften t)) x from (grad_smooth l (m := ω) (H x) le_top).const_smul (kr i b)) |
| 144 | (show ContDiffAt ℝ ω ((-kr l b) • grad i (soften t)) x from |
| 145 | (grad_smooth i (m := ω) (H x) le_top).const_smul (-kr l b)), hc,hc]; ring |
| 146 | |
| 147 | def regulated (t : ℝ) (x : E4) (i l : Axis) (c : G.ColorIndex) : Field G.Color := |
| 148 | fun a b y => cure t i l a b (y-x) • unitColor G c |
| 149 | |
| 150 | lemma reg_pulse {x y : E4} (hx : x ≠ y) (i l : Axis) (c : G.ColorIndex) (a b : Axis) : |
| 151 | pulse (omegaLeg c i l) x a b y = regulated 0 x i l c a b y := by |
| 152 | ext1 d |
| 153 | rw [← K_observe _ _ _ _ hx,K_symmetric _ _ hx,omega_K_eq _ _ _ _ _ _ hx.symm] |
| 154 | unfold regulated; rw [cure_0]; simp [unitPaint,mul_ite] |
| 155 | |
| 156 | lemma reg_cont (x : E4) (i l : Axis) (c : G.ColorIndex) (a b : Axis) {z : ℝ × E4} (hz : x ≠ z.2) : |
| 157 | ContinuousAt (fun w : ℝ × E4 => regulated w.1 x i l c a b w.2) z := by |
| 158 | have hw : ContinuousAt (fun w : ℝ × E4 => (w.1,w.2-x)) z := by fun_prop |
| 159 | exact ((cure_continuous i l a b (z := (z.1,z.2-x)) (sub_ne_zero.mpr hz.symm)).comp (x := z) (f := fun w : ℝ × E4 => (w.1,w.2-x)) hw).smul continuousAt_const |
| 160 | |
| 161 | lemma shift_gradient {f : E4 → ℝ} {x y : E4} {a : Axis} (h : ContDiffAt ℝ ∞ f (y-x)) : |
| 162 | grad a (fun y => f (y-x)) y = grad a f (y-x) := by |
| 163 | change fderiv ℝ (f ∘ ((·-x) : E4 → E4)) y _ = _ |
| 164 | have ht : HasFDerivAt ((·-x) : E4 → E4) (ContinuousLinearMap.id ℝ E4) y := |
| 165 | (hasFDerivAt_id y).sub_const _ |
| 166 | rw [fderiv_comp y (h.differentiableAt (by simp)) ht.differentiableAt, ht.fderiv]; rfl |
| 167 | |
| 168 | lemma reg_grad {t : ℝ} (ht : 0 < t) (x y : E4) (i l : Axis) (c : G.ColorIndex) (a b k : Axis) : |
| 169 | grad a (regulated t x i l c b k) y = grad a (cure t i l b k) (y-x) • unitColor G c := by |
| 170 | have hs : ContDiffAt ℝ ∞ (cure t i l b k) (y-x) := (cure_law ht i l).smooth b k _ (mem_univ _) |
| 171 | let L := tint (G:=G) (unitColor G c) |
| 172 | change grad a (L ∘ (fun y => cure t i l b k (y-x))) y = L _ |
| 173 | rw [grad_linear L (show ContDiffAt ℝ ∞ (fun y => cure t i l b k (y-x)) y from |
| 174 | hs.comp y (f := fun y => y-x) (contDiffAt_id.sub contDiffAt_const)), shift_gradient hs] |
| 175 | rfl |
| 176 | |
| 177 | lemma regulated_closed {t : ℝ} (ht : 0 < t) (x : E4) (i l : Axis) (c : G.ColorIndex) (U : Set E4) : |
| 178 | Bianchi U (regulated t x i l c) := by |
| 179 | have H := cure_law ht i l |
| 180 | refine ⟨fun a b y _ => ?_, fun a b y _ => ?_,fun a b k y _ => ?_⟩ |
| 181 | · exact ((H.smooth a b (y-x) (mem_univ _)).comp y (f := fun y => y-x) (contDiffAt_id.sub contDiffAt_const)).smul contDiffAt_const |
| 182 | · unfold regulated; rw [H.skew a b (y-x) (mem_univ _),neg_smul] |
| 183 | simp_rw [reg_grad ht, ← add_smul,H.cycle _ _ _ _ (mem_univ _),zero_smul] |
| 184 | |
| 185 | lemma regulated_charge {t : ℝ} (ht : 0 < t) (x y : E4) (i l : Axis) (c : G.ColorIndex) (b : Axis) : |
| 186 | divF (regulated t x i l c) b y = |
| 187 | (kr l b * grad i (source t) (y-x) - kr i b * grad l (source t) (y-x)) • unitColor G c := by |
| 188 | unfold divF; simp_rw [reg_grad ht x]; rw [← Finset.sum_smul] |
| 189 | rw [← cure_charge ht]; rfl |
| 190 | |
| 191 | end regulator |
| 192 | |
| 193 | end YM.Maxwell.Free |