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.TraceExtension.Fen.Wood |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Trace.Fen |
| 5 | open Function Filter Matrix Lattice Pressure Ac Wilson RG Precision Laurent Stationary Perfect Exterior Tree RG Wilson Finset Push.Uniform Det Planned.PrimaryIntegral295 Lamp |
| 6 | open Filch Turret Shepherd AnalyticBridge VerifiedReset Drupes Extra.Iteration SectorAffine AnalyticNext.QuarticMatch.Estimate |
| 7 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 8 | variable {G:Gauge}{n:Side} (R:Rep G n){I:Type}(b:I→Barley) {k P:ℕ}{σ A B C:ℝ} |
| 9 | lemma chapelMain (h:R.path.Bounds R.clip σ A C)(e:Lines G n 1) : ContDiffAt ℝ ω (outD (Main R) e ∘ input G n) 0:=by |
| 10 | let V(p:Link G n×Link G n):=input _ _ p.2 * input _ _ p.1 |
| 11 | have hp: ContDiffAt ℝ ω (Main R ∘ V) (0,0):= Work.F02.mainTerm_contDiffAt (A:=V) h ((Army.powL contDiffAt_snd).mul (Army.powL contDiffAt_fst)) |
| 12 | obtain ⟨C,hC,h⟩:=exists_allows (s:={(0,(0:Link G n))}) (f:=Main R ∘ V) isCompact_singleton (fun x hx=>hx.symm ▸ hp) 1 |
| 13 | exact (priced_partial (x:= (0:Link G n)) (a:=bolt e) (n:=0) (h _ (Set.mem_singleton _)) (norm_bolt e).le).analytic |
| 14 | private lemma wholesale {X:Type}[NormedAddCommGroup X] [NormedSpace ℝ X](u:Finset I)(f:I→X→ℝ)(h:∀ i∈u,ContDiffAt ℝ ω (f i) 0): ContDiffAt ℝ ω (fun x=>∑ i∈u,f i x) 0:=ContDiffAt.sum h |
| 15 | private lemma atpole (e:Lines G n 1)(hB:2 ≤ R.p.B)(L:Finset I): ContDiffAt ℝ ω (outD (piste R b L) e ∘ input G n) 0:=by |
| 16 | obtain ⟨f,hf,H⟩:=waves (G:=G) 0 |
| 17 | rw [overlook]; unfold Function.comp; simp only[Finset.sum_apply]; exact wholesale _ _ (fun i _=> (H _ b _ R hB i e).analytic) |
| 18 | private lemma ateak (e:Lines G n 1)(hB:2 ≤ R.p.B)(L:Finset I) (k:ℕ): iteratedFDeriv ℝ k (outD (piste R b L) e ∘ input G n) 0=∑ p∈univ ×ˢ L,iteratedFDeriv ℝ k (outD (seatP R b p) e ∘ input G n) 0:=by |
| 19 | obtain ⟨f,hf,H⟩:=waves (G:=G) k |
| 20 | rw [overlook]; unfold Function.comp; simp only[Finset.sum_apply]; exact iteratedFDeriv_fun_sum_apply (f:=fun i x=> outD (seatP R b i) e (input G n x)) (fun i _=> ((H _ b _ R hB i e).analytic).of_le le_top) |
| 21 | private lemma abends {X:Type}[NormedAddCommGroup X](f:I→X)(u:Finset I) (y:X)(h:HasSum f y): HasSum (fun i=> if i∈ u then 0 else f i) (y-∑ i∈u,f i):=by |
| 22 | let s (i):=if i∈u then f i else 0; have hs:HasSum s (∑ i∈u,f i):=by |
| 23 | rw [show (∑ i∈u,f i)=∑ i∈u,s i from Finset.sum_congr rfl (fun i hi=> by simp [s,hi])]; exact hasSum_sum_of_ne_finset_zero (fun i hi=> if_neg hi) |
| 24 | refine (h.sub hs).congr_fun fun i=>?_; by_cases ht:i∈u <;> simp[s,ht] |
| 25 | lemma east (G:Gauge)(k:ℕ): ∃ K:ℝ, ∃ P:ℕ, 0 ≤ K∧∀ (n:Side)(R:Rep G n)(σ A C:ℝ), R.path.Bounds R.clip σ A C →2≤ R.p.B → |
| 26 | let B:=Geo.lowerSize R.clip A+(A+A); let Z:= bankCost R.p.B*K*(momentPrice P (σ/2)*B) |
| 27 | (∀ e:Lines G n 1, Allows k (outD (Main R) e ∘ input G n) 0 Z) ∧ ∀ r:ℕ,∀ q:ℝ, 0<q →∀ᶠ L:Finset GreenA in atTop,∀ e:Lines G n 1, |
| 28 | Allows k ((outD (Main R - ski R legF L r) e) ∘ input G n) 0 (bankCost R.p.B*K*q +Real.exp (-(σ/4)*r)*Z):=by |
| 29 | obtain ⟨f,⟨hf,K,P,hK,hf'⟩,H⟩:= waves (G:=G) k |
| 30 | refine ⟨K,P+4,by positivity,fun n R σ A C hp hr=>?_⟩ |
| 31 | intro B Z; let z:= k; let X:=Pointed R legF (σ/2); have hs:= hp.width; let P':=P+4 |
| 32 | let F(e:Lines G n 1)(i:Seat n×GreenA):= outD (seatP R legF i) e ∘ input G n |
| 33 | have ht(e:Lines G n 1)(i): Allows k (F e i) 0 (upLand R legF e i*f (mote R (legF i.2))):= H GreenA legF n R hr i e |
| 34 | constructor |
| 35 | · intro e |
| 36 | have he:= purpose R legF B (off_budget R hp) hs (σ/2) (half_pos hs) (by linarith only[hs]) P'; rw[show σ-σ/2=σ/2 by ring] at he |
| 37 | let g i:=upLand R legF e i*f (mote R (legF i.2)) |
| 38 | have hu:SumBudget g Z:=by |
| 39 | have hh:= pumpkin R legF (σ/2) (half_pos hs).le (fun _=>True) hf P K hK hf' e (by simp only[if_true]; exact he) |
| 40 | simpa only[Z, if_true,P',mul_assoc] using! hh |
| 41 | refine ⟨chapelMain R hp e,fun j hj=>?_⟩ |
| 42 | have hw:= earnW R e hp j |
| 43 | have hz: ∀ i, ‖iteratedFDeriv ℝ j (F e i) 0‖ ≤ g i:=fun i=> (ht e i).norm_le _ hj |
| 44 | rw [← hw.tsum_eq]; exact (norm_tsum_le_tsum_norm hw.summable.norm).trans ((Summable.tsum_le_tsum hz hw.summable.norm hu.2.1).trans hu.2.2) |
| 45 | intro r q hq |
| 46 | filter_upwards [coatout R legF P' r B q hs (off_budget R hp) hq] with L HL e |
| 47 | let t:= ski R legF L r; let u:= spikes R legF L r; let U:= outD (Main R) e ∘ input G n; let V:=outD t e ∘ input G n; let E:Finset (Seat n × GreenA):= univ ×ˢ u |
| 48 | have hz(i:GreenA): i∈u↔ i∈L ∧ rowL R legF i ≤r:= mem_filter |
| 49 | have hv: ∀ i:Seat n × GreenA, i∈E↔ i.2∈u:=by simp[E] |
| 50 | let c:=momentPrice P' (σ/2)*B; let S:=Real.exp (-(σ/4)*r) |
| 51 | let p(i:GreenA):Prop:=i∉ u; let f'(i):=if i∈E then 0 else upLand R legF e i*f (mote R (legF i.2)) |
| 52 | have hU: SumBudget f' (bankCost R.p.B*(K*(q+S*c))):=by |
| 53 | apply Cost.mono (pumpkin R legF (σ/4) (by positivity) p hf P K hK hf' (e:=e) (q:=q+S*c) ?_) (fun i=> by unfold f'; split; exact le_rfl; exact (ht e i).nonneg) (fun i=> by unfold f'; by_cases x:i.2∈u <;> simp [hv i,p,x]) |
| 54 | convert! HL using 1; funext i; by_cases hx:i∈L ∧ rowL R legF i≤r <;> simp only[p,hz]; all_goals simp[hx,P'] |
| 55 | have ha:ContDiffAt ℝ ω V 0:= atpole R legF e hr u |
| 56 | have hV : outD (Main R-t) e ∘ input G n=U - V:=by |
| 57 | funext i; unfold U V outD |
| 58 | let Y:= input G n i |
| 59 | simp only[Function.comp_apply,Pi.sub_apply]; rw [fderiv_fun_sub (lightsA R (input G n i) hp|>.differentiableAt (by simp)) (show DifferentiableAt ℝ (fun y=> t (input G n y * input G n i)) 0 from slopeD R legF u Y)]; rfl |
| 60 | rw[hV]; refine ⟨(chapelMain R hp e).sub ha,fun j hj=>?_⟩ |
| 61 | let w(i):=iteratedFDeriv ℝ j (F e i) 0 |
| 62 | rw[iteratedFDeriv_sub_apply ((chapelMain R hp e).of_le le_top) (ha.of_le le_top), show iteratedFDeriv ℝ j V 0=∑ i∈E,w i from ateak R legF e hr u j]; have hw:= abends w E _ (earnW R e hp j) |
| 63 | let F' i:= if i∈E then 0 else w i |
| 64 | have ht'(i): ‖F' i‖≤f' i:=by unfold F' f'; split <;> first|exact (ht e i).norm_le _ hj|simp |
| 65 | -- ht sub sum |
| 66 | rw [show iteratedFDeriv ℝ j U 0 -∑ i∈E,w i=(∑' i,F' i) from hw.tsum_eq.symm] |
| 67 | exact (norm_tsum_le_tsum_norm hw.summable.norm).trans ((Summable.tsum_le_tsum ht' hw.summable.norm hU.2.1).trans (hU.2.2.trans_eq (by unfold Z c; unfold S; ring))) |
| 68 | end YM.Trace.Fen |