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.Ground.Spectrum |
| 2 | import YM.Phase.Approx |
| 3 | |
| 4 | /-! |
| 5 | # Graft transport from *actual approximants* on ordinary anti pair |
| 6 | |
| 7 | Need plug real placements from later oriented grid, pass all large t before send d↑. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.OS.Grid |
| 11 | open Function Set Filter MeasureTheory Measure Complex Analysis Extraction Ground Table Row Lattice Wilson Word |
| 12 | open scoped Topology InnerProductSpace NNReal ENNReal ContDiff BigOperators ComplexOrder |
| 13 | variable {G : Gauge} {C : Family G} {S : Table C.book} {f : Extraction.Order} {V : Chamber S timeAxis} |
| 14 | |
| 15 | private lemma finite {X : Type*} [MeasurableSpace X] (μ : Measure X) [IsProbabilityMeasure μ] {n : ℕ} (x : Fin n → X → ℝ) (r : ℝ) |
| 16 | (h : ∀ i, Measurable (x i) ∧ ∀ q, |x i q| ≤ r) (A : Fin n → Fin n → ℝ) (hx : ∀ i j, i < j → |
| 17 | ∫ q,x i q*x j q∂μ ≤ A i j) : |
| 18 | 0 ≤ ∑ i, ∑ j, (if i=j then r^2 else if i<j then A i j else A j i) := by |
| 19 | have ht i : 0≤∫ q, (x i q)^2∂μ := integral_nonneg fun q => sq_nonneg _ -- not needed |
| 20 | have hp (i j) : ∀ q, |x i q*x j q| ≤ r^2 := fun q => (abs_mul ..).le.trans ((mul_le_mul ((h i).2 _) ((h j).2 _) |
| 21 | (abs_nonneg _) ((abs_nonneg _).trans ((h i).2 q))).trans_eq (pow_two r).symm) |
| 22 | have hf i j : Integrable (fun q => x i q*x j q) μ := Integrable.of_bound ((h i).1.mul (h j).1).aestronglyMeasurable (r^2) |
| 23 | (Eventually.of_forall (hp i j)) |
| 24 | calc |
| 25 | _ ≤ (∫ q,(∑ i,x i q)^2 ∂μ) := integral_nonneg fun _ => sq_nonneg _ |
| 26 | _ = ∑ i,∑ j, ∫ q, x i q*x j q ∂μ := by |
| 27 | simp_rw [pow_two,Finset.sum_mul,Finset.mul_sum]; rw [integral_finsetSum _ (fun i _ => integrable_finsetSum _ fun j _ => hf i j)] |
| 28 | apply Finset.sum_congr rfl; intro i hi; exact integral_finsetSum _ fun j _ => hf i j |
| 29 | _ ≤ _ := Finset.sum_le_sum fun i _ => Finset.sum_le_sum fun j _ => by |
| 30 | split |
| 31 | · exact (integral_mono (hf i j) (integrable_const _) (g := fun _ => r^2) (fun q => (le_abs_self _).trans (hp i j q))).trans_eq (by simp) |
| 32 | rename_i hb; split |
| 33 | · exact hx i j (by assumption) |
| 34 | simp_rw [mul_comm (x i _)]; exact hx _ _ (lt_of_not_ge (by intro H; have hh : i<j := lt_of_le_of_ne H hb; contradiction)) |
| 35 | |
| 36 | variable (P : Spread V) (h : ℕ) (v : Fin h → C.book.Token) -- change names |
| 37 | |
| 38 | lemma horizon (H : Steady V) (Y : S.Hierarchy) (w z : C.book.Word) (hv : distinct w) (hz : distinct z) |
| 39 | (i j : ℕ) (p : i<j) : Tendsto (fun t => compareA (S:=S) h t i j w z) atTop |
| 40 | (𝓝 (inner ℂ V.omega0 ((M P w hv*M P z hz : P.algebra).val V.omega0))) := by |
| 41 | let A : Car C.book := (⟨w,hv⟩, fun t => force (C:=C) h t i) |
| 42 | let B : Car C.book := (⟨z,hz⟩, fun t => force (C:=C) h t j) |
| 43 | have he : line [A,B] := by |
| 44 | simp [line,A,B,flight,force] |
| 45 | -- formula |
| 46 | have hp := mul_pos (C.S.a_pos h) (sub_pos.mpr (by exact_mod_cast p : (i:ℝ)<j)) |
| 47 | apply (Tendsto.atTop_mul_const hp tendsto_natCast_atTop_atTop).congr |
| 48 | intro t; simp [Schedule.gridPoint]; ring |
| 49 | have hh := (arcs P H Y _ he).2 |
| 50 | simpa only [all,List.map_cons,List.map_nil,List.flatten_cons,List.flatten_nil,List.append_nil,starU,List.prod_cons,List.prod_nil,mul_one,A,B] using! hh |
| 51 | |
| 52 | def θ (P : Spread V) (w : C.book.Word) (p : distinct w) : P.algebra := M P w p - M P (anti w) (apart p) |
| 53 | def answer (P : Spread V) (w : C.book.Word) (p : distinct w) := (inner ℂ V.omega0 (((θ P w p)^2 : P.algebra).val V.omega0)).re |
| 54 | |
| 55 | variable {n : ℕ} |
| 56 | lemma estimates (v : Fin n → C.book.Token) (x : Fin n → Cover) (p : distinct (Tag h v x)) (H : Steady V) (Y : S.Hierarchy) |
| 57 | (i j : ℕ) (hp : i<j) : Tendsto (fun t => event (S:=S) h v x t i j) atTop (𝓝 (answer P (Tag h v x) p)) := by |
| 58 | let w := Tag h v x |
| 59 | have hx (w z : C.book.Word) (hv : distinct w) (hz : distinct z) := continuous_re.continuousAt.tendsto.comp (horizon P h H Y w z hv hz i j hp) |
| 60 | convert ((hx w w p p).sub (hx w (anti w) p (apart p))).sub ((hx (anti w) w (apart p) p).sub (hx (anti w) (anti w) (apart p) (apart p))) using 1 |
| 61 | · rfl |
| 62 | unfold answer θ; simp only [pow_two,mul_sub,sub_mul]; congr 1 |
| 63 | simp [inner_sub_right,w]; ring |
| 64 | private def charge (n : ℕ) (r : ℝ) (A : ℕ→ℕ→ℝ) := |
| 65 | ∑ i : Fin n, ∑ j : Fin n, (if i=j then r^2 else if i<j then A i j else A j i) |
| 66 | |
| 67 | private lemma att (n : ℕ) (r a) : charge (n+1) r (fun _ _ => a) = ((n+1:ℕ):ℝ) * (r^2+n*a) := by |
| 68 | have hp (i : Fin (n+1)) : (∑ j : Fin (n+1), (if i=j then r^2 else a))=r^2+n*a := by |
| 69 | rw [← Finset.add_sum_erase _ _ (Finset.mem_univ i), if_pos rfl] |
| 70 | congr 1 |
| 71 | trans ∑ _j∈ (Finset.univ.erase i), a |
| 72 | · apply Finset.sum_congr rfl; intro j hj; rw [if_neg (Finset.mem_erase.mp hj).1.symm] |
| 73 | simp |
| 74 | simp [charge,hp]; ring |
| 75 | |
| 76 | private lemma charged {M : Type*} (ℓ : Filter M) (n : ℕ) {r A} (G : M→ℕ→ℕ→ℝ) : |
| 77 | (∀ i j : Fin n, i<j → Tendsto (fun u => G u i j) ℓ (𝓝 (A i j))) → |
| 78 | Tendsto (fun u => charge n r (G u)) ℓ (𝓝 (charge n r A)) := by |
| 79 | intro h; unfold charge |
| 80 | refine tendsto_finsetSum _ fun i _ => tendsto_finsetSum _ fun j _ => ?_ |
| 81 | rcases lt_trichotomy i j with e|e|e |
| 82 | · simpa [e,e.ne] using h i j e |
| 83 | · subst j; simp; exact tendsto_const_nhds |
| 84 | simpa [not_lt.mpr e.le,e.ne'] using h j i e |
| 85 | |
| 86 | lemma Covering.square (v : Fin n → C.book.Token) (x : Fin n → Cover) (p : distinct (Tag h v x)) |
| 87 | (W : Covering h v x) (he : W.Works h v x f) |
| 88 | (H : Steady V) (Y : S.Hierarchy) (hx : Expects (S:=S) (f:=f) h v x) : 0 ≤ answer P (Tag h v x) p := by |
| 89 | let a := answer P (Tag h v x) p |
| 90 | have he' k q : 0 ≤ charge (q+1) (W.reserve k) (fun _ _ => a+W.small k) := by |
| 91 | let U t := fun i j => event (S:=S) h v x t i j+W.small k |
| 92 | apply ge_of_tendsto (charged atTop (q+1) U (fun i j hij => (estimates P h v x p H Y (i.val) (j.val) hij).add_const _)) |
| 93 | have ht i j (hk : (i:Fin (q+1))<j) : ∀ᶠ t : ℕ in atTop, |
| 94 | (Tendsto (fun u : ℕ×ℕ=> bill h v x i j u.1 u.2 t+W.small k) f.fuse (𝓝 (U t i j))) ∧ |
| 95 | f.late fun N l => ∫ w, W.plots k N l t i w * W.plots k N l t j w∂law G _ (C.beta N l) ≤ bill h v x i j N l t+W.small k := by |
| 96 | filter_upwards [hx _ _ (show i.val<j.val from hk),he.fillings k _ _ (show i.val<j.val from hk)] with t hc hh |
| 97 | refine ⟨hc.add_const _,?_⟩ |
| 98 | unfold Extraction.Order.late at *; refine hh.mono fun r hr => hr.mono fun N hN => ?_ |
| 99 | exact sub_le_iff_le_add'.1 ((abs_le.mp hN).2) |
| 100 | filter_upwards [eventually_all.mpr (fun i => eventually_all.mpr (fun j => eventually_all.mpr (ht i j)))] with t hp |
| 101 | let B (i : ℕ × ℕ) (p r : ℕ) := bill h v x p r i.1 i.2 t+W.small k |
| 102 | apply ge_of_tendsto (charged f.fuse (q+1) B (fun i j h => (hp i j h).1)) |
| 103 | have heI : ∀ i (j : Fin (q+1)), ∀ _ : i<j, ∀ᶠ u in f.fuse, ∫ w, W.plots k u.1 u.2 t i w * W.plots k u.1 u.2 t j w∂law G _ (C.beta u.1 u.2) ≤ B u i j := |
| 104 | fun i j hij => (hp i j hij).2 |
| 105 | have hF (i : Fin (q+1)) : ∀ᶠ u in f.fuse, Measurable (W.plots k u.1 u.2 t i) ∧ |
| 106 | ∀ y, |W.plots k u.1 u.2 t i y| ≤ W.reserve k := he.controls k t i |
| 107 | filter_upwards [eventually_all.mpr (fun i => eventually_all.mpr (fun j => eventually_all.mpr (heI i j))),eventually_all.mpr hF] with u hv hl |
| 108 | exact finite (law G _ (C.beta u.1 u.2)) (fun j : Fin (q+1) => W.plots k u.1 u.2 t j) (W.reserve k) hl (fun i j => B u i j) hv |
| 109 | have hh k : 0 ≤ a+W.small k := by |
| 110 | by_contra! ht |
| 111 | have hp := Tendsto.atTop_mul_const_of_neg ht tendsto_natCast_atTop_atTop |
| 112 | obtain ⟨n,hN⟩ := (hp.eventually (eventually_lt_atBot (-W.reserve k^2))).exists |
| 113 | have hz := he' k n; rw [att n] at hz |
| 114 | exact (mul_neg_of_pos_of_neg (by positivity) (show _ + (n:ℝ)*_ < 0 by linarith)).not_ge hz |
| 115 | have hu : Tendsto (fun k => a+W.small k) atTop (𝓝 a) := by simpa using W.grows.const_add a |
| 116 | exact ge_of_tendsto' hu hh |
| 117 | end YM.OS.Grid |