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.Hessian.Counting |
| 2 | import YM.Bid.Drops |
| 3 | import YM.Next.FREE_KERNELS.Strands |
| 4 | import YM.Shift.Osc |
| 5 | import YM.Work.B04 |
| 6 | import YM.Work.F05.Measure |
| 7 | |
| 8 | |
| 9 | /-! |
| 10 | # Mixed currencies needed for the external fields |
| 11 | |
| 12 | Weighted sup for all smooth legs, counting l² when a rough tangent inserted. |
| 13 | Can pay positive *and* reciprocal exponential weights; for unweighted slot use |
| 14 | `const _ 1`. NOT the matrix determinant norms. |
| 15 | |
| 16 | Used throughout `Estimate` and `Local`. Intended use: `f i` is a mixed |
| 17 | derivative of order S.card, at one term/root i; P.amps are the amplitudes |
| 18 | of the arguments. Either charge in sup or in l² over the roots. The latter |
| 19 | only when S contains the marked index (the single rough direction). Store |
| 20 | the l² cost as P.cap times this bill; e.g. when fine roots, cap = L², |
| 21 | so curled smooth legs going like L⁻² can enter the same estimates as a |
| 22 | curled rough argument of l² size order one. Under Leibniz only one factor |
| 23 | can have the mark, *that's* the point of the sets of indices. Use also in |
| 24 | `Collective` etc for patch arrays (then averages as specified there). |
| 25 | These marks are auxiliary to differentiating the deterministic stationary |
| 26 | action; not field/source/cluster observables. |
| 27 | -/ |
| 28 | set_option autoImplicit false |
| 29 | noncomputable section |
| 30 | namespace YM.AnalyticNext.QuarticMatch.Estimate |
| 31 | open Filter Function Lattice Laurent Matrix Hessian Analysis |
| 32 | open scoped Topology ContDiff BigOperators |
| 33 | |
| 34 | variable {X Y Z α ι : Type*} |
| 35 | [NormedAddCommGroup X] [NormedAddCommGroup Y] [NormedAddCommGroup Z] [Fintype α] |
| 36 | |
| 37 | def rlen (x : α→ℝ) := ell2 x |
| 38 | lemma rmono {x y : α→ℝ} (he : ∀ i, |x i| ≤ |y i|) : rlen x ≤ rlen y := by |
| 39 | apply (sq_le_sq₀ (ell_nonneg _) (ell_nonneg _)).mp; rw [square_length,square_length] |
| 40 | exact Finset.sum_le_sum fun i _ => pow_le_pow_left₀ (norm_nonneg _) (he i) 2 |
| 41 | lemma rless {x y : α→ℝ} (h : ∀ i, 0 ≤ x i) (he : ∀ i, x i ≤ y i) : rlen x ≤ rlen y := rmono fun i => by |
| 42 | rw [abs_of_nonneg (h i), abs_of_nonneg ((h i).trans (he i))]; exact he i |
| 43 | lemma rconstant {v : ℝ} (hv : 0 ≤ v) (x : α→ℝ) : rlen (fun i => v*x i)=v*rlen x := by |
| 44 | conv_rhs => rw [← Real.norm_of_nonneg hv] |
| 45 | exact ell_smul v x |
| 46 | lemma rtriangle {x y z : α→ℝ} (h : ∀ i, 0 ≤ z i) (ht : ∀ i, z i ≤ x i + y i) : rlen z ≤ rlen x+rlen y := |
| 47 | (rless h (y:=x+y) ht).trans (ell_tri ..) |
| 48 | lemma rlimit {κ : Type*} {l : Filter κ} {f : κ→α→ℝ} {g} |
| 49 | (h : ∀ i, Tendsto (fun x => f x i) l (𝓝 (g i))) : Tendsto (rlen ∘ f) l (𝓝 (rlen g)) := by |
| 50 | have he : Continuous (fun z : α→ℝ => WithLp.toLp 2 z) := (PiLp.continuousLinearEquiv 2 ℝ _).symm.continuous |
| 51 | exact (he.norm.tendsto _).comp (tendsto_pi_nhds.mpr h) |
| 52 | lemma rperm (e : Equiv.Perm α) (f : α→ℝ) : rlen (f ∘ e) = rlen f := |
| 53 | (sq_eq_sq₀ (ell_nonneg _) (ell_nonneg _)).1 (by rw [square_length, square_length]; exact Equiv.sum_comp e (fun i => ‖f i‖^2)) |
| 54 | |
| 55 | /-- Permit at most one wide slot, but not compulsory. Every use carries amplifiers |
| 56 | from actual inputs. `λ` may grow or decrease. -/ |
| 57 | structure Purse (ι α : Type*) where |
| 58 | mark : Option ι |
| 59 | cap : ℝ |
| 60 | rooted : 0 ≤ cap |
| 61 | amps : ι→ℝ |
| 62 | budget : ∀ i, 0 ≤ amps i |
| 63 | toll : ι→α→ℝ |
| 64 | toll_pos : ∀ i k, 0 < toll i k |
| 65 | |
| 66 | namespace Purse |
| 67 | variable (P : Purse ι α) |
| 68 | |
| 69 | def tagged (S : Finset ι) : Prop := ∃ i∈S,P.mark=some i |
| 70 | |
| 71 | def price (S : Finset ι) (x : α) := ∏ i∈S, P.toll i x |
| 72 | def target (S : Finset ι) := ∏ i∈S, P.amps i |
| 73 | omit [Fintype α] in |
| 74 | lemma price_pos (S : Finset ι) (x : α) : 0 < P.price S x := Finset.prod_pos fun _i _ => P.toll_pos .. |
| 75 | omit [Fintype α] in |
| 76 | lemma target_pos (S : Finset ι) : 0 ≤ P.target S := Finset.prod_nonneg fun i _ => P.budget i |
| 77 | |
| 78 | /-- `C` per actual assignment. -/ |
| 79 | def Pays (S : Finset ι) (f : α→X) (C : ℝ) := 0 ≤ C ∧ |
| 80 | (¬ P.tagged S → ∀ i, P.price S i * ‖f i‖ ≤ C * P.target S) ∧ |
| 81 | (P.tagged S → rlen (fun i => P.price S i*‖f i‖) ≤ P.cap*C* P.target S) |
| 82 | variable {P} {S T R : Finset ι} {f : α→X} {g : α→Y} {E C D : ℝ} |
| 83 | lemma Pays.mono (h : P.Pays S f C) (he : C ≤ D) : P.Pays S f D := ⟨h.1.trans he,fun ht i => |
| 84 | (h.2.1 ht i).trans (mul_le_mul_of_nonneg_right he (P.target_pos _)), fun ht => (h.2.2 ht).trans |
| 85 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left he P.rooted) (P.target_pos _))⟩ |
| 86 | lemma Pays.under (h : P.Pays S f C) (he : ∀ i, ‖g i‖ ≤ ‖f i‖) : P.Pays S g C := ⟨h.1,fun ht i => |
| 87 | (mul_le_mul_of_nonneg_left (he i) (P.price_pos _ _).le).trans (h.2.1 ht i), fun ht => |
| 88 | le_trans (rless (fun _i => mul_nonneg (P.price_pos _ _).le (norm_nonneg _)) (fun i => mul_le_mul_of_nonneg_left (he i) (P.price_pos _ _).le)) (h.2.2 ht)⟩ |
| 89 | lemma Pays.neg (h : P.Pays S f C) : P.Pays S (-f) C := h.under (fun i => by simp) |
| 90 | lemma Pays.repay (h : P.Pays S f C) (hp : 0 ≤ D) (he : ∀ i, ‖g i‖ ≤ D*‖f i‖) : P.Pays S g (D*C) := by |
| 91 | have ha i : P.price S i*‖g i‖ ≤ D*(P.price S i*‖f i‖) := (mul_le_mul_of_nonneg_left (he i) (P.price_pos _ _).le).trans_eq (mul_left_comm ..) |
| 92 | refine ⟨mul_nonneg hp h.1,fun ht i => (ha i).trans ((mul_le_mul_of_nonneg_left (h.2.1 ht i) hp).trans_eq (mul_assoc ..).symm),fun ht => |
| 93 | (rless (fun i => mul_nonneg (P.price_pos _ _).le (norm_nonneg _)) ha).trans ?_⟩ |
| 94 | rw [show rlen _=D*rlen (fun i => P.price S i*‖f i‖) from rconstant hp _] |
| 95 | exact (mul_le_mul_of_nonneg_left (h.2.2 ht) hp).trans_eq (by ring) |
| 96 | lemma Pays.relocate (e : Equiv.Perm α) (h : P.Pays S f C) (hd : 0 ≤ D) |
| 97 | (he : ∀ i,P.price S i*‖g i‖ ≤ D*(P.price S (e i)*‖f (e i)‖)) : P.Pays S g (D*C) := by |
| 98 | refine ⟨mul_nonneg hd h.1, fun ht i => (he i).trans ((mul_le_mul_of_nonneg_left (h.2.1 ht _) hd).trans_eq (mul_assoc ..).symm), |
| 99 | fun ht => (rless (fun i => mul_nonneg (P.price_pos _ _).le (norm_nonneg _)) he).trans ?_⟩ |
| 100 | let x (i : α) := P.price S i*‖f i‖ |
| 101 | change (rlen fun i => D * ((x ∘ e) i)) ≤ _ |
| 102 | rw [show rlen _=D*rlen (x ∘ e) from rconstant hd _,rperm] |
| 103 | exact (mul_le_mul_of_nonneg_left (h.2.2 ht) hd).trans_eq (by ring) |
| 104 | lemma Pays.plus {v : α→X} (h : P.Pays S f C) (hp : P.Pays S v D) : P.Pays S (f+v) (C+D) := by |
| 105 | have hh i : P.price S i*‖(f+v) i‖ ≤ P.price S i*‖f i‖+P.price S i*‖v i‖ := by rw [← mul_add]; exact mul_le_mul_of_nonneg_left (norm_add_le ..) (P.price_pos _ _).le |
| 106 | refine ⟨add_nonneg h.1 hp.1,fun he i => (hh i).trans ((add_le_add (h.2.1 he i) (hp.2.1 he i)).trans_eq (add_mul ..).symm),fun he => ?_⟩ |
| 107 | exact (rtriangle (fun i => mul_nonneg (P.price_pos _ _).le (norm_nonneg _)) hh).trans |
| 108 | ((add_le_add (h.2.2 he) (hp.2.2 he)).trans_eq (by ring)) |
| 109 | lemma Pays.zero (h : 0 ≤ C) : P.Pays S (0 : α→X) C := ⟨h,fun _ i => by simpa using mul_nonneg h (P.target_pos S),fun _ => by |
| 110 | simpa [rlen,show (fun _ : α => (0:ℝ))=0 from rfl] using mul_nonneg (mul_nonneg P.rooted h) (P.target_pos S)⟩ |
| 111 | lemma Pays.blank (h : 0 ≤ C) (he : ∀ i, ‖f i‖ ≤ C) : P.Pays ∅ f C := by |
| 112 | refine ⟨h,fun _ i => ?_,fun ⟨_,hx,_⟩ => ?_⟩ |
| 113 | · simpa [price,target] using he i |
| 114 | simp at hx |
| 115 | lemma Pays.gather {κ : Type*} {f : κ→α→X} (q : Finset κ) (E : κ→ℝ) (h : ∀ i∈ q, P.Pays S (f i) (E i)) : P.Pays S (∑ i∈q,f i) (∑ i∈q,E i) := by |
| 116 | classical |
| 117 | induction q using Finset.induction_on with |
| 118 | | empty => simpa using (show P.Pays S (0:α→X) 0 from Pays.zero le_rfl) |
| 119 | | @insert i q hi ih => rw [Finset.sum_insert hi,Finset.sum_insert hi]; exact (h i (Finset.mem_insert_self ..)).plus (ih fun i he => h _ (Finset.mem_insert_of_mem he)) |
| 120 | lemma Pays.limits {κ : Type*} {l : Filter κ} [l.NeBot] {F : κ→α→X} {c : κ→ℝ} (h : ∀ i, P.Pays S (F i) (c i)) |
| 121 | (he : Tendsto c l (𝓝 C)) (hc : ∀ i, Tendsto (fun j => F j i) l (𝓝 (f i))) : P.Pays S f C := by |
| 122 | have hv i : Tendsto (fun j => P.price S i * ‖F j i‖) l (𝓝 (P.price S i * ‖f i‖)) := (hc i).norm.const_mul _ |
| 123 | refine ⟨ge_of_tendsto he (Eventually.of_forall fun i => (h i).1),fun ht i => |
| 124 | le_of_tendsto_of_tendsto' (hv i) (he.mul_const _) (fun j => ((h j).2.1 ht i)),fun ht => ?_⟩ |
| 125 | exact le_of_tendsto_of_tendsto' (rlimit hv) ((he.const_mul P.cap).mul_const _) (fun j => (h j).2.2 ht) |
| 126 | lemma Pays.tsum {κ : Type*} {f : κ→α→X} {E : κ→ℝ} (h : ∀ i, P.Pays S (f i) (E i)) (he : Summable E) |
| 127 | (ht : ∀ i : α, Summable (fun j : κ => f j i)) : P.Pays S (fun i => ∑' j, f j i) (∑' i,E i) := by |
| 128 | apply Pays.limits (fun q : Finset κ => Pays.gather q E fun i _ => h i) he.hasSum |
| 129 | intro i; simp_rw [Finset.sum_apply]; exact (ht i).hasSum |
| 130 | |
| 131 | variable {z : α→Z} [DecidableEq ι] |
| 132 | lemma Pays.times (h : P.Pays S f C) (hp : P.Pays T g D) (ht : Disjoint S T) (hu : ∀ i, ‖z i‖ ≤ ‖f i‖*‖g i‖) : P.Pays (S∪T) z (C*D) := by |
| 133 | have hh : P.target (S∪T)=P.target S * P.target T := Finset.prod_union ht |
| 134 | let a i := P.price S i*‖f i‖; let b i := P.price T i*‖g i‖ |
| 135 | have ha i : P.price (S∪T) i*‖z i‖ ≤ a i*b i := by |
| 136 | exact (mul_le_mul_of_nonneg_left (hu i) (P.price_pos _ _).le).trans_eq (by unfold a b price; rw [Finset.prod_union ht]; ring) |
| 137 | have hr : P.tagged (S∪T) ↔ P.tagged S ∨ P.tagged T := by simp only [tagged, Finset.mem_union]; grind |
| 138 | refine ⟨mul_nonneg h.1 hp.1,?_,?_⟩ |
| 139 | · intro e i; rw [hh]; |
| 140 | exact (ha i).trans ((mul_le_mul (h.2.1 (fun x => e (hr.mpr (Or.inl x))) i) (hp.2.1 (fun x => e (hr.mpr (Or.inr x))) i) |
| 141 | (mul_nonneg (P.price_pos _ _).le (norm_nonneg _)) (mul_nonneg h.1 (P.target_pos _))).trans_eq (by ring)) |
| 142 | have hd (i : α) : 0 ≤ P.price (S∪T) i* ‖z i‖ := mul_nonneg (P.price_pos _ _).le (norm_nonneg _) |
| 143 | have he : P.tagged S → ¬ P.tagged T := by |
| 144 | rintro ⟨i,hi,he⟩ ⟨j,hj,hv⟩ |
| 145 | rw [Option.some.inj (he.symm.trans hv)] at hi; exact Finset.disjoint_left.mp ht hi hj |
| 146 | intro H; rw [hh] |
| 147 | rcases hr.mp H with H|H |
| 148 | · have hx := (rless hd (fun i => (ha i).trans ((mul_le_mul_of_nonneg_left (hp.2.1 (he H) i) |
| 149 | (mul_nonneg (P.price_pos _ _).le (norm_nonneg _))).trans_eq (mul_comm ..)))) |
| 150 | rw [show rlen _ = _ from rconstant (mul_nonneg hp.1 (P.target_pos T)) a] at hx |
| 151 | exact hx.trans ((mul_le_mul_of_nonneg_left (h.2.2 H) (mul_nonneg hp.1 (P.target_pos _))).trans_eq (by ring)) |
| 152 | have hx := rless hd (fun i => (ha i).trans (mul_le_mul_of_nonneg_right (h.2.1 (fun x => he x H) i) (mul_nonneg (P.price_pos _ _).le (norm_nonneg _)))) |
| 153 | rw [show rlen _ = _ from rconstant (mul_nonneg h.1 (P.target_pos S)) b] at hx |
| 154 | exact hx.trans ((mul_le_mul_of_nonneg_left (hp.2.2 H) (mul_nonneg h.1 (P.target_pos _))).trans_eq (by ring)) |
| 155 | |
| 156 | lemma Pays.prod (v : ι→α→ℝ) (E : ι→ℝ) (S : Finset ι) (h : ∀ i∈S, P.Pays {i} (v i) (E i)) : P.Pays S (fun x => ∏ i∈S,v i x) (∏ i∈S,E i) := by |
| 157 | induction S using Finset.induction_on with |
| 158 | | empty => |
| 159 | simp only [Finset.prod_empty] |
| 160 | exact Pays.blank (by norm_num) fun _ => norm_one.le |
| 161 | | insert i S hi ih => |
| 162 | simp_rw [Finset.prod_insert hi,Finset.insert_eq]; apply Pays.times (h i (by simp)) (ih (fun i he => h i (Finset.mem_insert_of_mem he))) (Finset.disjoint_singleton_left.mpr hi) |
| 163 | intro i; exact norm_mul_le .. |
| 164 | end Purse |
| 165 | end YM.AnalyticNext.QuarticMatch.Estimate |