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.Selection |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Merge.Tickets |
| 5 | open Function Finset |
| 6 | open scoped BigOperators Classical |
| 7 | variable {ι β α : Type} [Fintype ι][DecidableEq β][CommSemiring α](w:ι→β)(u v : ι) |
| 8 | def mono (w:ι→β)(u : ι): Tickets w:= ⟨{u},by simp [Draft]⟩ |
| 9 | variable (v: β→α)(f:ι→α) |
| 10 | omit [Fintype ι] in |
| 11 | lemma singleton_budget (i:β) (p:Tickets w)(hp : p.reach⊆{i}) : p=none w ∨ ∃ j, w j=i ∧ p=mono w j:=by |
| 12 | by_cases hz:p.val=∅; exact Or.inl (Subtype.ext hz) |
| 13 | obtain ⟨k,hk⟩:=nonempty_iff_ne_empty.mpr hz |
| 14 | have ht (j)(hj:j∈p.val):w j=i:= mem_singleton.mp (hp (p.reaches_of hj)) |
| 15 | refine Or.inr ⟨k,ht k hk,Subtype.ext (Finset.eq_singleton_iff_unique_mem.mpr ⟨hk,fun j hj=> p.prop hj hk ((ht _ hj).trans (ht _ hk).symm)⟩)⟩ |
| 16 | |
| 17 | def extra (i:β): α:=∑ j, if w j=i then f j else 0 |
| 18 | lemma summand (i:β) : ∑ j:Applies w {i},(∏ k∈j.val.val, f k)* (if i∈ j.val.reach then 1 else v i)=v i+extra w f i:=by |
| 19 | let a:Applies w {i}:=⟨none w,by simp [reach,none]⟩ |
| 20 | let s:= fun p: Applies w {i}=> (∏ k∈p.val.val, f k)*(if i∈ p.val.reach then 1 else v i) |
| 21 | change (∑ i,s i)=_ |
| 22 | rw [← add_sum_erase _ _ (mem_univ a),show s a=v i from by simp [s,a,none,reach],extra,← Finset.sum_filter] |
| 23 | apply congr_arg; symm |
| 24 | let g (j:ι) (h:j∈univ.filter (fun k=>w k=i)): Applies w {i}:=⟨mono w j,(by simp [reach,mono,(mem_filter.mp h).2])⟩ |
| 25 | refine Finset.sum_bij g ?_ ?_ ?_ ?_ |
| 26 | · intro k hk; exact mem_erase.mpr ⟨fun h=> (singleton_ne_empty _) (congr_arg (fun i:Applies w {i}=>i.val.val) h),mem_univ _⟩ |
| 27 | · intro x hx y hy h; exact Finset.singleton_inj.mp (congr_arg (fun i:Applies w {i}=>i.val.val) h) |
| 28 | · intro b hb; rcases singleton_budget w i b.val b.prop with hf|⟨k,h,h'⟩ -- α? implicit omitted |
| 29 | · exact False.elim (ne_of_mem_erase hb (Subtype.ext hf)) |
| 30 | exact ⟨k,mem_filter.mpr ⟨mem_univ _,h⟩,Subtype.ext h'.symm⟩ |
| 31 | intro k hk; simp [s,g,mono,reach, (mem_filter.mp hk).2] |
| 32 | |
| 33 | lemma expanded (b:Finset β): ∏ i∈b,(v i+extra w f i)=∑ j:Tickets w, if j.reach⊆ b then (∏ i∈j.val,f i)*∏ i∈b\j.reach,v i else 0:=by |
| 34 | let P (i:β): Finset β:={i} |
| 35 | let g i (p: Tickets w):= if i∈p.reach then 1 else v i |
| 36 | have ht : (b:Set β).PairwiseDisjoint P:=fun i _ j _ he=>Finset.disjoint_singleton.mpr he |
| 37 | simp_rw [← summand]; rw [on_record (w:=w) b P ht g] |
| 38 | let p (i: Tickets w):= if i.reach ⊆ b then (∏ j∈i.val,f j)*∏j∈b\i.reach,v j else 0 |
| 39 | change _=∑ j,p j |
| 40 | have he := confined p (b.biUnion P) (fun q h=> (show b.biUnion P=b by simp [P]) |>.symm ▸ (show q.reach⊆ b from Classical.byContradiction fun hx=> h (if_neg hx))) |
| 41 | rw [he]; refine sum_congr rfl fun i hi=>?_ |
| 42 | have hB : i.val.reach⊆b:=by have h:=i.prop; simpa [P] using h |
| 43 | unfold p; rw [if_pos hB]; apply congr_arg |
| 44 | have hp (j:β): g j (select i.val (P j))= if j∈ i.val.reach then 1 else v j:= by |
| 45 | unfold g; congr 1; ext -- edit |
| 46 | unfold select reach P; simp only [mem_image,mem_filter,mem_singleton]; grind |
| 47 | let f'(j:β):=if j∈i.val.reach then (1:α) else v j |
| 48 | rw [prod_congr rfl (fun j (_:j∈b) => hp j)]; change (∏ j∈b,f' j)=_ |
| 49 | rw [← prod_subset (s₂:=b) (s₁:=b\i.val.reach) (f:=f') (sdiff_subset) ?_];exact prod_congr rfl fun j hj=>if_neg (Finset.mem_sdiff.mp hj).2 |
| 50 | exact fun j hj ht=>if_pos (by by_contra hn; exact ht (mem_sdiff.mpr ⟨hj,hn⟩)) |
| 51 | end YM.Merge.Tickets |