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.MergeProof.Switch |
| 2 | /-! # Choosing distinct occupied wings. -/ |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.Merge |
| 6 | open Function Finset |
| 7 | open scoped BigOperators Classical |
| 8 | variable {ι β χ α : Type} [Fintype ι][DecidableEq β] |
| 9 | (w : ι→β) |
| 10 | |
| 11 | def Draft (t:Finset ι): Prop := Set.InjOn w (t:Set ι) |
| 12 | abbrev Tickets:= {t: Finset ι // Draft w t} |
| 13 | namespace Tickets |
| 14 | variable {w} |
| 15 | def reach (v:Tickets w): Finset β:= v.val.image w |
| 16 | omit [Fintype ι] in |
| 17 | @[simp] lemma reaches_of {i} (v:Tickets w)(hi:i∈v.val): w i∈ v.reach:=mem_image_of_mem _ hi |
| 18 | |
| 19 | def none (w:ι→β): Tickets w:=⟨∅,by simp [Draft]⟩ |
| 20 | omit [Fintype ι] in |
| 21 | lemma empty (p:Tickets w)(h:p.reach⊆ ∅): p=none w:= Subtype.ext (Finset.eq_empty_iff_forall_notMem.mpr fun _i hi=> Finset.notMem_empty _ (h (p.reaches_of hi))) |
| 22 | |
| 23 | def select (p:Tickets w)(U:Finset β): Tickets w:= ⟨p.val.filter fun i=>w i∈U,p.property.mono (filter_subset ..)⟩ |
| 24 | omit [Fintype ι] in |
| 25 | lemma selected (p:Tickets w)(U:Finset β): (select p U).reach ⊆ U:=by |
| 26 | intro i hi; obtain ⟨j,h,rfl⟩:=mem_image.mp hi; exact (mem_filter.mp h).2 |
| 27 | |
| 28 | omit [Fintype ι] in |
| 29 | private lemma selection (p : Tickets w) (A U : Finset β) (r : ι→α) [CommMonoid α] (h:Disjoint A U)(hp:p.reach⊆ A∪U): (∏ i∈p.val, r i)=(∏ i∈(select p A).val,r i)*∏ j∈(select p U).val,r j:=by |
| 30 | let a:=select p A; let b:=select p U; have hh:p.val=a.val∪b.val:=by |
| 31 | ext i; constructor |
| 32 | · intro h; rcases mem_union.mp (hp (p.reaches_of h)) with hx|hx; exact mem_union_left _ (mem_filter.mpr ⟨h,hx⟩); exact mem_union_right _ (mem_filter.mpr ⟨h,hx⟩) |
| 33 | intro h; rcases mem_union.mp h with hx|hx <;> exact (mem_filter.mp hx).1 |
| 34 | nth_rw 1 [hh]; exact prod_union (Finset.disjoint_left.mpr fun i hi hk=> Finset.disjoint_left.mp h ((mem_filter.mp hi).2) ((mem_filter.mp hk).2)) |
| 35 | |
| 36 | variable {A B : Finset β}(p q : Tickets w) |
| 37 | omit [Fintype ι] in |
| 38 | def graft (h:Disjoint A B)(hp:p.reach⊆A) (hq:q.reach⊆ B): Tickets w:=⟨p.val∪q.val,fun i hi j hj hz=>by |
| 39 | rcases mem_union.mp hi with hi|hi <;> rcases mem_union.mp hj with hj|hj |
| 40 | · exact p.prop hi hj hz |
| 41 | · exact False.elim (Finset.disjoint_left.mp h (hp (p.reaches_of hi)) (hz.symm ▸ hq (q.reaches_of hj))) |
| 42 | · exact False.elim (Finset.disjoint_left.mp h (hp (p.reaches_of hj)) (hz ▸ hq (q.reaches_of hi))) |
| 43 | exact q.prop hi hj hz⟩ |
| 44 | |
| 45 | abbrev Applies (w:ι→β)(A:Finset β):= {p : Tickets w // p.reach ⊆ A} |
| 46 | omit [Fintype ι] in |
| 47 | def sever (h:Disjoint A B) (w:ι→β): Applies w (A∪B) ≃ Applies w A × Applies w B where |
| 48 | toFun p:= (⟨p.val.select A,selected ..⟩,⟨p.val.select B,selected ..⟩) |
| 49 | invFun x:= ⟨graft x.1.val x.2.val h x.1.prop x.2.prop,by |
| 50 | unfold reach graft; rw [Finset.image_union]; exact union_subset_union x.1.property x.2.property⟩ |
| 51 | left_inv p:= by |
| 52 | apply Subtype.ext; apply Subtype.ext; ext i; constructor |
| 53 | · intro h; rcases mem_union.mp h with hx|hx<;> exact (mem_filter.mp hx).1 |
| 54 | intro hi; rcases mem_union.mp (p.prop (p.val.reaches_of hi)) with hx|hx; exact mem_union_left _ (mem_filter.mpr ⟨hi,hx⟩); exact mem_union_right _ (mem_filter.mpr ⟨hi,hx⟩) |
| 55 | right_inv x:=by |
| 56 | apply Prod.ext |
| 57 | · apply Subtype.ext; apply Subtype.ext; ext i; constructor |
| 58 | · intro hk; obtain ⟨hk,hp⟩:= mem_filter.mp hk; rcases mem_union.mp hk with hk|hk; exact hk; exact False.elim (Finset.disjoint_left.mp h hp (x.2.prop (x.2.val.reaches_of hk))) |
| 59 | intro hi; exact mem_filter.mpr ⟨mem_union_left _ hi,x.1.prop (x.1.val.reaches_of hi)⟩ |
| 60 | apply Subtype.ext; apply Subtype.ext; ext i; constructor |
| 61 | · intro hk; obtain ⟨hk,hp⟩:= mem_filter.mp hk; rcases mem_union.mp hk with hk|hk; exact False.elim (Finset.disjoint_left.mp h (x.1.prop (x.1.val.reaches_of hk)) hp); exact hk |
| 62 | intro hi; exact mem_filter.mpr ⟨mem_union_right _ hi,x.2.prop (x.2.val.reaches_of hi)⟩ |
| 63 | |
| 64 | -- classical issue macros. test variable χ polygon. |
| 65 | section |
| 66 | variable [CommSemiring α] |
| 67 | lemma on_record (S : Finset χ)(P : χ→ Finset β) (h : (S:Set χ).PairwiseDisjoint P) (f : χ → Tickets w→α) (z : ι→α): |
| 68 | (∏ i∈S,∑ j : Applies w (P i),(∏ i∈j.val.val,z i)* f i j.val) = |
| 69 | ∑ j : Applies w (S.biUnion P),(∏ i ∈ j.val.val,z i)*∏ i∈S, f i (j.val.select (P i)):=by |
| 70 | induction S using Finset.induction with |
| 71 | | empty => |
| 72 | let A:=Applies w ((∅:Finset χ).biUnion P); let b:A:= ⟨none w,by simp [reach,none]⟩ |
| 73 | symm; rw [Finset.sum_eq_single b]; · simp [b,none] |
| 74 | · exact fun j hj h=> False.elim (h (Subtype.ext (j.val.empty (by have h:= j.prop; simpa using h)))) |
| 75 | exact fun h=>False.elim (h (Finset.mem_univ b)) |
| 76 | | insert i S hi ih=> |
| 77 | let T:=insert i S; let A:=P i; let B:=S.biUnion P |
| 78 | have hp: (S:Set χ).PairwiseDisjoint P:=fun _ hx _ hy=> h (mem_insert_of_mem hx) (mem_insert_of_mem hy) |
| 79 | have he : Disjoint A B:=Finset.disjoint_left.mpr fun j hj hx=> by obtain ⟨k,hk,hX⟩:= mem_biUnion.mp hx; exact Finset.disjoint_left.mp (h (mem_insert_self ..) (mem_insert_of_mem hk) (fun hx=>hi (hx.symm ▸ hk))) hj hX |
| 80 | rw [prod_insert hi, ih hp]; rw [Finset.biUnion_insert] |
| 81 | let X (t:Applies w A):=(∏ j∈t.val.val,z j)*f i t.val |
| 82 | let Y (t:Applies w B):=(∏ j∈t.val.val,z j)*∏ i∈ S,f i (t.val.select (P i)) |
| 83 | change (∑ t,X t)*(∑ t,Y t)= ∑ j : Applies w (A∪B), _ |
| 84 | rw [sum_mul]; simp_rw [Finset.mul_sum]; rw [← Fintype.sum_prod_type (fun p : Applies w A × Applies w B=>X p.1 *Y p.2)]; symm; refine Fintype.sum_equiv (sever he w) _ _ ?_ |
| 85 | intro p; change _ = X ⟨p.val.select A,_⟩ * Y ⟨p.val.select B,_⟩; unfold X Y |
| 86 | have hz(k:χ)(hk:k∈S) : select p.val (P k)= (p.val.select B).select (P k):= by |
| 87 | apply Subtype.ext; ext j; constructor |
| 88 | · intro h; obtain ⟨h,u⟩:=mem_filter.mp h; exact mem_filter.mpr ⟨mem_filter.mpr ⟨h,mem_biUnion.mpr ⟨_,hk,u⟩⟩,u⟩ |
| 89 | intro h; obtain ⟨h,u⟩:=mem_filter.mp h; exact mem_filter.mpr ⟨(mem_filter.mp h).1,u⟩ |
| 90 | simp_rw [selection p.val A B z he p.prop,prod_insert hi]; rw [prod_congr rfl (fun j (hj:j∈S)=> congr_arg (f j) (hz j hj))]; ac_rfl |
| 91 | lemma confined (f:Tickets w→α)(z: Finset β) (hp:∀ p,f p ≠ 0→p.reach⊆z): (∑p,f p)=∑ p : Applies w z,f p.val :=by |
| 92 | symm; apply Finset.sum_of_injOn Subtype.val (fun _ _ _ _=>Subtype.ext) (fun _ _=>Finset.mem_univ _) ?_ (fun _ _=> rfl) |
| 93 | intro i _ hi; by_contra h; apply hi; exact ⟨⟨i,hp i h⟩, mem_univ _,rfl⟩ |
| 94 | end |
| 95 | end Tickets |
| 96 | end YM.Merge |