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.Push.ABSOLUTE_SUMS.Parent |
| 2 | |
| 3 | /-! |
| 4 | # Breadth-first parent for a rooted enumeration |
| 5 | |
| 6 | Needed twice: choosing a parent map (not spending multiple copies |
| 7 | of an address), and opening the hard overlap Ursell multiplicity |
| 8 | with an interval argument. No hidden graph/degree restrictions. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Push.AbsoluteSums.Trees.Breadth |
| 13 | open Relation |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {α : Type*} |
| 17 | local notation "V" => Option α |
| 18 | |
| 19 | -- oriented from root outwards. |
| 20 | private def Found (R : V → V → Prop) (x : V) : ℕ → Prop |
| 21 | | 0 => x=none |
| 22 | | m+1 => ∃ i, R i x ∧ Found R i m |
| 23 | |
| 24 | private lemma walks (R : V → V → Prop) (x : V) (h : ReflTransGen R none x) : ∃ k, Found R x k := by |
| 25 | induction h with |
| 26 | | refl => exact ⟨0,rfl⟩ |
| 27 | | @tail a b _ hc IH => |
| 28 | obtain ⟨k,h⟩ := IH |
| 29 | exact ⟨k+1,a,hc,h⟩ |
| 30 | |
| 31 | structure Growth (p : α → V) (d : V → ℕ) : Prop where |
| 32 | seed : d none=0 |
| 33 | next : ∀ i, d (some i) = d (p i)+1 |
| 34 | |
| 35 | structure Built (R : V → V → Prop) (code : V → ℕ) (p : α → V) (d : V → ℕ) : Prop |
| 36 | extends Growth p d where |
| 37 | edges : ∀ i, R (p i) (some i) |
| 38 | paths : ∀ i j, R i j → d j ≤ d i+1 |
| 39 | least : ∀ i j, R j (some i) → d j+1=d (some i) → code (p i) ≤ code j |
| 40 | |
| 41 | lemma growth_ranked {p : α → V} {d : V → ℕ} (h : Growth p d) : Ranked p := |
| 42 | ⟨fun i => d (some i), fun i j he => by simpa only [h.next i,he] using |
| 43 | (show d (some j) < d (some j)+1 by omega)⟩ |
| 44 | |
| 45 | lemma unique_growth {p : α → V} {d t : V → ℕ} (h : Growth p d) (ht : Growth p t) : t=d := by |
| 46 | have he : ∀ k : ℕ, ∀ j, d j ≤ k → t j=d j := by |
| 47 | intro k; induction k with |
| 48 | | zero => |
| 49 | intro i hi; cases i with |
| 50 | | none => rw [h.seed,ht.seed] |
| 51 | | some i => have he := h.next i; omega |
| 52 | | succ k IH => |
| 53 | intro i hi; cases i with |
| 54 | | none => rw [h.seed,ht.seed] |
| 55 | | some i => rw [h.next,ht.next,IH _ (by have he := h.next i; omega)] |
| 56 | exact funext fun i => he _ _ le_rfl |
| 57 | |
| 58 | lemma made {R : V → V → Prop} {f : V → ℕ} {p : α → V} {d : V → ℕ} (h : Built R f p d) : |
| 59 | ∀ i, ReflTransGen R none i := by |
| 60 | have he : ∀ k : ℕ, ∀ i, d i ≤ k → ReflTransGen R none i := by |
| 61 | intro k; induction k with |
| 62 | | zero => |
| 63 | intro i hi; cases i with |
| 64 | | none => exact .refl |
| 65 | | some i => have he := h.next i; omega |
| 66 | | succ k IH => |
| 67 | intro i hi; cases i with |
| 68 | | none => exact .refl |
| 69 | | some i => exact .tail (IH (p i) (by have he := h.next i; omega)) (h.edges i) |
| 70 | exact fun i => he _ _ le_rfl |
| 71 | |
| 72 | lemma unique {R : V → V → Prop} (f : V → ℕ) (hf : Function.Injective f) {p q : α → V} |
| 73 | {d t : V → ℕ} (hp : Built R f p d) (hq : Built R f q t) : p=q := by |
| 74 | have he {p q : α → V} {d t} (hp : Built R f p d) (hq : Built R f q t) : t ≤ d := by |
| 75 | have he : ∀ k : ℕ, ∀ i, d i ≤ k → t i ≤ d i := by |
| 76 | intro k; induction k with |
| 77 | | zero => |
| 78 | intro i hi; cases i with |
| 79 | | none => rw [hp.seed,hq.seed] |
| 80 | | some i => have he := hp.next i; omega |
| 81 | | succ k IH => |
| 82 | intro i hi; cases i with |
| 83 | | none => rw [hp.seed,hq.seed] |
| 84 | | some i => |
| 85 | have hl := hp.next i |
| 86 | have he := IH (p i) (by omega) |
| 87 | have hk := hq.paths _ _ (hp.edges i) |
| 88 | omega |
| 89 | exact fun i => he _ _ le_rfl |
| 90 | obtain rfl := le_antisymm (he hp hq) (he hq hp) |
| 91 | exact funext fun i => hf (le_antisymm |
| 92 | (hp.least _ _ (hq.edges i) (hq.next i).symm) (hq.least _ _ (hp.edges i) (hp.next i).symm)) |
| 93 | |
| 94 | lemma build (R : V → V → Prop) (f : V → ℕ) (h : ∀ i, ReflTransGen R none i) : |
| 95 | ∃ (p : α → V) (d : V → ℕ), Built R f p d := by |
| 96 | have hw i := walks R i (h i) |
| 97 | let d := fun i => Nat.find (hw i) |
| 98 | have he (i) : Found R i (d i) := Nat.find_spec (hw i) |
| 99 | have hd (i) (k) (ha : Found R i k) : d i ≤ k := Nat.find_min' _ ha |
| 100 | have hr i j (h : R i j) : d j ≤ d i+1 := hd j (d i+1) ⟨_,h,he i⟩ |
| 101 | have hi (i : α) : ∃ k, ∃ x, R x (some i) ∧ d (some i)=d x+1 ∧ f x=k := by |
| 102 | have hs := he (some i) |
| 103 | cases hh : d (some i) with |
| 104 | | zero => rw [hh] at hs; contradiction |
| 105 | | succ k => |
| 106 | rw [hh] at hs |
| 107 | obtain ⟨x,hx,H⟩ := hs |
| 108 | have hm := hd x k H |
| 109 | have hg := hr x (some i) hx |
| 110 | exact ⟨f x,x,hx,by omega,rfl⟩ |
| 111 | choose p hp hp' hy using fun i => Nat.find_spec (hi i) |
| 112 | exact ⟨p,d,⟨⟨Nat.eq_zero_of_le_zero (hd none 0 rfl),hp'⟩,hp,hr,by |
| 113 | intro i j he hd |
| 114 | rw [hy] |
| 115 | exact Nat.find_min' _ ⟨j,he,hd.symm,rfl⟩⟩⟩ |
| 116 | end YM.Push.AbsoluteSums.Trees.Breadth |