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.Lattice.Crossing |
| 2 | import YM.Exterior.Complex |
| 3 | |
| 4 | /-! |
| 5 | # Slices over actual centered roots |
| 6 | |
| 7 | Chosen independently per physical coarse site in applications. Branches can |
| 8 | prove for arbitrary Forest; for integration over choices must bind before |
| 9 | reusing addresses. Parent/projection is part of the scale data, not inferred |
| 10 | from a user's arbitrary tree. Heights ≤ 4L. Frame patch minimizing may |
| 11 | not be any of these trees. `within` later takes statement on residual gauges |
| 12 | constant on each tree slice block. No ambiguity on crossing when c>1. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Tree |
| 17 | open Lattice Filter MeasureTheory Laurent |
| 18 | open scoped Matrix.Norms.Frobenius Topology BigOperators |
| 19 | variable {c f : Side} {g : Ratio c f} |
| 20 | |
| 21 | def leaf (g : Ratio c f) (x : Site f) : Prop := g.parent x |> fun i => x≠g.embed i |
| 22 | instance (g : Ratio c f) : DecidablePred (leaf g) := by intro x; unfold leaf; infer_instance |
| 23 | |
| 24 | structure Forest (g : Ratio c f) where |
| 25 | up : Site f → Step |
| 26 | height : Site f → ℕ |
| 27 | bound i : height i ≤ 4*g.count.val |
| 28 | rise i : leaf g i → height (i+(up i).vec)<height i |
| 29 | stays i : leaf g i → g.parent (i+(up i).vec)=g.parent i |
| 30 | |
| 31 | /-- local potential existence: use first misplaced coordinate per vertex (later |
| 32 | may randomize independently per patch) -/ |
| 33 | theorem select (g : Ratio c f) (hp : Odd g.count.val) : Nonempty (Forest g) := by |
| 34 | let q (i : Site f) := Lattice.lift (g.residue i) |
| 35 | let m (i : Site f) := Laurent.size (q i) |
| 36 | let L := g.count.val/2 |
| 37 | have hb (x : Site f) : m x ≤ 4*g.count.val := by |
| 38 | have h (i : Axis) := (box_iff_layers ..).mp (g.half_box hp (g.residue x)) i |
| 39 | apply le_trans (b:=∑ _ : Axis, g.count.val) (Finset.sum_le_sum fun i _ ↦ ?_) (by simp [Axis]) |
| 40 | have hi : q x i ∈ Finset.Icc (-(L:ℤ)) L := h i |
| 41 | rw [Finset.mem_Icc] at hi |
| 42 | change (q x i).natAbs ≤ g.count.val |
| 43 | unfold L at hi; omega |
| 44 | have he (x : Site f) : ∃ i : Step, leaf g x → |
| 45 | m (x+i.vec)<m x ∧ g.parent (x+i.vec)=g.parent x := by |
| 46 | by_cases hx : leaf g x |
| 47 | · obtain ⟨a,ha⟩ : ∃ a : Axis, q x a≠0 := by |
| 48 | by_contra! h |
| 49 | have hi : q x=0 := funext h |
| 50 | apply hx; apply (g.root_id x).mpr |
| 51 | rw [← wrap_lift (g.residue x)]; change wrap _ (q x)=0; rw [hi,map_zero] |
| 52 | let d := if q x a < 0 then posDir a else negDir a |
| 53 | refine ⟨d, fun _ ↦ ?_⟩ |
| 54 | have hh (i : Axis) (hi : i ≠ a) : (q x + d.vec : Cover) i=q x i := by unfold d; split <;> simp [hi] |
| 55 | have hz : (q x + d.vec : Cover)∈box L := by |
| 56 | rw [box_iff_layers]; intro i |
| 57 | have hk := (box_iff_layers ..).mp (g.half_box hp (g.residue x)) i |
| 58 | by_cases H : i=a |
| 59 | · subst i |
| 60 | change q x a∈ Finset.Icc (-(L:ℤ)) L at hk |
| 61 | unfold d layers; split <;> simp at * <;> omega |
| 62 | rw [hh i H]; exact hk |
| 63 | obtain ⟨e1,e2⟩ := g.internal hp hz; refine ⟨?_,e2⟩ |
| 64 | unfold m; rw [show q (x+d.vec)=_ from e1]; change Laurent.size (q x+d.vec)<Laurent.size (q x) |
| 65 | have h : ((q x+d.vec:Cover) a).natAbs<(q x a).natAbs := by unfold d; split <;> simp <;> omega |
| 66 | unfold Laurent.size; refine Finset.sum_lt_sum (fun i _ ↦ ?_) ⟨a,Finset.mem_univ _,h⟩ |
| 67 | by_cases H : i=a |
| 68 | · exact H.symm ▸ h.le |
| 69 | rw [hh i H] |
| 70 | exact ⟨posDir 0, fun h => False.elim (hx h)⟩ |
| 71 | choose u H using he |
| 72 | exact ⟨⟨u,m,hb,fun x hx ↦ (H x hx).1,fun x hx ↦ (H x hx).2⟩⟩ |
| 73 | |
| 74 | namespace Forest |
| 75 | variable (A : Forest g) |
| 76 | |
| 77 | def trunks := (Finset.univ.filter (leaf g)).image (fun i => (A.up i).used i) |
| 78 | |
| 79 | lemma trunk_mem_iff (e : Edge (Site f)) : e∈A.trunks ↔ ∃ i, leaf g i ∧ (A.up i).used i=e := by simp [trunks] |
| 80 | |
| 81 | lemma trunk_internal {x : Site f} {i} (h : (x,i)∈A.trunks) : |
| 82 | g.parent (x+step i)=g.parent x := by |
| 83 | obtain ⟨k,hk,H⟩ := (trunk_mem_iff A _).mp h |
| 84 | have hp := A.stays k hk |
| 85 | cases he : A.up k with |
| 86 | | mk j val => |
| 87 | rw [he] at H hp |
| 88 | cases val <;> simp only [Step.used,Bool.false_eq_true, ↓reduceIte, Prod.mk.injEq] at H |
| 89 | · rw [← H.1, ← H.2]; exact hp |
| 90 | rw [← H.1, ← H.2,sub_add_cancel]; simpa [Step.vec,sub_eq_add_neg] using hp.symm |
| 91 | |
| 92 | /-- path child-to-root -/ |
| 93 | def hike (A : Forest g) (x : Site f) : Walk := if h : leaf g x then A.up x :: A.hike (x+(A.up x).vec) else [] |
| 94 | termination_by A.height x |
| 95 | decreasing_by exact A.rise x h |
| 96 | |
| 97 | lemma hike_root (x : Site f) : stop x (A.hike x)=g.embed (g.parent x) := by |
| 98 | induction x using hike.induct A with |
| 99 | | case1 i hi ih => rw [hike,dif_pos hi, stop,ih,A.stays i hi] |
| 100 | | case2 i hi => rw [hike, dif_neg hi]; exact Classical.not_not.mp hi |
| 101 | |
| 102 | lemma hike_lower (x : Site f) : (A.hike x).length ≤ A.height x := by |
| 103 | induction x using hike.induct A with |
| 104 | | case1 i hi ih => rw [hike,dif_pos hi,List.length_cons]; exact lt_of_le_of_lt ih (A.rise i hi) |
| 105 | | case2 i hi => rw [hike,dif_neg hi]; simp |
| 106 | |
| 107 | end Forest |
| 108 | end YM.Tree |