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.Breadth |
| 2 | |
| 3 | /-! |
| 4 | # Overlap graph tree bound |
| 5 | |
| 6 | Penrose-style interval here with a breadth-first parent . |
| 7 | Graphs read unordered pairs from a Finset. To pay the hard-core/log |
| 8 | multiplicity we need ABS OF THE ALTERNATING SUM, not open it in |
| 9 | absolute value. Vertices represent occurrence indices, not addresses |
| 10 | (two occurrences of the same address can be adjacent). |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Push.AbsoluteSums.Graph |
| 15 | open Trees Relation Finset |
| 16 | open scoped Classical BigOperators |
| 17 | |
| 18 | abbrev Network (α : Type*) := Finset (Finset α) |
| 19 | |
| 20 | def link {α : Type*} [DecidableEq α] (g : Network α) (i j : α) := i≠j ∧ ({i,j} : Finset α)∈g |
| 21 | lemma backwards {α : Type*} [DecidableEq α] {g : Network α} {i j : α} (h : link g i j) : link g j i := |
| 22 | ⟨Ne.symm h.1, (Finset.pair_comm j i) ▸ h.2⟩ |
| 23 | |
| 24 | -- the coefficient is used at NONEMPTY α. |
| 25 | def reaches {α : Type*} [DecidableEq α] (g : Network α) : Prop := ∀ i j, ReflTransGen (link g) i j |
| 26 | |
| 27 | def alternating {α : Type*} (g : Finset α) : ℝ := (-1)^g.card |
| 28 | def connectedGroups {α : Type*} [DecidableEq α] (S : Network α) := S.powerset.filter reaches |
| 29 | def mass {α : Type*} [DecidableEq α] (S : Network α) := ∑ g∈connectedGroups S, alternating g |
| 30 | |
| 31 | lemma belongs {α : Type*} [DecidableEq α] {T G : Network α} : G∈connectedGroups T ↔ G ⊆ T ∧ reaches G := by |
| 32 | simp [connectedGroups] |
| 33 | |
| 34 | private lemma interval {α : Type*} (U L : Finset α) (S : Finset (Finset α)) (hl : L ⊆ U) |
| 35 | (h : ∀ i, i∈S ↔ L⊆i ∧ i⊆U) : |∑ i∈S, alternating i| ≤ 1 := by |
| 36 | by_cases he : L=U |
| 37 | · have he' : S={U} := by ext a; rw [h,mem_singleton,Finset.Subset.antisymm_iff]; simp [he,and_comm] |
| 38 | simp [he',alternating,abs_pow] |
| 39 | have hh : ∃ i∈U,i∉L := by |
| 40 | by_contra! H |
| 41 | exact he (Finset.Subset.antisymm hl H) |
| 42 | obtain ⟨i,hu,hL⟩ := hh |
| 43 | let f (s : Finset α) := if i∈s then s.erase i else insert i s |
| 44 | have hg s (hs : s∈S) : f s∈S := by |
| 45 | obtain ⟨h1,h2⟩ := (h s).mp hs; rw [h]; unfold f; split |
| 46 | next hi => exact ⟨fun a ha => mem_erase.mpr ⟨fun hz => hL (hz ▸ ha), h1 ha⟩, |
| 47 | fun _ hh => h2 (mem_of_mem_erase hh)⟩ |
| 48 | next hi => exact ⟨fun a ha => mem_insert_of_mem (h1 ha),insert_subset hu h2⟩ |
| 49 | have hc s : f (f s)=s := by |
| 50 | by_cases h : i∈s |
| 51 | · simp [f,h] |
| 52 | simp [f,h] |
| 53 | have hn s : f s ≠ s := by |
| 54 | by_cases he : i∈s |
| 55 | · have he' : i∉f s := by simp [f,he] |
| 56 | exact fun h => he' (h.symm ▸ he) |
| 57 | have he' : i∈f s := by simp [f,he] |
| 58 | exact fun h => he (h ▸ he') |
| 59 | have he : ∑ i∈S, alternating i = 0 := Finset.sum_involution (fun a _ => f a) |
| 60 | (fun a _ => by |
| 61 | unfold alternating f; split |
| 62 | next h => rw [← Finset.card_erase_add_one h,pow_succ]; ring |
| 63 | next h => rw [Finset.card_insert_of_notMem h,pow_succ]; ring) |
| 64 | (fun a _ _ => hn a) hg (fun a _ => hc a) |
| 65 | rw [he,abs_zero]; norm_num |
| 66 | |
| 67 | section Bound |
| 68 | variable {α : Type*} [DecidableEq α] |
| 69 | local notation "V" => Option α |
| 70 | |
| 71 | lemma grown {p : α → V} {R : Network V} {f : V → ℕ} {d : V → ℕ} (h : Breadth.Built (link R) f p d) : |
| 72 | reaches R := by |
| 73 | intro i j |
| 74 | have ht : ReflTransGen (link R) i none := by |
| 75 | have he x y (h : ReflTransGen (link R) x y) : ReflTransGen (link R) y x := by |
| 76 | induction h with |
| 77 | | refl => exact .refl |
| 78 | | tail _ hs IH => exact .head (backwards hs) IH |
| 79 | exact he none i (Breadth.made h i) |
| 80 | exact ht.trans (Breadth.made h j) |
| 81 | |
| 82 | /-- Every possible breadth-first parent, forgetting the order test. -/ |
| 83 | def sprouts (T : Network V) (p : α → V) := Ranked p ∧ ∀ i, link T (p i) (some i) |
| 84 | |
| 85 | def stem [Fintype α] (p : α → V) : Network V := univ.image (fun i : α => ({p i, some i}:Finset V)) |
| 86 | |
| 87 | -- Rule permitted for adding an extra edge; use singleton graphs for clarity. |
| 88 | private def token [Fintype α] (T : Network V) (p : α → V) (d f : V → ℕ) : Network V := T.filter |
| 89 | (fun e => (∀ i j, link {e} i j → d j ≤ d i+1) ∧ |
| 90 | (∀ i j, link {e} j (some i) → d j+1=d (some i) → f (p i) ≤ f j)) |
| 91 | |
| 92 | private lemma allowed_range [Fintype α] (T : Network V) (p : α → V) |
| 93 | (d f : V → ℕ) (G : Network V) (h : Breadth.Built (link G) f p d) (hG : G ⊆ T) : |
| 94 | stem p ⊆ G ∧ G ⊆ token T p d f := by |
| 95 | refine ⟨fun i hi => ?_,fun e he => ?_⟩ |
| 96 | · obtain ⟨i,-,rfl⟩ := mem_image.mp hi |
| 97 | exact (h.edges i).2 |
| 98 | have hi (i j : V) (h : link {e} i j) : link G i j := |
| 99 | ⟨h.1,(Finset.mem_singleton.mp h.2).symm ▸ he⟩ |
| 100 | exact mem_filter.mpr ⟨hG he,fun i j ht => h.paths _ _ (hi i j ht),fun i j ht => |
| 101 | h.least _ _ (hi j (some i) ht)⟩ |
| 102 | |
| 103 | private lemma ranges_allowed [Fintype α] (T : Network V) (p : α → V) |
| 104 | (d f : V → ℕ) (G : Network V) (h : Breadth.Growth p d) |
| 105 | (hl : stem p ⊆ G) (hu : G ⊆ token T p d f) : Breadth.Built (link G) f p d := by |
| 106 | have hi i j (hb : link G i j) : link ({ {i,j}} : Network V) i j := ⟨hb.1,mem_singleton_self _⟩ |
| 107 | refine ⟨h,fun i => ?_,fun i j he => (mem_filter.mp (hu he.2)).2.1 _ _ (hi _ _ he), |
| 108 | fun i j he => (mem_filter.mp (hu he.2)).2.2 i j (hi _ _ he)⟩ |
| 109 | exact ⟨fun eq => by have he := h.next i; rw [eq] at he; omega, |
| 110 | hl (mem_image_of_mem _ (mem_univ _))⟩ |
| 111 | |
| 112 | /-- Absolute bound needed in the normalized tuple sum. -/ |
| 113 | theorem pay [Fintype α] (T : Network V) : |
| 114 | |mass T| ≤ ∑ p : α → V, if sprouts T p then (1:ℝ) else 0 := by |
| 115 | let f := fun i : V => (Fintype.equivFin V i).val |
| 116 | have hf : Function.Injective f := fun i j h => (Fintype.equivFin _).injective (Fin.ext h) |
| 117 | let g := connectedGroups T |
| 118 | have hw R (hr : R∈g) := Breadth.build (link R) f ((belongs.mp hr).2 none) |
| 119 | let seed (R : Network V) := if h:R∈g then (hw R h).choose else fun _ : α => (none:V) |
| 120 | have hs R (h : R∈g) : ∃ d, Breadth.Built (link R) f (seed R) d := by |
| 121 | rw [show seed R = _ from dif_pos h]; exact (hw R h).choose_spec |
| 122 | have he (p : α → V) : |
| 123 | let a := g.filter (fun R => seed R=p) |
| 124 | |∑ R∈a, alternating R| ≤ if sprouts T p then 1 else 0 := by |
| 125 | intro a |
| 126 | rcases a.eq_empty_or_nonempty with h|h |
| 127 | · rw [h,sum_empty,abs_zero]; split <;> norm_num |
| 128 | obtain ⟨R,hr⟩ := h |
| 129 | obtain ⟨hr',hp⟩ := mem_filter.mp hr |
| 130 | obtain ⟨d,hd⟩ := hs R hr'; rw [hp] at hd |
| 131 | have hk := (belongs.mp hr').1 |
| 132 | have ha := allowed_range T p d f R hd hk |
| 133 | rw [if_pos (show sprouts T p from ⟨Breadth.growth_ranked hd.toGrowth, |
| 134 | fun i => ⟨(hd.edges i).1,hk (hd.edges i).2⟩⟩)] |
| 135 | refine interval (token T p d f) (stem p) a (Subset.trans ha.1 ha.2) ?_ |
| 136 | intro x; rw [mem_filter]; constructor |
| 137 | · rintro ⟨h,hx⟩ |
| 138 | obtain ⟨t,ht⟩ := hs x h; rw [hx] at ht |
| 139 | rw [Breadth.unique_growth hd.toGrowth ht.toGrowth] at ht |
| 140 | exact allowed_range _ _ _ _ x ht (belongs.mp h).1 |
| 141 | rintro ⟨hl,hu⟩ |
| 142 | have ht := ranges_allowed T p d f x hd.toGrowth hl hu |
| 143 | have hx : x∈g := belongs.mpr ⟨Subset.trans hu (filter_subset ..),grown ht⟩ |
| 144 | obtain ⟨y,hy⟩ := hs x hx |
| 145 | exact ⟨hx, Breadth.unique f hf hy ht⟩ |
| 146 | change |∑ R∈g, alternating R| ≤ _ |
| 147 | rw [← Finset.sum_fiberwise g seed alternating] |
| 148 | exact (Finset.abs_sum_le_sum_abs ..).trans (sum_le_sum fun i _ => he i) |
| 149 | end Bound |
| 150 | end YM.Push.AbsoluteSums.Graph |