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.SwitchCost |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Merge.Switch |
| 5 | open Function Set Finset Filter MeasureTheory Marker GridRenewal.Rain |
| 6 | open scoped Topology BigOperators Classical |
| 7 | variable {ι U A V : Type}[Fintype ι] [DecidableEq V]{b : ℝ} {R:Census V} |
| 8 | variable (f : U → Ways ι)(hp : Paid f b) |
| 9 | include hp in |
| 10 | lemma Paid.toPoint (u:U) : Paid (fun _:Unit=>f u) b:=by obtain ⟨a,h,hA,H⟩:=hp; exact ⟨a,h,hA,fun _=>H u⟩ -- include |
| 11 | variable (r:ι→Poly R) |
| 12 | lemma summed (A:Finset U)(c:U→Ways ι)(d:U→ℝ) (h:∀ i∈ A,Paid (fun _:Unit=>c i) (d i)) : sound r (∑ i∈ A,c i)=∑ i∈A, sound r (c i):=by |
| 13 | induction A using Finset.induction with |
| 14 | | empty => simp only [Finset.sum_empty]; exact (const_sounds r 0).trans (by simp) |
| 15 | | insert i s he ih=> |
| 16 | have hs j hj:= h j (mem_insert_of_mem hj) |
| 17 | rw [sum_insert he,sum_insert he]; have H:= Paid.sum s _ _ hs; let u:=∑ i∈s,c i |
| 18 | have hv : (∑ i∈s,(fun _:Unit=>c i)) ()=u:=by rw [Finset.sum_apply] |
| 19 | obtain ⟨x,hX⟩ := H.works (); rw [hv] at hX; unfold u at hX |
| 20 | rw [add_sounds r (show Models (c i) _ from ((h i (mem_insert_self ..)).works ()).choose_spec) hX, ih hs] |
| 21 | lemma product (hr:∀ i,r i*r i=0) (A:Finset U)(c:U→Ways ι)(d:U→ℝ)(h:∀ i∈ A,Paid (fun _:Unit=>c i) (d i)): sound r (∏ i∈A,c i)=∏ i∈A,sound r (c i):=by |
| 22 | induction A using Finset.induction with |
| 23 | | empty => simp only [Finset.prod_empty]; exact (const_sounds r 1).trans (by simp) |
| 24 | | insert i s he ih => |
| 25 | have hs j hj:= h j (mem_insert_of_mem hj); rw [prod_insert he, prod_insert he]; have H:= Paid.prod s _ _ hs; let u:=∏i∈s,c i |
| 26 | have hv : (∏ i∈s,(fun _:Unit=>c i)) ()=u:=by rw [Finset.prod_apply] |
| 27 | obtain ⟨x,hX⟩ := H.works (); rw [hv] at hX; unfold u at hX |
| 28 | rw [mul_sounds r hr (show Models (c i) _ from ((h i (mem_insert_self ..)).works ()).choose_spec) hX, ih hs] |
| 29 | lemma gather (r:ι→Poly R) (q:Finset ι) (c:ℝ): sound r (click q c)=(↑c:ℂ) • ∏ i∈q,r i:=by rw [sound,(modelClick q c).exact,mapBench] |
| 30 | include hp |
| 31 | lemma Paid.atZero (i:Finset ι)(u:U): jet (f u) ∅= f u 0 i:=by |
| 32 | obtain ⟨g,h⟩:=hp.works u; rw [h.exact,←h.current _ ⟨le_rfl,zero_le_one⟩] |
| 33 | unfold value; rw [sum_eq_single ∅]; simp |
| 34 | · intro j _ hj; rw [zero_pow (ne_of_gt (card_pos.mpr (Finset.nonempty_iff_ne_empty.mpr hj))),zero_mul] |
| 35 | simp |
| 36 | lemma sunset (u:U) (hr:∀ i,(r i).part R.quiet=0) : (sound r (f u)).part R.quiet=f u 0 ∅:=by |
| 37 | unfold sound; rw [mapScores_apply,Poly.part_sum,sum_eq_single ∅]; rw [hp.atZero,Finset.prod_empty,Poly.part_smul,Poly.one_part,if_pos rfl,mul_one] -- ambiguity |
| 38 | · intro i _ hi; obtain ⟨j,hj⟩:= Finset.nonempty_iff_ne_empty.mpr hi; rw [Poly.part_smul, ← mul_prod_erase _ _ hj, Poly.quiet_mul,hr,zero_mul,mul_zero] |
| 39 | simp |
| 40 | end YM.Merge.Switch |