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.AnalyticNext.QUARTIC_MATCH.Estimate.Depot |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Local.Angles |
| 3 | import YM.Push.PRICE_COMPILER.Canonical |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Whole signed action on per-site kernels |
| 8 | |
| 9 | Per-cell growth estimates on actual path-labelled formulas. Base grants |
| 10 | fund even nonlinear ell slots; can narrow R3/R4 but not throw away windings |
| 11 | when doing so. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticNext.QuarticMatch.Local |
| 16 | open Filter Function Lattice Laurent Matrix Hessian Analysis RG Precision Exterior Bid Wilson Branch Bloch |
| 17 | open Progress.StationaryScenes Work.F03 YM.Next.Free Work.F08 Pre.Knot Pre.Centered |
| 18 | open Joint Estimate Estimate.Purse Estimate.Village Estimate.Logfee |
| 19 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace |
| 20 | attribute [local instance] Gauge.frobInner |
| 21 | variable {G : Gauge} {n l : Side} {ι : Type} [DecidableEq ι] |
| 22 | namespace Rotate |
| 23 | |
| 24 | def total (p : Clip) (W : PathData G) (x : Site n) (a : Dir G n) := (∑ j : PlaqAxes, expense p W j x a) + atend W.cubic x a+atend W.quartic x a |
| 25 | lemma total_energy (p : Clip) (W : PathData G) (a : Dir G n) : |
| 26 | ∑ x,total p W x a = quadratic p W (represent a)+uncut W.cubic (represent a)+uncut W.quartic (represent a) := by |
| 27 | unfold total quadratic; rw [Finset.sum_add_distrib,Finset.sum_add_distrib,Fintype.sum_prod_type]; rfl |
| 28 | |
| 29 | def byStage (p : Clip) (W : PathData G) (x : Site n) (a : Dir G n) := Patch.average fun s : Signed => total p W (s⁻¹.act x) (shifts s 0 a) |
| 30 | lemma unroll (p : Clip) (W : PathData G) (a : Dir G n) : mainTerm p W (represent a)=∑ x, byStage p W x a := by |
| 31 | have hh (s : Signed) := Equiv.sum_comp (s⁻¹.actEquiv (R:=Per n)).toEquiv (fun x => total p W x (shifts s 0 a)) |
| 32 | unfold mainTerm byStage Patch.average |
| 33 | rw [← Finset.mul_sum,Finset.sum_comm] |
| 34 | apply congr_arg; refine Finset.sum_congr rfl fun i _ => ?_; simp only [← rep_shifts] |
| 35 | exact (hh i |>.trans (total_energy ..)).symm |
| 36 | |
| 37 | section analytic |
| 38 | variable {p : Clip} {W : PathData G} {σ C Λ} (hW : W.Bounds p σ C Λ) |
| 39 | include hW |
| 40 | lemma total_rate (x : Site n) (a : Dir G n) : ContDiffAt ℝ ω (total p W x) a := |
| 41 | ((ContDiffAt.sum fun i _ => expense_rate hW i x a).add (atend_rate _ hW.width hW.three x a)).add (atend_rate _ hW.width hW.four x a) |
| 42 | lemma stage_rate (x : Site n) (a : Dir G n) : ContDiffAt ℝ ω (byStage p W x) a := |
| 43 | contDiffAt_const.mul (ContDiffAt.sum fun s _ => (total_rate hW (s⁻¹.act x) (shifts s 0 a)).comp a (shifts s (0:Site n)).contDiff.contDiffAt) |
| 44 | end analytic |
| 45 | |
| 46 | def Curves (W : PathData G) (σ C : ℝ) : Prop := ∀ p, SumBudget (fun i => |(W.row p i).1| * Real.exp (σ*(W.row p i).2.length)) C |
| 47 | |
| 48 | def Ink {k : ℕ} (A : ℕ→Atom G k) (σ R : ℝ) := SumBudget (fun i => (A i).budget σ) R |
| 49 | |
| 50 | /-- Use the blank rule on output quartic. This separates widths independent |
| 51 | of base price, when exact cubic purchase is not available *at same width*. -/ |
| 52 | inductive Access {k : ℕ} (A : ℕ→Atom G k) (l : Side) (n : ℕ) (η R : ℝ) : Prop |
| 53 | | clears {σ} : 0 < σ → 5*n*η≤ σ*l.val → Ink A σ R → Access A l n η R |
| 54 | | quiet : n < k → 0 ≤ R → Access A l n η R |
| 55 | | missing : (∀ i,(A i).coeff=0) → 0 ≤ R → Access A l n η R |
| 56 | |
| 57 | lemma nonneg {α : Type*} {A : α→ℝ} {C} (h : SumBudget A C) : 0 ≤ C := (tsum_nonneg h.1).trans h.2.2 |
| 58 | lemma Access.fee {k : ℕ} {A : ℕ→Atom G k} {n : ℕ} {η R} (h : Access A l n η R) : 0 ≤ R := by |
| 59 | cases h with |
| 60 | | clears _ _ ht => exact nonneg ht |
| 61 | | quiet _ h | missing _ h => exact h |
| 62 | |
| 63 | structure Led {G : Gauge} (W : PathData G) (l : Side) (n : ℕ) (η σ u C D : ℝ) : Prop where |
| 64 | down : 0 < σ |
| 65 | repute : 5*n*η ≤ σ*l.val |
| 66 | curves : Curves W σ u |
| 67 | three : Access W.cubic l n η C |
| 68 | four : Access W.quartic l n η D |
| 69 | |
| 70 | lemma outcast {k : ℕ} {A : ℕ→Atom G k} (h : ∀ i,(A i).coeff=0) : ∀ x : Site n, atend A x=fun _ => 0 := by |
| 71 | intro x; funext y; simp only [atend,Cargo.effect,Atom.unmasked, Atom.poly, h,Pi.zero_apply,zero_mul,Finset.sum_const_zero,tsum_zero] |
| 72 | |
| 73 | variable {k m : ℕ} {Q : Purse ι (Site n)} {d : ι→Dir G n} {η C σ u r U R3 R4 : ℝ} |
| 74 | section stipend |
| 75 | local notation "L" => (l.val:ℝ) |
| 76 | variable (h : Linkbill l Q d) (he : tollRate Q l η) (hp : 0 < η) (hb : Plaque.BendBill l Q d) {S : Finset ι} (hv : S.card ≤ m) |
| 77 | include h he hp hb hv |
| 78 | |
| 79 | open Plaque in |
| 80 | def compensation (G : Gauge) (η : ℝ) (m : ℕ) := 2^m*(mailCharge G η m*allotted G η m) |
| 81 | omit h he hp hb hv in |
| 82 | lemma compensation_pos (G : Gauge) (η : ℝ) (m : ℕ) : 0<compensation G η m := mul_pos (by positivity) (mul_pos (Plaque.mailCharge_pos ..) (Plaque.allotted_pos ..)) |
| 83 | |
| 84 | open Plaque in |
| 85 | theorem appraisal {k : ℕ} {W : ℕ→Atom G k} (hR : Access W l m η C) (he' : Ink W u r) (hu : 0<u) : |
| 86 | Q.Jets S d (atend W) 0 ((compensation G η m/L^2)^k*C) := by |
| 87 | have hx : 0 ≤ C := hR.fee |
| 88 | have hp' : 0 ≤ (compensation G η m/L^2)^k*C := by have ht := compensation_pos G η m; positivity |
| 89 | cases hR with |
| 90 | | quiet h' _ => exact (start_zero _ _ (hv.trans_lt h') hu he').mono hp' |
| 91 | | clears hσ hq hh => |
| 92 | let M := allotted G η m |
| 93 | convert! atom_budget W h he hp 0 (by simp) S m hv hq (M/L^2) |
| 94 | (fun i T ht => collectBudget h he hp.le T m ((Finset.card_le_card ht).trans hv) hb i) (by unfold M; have h := allotted_pos G η m; positivity) hσ hh using 1 |
| 95 | unfold compensation M; ring |
| 96 | | missing h' _ => unfold Jets; simp_rw [outcast h', empty_price]; exact Pays.zero hp' |
| 97 | |
| 98 | omit h he hp hb hv in |
| 99 | lemma weighted_base {p : Clip} {W : PathData G} {τ u Λ} (hP : W.Bounds p τ u Λ) (η R : ℝ) (m : ℕ) : |
| 100 | baseCash G m η p.direct R ≤ baseCash G m η 1 R := |
| 101 | add_le_add (mul_le_mul_of_nonneg_right (YM.Push.PriceCompiler.Canonical.direct_le_one hP.metric) |
| 102 | (by have h := G.colorScale_pos; positivity)) le_rfl |
| 103 | open Plaque |
| 104 | |
| 105 | def straight (G : Gauge) (η R : ℝ) (m : ℕ) := Fintype.card PlaqAxes * (baseCash G m η 1 R * allotted G η m ^ 2) |
| 106 | omit h he hp hb hv in |
| 107 | lemma straight_nonneg (G : Gauge) (η R : ℝ) (m : ℕ) : 0 ≤ straight G η R m := by |
| 108 | have ht := G.colorScale_pos; unfold straight baseCash; positivity |
| 109 | |
| 110 | variable {p : Clip} {W : PathData G} {τ K Λ R} (hP : W.Bounds p τ K Λ) (hx : Led W l m η σ R R3 R4) |
| 111 | include hP hx |
| 112 | theorem expenses : Q.Jets S d (total p W) 0 (straight G η R m / L^4 + compensation G η m^3/L^6 * R3 + |
| 113 | compensation G η m^4/L^8 * R4) := by |
| 114 | let D := compensation G η m/L^2 |
| 115 | let U := allotted G η m |
| 116 | have hu : 0 ≤ U / L^2 := div_nonneg (allotted_pos ..).le (sq_nonneg _) |
| 117 | have h3 : Q.Jets S d (atend W.cubic) 0 (D^3*R3) := appraisal h he hp hb hv hx.three hP.three hP.width |
| 118 | have h4 : Q.Jets S d (atend W.quartic) 0 (D^4*R4) := appraisal h he hp hb hv hx.four hP.four hP.width |
| 119 | have hm a : Q.Jets S d (expense p W a) 0 (baseCash G m η 1 R*(U / L^2)^2) := |
| 120 | (base_card hP h he hp _ (show ‖(0:Dir G n)‖<1 by simp) _ m hv hx.repute _ |
| 121 | (fun a T hu => collectBudget h he hp.le T m ((Finset.card_le_card hu).trans hv) hb a) a hu hx.down (hx.curves a)).mono |
| 122 | (mul_le_mul_of_nonneg_right (weighted_base hP η R m) (sq_nonneg _)) |
| 123 | let f i (x : Dir G n) := ∑ j : PlaqAxes, expense p W j i x |
| 124 | have hb' (i) : ContDiffAt ℝ ω (f i) 0 := ContDiffAt.sum fun j _ => expense_rate hP j i _ |
| 125 | have hG := Jets.allotted Finset.univ (expense p W (n:=n)) (fun i _ j => expense_rate hP i j _) (fun i _ => hm i) |
| 126 | have he3 (i : Site n) := atend_rate _ hP.width hP.three i 0 |
| 127 | exact (Jets.adding (fun i => (hb' i).add (he3 i)) (fun i => atend_rate _ hP.width hP.four i 0) (Jets.adding hb' he3 hG h3) h4).mono |
| 128 | (le_of_eq (by rw [Finset.sum_const]; unfold D U straight; rw [nsmul_eq_mul,Finset.card_univ]; ring)) |
| 129 | end stipend |
| 130 | |
| 131 | section all |
| 132 | local notation "L" => (l.val:ℝ) |
| 133 | def totalBill (G : Gauge) (η R : ℝ) (m : ℕ) := Real.exp (2*η)^m*(straight G η R m+compensation G η m^3+compensation G η m^4) |
| 134 | lemma totalBill_pos (G : Gauge) (η R : ℝ) (m : ℕ) : 0<totalBill G η R m := by |
| 135 | apply mul_pos (pow_pos (Real.exp_pos _) _) (add_pos (add_pos_of_nonneg_of_pos (straight_nonneg ..) (pow_pos (compensation_pos ..) _)) (pow_pos (compensation_pos ..) _)) |
| 136 | |
| 137 | theorem tally (h : Linkbill l Q d) (he : tollRate Q l η) (hp : 0<η) (hb : Plaque.BendBill l Q d) {S : Finset ι} (hv : S.card ≤ m) |
| 138 | {p : Clip} {W : PathData G} {τ K Λ R} (hP : W.Bounds p τ K Λ) (hx : Led W l m η σ R R3 R4) : |
| 139 | Q.Jets S d (byStage p W) 0 (totalBill G η R m*(1+R3/L^2+R4/L^4)/L^4) := by |
| 140 | let b := straight G η R m; let d' := compensation G η m; let C := b/L^4+d'^3/L^6*R3+d'^4/L^8*R4 |
| 141 | let f s (x : Site n) (a : Dir G n) := total p W (s⁻¹.act x) (shifts s 0 a) |
| 142 | let a := Real.exp (2*η) |
| 143 | have hu : 1≤a := Real.one_le_exp (by positivity) |
| 144 | let v := a^m*C |
| 145 | have hf (s : Signed) : Q.Jets S d (f s) 0 v := by |
| 146 | have h := expenses (bonds s he hp.le h) (stays s he) hp (bending s he hp.le hb) hv hP hx |
| 147 | refine ((restores s h).mono (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ hu hv) h.1)).under fun i => |
| 148 | (congr_arg (‖·‖) (Depot.lin_rate (shifts s 0) _ d (total_rate hP (s⁻¹.act i) 0) S)).le |
| 149 | have he' (s i) : ContDiffAt ℝ ω (f s i) 0 := (total_rate hP (s⁻¹.act i) (shifts s 0 (0:Dir G n))).comp _ (shifts s (0:Site n)).contDiff.contDiffAt |
| 150 | let w := fun i z => ∑ s,f s i z |
| 151 | have hw (i) : ContDiffAt ℝ ω (w i) 0 := ContDiffAt.sum fun s _ => he' s i |
| 152 | apply (Jets.rate (Jets.allotted Finset.univ f (fun s _ i => he' s i) (fun s _ => hf s)) _ hw).mono |
| 153 | rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul, show |(Fintype.card Signed:ℝ)⁻¹| * (_*v)=v from by rw [abs_of_nonneg (by positivity)]; field_simp] |
| 154 | let e := R3 / L^2; let f₁ := R4/L^4 |
| 155 | have hr : 0≤e := div_nonneg hx.three.fee (by positivity); have hR : 0≤f₁ := div_nonneg hx.four.fee (by positivity) |
| 156 | have he := (straight_nonneg G η R m); have hp := compensation_pos G η m |
| 157 | unfold v totalBill; rw [mul_assoc, mul_div_assoc] |
| 158 | apply mul_le_mul_of_nonneg_left _ (pow_nonneg (zero_le_one.trans hu) _) |
| 159 | change C ≤ (b+d'^3+d'^4)*(1+e+f₁) / L^4; rw [le_div_iff₀ (pow_pos (side_pos l) _)] |
| 160 | rw [show C*L^4=b+d'^3*e+d'^4*f₁ by unfold C e f₁; field_simp] |
| 161 | rw [add_mul, add_mul]; |
| 162 | refine add_le_add (add_le_add (le_mul_of_one_le_right he (by linarith)) (mul_le_mul_of_nonneg_left ?_ (pow_nonneg hp.le _))) |
| 163 | (mul_le_mul_of_nonneg_left ?_ (pow_nonneg hp.le _)) <;> linarith |
| 164 | end all |
| 165 | end Rotate |
| 166 | end YM.AnalyticNext.QuarticMatch.Local |