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.Analysis.Polydisc |
| 2 | import YM.Push.FREE_RESOLVENT.Inverse |
| 3 | import YM.Push.FREE_RESOLVENT.Polar |
| 4 | |
| 5 | /-! |
| 6 | # Inverse jets with polynomial input weights or fixed external positions |
| 7 | |
| 8 | Give a coefficientwise price recursion on polarized derivatives. Genuine |
| 9 | Fréchet derivatives at the tested point; no differential on changing masks |
| 10 | here. s a reserved exponential rate of A, γ a usable |
| 11 | strip rate of its resolvent before the derivative comparisons, ε the small |
| 12 | positive-derivative factor; d an amount per mark per jump (up to k marks at once). |
| 13 | At most 2 reserved jumps spent per order (not per RG step). Works identically |
| 14 | on every principal compression; the formulas don't trim boundary rows. |
| 15 | |
| 16 | The only regularity assumption is on the given precision. The magnitude |
| 17 | hypotheses `Knew` below are on derivatives THROUGH k of the precision itself, |
| 18 | plus positive L² gap. No weighted-inverse inputs. Preserve at least two factors |
| 19 | of `(1+u)⁻¹` (so integrable decay) in all positive derivatives. |
| 20 | -/ |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.FreeResolvent |
| 24 | open Lattice Matrix RG Precision Laurent Bloch Mark TestD Filter Topology |
| 25 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 26 | variable {τ X E ι κ μ : Type*} |
| 27 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] [DecidableEq ι] |
| 28 | |
| 29 | namespace TestD |
| 30 | variable {C : Mark τ X} {D : Cost X} {A B : E → Matrix ι ι ℝ} (v : τ → E) {x : E} |
| 31 | |
| 32 | /-- Actual map on an open parameter germ where invertible; total via det. |
| 33 | No global differentiability assertion. -/ |
| 34 | def action (A : E → Matrix ι ι ℝ) (u : ℝ) (x : E) := resolve (A x) u |
| 35 | |
| 36 | def Neat (A : E → Matrix ι ι ℝ) (u : ℝ) (x : E) := IsUnit (A x+u • 1).det |
| 37 | |
| 38 | omit [NormedSpace ℝ E] in |
| 39 | lemma germ_valid {u : ℝ} (h : Neat A u x) (hp : ContinuousAt A x) : ∀ᶠ y in 𝓝 x, Neat A u y := by |
| 40 | unfold Neat at * |
| 41 | simp_rw [isUnit_iff_ne_zero] at * |
| 42 | have he : ContinuousAt (fun z => (A z + u • 1).det) x := continuous_id.matrix_det.continuousAt.comp (hp.add continuousAt_const) |
| 43 | exact he.eventually_ne h |
| 44 | |
| 45 | lemma action_smooth {k : ℕ} {u : ℝ} (h : Neat A u x) (hw : ContDiffAt ℝ k A x) : ContDiffAt ℝ k (action A u) x := by |
| 46 | let F := fun z => A z + u • 1 |
| 47 | have hh : ContDiffAt ℝ k F x := hw.add contDiffAt_const |
| 48 | have he : IsUnit (F x) := ((F x).isUnit_iff_isUnit_det).mpr h |
| 49 | have ht := he.unit_spec |
| 50 | have hp : ContDiffAt ℝ k Ring.inverse (F x) := ht ▸ contDiffAt_ringInverse ℝ he.unit |
| 51 | rw [show action A u = fun y => Ring.inverse (F y) from funext fun y => Matrix.nonsing_inv_eq_ringInverse (F y)]; exact hp.comp x hh |
| 52 | |
| 53 | lemma action_rule {u : ℝ} (l : List τ) (hl : l ≠ []) (h : Neat A u x) (hw : ContDiffAt ℝ l.length A x) : |
| 54 | jet v (action A u) l x = - (resolve (A x) u * ∑ m ∈ Finset.univ.erase (pureR l), |
| 55 | jet v A (lo l m) x * jet v (action A u) (hi l m) x) := by |
| 56 | let G := fun z => A z + u • 1 |
| 57 | have hg : ContDiffAt ℝ l.length G x := hw.add contDiffAt_const |
| 58 | let T := action A u |
| 59 | let H (m : Masks l) := jet v G (lo l m) x * jet v T (hi l m) x |
| 60 | have he : (fun z => G z*T z) =ᶠ[𝓝 x] (fun _ => 1) := by |
| 61 | filter_upwards [germ_valid h hw.continuousAt] with y hy |
| 62 | exact Matrix.mul_nonsing_inv (G y) hy |
| 63 | have hx : ∑ m, H m = 0 := (jet_mul v l hg (action_smooth h hw)).symm.trans ((identical v he l).trans |
| 64 | (jet_const v l hl _ _)) |
| 65 | have hh := Finset.add_sum_erase (s:=Finset.univ) H (Finset.mem_univ (pureR l)) |
| 66 | rw [hx] at hh |
| 67 | have hc (m) (hm : m ∈ Finset.univ.erase (pureR l)) : jet v A (lo l m) x = jet v G (lo l m) x := by |
| 68 | have hi := smooth_of_le hw (len_low l m) |
| 69 | unfold G; rw [jet_add v _ hi contDiffAt_const, jet_const v _ (lo_ne (Finset.ne_of_mem_erase hm)), add_zero] |
| 70 | have ht : G x * jet v T l x = - ∑ m ∈ Finset.univ.erase (pureR l), jet v A (lo l m) x * jet v T (hi l m) x := by |
| 71 | rw [show ∑ m ∈ Finset.univ.erase (pureR l), _ = ∑ m ∈ Finset.univ.erase (pureR l), H m from |
| 72 | Finset.sum_congr rfl (fun m hm => congrArg (· * jet v T (hi l m) x) (hc m hm))] |
| 73 | simpa only [H, lo_right,hi_right,zeroth] using (eq_neg_of_add_eq_zero_left hh) |
| 74 | have hp : resolve (A x) u * G x = 1 := Matrix.nonsing_inv_mul _ h |
| 75 | rw [← Matrix.mul_neg, ← ht, ← Matrix.mul_assoc, hp, Matrix.one_mul] |
| 76 | end TestD |
| 77 | |
| 78 | /-- One convenient jet norm for generic product estimates. -/ |
| 79 | structure Bundle {τ X E ι κ : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] [Fintype κ] |
| 80 | (v : τ → E) (C : Mark τ X) (D : Cost X) (a : ι → X) (b : κ → X) (A : E → Matrix ι κ ℝ) (x : E) (k : ℕ) (s M : ℝ) : Prop where |
| 81 | smooth : ContDiffAt ℝ k A x |
| 82 | bound (l : List τ) : l.length ≤ k → Bill C D a b l s M (jet v A l x) |
| 83 | |
| 84 | section bundle |
| 85 | variable [Fintype κ] {A B : E → Matrix ι κ ℝ} {a : ι → X} {b : κ → X} |
| 86 | variable {C : Mark τ X} {D : Cost X} {v : τ → E} {γ s t d U M N : ℝ} {x : E} {k : ℕ} |
| 87 | omit [DecidableEq ι] in |
| 88 | lemma Bundle.mono (H : Bundle v C D a b A x k s M) (hs : t ≤ s) (hm : M ≤ N) : Bundle v C D a b A x k t N := |
| 89 | ⟨H.smooth,fun l h => (H.bound l h).mono hs hm⟩ |
| 90 | omit [DecidableEq ι] in |
| 91 | lemma Bundle.glue (H : Bundle v C D a b A x k s M) (he : A =ᶠ[𝓝 x] B) : Bundle v C D a b B x k s M := |
| 92 | ⟨H.smooth.congr_of_eventuallyEq he.symm,fun l h => by rw [← identical v he l]; exact H.bound l h⟩ |
| 93 | def tagPrice (U : ℝ) (k : ℕ) (M N : ℝ) := 2^k*(U^k*M*N) |
| 94 | omit [DecidableEq ι] in |
| 95 | theorem Bundle.multiply [Fintype μ] {c : μ → X} {B : E → Matrix κ μ ℝ} |
| 96 | (H : Bundle v C D a b A x k s M) (J : Bundle v C D b c B x k s N) |
| 97 | (hu : C.Move D d U) (hn : 0 ≤ d) (hx : 1 ≤ U) (hm : 0 ≤ M) (hj : 0 ≤ N) (hg : 0 ≤ γ) (hy : γ+k*d ≤ s) : |
| 98 | Bundle v C D a c (fun x => A x*B x) x k γ (tagPrice U k M N) := by |
| 99 | constructor |
| 100 | · exact prod_smooth H.smooth J.smooth |
| 101 | intro l hl; rw [jet_mul v _ (smooth_of_le H.smooth hl) (smooth_of_le J.smooth hl)] |
| 102 | let Q := U^k*M*N |
| 103 | apply (Bill.sum_budget Finset.univ (fun _ => Q) _ fun m _ => Bill.mul hu hn hx hg k hy |
| 104 | ((len_low l m).trans hl) ((len_high l m).trans hl) (fun x => pay_masks ..) hm hj (H.bound (lo l m) ((len_low l m).trans hl)) |
| 105 | (J.bound (hi l m) ((len_high l m).trans hl))).mono le_rfl |
| 106 | simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul,TestD.card,Nat.cast_pow, Nat.cast_ofNat,tagPrice] |
| 107 | have ht : 0 ≤ U := zero_le_one.trans hx |
| 108 | apply mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hl) (show 0 ≤ Q from by unfold Q; positivity) |
| 109 | end bundle |
| 110 | |
| 111 | namespace TestD |
| 112 | variable {C : Mark τ X} {D : Cost X} {A : E → Matrix ι ι ℝ} {v : τ → E} {a : ι → X} |
| 113 | variable {k : ℕ} {s M r d U γ η ε V u : ℝ} {x : E} |
| 114 | |
| 115 | def charges (n : ℕ) (ε C w : ℝ) := if n=0 then C*w else C*w*w*ε |
| 116 | |
| 117 | lemma charges_nn (n : ℕ) {ε C w : ℝ} (he : 0 ≤ ε) (hc : 0 ≤ C) (hw : 0 ≤ w) : 0 ≤ charges n ε C w := by |
| 118 | unfold charges; split <;> positivity |
| 119 | lemma charges_mono (n : ℕ) {ε C W w : ℝ} (he : 0 ≤ ε) (hc : C ≤ W) (hw : 0 ≤ w) : charges n ε C w ≤ charges n ε W w := by |
| 120 | unfold charges; split <;> gcongr |
| 121 | lemma charges_lax (n : ℕ) {ε C w : ℝ} (hε : ε ≤ 1) (hw : 0 ≤ w) (hh : w ≤ 1) (hc : 0 ≤ C) : charges n ε C w ≤ C*w := by |
| 122 | unfold charges; split; · rfl |
| 123 | exact (mul_le_of_le_one_right (by positivity) hε).trans (mul_le_of_le_one_right (by positivity) hh) |
| 124 | |
| 125 | /-- harmless exponential in the derivative budget, independent of |period|. -/ |
| 126 | def meter (k n : ℕ) (M U Q : ℝ) := Q * (1+U^k*Q*(2^k*(U^k*M)))^n |
| 127 | lemma meter_nn (k n : ℕ) {M U Q : ℝ} (hm : 0 ≤ M) (hu : 0 ≤ U) (hq : 0 ≤ Q) : 0 ≤ meter k n M U Q := by |
| 128 | unfold meter; positivity |
| 129 | |
| 130 | def drain (u : ℝ) := (1+u)⁻¹ |
| 131 | lemma drain_pos (h : 0 ≤ u) : 0 < drain u := inv_pos.mpr (by linarith) |
| 132 | lemma drain_le (h : 0 ≤ u) : drain u ≤ 1 := inv_le_one_of_one_le₀ (by linarith) |
| 133 | |
| 134 | def rise (V r : ℝ) := V*(min (r/2) 1)⁻¹ |
| 135 | lemma rise_nn (hV : 0 ≤ V) (hr : 0 < r) : 0 ≤ rise V r := |
| 136 | mul_nonneg hV (inv_pos.mpr (lt_min (half_pos hr) zero_lt_one)).le |
| 137 | |
| 138 | /-- `progress s` remaining paid rate after n derivatives budget. -/ |
| 139 | def progress (s : ℝ) (d : ℝ) (k n : ℕ) := s-2*n*(k*d) |
| 140 | lemma progress_top (s : ℝ) (d : ℝ) (k : ℕ) : progress s d k 0=s := by simp [progress] |
| 141 | lemma progress_anti (s : ℝ) (hd : 0 ≤ d) (k : ℕ) : Antitone (progress s d k) := by |
| 142 | intro i j hi; unfold progress; gcongr |
| 143 | lemma progress_next (s : ℝ) (d : ℝ) (k n : ℕ) : progress s d k (n+1) = progress s d k n - 2*(k*d) := by unfold progress; push_cast; ring |
| 144 | |
| 145 | /-- Precision inputs, `ε` scales *positive derivatives only*. Nothing |
| 146 | about the derivative of any inverse matrix. -/ |
| 147 | structure Knew (C : Mark τ X) (D : Cost X) (a : ι → X) (v : τ → E) (x : E) (k : ℕ) (s M r ε : ℝ) |
| 148 | (A : E → Matrix ι ι ℝ) : Prop where |
| 149 | smooth : ContDiffAt ℝ k A x |
| 150 | gap : Gap (A x) r |
| 151 | schur : D.Schur a a s M (A x) |
| 152 | jets (l : List τ) : l ≠ [] → l.length ≤ k → Bill C D a a l s (M*ε) (jet v A l x) |
| 153 | |
| 154 | lemma measured (hg : progress γ d k k ≥ 0) (h : C.Move D d U) (hd : 0 ≤ d) (hh : 1 ≤ U) |
| 155 | (hw : Knew C D a v x k s M r ε A) (hM : 0 ≤ M) (hV : 0 ≤ V) |
| 156 | (hs : 0 < s) (hx : D.Volume a (safeRate s M r-γ) V) (hc : γ ≤ s) |
| 157 | (hu : 0 ≤ u) (hr : 0 < r) (hε : 0 ≤ ε) (he : ε ≤ 1) : |
| 158 | ∀ n : ℕ, n ≤ k → ∀ l : List τ, l.length ≤ n → Bill C D a a l (progress γ d k n) |
| 159 | (charges l.length ε (meter k n M U (rise V r)) (drain u)) (jet v (action A u) l x) := by |
| 160 | intro n; let Y := action A u; let Q := rise V r; let w := drain u |
| 161 | have hq : 0 ≤ Q := rise_nn hV hr |
| 162 | have hy := resolve_schur hM hs hw.schur hw.gap hr hu hx |
| 163 | have hk : Neat A u x := ((hw.gap.shift u).unit_det (by positivity)) |
| 164 | have hU := zero_le_one.trans hh |
| 165 | have h0 : Bill C D a a [] γ (Q*w) (resolve (A x) u) := Bill.origin C (hy.mono le_rfl (by |
| 166 | unfold w drain Q rise; rw [mul_assoc]; exact mul_le_mul_of_nonneg_left (uniform_shift _ _ hr hu) hV)) |
| 167 | have hv n : Q ≤ meter k n M U Q := by unfold meter; exact le_mul_of_one_le_right hq (one_le_pow₀ |
| 168 | (le_add_of_nonneg_right (by positivity))) |
| 169 | have hz n : progress γ d k n ≤ γ := (progress_anti γ hd k (Nat.zero_le n)).trans_eq (progress_top ..) |
| 170 | have hn := drain_pos hu |>.le |
| 171 | induction n with |
| 172 | | zero => |
| 173 | intro ht l hl; rw [Nat.le_zero, List.length_eq_zero_iff] at hl; subst l |
| 174 | simp only [progress_top, List.length_nil, charges, if_true, meter, pow_zero, mul_one, zeroth]; exact h0 |
| 175 | | succ n ih => |
| 176 | intro ht l hl |
| 177 | by_cases hL : l=[] |
| 178 | · subst l; rw [TestD.zeroth]; exact h0.mono (hz _) (show Q*w ≤ meter k (n+1) M U Q*w from mul_le_mul_of_nonneg_right (hv _) hn) |
| 179 | have hA := smooth_of_le hw.smooth (hl.trans ht) |
| 180 | rw [action_rule v _ hL hk hA] |
| 181 | let S := progress γ d k (n+1) |
| 182 | let R := S+k*d |
| 183 | have hS : 0 ≤ S := le_trans hg (progress_anti γ hd k ht) |
| 184 | have hR : 0 ≤ R := add_nonneg hS (by positivity) |
| 185 | have hb : R+k*d ≤ progress γ d k n := by unfold R S; rw [progress_next]; linarith |
| 186 | have ho : R ≤ γ := (le_trans (le_add_of_nonneg_right (by positivity)) hb).trans (hz n) |
| 187 | let A0 := meter k n M U Q |
| 188 | let D0 := U^k*(M*ε)*(A0*w) |
| 189 | have hD : 0 ≤ D0 := by unfold D0; have he : 0 ≤ A0 := meter_nn _ _ hM hU hq; positivity |
| 190 | let G := Finset.univ.erase (pureR l) |
| 191 | have hG (m : Masks l) (hm : m ∈ G) : Bill C D a a l R D0 (jet v A (lo l m) x * jet v Y (hi l m) x) := by |
| 192 | have h' : lo l m ≠ [] := lo_ne (Finset.ne_of_mem_erase hm) |
| 193 | have h1 := (len_low l m).trans (hl.trans ht) |
| 194 | have h2 : (hi l m).length ≤ n := by |
| 195 | have he : 1 ≤ (lo l m).length := List.length_pos_iff.mpr h' |
| 196 | have hx := lengths l m; omega |
| 197 | have hm : 0 ≤ A0 := meter_nn _ _ hM hU hq |
| 198 | exact Bill.mul h hd hh hR k hb h1 (h2.trans (n.le_succ.trans ht)) (C.pay_masks l m) (mul_nonneg hM hε) |
| 199 | (mul_nonneg hm hn) ((hw.jets _ h' h1).mono ((hz n).trans hc) le_rfl) |
| 200 | ((ih (n.le_succ.trans ht) (hi l m) h2).mono le_rfl (charges_lax _ he hn (drain_le hu) hm)) |
| 201 | have hr' : (∑ _m ∈ G, D0) ≤ 2^k*D0 := by |
| 202 | rw [Finset.sum_const,nsmul_eq_mul] |
| 203 | have he : G.card ≤ 2^l.length := by rw [← card]; exact Finset.card_le_univ _ |
| 204 | have hh : (G.card:ℝ) ≤ 2^l.length := by exact_mod_cast he |
| 205 | refine mul_le_mul_of_nonneg_right (hh.trans (pow_le_pow_right₀ (by norm_num) (hl.trans ht))) hD |
| 206 | have hB := (Bill.sum_budget _ _ _ hG).mono le_rfl hr' |
| 207 | have hZ := (h0.mono ho le_rfl).mul h hd hh hS k (show S+k*d ≤ R from le_rfl) (Nat.zero_le _) (hl.trans ht) |
| 208 | (fun x => show C.pay l x=C.pay [] x*C.pay l x from (one_mul _).symm) (mul_nonneg hq hn) (mul_nonneg (by positivity) hD) hB |
| 209 | apply hZ.neg.mono le_rfl |
| 210 | rw [charges,if_neg (ne_of_gt (List.length_pos_iff.mpr hL))] |
| 211 | change U^k*(Q*w)*(2^k*D0) ≤ meter k (n+1) M U Q*w*w*ε |
| 212 | have hf : 0 ≤ A0 := meter_nn _ _ hM hU hq |
| 213 | calc |
| 214 | _ = A0*(U^k*Q*(2^k*(U^k*M)))*w*w*ε := by unfold D0; ring |
| 215 | _ ≤ _ := by |
| 216 | rw [show meter k (n+1) M U Q = A0*(1+U^k*Q*(2^k*(U^k*M))) by unfold A0 meter; rw [pow_succ]; ring] |
| 217 | apply mul_le_mul_of_nonneg_right _ hε |
| 218 | exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left |
| 219 | (le_add_of_nonneg_left zero_le_one) hf) hn) hn |
| 220 | end TestD |
| 221 | end YM.FreeResolvent |