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 Mathlib.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 6 | import Mathlib.Analysis.Calculus.VectorField |
| 7 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 8 | import Mathlib.Analysis.ODE.ExistUnique |
| 9 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 10 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 11 | import YM.Ac.Table |
| 12 | import YM.Bid.Drops |
| 13 | import YM.Bid.Fuels |
| 14 | import YM.Push.STATIONARY_UNIFORM.LCharge |
| 15 | import YM.Work.A05.Read |
| 16 | import YM.Work.A07 |
| 17 | import YM.Work.A15 |
| 18 | import YM.Work.B04 |
| 19 | import YM.Work.F01 |
| 20 | import YM.Work.F02 |
| 21 | import YM.Work.F03 |
| 22 | |
| 23 | |
| 24 | /-! |
| 25 | # Real Hessian at zero from symbolic free pricing |
| 26 | |
| 27 | Don't even need Floor or Sworn for a gap: use the *actual* direct coefficient |
| 28 | and path sum properties, Hessian is literally a price of all the curls under |
| 29 | rotations and these same linearized paths, plus a noise price of all the |
| 30 | rooted predictor cochains. Then a symbolic free shell estimate (F01 port and |
| 31 | our quantitative L refinement) gives a gap directly here in actual counting. |
| 32 | No Fourier inversion at nonzero modes only. Includes global holonomies on each |
| 33 | tree. This part doesn't use capacities of PathData numerically (later inverse |
| 34 | and uniform neighborhood estimates certainly do). |
| 35 | -/ |
| 36 | set_option autoImplicit false |
| 37 | noncomputable section |
| 38 | namespace YM.Push.Uniform |
| 39 | open Lattice Wilson RG Precision Tree Pressure Gauge Exterior Bid |
| 40 | open Work.F03 Work.F01 |
| 41 | open Filter Function Set Metric |
| 42 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace Classical |
| 43 | |
| 44 | variable {G : Gauge} {c f : Side} {S : StepData c f} (B : Forest S.ratio) (t : S.Choices) |
| 45 | variable {μ C D Z Λ : ℝ} {p : Clip} {R : PathData G} |
| 46 | |
| 47 | /-- Formula for flat Hessian without representing it by `Bed`. Charges signed |
| 48 | average in ordinary physical color units. -/ |
| 49 | def wheel (p : Clip) (R : PathData G) (z : In G f) := |
| 50 | ∑ x : Face (Per f), (p.direct * ‖faceCurl x z‖^2 + ‖ellLine R x z‖^2) |
| 51 | |
| 52 | def flatPrice (S : StepData c f) (p : Clip) (R : PathData G) (z : Logs G c f) : ℝ := |
| 53 | (Patch.average fun s => wheel p R (pulled z.2 s)) + |
| 54 | S.kernel.penalty * (∑ b, ‖residual S z b‖^2) |
| 55 | |
| 56 | lemma gear_limit (hb : R.Bounds p μ C Λ) (z : In G f) : |
| 57 | Tendsto (fun t : ℝ => quadratic p R (represent (t • z))/t^2) (𝓝[≠] 0) (𝓝 (wheel p R z / 2)) := by |
| 58 | unfold quadratic wheel; simp_rw [Finset.sum_div] |
| 59 | refine tendsto_finsetSum _ fun x _ => ?_ |
| 60 | -- actual path row: variant of F03.quadratic_limit independent of Bed |
| 61 | have he := ((ell_limit R hb x z).norm.pow 2).div_const 2 |
| 62 | have hp := (price_limit (G:=G) (V:=fun t : ℝ => faceValue (represent (t • z)) x) |
| 63 | (by rw [zero_smul]; exact stroll_zero ..) (face_deriv x z)).const_mul p.direct |
| 64 | rw [add_div,mul_div_assoc] |
| 65 | refine (hp.add he).congr' (Filter.Eventually.of_forall fun t => ?_) |
| 66 | rw [norm_smul,mul_pow, Real.norm_eq_abs,sq_abs, inv_pow]; ring |
| 67 | |
| 68 | lemma wheel_limit (hb : R.Bounds p μ C Λ) (h : S.patch.Branches S.kernel G) (z : Logs G c f) : |
| 69 | Tendsto (fun u : ℝ => flat S t p R (u • z)/u^2) (𝓝[≠] 0) (𝓝 (flatPrice S p R z/2)) := by |
| 70 | have hs (s : Signed) := ((gear_limit hb (pulled z.2 s)).add |
| 71 | (uncut_limit (k:=0) (pulled z.2 s) R.cubic hb.width hb.three)).add |
| 72 | (uncut_limit (k:=1) (pulled z.2 s) R.quartic hb.width hb.four) |
| 73 | simp only [add_zero] at hs |
| 74 | have hA : Tendsto (fun u : ℝ => mainTerm p R (represent (u • z.2))/u^2) (𝓝[≠] 0) |
| 75 | (𝓝 ((Patch.average fun s => wheel p R (pulled z.2 s))/2)) := by |
| 76 | unfold mainTerm Patch.average |
| 77 | simp_rw [mul_div_assoc,Finset.sum_div,add_div,represent_pulled] |
| 78 | exact (tendsto_finsetSum _ fun s _ => hs s).const_mul _ |
| 79 | have hN := noise_limit h t z |
| 80 | simp_rw [real_inner_self_eq_norm_sq] at hN |
| 81 | simp_rw [flat, flatPrice,add_div]; exact hA.add hN |
| 82 | |
| 83 | lemma price_identity (hb : R.Bounds p μ C Λ) (h : S.patch.Branches S.kernel G) : |
| 84 | let F := uncurry (tested B t p R) |
| 85 | ContDiffAt ℝ ω F 0 ∧ F 0=0 ∧ fderiv ℝ F 0=0 ∧ |
| 86 | ∀ y, iteratedFDeriv ℝ 2 F 0 ![y,y]=flatPrice S p R (y.1,stretch (S:=S) B y) := by |
| 87 | let f := flat S t p R; let T := uncurry (tested B t p R); let g := inclusion B (G:=G) |
| 88 | have hA := flat_smooth h t (Work.F02.answer G p R _ _ _ hb) |
| 89 | have hm : ContDiffAt ℝ 2 f 0 := hA.of_le le_top |
| 90 | have hd y : ContDiffAt ℝ 2 (fun s : ℝ => f (s • y)) 0 := |
| 91 | (show ContDiffAt ℝ 2 f ((0:ℝ) • y) by rwa [zero_smul]).comp (f:=fun s : ℝ => s • y) 0 (contDiffAt_id.smul contDiffAt_const) |
| 92 | have hq y := Work.F03.value_slope_of_sq_limit (hd y).continuousAt (wheel_limit t hb h y) |
| 93 | have hf0 : f 0=0 := by simpa only [zero_smul] using (hq 0).1 |
| 94 | have hD : fderiv ℝ f 0=0 := ContinuousLinearMap.ext fun y => (Push.side f (hA.differentiableAt (by simp)) y).unique (hq y).2 |
| 95 | have hp (y : Logs G c _) : iteratedFDeriv ℝ 2 f 0 ![y,y]=flatPrice S p R y := by |
| 96 | have H := tendsto_nhds_unique (taylor_limit_two (hd y) (hq y).1 (hq y).2.deriv) (wheel_limit t hb h y) |
| 97 | rw [line_second hm hD] at H; linarith |
| 98 | have hs : T =ᶠ[𝓝 0] f ∘ g := from_flat B t R p |
| 99 | have hg : ContDiffAt ℝ ω g 0 := inclusion_smooth B |
| 100 | have h0 : g 0=0 := inclusion_zero B |
| 101 | have he : ContDiffAt ℝ ω (f ∘ g) 0 := (h0.symm ▸ (show ContDiffAt ℝ ω f 0 from hA)).comp 0 hg |
| 102 | have ht := hessian_comp h0 hm (hg.of_le le_top) hD |
| 103 | refine ⟨he.congr_of_eventuallyEq hs, hs.eq_of_nhds.trans (by rw [Function.comp_apply,h0,hf0]), hs.fderiv_eq.trans ht.1,fun y => ?_⟩ |
| 104 | change iteratedFDeriv ℝ 2 T _ _ = _ |
| 105 | rw [(hs.iteratedFDeriv ℝ 2).eq_of_nhds, ht.2,hp, show fderiv ℝ g 0 y=_ from inclusion_deriv B y] |
| 106 | |
| 107 | def spoke (p : Clip) := (Fintype.card Signed:ℝ)⁻¹*p.direct |
| 108 | lemma spoke_pos (p : Clip) : 0 < spoke p := mul_pos (by positivity) p.quadratic_pos |
| 109 | |
| 110 | lemma wallet (v : AxisChart G B) (hb : R.Bounds p μ C Λ) (h : S.patch.Branches S.kernel G) : |
| 111 | let z := stretch (S:=S) B (0,v) |
| 112 | spoke p * (∑ i, ‖dColor G f 1 z i‖^2)+ S.kernel.penalty * (∑ i, ‖bills S z i‖^2) ≤ |
| 113 | iteratedFDeriv ℝ 2 (tested B t p R 0) 0 ![v,v] := by |
| 114 | let z := stretch (S:=S) B (0,v); let b : ChartVars B G := (0,v) |
| 115 | dsimp only |
| 116 | rw [vertical_hessian B t (h:=fun t => (price_identity B t hb h).1) v, (price_identity B t hb h).2.2.2] |
| 117 | unfold flatPrice; dsimp only |
| 118 | have hx : residual S (0,z)=-bills S z := zero_sub _ |
| 119 | change _ ≤ _ + S.kernel.penalty * ∑ i, ‖residual S (0,z) i‖^2 |
| 120 | rw [hx]; simp_rw [Pi.neg_apply,norm_neg]; gcongr ?_ + _ |
| 121 | have hw (z : In G f) : 0 ≤ wheel p R z := by unfold wheel; have := p.quadratic_pos; positivity |
| 122 | unfold Patch.average spoke |
| 123 | rw [mul_assoc]; apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 124 | apply le_trans _ (Finset.single_le_sum (f:=fun s => wheel p R (pulled z s)) (fun i _ => hw _) (Finset.mem_univ 1)) |
| 125 | have hp : pulled z 1=z := by |
| 126 | funext i; rcases i with ⟨i,u⟩; obtain ⟨k,rfl⟩ := axisEquiv.surjective u |
| 127 | simp [pulled,Step.used,posDir,show axisEquiv.symm (coord k)=k from axisEquiv.symm_apply_apply _,affine] |
| 128 | rw [hp]; change p.direct*(∑ i, ‖dColor G f 1 z i‖^2) ≤ _ |
| 129 | rw [← Equiv.sum_comp (Equiv.prodCongr (Equiv.refl (Site f)) plaqEquiv), Finset.mul_sum] |
| 130 | exact Finset.sum_le_sum fun i _ => le_add_of_nonneg_right (a:=p.direct*‖faceCurl i z‖^2) (sq_nonneg _) |
| 131 | |
| 132 | def zeroGap (P : Patch) (Q : KernelChoices) (p : Clip) (C D : ℝ) := |
| 133 | min (spoke p) Q.penalty / (1+curlFactor P.L (box (macroR P)) (linkCost Q C D P.L) + probeFactor P.L) |
| 134 | lemma zeroGap_pos (P : Patch) (Q : KernelChoices) (p : Clip) (C D : ℝ) : 0 < zeroGap P Q p C D := by |
| 135 | unfold zeroGap; apply div_pos (lt_min (spoke_pos _) Q.penalty_pos); unfold curlFactor probeFactor; positivity |
| 136 | |
| 137 | lemma symbolic_gap (hb : R.Bounds p μ C Λ) (h : Larger (G:=G) S) (hg : Harness G S.patch.J S.kernel Z D) : |
| 138 | PriceGap B p R (zeroGap S.patch S.kernel p Z D) := by |
| 139 | intro t v |
| 140 | let x := stretch (S:=S) B (0,v); let X := box (macroR S.patch) |
| 141 | let e := linkCost S.kernel Z D S.patch.L |
| 142 | have he := (linkCost_pos S.kernel hg.1 hg.2.1 S.patch.L).le |
| 143 | let Y : Bond f → ℝ := fun i => ‖collect G x i‖ |
| 144 | have hh (i) (hi : i∈B.trunks) : collect G x i=0 := by unfold x; rw [collect_vertical, dif_pos hi] |
| 145 | have hs := sum_estimate S.ratio X (fun i => ‖dColor G f 1 x i‖) (fun i => ‖bills S x i‖) |
| 146 | Y e (fun i => norm_nonneg _) (fun i => link_bound S h.1 B t x hh _ he i |
| 147 | (fun U hU hk => hg.2.2 S rfl rfl h.2.1 B U hU i t hk)) |
| 148 | let a := zeroGap S.patch S.kernel p Z D |
| 149 | have ha := zeroGap_pos S.patch S.kernel p Z D |
| 150 | have ht : (∑ i : B.Free, ‖v i‖^2) ≤ ∑ i, Y i ^2 := by |
| 151 | have he (i : B.Free) : Y i.val = ‖v i‖ := by unfold Y x; rw [collect_vertical,dif_neg i.property] |
| 152 | simp_rw [← he] |
| 153 | calc |
| 154 | _ = ∑ i∈Finset.univ.filter (fun i => i∉B.trunks), Y i ^2 := by |
| 155 | rw [Finset.sum_subtype _ (p:= fun i => i ∉ B.trunks) (by simp)] |
| 156 | _ ≤ _ := Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _) (by intros; positivity) |
| 157 | apply (mul_le_mul_of_nonneg_left (ht.trans hs) ha.le).trans; apply le_trans _ (wallet B t v hb h.1) |
| 158 | rw [mul_add, ← mul_assoc,← mul_assoc] |
| 159 | have hu : 0 ≤ curlFactor S.patch.L X e := by unfold curlFactor; positivity |
| 160 | have hv : 0 ≤ probeFactor S.patch.L := by unfold probeFactor; positivity |
| 161 | have hZ : a*(1+curlFactor S.patch.L X e+probeFactor S.patch.L)=min (spoke p) S.kernel.penalty := |
| 162 | div_mul_cancel₀ _ (by positivity) |
| 163 | have h₁ := mul_le_mul_of_nonneg_left (show curlFactor S.patch.L X e ≤ 1+curlFactor S.patch.L X e+probeFactor S.patch.L by linarith) ha.le |
| 164 | have h₂ := mul_le_mul_of_nonneg_left (show probeFactor S.patch.L ≤ 1+curlFactor S.patch.L X e+probeFactor S.patch.L by linarith) ha.le |
| 165 | exact add_le_add (mul_le_mul_of_nonneg_right ((h₁.trans_eq hZ).trans (min_le_left ..)) (Finset.sum_nonneg fun i _ => sq_nonneg _)) |
| 166 | (mul_le_mul_of_nonneg_right ((h₂.trans_eq hZ).trans (min_le_right ..)) (Finset.sum_nonneg fun i _ => sq_nonneg _)) |
| 167 | end YM.Push.Uniform |