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.Contacts.Normal.Dimension |
| 2 | import YM.Contacts.Score.Order |
| 3 | |
| 4 | /-! # Refinements of disjoint strict patches -/ |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | set_option maxHeartbeats 600000 |
| 8 | noncomputable section |
| 9 | namespace YM.Contacts.Normal |
| 10 | open Function Set Finset MeasureTheory Ordered |
| 11 | open scoped Topology BigOperators Classical |
| 12 | variable {k : ℕ} {g p l : Group k} |
| 13 | abbrev Pieces (u : Group k) := Finpartition u |
| 14 | variable {P Q : Pieces g} |
| 15 | |
| 16 | lemma one_set (P : Pieces g) (hp : P=⊤) (hg : g.Nonempty) : P.parts={g}:= by |
| 17 | subst P; have hu:= Finpartition.parts_top_subset g; obtain ⟨x,hx⟩:= Finpartition.parts_nonempty (⊤:Pieces g) hg.ne_empty; have he:= mem_singleton.mp (hu hx); exact Subset.antisymm hu (singleton_subset_iff.mpr (he ▸ hx)) -- Finset namespace |
| 18 | lemma contains_self_is_top (h : g ∈ P.parts) : P=⊤ := by |
| 19 | apply top_unique; intro p hp; rw [one_set _ rfl (P.nonempty_of_mem_parts h)] at hp; exact ⟨_,h,(mem_singleton.mp hp).le⟩ |
| 20 | lemma inner_piece (P : Pieces g) (hP : P≠⊤) {f:Group k} (hf:f∈P.parts) : f ⊂ g:= Finset.ssubset_iff_subset_ne.mpr ⟨P.subset hf, fun he=> hP (contains_self_is_top (he ▸ hf))⟩ |
| 21 | lemma many (hP : P≠⊤) (hg:g.Nonempty): ∃ i∈P.parts, ∃ j∈P.parts,i≠j:=by |
| 22 | obtain ⟨i,hi⟩:= P.parts_nonempty hg.ne_empty; obtain ⟨x,hx,hh⟩:= Finset.exists_of_ssubset (inner_piece P hP hi); obtain ⟨j,hj,hj'⟩:= P.exists_mem hx -- order check |
| 23 | exact ⟨i,hi,j,hj,fun h=> hh (h ▸ hj')⟩ |
| 24 | lemma many_card (hP : P≠⊤) (hg : g.Nonempty) : 1 < P.parts.card := Finset.one_lt_card.mpr (many hP hg) |
| 25 | lemma top_of_single (i : Fin k) (P : Pieces {i}): P=⊤:=by by_contra h; have he:=(many_card h (singleton_nonempty i)).trans_le P.card_parts_le_card; simp at he |
| 26 | |
| 27 | /-- child subpartitions. -/ |
| 28 | abbrev choices (P : Pieces g) := (a:P.parts) → Pieces a.val |
| 29 | def stitch (P : Pieces g) (C : choices P) := P.bind fun a ha=> C ⟨a,ha⟩ |
| 30 | lemma stitches {C : choices P}: p∈ (stitch P C).parts ↔ ∃ a:P.parts, p∈ (C a).parts:= by simp only [stitch,Finpartition.mem_bind,Subtype.exists] |
| 31 | lemma stitch_le {C : choices P}: stitch P C ≤ P:= fun x hx=> by obtain ⟨a,ha⟩:=(stitches.mp hx); exact ⟨_,a.property,(C a).le ha⟩ |
| 32 | lemma parent_uniq (e f : P.parts) (h : p.Nonempty) (he : p ⊆ e.val) (hf : p ⊆ f.val) : e=f:= by |
| 33 | obtain ⟨x,hx⟩:=h; exact Subtype.ext (P.eq_of_mem_parts e.property f.property (he hx) (hf hx)) |
| 34 | lemma stitch_loc {C : choices P} (v : P.parts) : |
| 35 | p∈(C v).parts ↔ p ∈ (stitch P C).parts ∧ p ⊆ v.val := by |
| 36 | refine ⟨fun h=> ⟨stitches.mpr ⟨v,h⟩,(C v).subset h⟩,fun ⟨h,h'⟩=>?_⟩ |
| 37 | obtain ⟨a,h⟩:= stitches.mp h; obtain rfl : v=a:= parent_uniq _ _ ((C a).nonempty_of_mem_parts h) h' ((C a).subset h); exact h |
| 38 | |
| 39 | def portion (h : P ≤ Q) : choices Q:= fun a=> P.ofSubset (parts:=P.parts.filter (fun y=> y ⊆ a.val)) (filter_subset _ _) (by |
| 40 | ext i; rw [mem_sup]; constructor |
| 41 | · rintro ⟨b,hb,h⟩; exact (mem_filter.mp hb).2 h |
| 42 | intro hi; obtain ⟨b,hb,hB⟩:= P.exists_mem (Q.subset a.property hi); obtain ⟨q,hq,hU⟩:= h hb |
| 43 | have he:q=a.val:= Q.eq_of_mem_parts hq a.property (hU hB) hi; exact ⟨b,mem_filter.mpr ⟨hb,by subst q; exact hU⟩,hB⟩) |
| 44 | lemma stitch_bijection (P : Pieces g) : Bijective (fun C : choices P=> (⟨stitch P C,stitch_le⟩ : Set.Iic P)) := by |
| 45 | constructor |
| 46 | · intro C D h; have he:stitch P C=stitch P D:= Subtype.ext_iff.mp h; funext a; ext t; rw [stitch_loc a,stitch_loc a,he] |
| 47 | rintro ⟨Q,hQ⟩; refine ⟨portion hQ,Subtype.ext (?_)⟩; change stitch _ _ = Q |
| 48 | ext x; rw [stitches]; constructor |
| 49 | · rintro ⟨a,ha⟩; exact (mem_filter.mp ha).1 |
| 50 | intro hx; obtain ⟨y,hy,hc⟩:= (hQ : Q ≤ P) hx; exact ⟨⟨y,hy⟩,mem_filter.mpr ⟨hx,hc⟩⟩ |
| 51 | lemma crossing (h : ¬ P ≤ Q) : ∃ p∈P.parts, ∃ A∈Q.parts,∃ B∈Q.parts, B ≠ A ∧ |
| 52 | ∃ i∈ p,∃ j∈ p,i∈ A∧j∈B := by |
| 53 | have hh : ¬ (∀ a∈ P.parts, ∃ b∈ Q.parts,a ≤ b):= fun hg=>h (fun x hx=>hg _ hx) |
| 54 | push Not at hh; obtain ⟨p,hp,hg⟩:= hh; obtain ⟨i,hi⟩:=P.nonempty_of_mem_parts hp; obtain ⟨A,hA,hi'⟩:= Q.exists_mem (P.le hp hi) |
| 55 | obtain ⟨j,hj,hj'⟩:= Finset.not_subset.mp (hg A hA); obtain ⟨B,hB,hh⟩:= Q.exists_mem (P.le hp hj); exact ⟨p,hp,A,hA,B,hB,fun h=> hj' (h ▸ hh), i,hi,j,hj,hi',hh⟩ |
| 56 | |
| 57 | /-- union from splitting one open block. -/ |
| 58 | def replace (v : P.parts) (Q : Pieces v.val) : Pieces g:= stitch P (Function.update (fun _=>⊤) v Q) |
| 59 | lemma replace_parts (i : P.parts) (Q : Pieces i.val) : (replace i Q).parts = P.parts.erase i.val ∪ Q.parts := by |
| 60 | ext x; rw [replace,stitches,Finset.mem_union]; constructor |
| 61 | · rintro ⟨j,hj⟩; by_cases h:j=i |
| 62 | · subst j; right; rw [Function.update_self] at hj; exact hj |
| 63 | rw [Function.update_of_ne h] at hj; have hh:x=j.val:= mem_singleton.mp (by rw [← one_set (⊤:Pieces j.val) rfl (P.nonempty_of_mem_parts j.property)]; exact hj); subst x; exact Or.inl (mem_erase.mpr ⟨Subtype.val_injective.ne h,j.property⟩) |
| 64 | rintro (h|h) |
| 65 | · obtain ⟨hh,h⟩:= mem_erase.mp h; let j:P.parts:=⟨x,h⟩; refine ⟨j,?_⟩; rw [Function.update_of_ne (show j≠i from fun h=>hh (congr_arg Subtype.val h)),one_set _ rfl (P.nonempty_of_mem_parts j.property)]; exact mem_singleton_self _ |
| 66 | exact ⟨i,by simp only [Function.update_self,h]⟩ |
| 67 | lemma replace_disj (i : P.parts) (Q : Pieces i.val) : Disjoint (P.parts.erase i.val) Q.parts := by |
| 68 | refine Finset.disjoint_left.mpr (fun x hx hc=>?_); obtain ⟨hh,he⟩:= mem_erase.mp hx |
| 69 | obtain ⟨z,hz⟩:= P.nonempty_of_mem_parts he; exact hh (P.eq_of_mem_parts he i.property hz (Q.le hc hz)) |
| 70 | lemma replace_finer (i : P.parts) {Q : Pieces i.val}(h : Q≠⊤) : P.parts.card < (replace i Q).parts.card:= by |
| 71 | rw [replace_parts, card_union_of_disjoint (replace_disj ..),← Finset.card_erase_add_one i.property]; exact Nat.add_lt_add_left (many_card h (P.nonempty_of_mem_parts i.property)) _ -- order LHS converted? |
| 72 | lemma costs_bind {β : Type*} [AddCommMonoid β] (P:Pieces g) (d: Fin k→β) : g.sum d=P.parts.sum (fun b=>b.sum d):=by |
| 73 | conv_lhs => rw [← P.biUnion_parts] |
| 74 | exact Finset.sum_biUnion P.disjoint |
| 75 | end YM.Contacts.Normal |