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.Palette |
| 2 | import YM.MergeProof.Spread |
| 3 | import YM.MergeProof.SwitchCost |
| 4 | import YM.PhysicalNext.RG_NEXT_COMPLETE_REPEATABLE_NONLINEAR_STEP.Daisy.Solvent |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Merge.Palette |
| 9 | open Function Filter Lattice RG RG.Patch Pressure Pressure.Stores Pressure.Tube Tree Wilson Finset MeasureTheory Matrix |
| 10 | open Push Push.AbsoluteSums Precision Exterior ConnectedActivityE6 Shell Channel Next.Fluctuations SectorMeasure Oriented Work.E03 |
| 11 | open Mask Contract Work.F03 Presented LabelSum Sector Footprint Packets SliceRows Control Window Pulse |
| 12 | open Coat Matter ProbabilityTheory Poll Pond PhysicalNext.Repeat PhysicalNext.Repeat.Lotus Greenbelt |
| 13 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 14 | variable {ι : Type} [Fintype ι] {G : Gauge} {c f L : Side} {S : StepData c f} {P:Teller G} {T: Tube G S} {F : Forest S.ratio} {R : Rep G f} |
| 15 | {p : Molecule S} {m : ℕ} {W a r σ E Λ μ x κ w C : ℝ} {Ñ:ChartRatio G} |
| 16 | {Q: YM.ConnectedActivityE6.Target G P} {o: ConnectedActivityE6.Target.Order G W} |
| 17 | variable (M:ι→Lotus.Leaf R)(Y:Cash W x μ L Q o C T R) (χ:Chi) |
| 18 | local notation "w"=> sign M S |
| 19 | local notation "sx"=> radiusB x |
| 20 | lemma likely_norm {α : Type}[Fintype α][Nonempty α] (p:α→ℝ) (a:ℝ)(ha:∀ i,‖p i‖ ≤ a): ‖likely p‖ ≤ a:=by |
| 21 | unfold likely; rw [norm_mul,Real.norm_of_nonneg (by positivity : 0 ≤ ((Fintype.card α:ℝ)⁻¹))]; have h:=mul_le_mul_of_nonneg_left ((norm_sum_le ..).trans (sum_le_sum (s:=univ) fun i _=>ha i)) (by positivity : 0 ≤ ((Fintype.card α:ℝ)⁻¹)); simp only [sum_const,nsmul_eq_mul,card_univ] at h; exact h.trans_eq (inv_mul_cancel_left₀ (by positivity: (Fintype.card α:ℝ) ≠ 0) _) |
| 22 | omit [Fintype ι] in |
| 23 | lemma act_norm (p:Molecule S)(i:Tickets w)(U:Config G c)(h:i.reach ⊆ p) : |
| 24 | ‖act M Y χ U p i‖≤ (team M i).weight*∏ j∈ p\i.reach,Y.text j:=by |
| 25 | letI:Nonempty (Forest S.ratio):=Tree.select S.ratio S.patch.odd_side |
| 26 | let M':=team M i; unfold act Team.lotus; refine likely_norm _ _ fun T0=>?_ ; unfold Team.bloom; split |
| 27 | next hv=> |
| 28 | unfold Team.steep; apply likely_norm; intro j; apply (norm_integral_le_integral_norm _).trans |
| 29 | let V:=prism T x χ o.K U (allot T0) |
| 30 | have he := M'.tip ((planted V p).taggedL j) (own p) Y rfl (planted_valid V p) p |
| 31 | exact he.2.2.trans_eq (by rw [label M i,if_pos h]; congr!) |
| 32 | rw [norm_zero]; exact mul_nonneg M'.profit (prod_nonneg fun i _=>Y.positive i) |
| 33 | omit [Fintype ι] in |
| 34 | lemma worth (p:Tickets w): (team M p).weight=∏ i∈p.val,(M i).weight:=by unfold Team.weight team; rw [Finset.prod_image]; exact fun _ hx _ hy h=>p.property hx hy (show sign M S _= _ from (by unfold sign; rw [h])) |
| 35 | |
| 36 | open Switch |
| 37 | variable (rA:ι→ℝ) (hp:∀ i, 0≤ rA i) |
| 38 | def ways (x:ℝ) (v:Finset ι)(i:ι):= if i∈v then rA i*x else 0 |
| 39 | omit [Fintype ι] in |
| 40 | lemma amplitudes (p: Finset ι)(x:ℝ)(v:Finset ι): ∏ i∈p, ways rA x v i = click p (∏ i∈p,rA i) x v:=by |
| 41 | by_cases h:p⊆v |
| 42 | · unfold click; rw [if_pos h, show ∏ i∈p,ways rA x v i=∏ i∈p,rA i*x from prod_congr rfl fun i hi=> if_pos (h hi),prod_mul_distrib,prod_const, mul_comm] |
| 43 | rw [click,if_neg h]; obtain ⟨i,hi,hx⟩:=Finset.not_subset.mp h; exact prod_eq_zero hi (if_neg hx) |
| 44 | def wages (u:ι): ℝ:=rA u*(M u).weight |
| 45 | |
| 46 | def toll (i:Head S): ℝ:= let _:=Y; Y.text i+Tickets.extra w (wages M rA) i |
| 47 | |
| 48 | def vote (p : Molecule S) (U:Config G c)(x:ℝ)(v: Finset ι):=color M Y χ U (ways rA x v) p |
| 49 | include hp |
| 50 | lemma ad (p:Molecule S)(i:Tickets (sign M S)): |
| 51 | Paid (fun U x v=> (∏ j∈i.val,ways rA x v j)*act M Y χ U p i) (if i.reach ⊆ p then (∏ j∈i.val,wages M rA j)*∏ j∈p\i.reach,Y.text j else 0):=by |
| 52 | split |
| 53 | next h=> |
| 54 | let v:= ∏ j∈i.val,rA j; let z U:=v*act M Y χ U p i; have he : (∏ j∈i.val,wages M rA j)=v*(team M i).weight:=by rw [worth]; unfold wages; rw [prod_mul_distrib] |
| 55 | have ht : 0≤ v:= prod_nonneg fun i _=> hp i |
| 56 | rw [he,mul_assoc]; apply Paid.congr (paidClick (ι:=ι) i.val (p:=z) (mul_nonneg ht (mul_nonneg (Team.profit _) (prod_nonneg fun i _=>Y.positive i))) (fun j=> ?_)) |
| 57 | · intro u x hz; ext v; rw [amplitudes]; unfold click z; split_ifs <;> ring |
| 58 | unfold z; rw [norm_mul, Real.norm_of_nonneg ht]; exact mul_le_mul_of_nonneg_left (act_norm M Y χ p i _ h) ht |
| 59 | next h => |
| 60 | letI:Nonempty (Forest S.ratio):=Tree.select S.ratio S.patch.odd_side |
| 61 | apply Paid.congr paidZero; intro u x hx; ext v; rw [show act M Y χ _ p i=0 from Classical.byContradiction (fun he=>h ((present M Y χ u i p (F:= Classical.ofNonempty) he).1)),mul_zero]; rfl |
| 62 | lemma payments (p : Molecule S) : Paid (vote M Y χ rA p) (∏ i ∈p,toll M Y rA i):= by |
| 63 | rw [show (∏ i∈p,toll M Y rA i)= _ from Tickets.expanded w _ _ p] -- infer |
| 64 | refine Paid.congr (Paid.sum univ _ _ (fun i _=> ad M Y χ rA hp p i)) ?_; intro u x hx; ext i; simp only [Finset.sum_apply]; rfl |
| 65 | |
| 66 | open Mixed |
| 67 | |
| 68 | -- cost to pay. same Africa budget.X Δ |
| 69 | local notation "X'"=> Daisy.swing Q L μ R.beta x C |
| 70 | def mark (i:ι):=Daisy.sparkling c f (M i).turn -- pulls c via value info? |
| 71 | def pitch (i:ConnectedActivityE6.Alphabet c f):= Y.opt i + Tickets.extra (mark M) (wages M rA) i |
| 72 | local notation "d"=> ConnectedActivityE6.lengths T R |
| 73 | local notation "kd"=> steamP S (Q.costs L μ R.beta x C) |
| 74 | def tune (n k:ℕ)(p:Molecule S):= selected S Q.halo sx X' Y.birth (pitch M Y rA) d kd 0 k n 0 p |
| 75 | lemma votes (p:Molecule S)(n k:ℕ)(hn:n≤Cash.numP p): Paid (vote M Y χ rA p) (tune M Y rA n k p):=by |
| 76 | let f:=vote M Y χ rA p; let t:=X' |
| 77 | by_cases h:Y.ticketsP 0 n 0 p |
| 78 | · have hr : ∀ i,toll M Y rA i= Mixed.costs S Q.halo sx kd (pitch M Y rA) i := by |
| 79 | intro i; rcases i with i|i |
| 80 | · unfold toll Tickets.extra; rw [sum_eq_zero, add_zero]; · rfl |
| 81 | intro j _; exact if_neg (fun h=> by have hf:=(show .inr _ = sign M S j from Daisy.sparkPath ..).trans h; contradiction) |
| 82 | unfold toll Tickets.extra Cash.text Mixed.costs pitch Tickets.extra |
| 83 | dsimp only [Sum.elim]; simp_rw [← show ∀ j, (.inr (mark M (c:=c) j):Head S)=sign M S j from fun j=> Daisy.sparkPath ..]; simp only [Sum.inr.injEq] |
| 84 | apply (payments M Y χ rA hp p).weaken; unfold tune Mixed.selected; rw [if_pos (show Allowed S Q.halo sx X' Y.birth d 0 n 0 p from h)]; unfold Mixed.Price; simp_rw [← hr]; exact le_mul_of_one_le_right (Paid.rocket (payments M Y χ rA hp p)) (show 1 ≤ (1+Y.shapeW p)^k from one_le_pow₀ (le_add_of_nonneg_right (Y.positive_volume p))) -- after rw hr |
| 85 | have he(p': Tickets (sign M S))(U): act M Y χ U p p'=0:= by |
| 86 | letI : Nonempty (Forest S.ratio):=Tree.select S.ratio S.patch.odd_side |
| 87 | by_contra hz; have hp:=(present M Y χ U p' p (F:= Classical.ofNonempty) hz).2 |
| 88 | exact h ⟨hp.1,Nat.zero_le _,hn,Y.positive_volume p⟩ |
| 89 | unfold tune Mixed.selected; rw [if_neg (show ¬Allowed S Q.halo sx X' Y.birth d 0 n 0 p from h)] |
| 90 | apply Paid.congr paidZero; intro u x hx; ext i; unfold vote color; simp_rw [he, mul_zero, sum_const_zero]; rfl |
| 91 | end YM.Merge.Palette |