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.Euclid.Words |
| 2 | import YM.Extraction.Inherited |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Separated Euclidean test vectors at finite N,p. Strict temporal fit |
| 7 | |
| 8 | Everywhere-positive compact room used for sites & all stencil bodies. Values |
| 9 | with right-closed seam at capped times dealt with explicitly. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Extraction.Banks |
| 14 | open Function Set MeasureTheory Filter Lattice Wilson Cells |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder |
| 16 | |
| 17 | variable {G : Gauge} (C : Family G) {a : Axis} |
| 18 | |
| 19 | def plane (N p : ℕ) (a : Axis) : Cut (C.side N p) := ⟨half C.S N p, original C.S N p, .site, a,0⟩ |
| 20 | |
| 21 | variable {m N p : ℕ} |
| 22 | |
| 23 | def supported (Q : Table.PastTest C.book a) (p : ℕ) := suitable C.S p Q.f |
| 24 | |
| 25 | def weightValue (Q : Table.PastTest C.book a) (N p) (r : Fin Q.n→ Site (C.side N p)) := Q.f (Order.cells C N p r) |
| 26 | def base (Q : Table.PastTest C.book a) (N p) (r : Fin Q.n → Site (C.side N p)) (U : Config G (C.side N p)) := |
| 27 | (((C.S.a N:ℂ)^(4*Q.n)) * weightValue C Q N p r) * ∏ i, C.seen (Q.v i) (r i) U |
| 28 | def stem (Q : Table.PastTest C.book a) (N p) (U : Config G (C.side N p)) := ∑ r, base C Q N p r U |
| 29 | |
| 30 | lemma elementary (Q : Table.PastTest C.book a) (r) : Continuous (base C Q N p r) := continuous_const.mul |
| 31 | (continuous_finsetProd Finset.univ fun i _ => C.continuousO N p (Q.v i).1 (Q.v i).2 _) |
| 32 | |
| 33 | lemma limits_test (Q : Table.PastTest C.book a) (p : ℕ) (hv : supported C Q p) {i : Fin Q.n} : |
| 34 | ∃ r : ℝ, 0<r ∧ ∀ x∈ tsupport Q.f, r ≤ x i a ∧ x i a ≤ C.S.radius p - r := by |
| 35 | rcases (tsupport Q.f).eq_empty_or_nonempty with h|h; exact ⟨1,zero_lt_one,by simp [h]⟩ |
| 36 | have hc : ContinuousOn (fun x : Points Q.n => x i a) (tsupport Q.f) := (show Continuous _ from by fun_prop).continuousOn |
| 37 | obtain ⟨x,hx,H⟩ := Q.f.hasCompactSupport.exists_isMinOn h hc |
| 38 | obtain ⟨y,hy,he⟩ := Q.f.hasCompactSupport.exists_isMaxOn h hc |
| 39 | let r := min (x i a) (C.S.radius p-y i a) |
| 40 | have hm := Q.past x hx i |
| 41 | exact ⟨r,lt_min hm (sub_pos.mpr (hv hy i a).2), fun z hz => ⟨(min_le_left ..).trans (H hz), |
| 42 | le_trans (he hz) (by dsimp only; linarith [show r≤C.S.radius p - y i a from min_le_right ..])⟩⟩ |
| 43 | |
| 44 | lemma hair (H : C.Makes) (f : Order) (Q : Table.PastTest C.book a) (p : ℕ) (hv : supported C Q p) (i : Fin Q.n) : |
| 45 | ∀ᶠ j in atTop, ∀ r, weightValue C Q (f.mesh j) p r ≠ 0 → Interior (plane C (f.mesh j) p a).sector |
| 46 | (C.seen (Q.v i) (r i)) := by |
| 47 | let S := C.localSection (Q.v i).1 |
| 48 | obtain ⟨t,ht,hg⟩ := limits_test C Q p hv (i := i) |
| 49 | have hh (u : Cover) : ∀ᶠ j : ℕ in atTop, C.S.a (f.mesh j)*|(u a:ℝ)|<t := by |
| 50 | have he : Tendsto (fun j => C.S.a (f.mesh j)*|(u a:ℝ)|) atTop (𝓝 0) := by |
| 51 | simpa only [zero_mul,Function.comp_apply] using ((C.S.shrinks.comp f.mesh.cofinal).mul_const |(u a:ℝ)|) |
| 52 | exact he.eventually (gt_mem_nhds ht) |
| 53 | filter_upwards [eventually_all_finset S.stencil |>.mpr (fun u _ => hh u)] with j hi x hq |
| 54 | let N := f.mesh j |
| 55 | have hc : Continuous (C.seen (Q.v i) (x i)) := C.continuousO N p (Q.v i).1 (Q.v i).2 _ |
| 56 | let P := plane C N p a |
| 57 | let o := x i |
| 58 | have he := hg (Order.cells C N p x) (subset_closure hq) |
| 59 | refine ⟨C.invariant H N p (Q.v i).1 _ _,hc.measurable,fun U V h => ?_,hc.bounded_above_of_compact_support (HasCompactSupport.of_compactSpace _)⟩ |
| 60 | apply C.localO N p (Q.v i).1 _ o U V (agrees_mono h ?_) |
| 61 | intro q hq |
| 62 | obtain ⟨u,hu,rfl⟩ := Finset.mem_image.mp hq |
| 63 | let z : ℤ := lift o a + u a |
| 64 | have hb : C.S.radius p=C.S.a N*(P.half.val:ℕ) := by |
| 65 | have hl := C.S.span_side N p; rw [show (C.S.side N p).val=2*P.half.val from P.even] at hl |
| 66 | unfold Schedule.radius; rw [← hl]; push_cast; ring |
| 67 | have hw : 0 < z ∧ z < (P.half.val : ℤ) := by |
| 68 | have hz : (z:ℝ)= ((lift o a:ℤ):ℝ) + u a := Int.cast_add .. |
| 69 | change t≤ C.S.a N*((lift o a:ℤ):ℝ) ∧ C.S.a N*((lift o a:ℤ):ℝ) ≤ C.S.radius p -t at he |
| 70 | have ht : C.S.a N*|(u a:ℝ)|<t := hi u hu |
| 71 | rw [← abs_of_pos (C.S.a_pos N), ← abs_mul,abs_lt] at ht |
| 72 | rw [hb] at he |
| 73 | have hh : (0:ℝ)<z ∧ (z:ℝ)<P.half.val := by constructor <;> nlinarith [C.S.a_pos N,ht.1,ht.2] |
| 74 | exact_mod_cast hh |
| 75 | have ha := P.even |
| 76 | change 0 < _ ∧ _ < P.half.val |
| 77 | rw [show (P.distance ((wrap (C.side N p)) u + o))=z.toNat by |
| 78 | unfold Cut.distance |
| 79 | have hy : (((wrap (C.side N p)) u + o) P.pos - P.baseLine)=(↑(z.toNat): Per (C.side N p)) := by |
| 80 | rw [← Int.cast_natCast,Int.toNat_of_nonneg hw.1.le] |
| 81 | change (u a:Per (C.side N p))+o a-0=(z:ℤ) |
| 82 | unfold z; simp only [Int.cast_add,lift, ZMod.coe_valMinAbs, sub_zero]; abel |
| 83 | rw [hy,ZMod.val_natCast_of_lt] |
| 84 | omega] |
| 85 | omega |
| 86 | |
| 87 | private lemma added {n : Side} {ι : Type*} (x : Finset ι) (c : ι→ Config G n→ℂ) (S : Set (Site n)) |
| 88 | (h : ∀ i ∈ x, Interior S (c i)) : Interior S fun U => ∑ i∈x,c i U := by |
| 89 | classical |
| 90 | induction x using Finset.induction_on with |
| 91 | | empty => simp only [Finset.sum_empty]; exact Interior.constant _ _ |
| 92 | | @insert a b hb ih => simp_rw [Finset.sum_insert hb]; exact (h a (Finset.mem_insert_self ..)).plus (ih fun i hi => h i (Finset.mem_insert_of_mem hi)) |
| 93 | |
| 94 | lemma kept (H : C.Makes) (f : Order) (Q : Table.PastTest C.book a) : |
| 95 | ∀ᶠ i in f.fuse, Interior (plane C i.1 i.2 a).sector (stem C Q i.1 i.2) := by |
| 96 | rw [Order.fused,Order.late] |
| 97 | filter_upwards [f.per.cofinal.eventually (reading C.S Q.f)] with p hp |
| 98 | filter_upwards [eventually_all.mpr (hair C H f Q _ hp)] with i hi |
| 99 | unfold stem; apply added; intro r _ |
| 100 | by_cases Hm : weightValue C Q (f.mesh i) (f.per p) r=0 |
| 101 | · rw [show base C Q _ _ r=(fun _ => 0) by ext1; simp [base,Hm]]; exact Interior.constant _ _ |
| 102 | exact Interior.scale _ (Interior.combines (fun v => C.seen (Q.v v) (r v)) _ (fun j _ => hi j r Hm)) |
| 103 | |
| 104 | end YM.Extraction.Banks |