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.Work.C07.Euclid |
| 2 | import YM.Work.C07.Geometry |
| 3 | |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Euclidean identity tested with the rescaled vector field `orbit` |
| 8 | |
| 9 | Integration by parts takes place on joint position space with its given volume, including |
| 10 | on the time variables of the test. At this stage only differentiate hierarchy kernels on Conf. |
| 11 | Waves are evaluated, not differentiated. There is no demand that all p in the ambient space at |
| 12 | this parameter should map inside `strict`, only those in the (here compact) support. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Work.C07 |
| 17 | open Table Analysis Boundary Mink Set Filter Function Complex MeasureTheory Bid |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | variable {G : Gauge} {L : Register G} {S T : Table L} {V : DiffPlan S} |
| 21 | {h : S.RealSpin} {R : Rotation S} {Y : Waves S} {n : ℕ} |
| 22 | |
| 23 | private lemma cancels {g : Points n → ℂ} (hg : ContDiff ℝ 1 g) (hc : HasCompactSupport g) |
| 24 | {c : Points n → ℝ} {v : Points n} (hf : Differentiable ℝ c) |
| 25 | (hz : ∀ p, fderiv ℝ c p v = 0) : |
| 26 | Integrable (fun p => c p • fderiv ℝ g p v) ∧ (∫ p, c p • fderiv ℝ g p v) = 0 := by |
| 27 | have hI : Integrable (fun p => c p • g p) := |
| 28 | (hf.continuous.smul hg.continuous).integrable_of_hasCompactSupport hc.smul_left |
| 29 | have hJ : Integrable (fun p => c p • fderiv ℝ g p v) := |
| 30 | (hf.continuous.smul ((hg.continuous_fderiv (by simp)).clm_apply |
| 31 | (continuous_const (y := v)))).integrable_of_hasCompactSupport |
| 32 | (hc.fderiv_apply ℝ v).smul_left |
| 33 | have hZ : Integrable (fun p => fderiv ℝ c p v • g p) := by |
| 34 | simp only [hz, zero_smul]; exact integrable_zero _ _ _ |
| 35 | refine ⟨hJ,?_⟩ |
| 36 | have hC := integral_smul_fderiv_eq_neg_fderiv_smul_of_integrable hZ hJ hI |
| 37 | (fun p _ => hf p) (fun p _ => hg.differentiable (by simp) p) |
| 38 | simpa [hz] using hC |
| 39 | |
| 40 | private def posL (i : Fin n) (b : Axis) : Points n →L[ℝ] ℝ := |
| 41 | LinearMap.toContinuousLinearMap |
| 42 | { toFun := fun x => x i b |
| 43 | map_smul' := fun _ _ => rfl |
| 44 | map_add' := fun _ _ => rfl } |
| 45 | |
| 46 | /-- This vector field is divergence free. -/ |
| 47 | lemma integral_orbit (a : SpaceAxis) (y : Heights n) (w : ℝ) |
| 48 | {g : Points n → ℂ} (hg : ContDiff ℝ 1 g) (hc : HasCompactSupport g) : |
| 49 | (∫ p, fderiv ℝ g p (orbit a y w p)) = 0 := by |
| 50 | let s (i : Fin n) := Points.direction i a.castSucc |
| 51 | let t (i : Fin n) := Points.direction i timeAxis |
| 52 | let D₁ (i : Fin n) (p : Points n) := (p i a.castSucc) • fderiv ℝ g p (t i) |
| 53 | let D₂ (i : Fin n) (p : Points n) := (w * stretchY y w p i) • fderiv ℝ g p (s i) |
| 54 | have hd : a.castSucc ≠ timeAxis := Fin.castSucc_ne_last _ |
| 55 | have h₁ (i) : Integrable (D₁ i) ∧ (∫ p, D₁ i p) = 0 := by |
| 56 | apply cancels hg hc (posL i a.castSucc).differentiable |
| 57 | intro p |
| 58 | rw [(posL i a.castSucc).fderiv] |
| 59 | change Points.direction _ _ _ _ = _ |
| 60 | simp [Points.direction, hd] |
| 61 | have h₂ (i) : Integrable (D₂ i) ∧ (∫ p, D₂ i p) = 0 := by |
| 62 | let c (p : Points n) := w * (y i + w * posL i timeAxis p) |
| 63 | have hz (p : Points n) : HasFDerivAt c (w • (w • posL i timeAxis)) p := |
| 64 | ((((posL i timeAxis).hasFDerivAt.const_smul w).const_add (y i)).const_smul w) |
| 65 | refine cancels (c := c) hg hc (fun p => (hz p).differentiableAt) fun p => ?_ |
| 66 | rw [(hz p).fderiv] |
| 67 | have he : posL i timeAxis (s i) = 0 := by |
| 68 | change s i i timeAxis = _ |
| 69 | simp [s, Points.direction, hd.symm] |
| 70 | simp [he] |
| 71 | have he (p : Points n) : fderiv ℝ g p (orbit a y w p) = ∑ i, (D₁ i p-D₂ i p) := by |
| 72 | simp only [orbit, D₁, D₂, s, t, map_sum, map_sub, map_smul] |
| 73 | simp_rw [he] |
| 74 | rw [integral_finsetSum Finset.univ (f := fun i p => D₁ i p-D₂ i p) (by exact fun i _ => (h₁ i).1.sub (h₂ i).1)] |
| 75 | exact Finset.sum_eq_zero fun i _ => by rw [integral_sub (h₁ i).1 (h₂ i).1, (h₁ i).2, (h₂ i).2, sub_self] |
| 76 | |
| 77 | /-- Wave on the path. -/ |
| 78 | def seen (Y : Waves S) (q : Fin n → S.Union) (y : Heights n) (z : ℂ) (p : Points n) := |
| 79 | Y.F n (scaledTimes y z p) (trace p) q |
| 80 | |
| 81 | def errorTerm (Y : Waves S) (R : Rotation S) (a : SpaceAxis) (y : Heights n) (v : Fin n → S.Tag) |
| 82 | (f : Joint n) (z : ℂ) (p : Points n) := |
| 83 | seen Y (ink v) y z p * testField a y z f p - |
| 84 | z * (∑ i, seen Y (update (ink v) i (kick R a (v i))) y z p) * f p |
| 85 | |
| 86 | private lemma seen_kick (hr : Y.Region T) (R : Rotation S) (p : Points n) |
| 87 | (a : SpaceAxis) (y : Heights n) (v : Fin n → S.Tag) (i : Fin n) |
| 88 | (w : ℝ) (hp : stretchY y w p ∈ east n) : |
| 89 | seen Y (update (ink v) i (kick R a (v i))) y ((w : ℂ)*I) p = |
| 90 | (-I) * S.classMoment T (fun j => (v j).1) (foldE y w p) |
| 91 | (update (fun j => (v j).2) i (R.lie (v i).1 (Ortho.plane timeAxis a.castSucc) (v i).2)) := by |
| 92 | let A := R.lie (v i).1 (Ortho.plane timeAxis a.castSucc) (v i).2 |
| 93 | let b : (j : Fin n) → S.Field (v j).1 := update (fun j => (v j).2) i ((-I) • A) |
| 94 | let t (j : Fin n) : S.Tag := ⟨(v j).1, b j⟩ |
| 95 | have he : ink t = update (ink v) i (kick R a (v i)) := by |
| 96 | funext j |
| 97 | by_cases hh : j=i |
| 98 | · subst j; simp [b, t, A, ink, kick] |
| 99 | simp [b, t, ink, hh] |
| 100 | rw [← he, seen, scaled_imag, show Y.F n _ _ (ink t) = S.useAt T (foldE y w p) t from |
| 101 | hr.roots n t (trace p) (stretchY y w p) hp] |
| 102 | exact MultilinearMap.map_update_smul _ _ _ _ _ |
| 103 | |
| 104 | private lemma field_flows (hO : R.Oriented T) (hR : R.Laws V h) (hS : T.Smooth) |
| 105 | (hr : Y.Region T) (p : Points n) (a : SpaceAxis) (y : Heights n) (v : Fin n → S.Tag) |
| 106 | (w : ℝ) (hp : stretchY y w p ∈ east n) : |
| 107 | fderiv ℝ (fun x => S.useAt T (foldE y w x) v) p (orbit a y w p) = |
| 108 | -(((w : ℂ)*I) * ∑ i, seen Y (update (ink v) i (kick R a (v i))) y ((w : ℂ)*I) p) := by |
| 109 | let q := foldE y w p |
| 110 | let Ω := Ortho.plane timeAxis a.castSucc |
| 111 | have hq : q ∈ conf n := clear hp _ |
| 112 | have hd : DifferentiableAt ℝ (fun x => S.useAt T x v) q := |
| 113 | ((S.class_smooth T hS v q hq).contDiffAt ((conf_open n).mem_nhds hq)).differentiableAt (by simp) |
| 114 | have H := ((hd.hasFDerivAt).comp p (fold_derivative y w p)).fderiv |
| 115 | change fderiv ℝ ((fun x => S.useAt T x v) ∘ foldE y w) p _ = _ |
| 116 | rw [H, ContinuousLinearMap.comp_apply, orbit_image, map_smul] |
| 117 | change w • D _ _ q = _ |
| 118 | rw [oriented_differential hO hR hS Ω hq] |
| 119 | simp_rw [seen_kick hr R p a y v _ w hp, ← Finset.mul_sum, real_smul] |
| 120 | have he (z b : ℂ) : -(z*I*(-I*b)) = z * -b := by |
| 121 | calc |
| 122 | _ = z * (I*I) * b := by ring |
| 123 | _ = _ := by rw [I_mul_I]; ring |
| 124 | exact (he _ _).symm |
| 125 | |
| 126 | theorem error_imag (hO : R.Oriented T) (hR : R.Laws V h) (hS : T.Smooth) |
| 127 | (hr : Y.Region T) (a : SpaceAxis) (y : Heights n) (v : Fin n → S.Tag) (f : Joint n) |
| 128 | (w : ℝ) (hK : HasCompactSupport ⇑f) |
| 129 | (he : ∀ p ∈ tsupport f, scaledTimes y ((w : ℂ)*I) p ∈ strict n) : |
| 130 | (∫ p in tsupport f, errorTerm Y R a y v f ((w : ℂ)*I) p) = 0 := by |
| 131 | have hE (p) (hp : p ∈ tsupport f) : stretchY y w p ∈ east n := |
| 132 | (scaled_strict_imag y w p).mp (he p hp) |
| 133 | let u (p : Points n) := S.useAt T (foldE y w p) v |
| 134 | have hU (p) (hp : p ∈ tsupport f) : ContDiffAt ℝ ∞ u p := by |
| 135 | have hx : foldE y w p ∈ conf n := clear (hE p hp) _ |
| 136 | exact (((S.class_smooth T hS v (foldE y w p) hx).contDiffAt |
| 137 | ((conf_open _).mem_nhds hx)).comp p (fold_smooth y w).contDiffAt) |
| 138 | let g (p : Points n) := u p * f p |
| 139 | have hG : tsupport g ⊆ tsupport f := tsupport_mul_subset_right |
| 140 | have hc : HasCompactSupport g := hK.of_isClosed_subset (isClosed_tsupport _) hG |
| 141 | have hg : ContDiff ℝ 1 g := contDiff_iff_contDiffAt.mpr fun p => by |
| 142 | by_cases hx : p ∈ tsupport f |
| 143 | · exact ((hU p hx).of_le (by norm_num)).mul (f.smooth 1).contDiffAt |
| 144 | have H := notMem_tsupport_iff_eventuallyEq.mp (fun hi => hx (hG hi)) |
| 145 | exact contDiffAt_const.congr_of_eventuallyEq H |
| 146 | calc |
| 147 | _ = ∫ p in tsupport f, fderiv ℝ g p (orbit a y w p) := by |
| 148 | apply setIntegral_congr_fun (isClosed_tsupport _).measurableSet |
| 149 | intro p hp |
| 150 | rw [errorTerm, test_imag] |
| 151 | have hbase : seen Y (ink v) y ((w : ℂ)*I) p = u p := by |
| 152 | rw [seen, scaled_imag]; exact hr.roots n v (trace p) (stretchY y w p) (hE p hp) |
| 153 | change _ = fderiv ℝ (fun z => u z * f z) p (orbit a y w p) |
| 154 | have hVp : fderiv ℝ u p (orbit a y w p) = _ := |
| 155 | field_flows hO hR hS hr p a y v w (hE p hp) |
| 156 | rw [hbase, fderiv_fun_mul ((hU p hp).differentiableAt (by simp)) f.differentiableAt] |
| 157 | simp [hVp]; ring |
| 158 | _ = (∫ p, fderiv ℝ g p (orbit a y w p)) := by |
| 159 | apply setIntegral_eq_integral_of_forall_compl_eq_zero |
| 160 | intro p hp |
| 161 | rw [fderiv_of_notMem_tsupport ℝ (fun h => hp (hG h))]; rfl |
| 162 | _ = 0 := integral_orbit a y w hg hc |
| 163 | |
| 164 | end YM.Work.C07 |