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.Flavor |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.MergeProof |
| 5 | open Finset Function Filter Set MeasureTheory Lattice Wilson RG Source Labels Extra.Histories |
| 6 | open Planned.GuardedAtom Push Local Motion |
| 7 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff Classical |
| 8 | variable {G:Gauge}{n:Side}{ι:Type*}{d:ℕ}{F:Labels.Frame G d}{o:Site n}{B:SectionData F} |
| 9 | {R:Rep G n}{P:BudgetPoint}(m:Motion) (x:Site n)(U:Config G n) |
| 10 | def stepUp (p:Config G n→ℂ)(U:Config G n):=Motion.scalar m (p (pull m.1 x U)) |
| 11 | def sky (m:Motion) (x:Site n): Equiv.Perm (Support n):=(turnSites m.1 x).finsetCongr |
| 12 | lemma shading (p): sky m x p=p.image (turnSites m.1 x):=by simp [sky,Finset.map_eq_image] |
| 13 | def puff (m:Motion) (x:Site n): Equiv.Perm (Box n):=Equiv.prodCongr (sky m x) (sky m x) |
| 14 | def upwards (p:Response G n):Response G n:= fun i=> stepUp m x (p ((sky m x).symm i)) |
| 15 | def floatUp (f:Box n→Config G n→ℂ):Box n→Config G n→ℂ:= fun i=>stepUp m x (f ((puff m x).symm i)) |
| 16 | lemma scalar_z : Motion.scalar m 0=0:=by unfold Motion.scalar;split <;> simp |
| 17 | variable (π : R.activities.Moves m.1 x) |
| 18 | lemma location (p:ℕ): barcode R.activities (π.kp p)= puff m x (barcode R.activities p):=by |
| 19 | unfold puff barcode; change (_,_)=(sky m x _,sky m x _);simp_rw [shading]; exact Prod.ext (π.forced_support _) (π.forced_inventory _) |
| 20 | lemma roam {f f':ℕ→Config G n→ℂ}(h:∀ i U,f' (π.kp i) U = stepUp m x (f i) U): profile R.activities f'= floatUp m x (profile R.activities f):=by |
| 21 | funext p U; obtain ⟨q,rfl⟩:= (puff m x).surjective p; let P:= R.activities |
| 22 | rw [profile,expand_eq]; rw [← π.kp.tsum_eq]; unfold floatUp stepUp; rw [(puff m x).symm_apply_apply];rw [profile,expand_eq,Motion.scalar_tsum]; refine tsum_congr fun i=> ?_ |
| 23 | simp only [location m x π,Equiv.apply_eq_iff_eq,h];split <;> simp [stepUp,scalar_z m] |
| 24 | lemma foyer (u:Coefficient F n): profile R.activities (audition π u).forced=floatUp m x (profile R.activities u.forced):=by |
| 25 | apply roam m x π; intro i U; unfold audition stepUp Motion.scalar; split;next h=> simp only [barAll,forced_reorient,Pi.star_apply,Function.comp_apply] |
| 26 | next=>rw [forced_reorient]; rfl |
| 27 | lemma rise {f:Response G n}{t:ℝ}(h: Attainment P o f t): Attainment P (affine m.1 x o) (upwards m x f) t:=by |
| 28 | let r:= sky m x; obtain ⟨e,hH,hq⟩:= h.toll; let f':= upwards m x f |
| 29 | have he p: f' (r p)=stepUp m x (f p):= by unfold f' upwards;dsimp only [r]; rw [ Equiv.symm_apply_apply] -- rwa |
| 30 | have hC: Measurable (Motion.scalar m):=by unfold Motion.scalar; split_ifs; exact continuous_star.measurable; exact measurable_id |
| 31 | refine ⟨fun i=> ?_,fun i hi=> ?_,fun i=> e (r.symm i),Local.sumBudget_pass r.toEmbedding _ ?_ (fun i hi=> (hi (r.surjective i)).elim),fun i=> ⟨(hq _).1,fun U=> (Motion.norm_scalar ..).trans_le ((hq _).2 _)⟩⟩ |
| 32 | · obtain ⟨p,rfl⟩:= r.surjective i; let j:= h.shaped p |
| 33 | rw [show upwards m x f (r p)=_ from he p]; have hp:r p=p.image (turnSites m.1 x):= shading ..; rw [hp] |
| 34 | exact ⟨fun U V hX ht=> congr_arg (Motion.scalar m) (uses_pull j.sites m.1 x U V hX ht),fun g U=>congr_arg (Motion.scalar m) (invariant_pull j.symmetry m.1 x g U),hC.comp (j.borel.comp (continuous_pull ..).measurable),fun U hU=>by unfold stepUp; rw [j.healthy_zero _ ((healthy_pull ..).mp hU),scalar_z]⟩ |
| 35 | · obtain ⟨p,rfl⟩:= r.surjective i; rw [show r p=_ from shading ..] |
| 36 | exact Finset.mem_image_of_mem (turnSites m.1 x) (h.marked _ (fun hz=> hi (by change f' _= _; rw [he,hz]; exact funext fun _=> scalar_z m))) |
| 37 | simp_rw [Equiv.coe_toEmbedding,r.symm_apply_apply]; simpa only [r,reservedMass,shading,cover_map _ (turn_sep m.1 x)] using! hH |
| 38 | open Push |
| 39 | local notation "Q" => R.activities |
| 40 | lemma meet_sky (p q: Support n): Disjoint (sky m x p) (sky m x q)↔ Disjoint p q :=by simp only [shading]; exact Finset.disjoint_image (turnSites m.1 x).injective |
| 41 | lemma bloc (q: Finset ℕ)(f:ℕ→Support n)(h:∀ i,f (π.kp i)= sky m x (f i)): (q.map π.kp.toEmbedding).biUnion f= sky m x (q.biUnion f):=by |
| 42 | rw [Finset.map_eq_image,Finset.image_biUnion]; change (q.biUnion fun a=> f (π.kp a))=_; simp_rw [h,shading, Finset.biUnion_image] |
| 43 | lemma packed (i:Support n)(q:Finset ℕ) : Packs (Q) (sky m x i) (q.map π.kp.toEmbedding) ↔ Packs (Q) i q:=by |
| 44 | have hp(k): Local.patch (Q) (π.kp k)= sky m x (Local.patch (Q) k):= congr_arg Prod.fst (location m x π k) |
| 45 | have hf: Local.Separate (Q) (q.map π.kp.toEmbedding)↔ Local.Separate (Q) q:=by |
| 46 | unfold Local.Separate Set.PairwiseDisjoint Function.onFun Set.Pairwise -- names |
| 47 | simp only [Finset.mem_coe, Finset.mem_map,forall_exists_index,and_imp,forall_apply_eq_imp_iff₂,Equiv.toEmbedding_apply,ne_eq,Equiv.apply_eq_iff_eq,hp,meet_sky] |
| 48 | have hh:(∀ j∈ q.map π.kp.toEmbedding, ¬Disjoint (sky m x i) (Local.patch (Q) j))↔ ∀ j ∈q,¬ Disjoint i (Local.patch (Q) j):=by |
| 49 | simp only [Finset.mem_map,forall_exists_index,and_imp,forall_apply_eq_imp_iff₂,Equiv.toEmbedding_apply,hp,meet_sky] |
| 50 | exact ⟨fun h=>⟨Finset.map_nonempty.mp h.1,hf.mp h.2,hh.mp h.3⟩,fun h=>⟨Finset.map_nonempty.mpr h.1,hf.mpr h.2,hh.mpr h.3⟩⟩ |
| 51 | lemma boxturn (i:Support n)(q:Finset ℕ): fusionBox Q (sky m x i) (q.map π.kp.toEmbedding)= puff m x (fusionBox Q i q):=by |
| 52 | refine Prod.ext ?_ (bloc m x π q _ (fun j=> congr_arg Prod.snd (location m x π j))) |
| 53 | unfold fusionBox; change _ ∪ _=sky m x (i ∪ _) |
| 54 | rw [bloc m x π q (Local.patch Q) (fun j=> congr_arg Prod.fst (location m x π j))]; simp only [shading,Finset.image_union] |
| 55 | lemma swept (t:ℝ)(i:Support n)(b:Finset ℕ)(p:Box n): grasp (Q) t (sky m x i) (b.map π.kp.toEmbedding) (puff m x p) U = Motion.scalar m (grasp Q t i b p (pull m.1 x U)):=by |
| 56 | have hx : (puff m x p).1 ∩ flags t U=(puff m x p).2↔ p.1∩flags t (pull m.1 x U)=p.2:=by |
| 57 | change sky m x _ ∩ _= sky m x _ ↔ _; nth_rw 1 [← Work.H03.flags_send m.1 x t U] -- order |
| 58 | simp_rw [shading]; exact (show (p.fst.image (turnSites m.1 x)) ∩ _= _↔ _ from by rw [show affine m.1 x=⇑(turnSites m.1 x) from rfl, ← Finset.image_inter _ _ (turnSites m.1 x).injective]; exact (Finset.image_injective (turnSites m.1 x).injective).eq_iff) |
| 59 | simp_rw [grasp,packed m x π,boxturn m x π, Equiv.apply_eq_iff_eq,hx]; split_ifs |
| 60 | · unfold Motion.scalar;split_ifs <;>simp [π.valuesK,star_prod] |
| 61 | rw [scalar_z] |
| 62 | include π |
| 63 | lemma hooked (t:ℝ)(p:Response G n): hook Q t (upwards m x p)= floatUp m x (hook Q t p):=by |
| 64 | funext i U; obtain ⟨i,rfl⟩:= (puff m x).surjective i |
| 65 | unfold hook floatUp upwards -- typo |
| 66 | rw [(puff m x).symm_apply_apply,← Equiv.sum_comp (sky m x)] -- control |
| 67 | unfold stepUp; have hq (V:Support n→ℂ): Motion.scalar m (∑ p,V p)=∑ p,Motion.scalar m (V p):=by unfold Motion.scalar; split_ifs; exact star_sum ..;rfl |
| 68 | rw [hq]; refine Finset.sum_congr rfl fun p _=>?_ |
| 69 | simp only [Equiv.symm_apply_apply,Motion.scalar_mul]; rw [portion,portion,Motion.scalar_tsum]; congr 1 |
| 70 | nth_rw 1 [← π.kp.finsetCongr.tsum_eq]; exact tsum_congr fun j=>swept m x U π _ p j i |
| 71 | end YM.MergeProof |