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.Next.MULTISOURCE.Boxes |
| 2 | |
| 3 | /-! |
| 4 | # Geometry of forced mergers: special shapes with zero or one marker |
| 5 | -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Multi.Couples |
| 10 | open RG Wilson Lattice Finset Function Filter MeasureTheory |
| 11 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 12 | |
| 13 | variable {n : Side} {V : Type} [DecidableEq V] [Fintype V] (Y : V → Support n) |
| 14 | |
| 15 | lemma strike {b} (h : b∈boxes Y) {i} (hi : i ∈ b.toLeft) {j} (hj : j∈b) (he : Sum.inl i ≠ j) : |
| 16 | ∃ x ∈ b.toRight, ¬ Disjoint (Y x) i.zone := by |
| 17 | obtain ⟨H,H',-,h⟩ := (owns ..).mp h |
| 18 | -- moving from this pack has to hit a marker as the first distinct move |
| 19 | have hl : ∀ v, Ac.chain (span Y) b v (Sum.inl i) → Sum.inl i≠v → ∃ x∈b.toRight, ¬Disjoint (Y x) i.zone := by |
| 20 | intro v hv hn |
| 21 | generalize hy : (Sum.inl i : Atom n V)=y at hv |
| 22 | induction hv with |
| 23 | | refl => exact False.elim (hn hy) |
| 24 | | @tail x l h hd ih => |
| 25 | subst l |
| 26 | by_cases he : Sum.inl i=x |
| 27 | · exact ih he |
| 28 | cases x with |
| 29 | | inl k => |
| 30 | obtain ⟨h1,h2,y,h3,h4⟩ := hd |
| 31 | apply False.elim |
| 32 | have hf : Disjoint i.zone k.zone := H' hi (mem_toLeft.mpr h1) (fun H => he (H ▸ rfl)) |
| 33 | exact Finset.disjoint_left.mp hf h4 h3 |
| 34 | | inr k => |
| 35 | obtain ⟨h1,h2,y,h3,h4⟩ := hd |
| 36 | exact ⟨k,mem_toRight.mpr h1,fun h => Finset.disjoint_left.mp h h3 h4⟩ |
| 37 | exact hl j (h j hj (Sum.inl i) (mem_toLeft.mp hi)) he |
| 38 | |
| 39 | lemma all_hit {b} (h : b∈ boxes Y) (hh : b.toRight.Nonempty) : |
| 40 | ∀ i∈ b.toLeft, ∃ v∈ b.toRight, ¬ Disjoint (Y v) i.zone := by |
| 41 | obtain ⟨v,hv⟩ := hh |
| 42 | exact fun i hi => strike Y h hi (mem_toRight.mp hv) (by simp) |
| 43 | |
| 44 | omit [DecidableEq V] in |
| 45 | lemma alone (i : Pack n) : ({Sum.inl i}:Recipe n V)∈boxes Y := by |
| 46 | apply (owns ..).mpr |
| 47 | have he : ({Sum.inl i}:Recipe n V).toLeft={i} := by ext; simp |
| 48 | rw [he]; refine ⟨singleton_nonempty _,?_,singleton_nonempty _,?_⟩ |
| 49 | · simp |
| 50 | intro j hj k hk; rw [mem_singleton.mp hk, mem_singleton.mp hj]; exact .refl |
| 51 | |
| 52 | omit [DecidableEq V] in |
| 53 | lemma fused_one (i : Pack n) : fused Y {Sum.inl i}=i := by |
| 54 | apply Subtype.ext; rw [fused_eq Y (alone Y i)]; apply Prod.ext |
| 55 | · simp [ground,span] |
| 56 | simp [tags,show ({Sum.inl i}:Recipe n V).toLeft={i} by ext; simp] |
| 57 | |
| 58 | lemma purchase {b i} (h : b ∈ boxes Y) (hv : fused Y b=i) (he : b.toRight=∅) : b={Sum.inl i} := by |
| 59 | obtain ⟨x,hx⟩ := ((owns ..).mp h).1 |
| 60 | have HH : b={Sum.inl x} := by |
| 61 | refine eq_singleton_iff_unique_mem.mpr ⟨mem_toLeft.mp hx,fun i hi => ?_⟩ |
| 62 | by_contra hn |
| 63 | obtain ⟨x,hx,_⟩ := strike Y h hx hi (Ne.symm hn) |
| 64 | simp [he] at hx |
| 65 | rw [HH,fused_one] at hv; rwa [← hv] |
| 66 | |
| 67 | omit [DecidableEq V] [Fintype V] in |
| 68 | lemma plus_span (i : V) (s : Finset (Pack n)) : |
| 69 | ground Y (s.disjSum {i}) = Y i ∪ s.biUnion Pack.zone := by |
| 70 | ext x; simp only [ground, mem_biUnion, mem_union]; constructor |
| 71 | · rintro ⟨p,hp,H⟩; cases p with |
| 72 | | inr y => |
| 73 | obtain rfl : y=i := mem_singleton.mp (Finset.inr_mem_disjSum.mp hp); left; exact H |
| 74 | | inl p => exact Or.inr ⟨p, Finset.inl_mem_disjSum.mp hp,H⟩ |
| 75 | · rintro (h|⟨p,hp,h⟩) |
| 76 | · exact ⟨Sum.inr i,by simp,h⟩ |
| 77 | exact ⟨Sum.inl p,by simp [hp],h⟩ |
| 78 | |
| 79 | lemma plus_box (i : V) (s : Finset (Pack n)) : |
| 80 | s.disjSum {i} ∈ boxes Y ↔ s.Nonempty ∧ (s:Set (Pack n)).PairwiseDisjoint Pack.zone ∧ |
| 81 | ∀ j∈s,¬ Disjoint (Y i) j.zone := by |
| 82 | let a := s.disjSum {i} |
| 83 | constructor |
| 84 | · intro h |
| 85 | obtain ⟨ht,hp,_⟩ := (owns ..).mp h |
| 86 | refine ⟨by simpa using ht,by simpa using hp,fun j hj => ?_⟩ |
| 87 | obtain ⟨x,hx,H⟩ := strike Y h (show j∈a.toLeft by simpa [a]) (show Sum.inr i∈ a by simp [a]) (by simp) |
| 88 | obtain rfl : x=i := by simpa using hx |
| 89 | exact H |
| 90 | rintro ⟨ht,hp,H⟩ |
| 91 | rw [owns,toLeft_disjSum]; refine ⟨ht,hp,⟨Sum.inr i,by simp⟩,?_⟩ |
| 92 | have he (p) (hh : p∈a) : Ac.chain (span Y) a p (Sum.inr i) := by |
| 93 | cases p with |
| 94 | | inr y => |
| 95 | obtain rfl : y=i := by simpa [a] using hh |
| 96 | exact .refl |
| 97 | | inl k => |
| 98 | obtain ⟨z,hz,hz'⟩ := Finset.not_disjoint_iff.mp (H k (by simpa [a] using hh)) |
| 99 | exact .single ⟨hh, by simp [a],z,hz',hz⟩ |
| 100 | intro p hh t hb; exact Relation.ReflTransGen.trans (he p hh) (Ac.swaps (span Y) (he t hb)) |
| 101 | end YM.Multi.Couples |