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.Further.LOCAL_LOG_JETS.Price |
| 2 | import YM.PhysicalNext.INTERPOLATED_SECANTS_FC.JetProducts |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Mixed jets of actual negative-log tuple contributions |
| 7 | |
| 8 | Numbered even at coincidence. Variant of LogJets.Price, but also mixed with same-b retiming |
| 9 | orders through an additional finite scalar degree; needs charts at every Healthy, costs only |
| 10 | where tested. No logarithms taken across hard field gates, no infinite sums differentiated. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.PhysicalNext.InterpolatedSecantsFc.Cluster |
| 15 | open Function Filter Finset Lattice RG Wilson Next.Foundations Push.Local Push.AbsoluteSums Trees Ursell Further.LogJets |
| 16 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff Classical |
| 17 | variable {ι : Type*} {G : Gauge} {n : Side} {Y : ι → Support n} (p : BudgetPoint) |
| 18 | |
| 19 | /- Cost at the complete footprint, through N scalar derivatives. -/ |
| 20 | def expense (Y : ι → Support n) (c : ι → ℝ) (N : ℕ) (z : Clusters ι) := |
| 21 | (1+coversFee Y p z)^N * fee Y p c z |
| 22 | |
| 23 | def price (ε γ q : ℝ) (N m : ℕ) := Extra.Multi.Germs.pay p * (Reserves.polyPrice ε (N + orderFee p) * Reserves.treeYield γ q m) |
| 24 | |
| 25 | lemma expense_pos (c : ι → ℝ) (hc : ∀ i,0 ≤ c i) (N : ℕ) (z : Clusters ι) : 0 ≤ expense p Y c N z := by |
| 26 | have := covers_pos Y p z; exact mul_nonneg (by positivity) (fee_pos Y p c hc z) |
| 27 | |
| 28 | lemma support_tail (hY : ∀ i, (Y i).Nonempty) {c : ι → ℝ} {ε γ q a δ : ℝ} (he : 0 < ε) (ha : 0 ≤ a) |
| 29 | (h : Ready Y p.B c (a+2*ε) γ δ q) (x : Site n) (N m : ℕ) : |
| 30 | SumBudget (fun z : Clusters ι => if m ≤ z.1 ∧ x∈foot Y z then expense p Y c N z * currency p.B a (foot Y z) else 0) |
| 31 | (price p ε γ q N m) := by |
| 32 | let z₀ (_ : ι) := (0:ℝ) |
| 33 | have hh : Ready Y p.B (Reserves.tariff c z₀ z₀ ε) (a+2*ε) γ δ q := by |
| 34 | simpa only [show Reserves.tariff c z₀ z₀ ε=c by ext; simp [Reserves.tariff,z₀]] using h |
| 35 | have hp := Reserves.cluster_prices Y p.B c z₀ z₀ (blocked Y) (literal_test Y hY) h.2.2.2.2.1 (fun _ => le_rfl) |
| 36 | he ha hh m (N+orderFee p) x (fun _ => True) (T:=0) (U:=0) (fun i _ _ _ _=> by |
| 37 | unfold z₀ Reserves.clusterPrice Reserves.weight; simp; positivity) |
| 38 | unfold price; convert budget_scale (show 0 ≤ Extra.Multi.Germs.pay p by unfold Extra.Multi.Germs.pay; positivity) hp using 1 |
| 39 | · ext i; by_cases hy : m ≤ i.1 <;> by_cases hx : x∈foot Y i <;> simp [Reserves.occurrence, |
| 40 | show unionOf Y i.2 = foot Y i from rfl, hx, hy, expense,fee, premium,coversFee,Reserves.clusterPrice, |
| 41 | Reserves.weight,z₀,pow_add]; ring |
| 42 | · simp [Reserves.extract] |
| 43 | |
| 44 | section Reanchor |
| 45 | variable {c : ι → ℝ} {o : ι → Site n} (ho : ∀ i,o i∈Y i) (z : Clusters ι) (x : Site n) (hx : x∈foot Y z) |
| 46 | include ho |
| 47 | private lemma covers_arity : (((univ : Finset (Option (Fin z.1))).card):ℝ) ≤ 1+coversFee Y p z := by |
| 48 | apply le_trans (b:=coversFee Y p z) _ (le_add_of_nonneg_left zero_le_one) |
| 49 | have he i : (1:ℝ) ≤ coverNumber p.B (Y i) := by |
| 50 | have hv := Corona.pays (Y i) p.B |
| 51 | have hp := card_pos.mpr (show (Y i).Nonempty from ⟨o i,ho i⟩) |
| 52 | exact_mod_cast (show 1 ≤ coverNumber p.B (Y i) by by_contra! hh; rw [Nat.lt_one_iff.mp hh,zero_mul] at hv; omega) |
| 53 | simpa [coversFee] using Finset.sum_le_sum (s:=univ) (f:=fun _ : Option (Fin z.1) => (1:ℝ)) fun i _ => he (z.2 i) |
| 54 | |
| 55 | private def shift (Y : ι → Support n) (z : Clusters ι) := ((4*(p.B:ℝ)+2)*(1+coversFee Y p z))^p.power |
| 56 | omit ho in |
| 57 | private lemma shift_pos : 1 ≤ shift p Y z := by |
| 58 | have h := covers_pos Y p z |
| 59 | exact one_le_pow₀ (one_le_mul_of_one_le_of_one_le (by have := Nat.cast_nonneg (α:=ℝ) p.B; linarith) (by linarith)) |
| 60 | include hx in |
| 61 | private lemma reanchor (hz : scalarWeight Y z ≠ 0) {v : Directions G n} (hv : p.dirBound x v) (i : Option (Fin z.1)) : |
| 62 | p.dirBound (o (z.2 i)) ((shift p Y z)⁻¹ • v) := by |
| 63 | have he := connected_pay (blocked Y) Y p.B (literal_test Y (fun i => ⟨_,ho i⟩)) z.2 zero_le_one (show coefficient _ _ ≠ 0 from |
| 64 | fun he => hz (by simp [scalarWeight,he])) |
| 65 | have h : (coverNumber p.B (foot Y z):ℝ) ≤ coversFee Y p z := by simpa [currency,←Real.exp_sum,coversFee] using he |
| 66 | have hd : (separation (o (z.2 i)) x:ℝ) ≤ coverNumber p.B (foot Y z)*((4:ℝ)*p.B+2)+2*(p.B:ℝ) := by |
| 67 | exact_mod_cast Corona.extent _ p.B (covered Y z i (ho _)) hx |
| 68 | rw [shift, ← inv_pow]; refine Extra.Multi.Germs.relocate_dir ?_ hv |
| 69 | nlinarith [Nat.cast_nonneg (α:=ℝ) p.B] |
| 70 | |
| 71 | private lemma tariff (hc : ∀ i,0≤c i) {k m N : ℕ} (hk : k ≤ p.order) (hm : m ≤ N) : |
| 72 | (shift p Y z)^k * (|scalarWeight Y z| * ((Fintype.card (Option (Fin z.1)):ℝ)^(k+m) * ∏ i,c (z.2 i))) ≤ expense p Y c N z := by |
| 73 | let s := shift p Y z; let v := 1+coversFee Y p z; let d : ℝ := Fintype.card (Option (Fin z.1)) |
| 74 | have hv : 1 ≤ v := le_add_of_nonneg_right (covers_pos Y p z) |
| 75 | have hh := shift_pos p (Y:=Y) z |
| 76 | have hx := Finset.prod_nonneg (s:=Finset.univ) fun i _ => hc (z.2 i) |
| 77 | rw [expense,quota] |
| 78 | calc |
| 79 | _ = (s^k * d^(k+m)) * (|scalarWeight Y z| * ∏ i,c (z.2 i)) := by ring |
| 80 | _ ≤ ((s*v)^p.order * v^N) * (|scalarWeight Y z| * ∏ i,c (z.2 i)) := by |
| 81 | gcongr ?_ * _ |
| 82 | rw [pow_add, ← mul_assoc (s^k), ← mul_pow]; have hi : d ≤ v := covers_arity p ho z |
| 83 | gcongr |
| 84 | · exact (pow_le_pow_left₀ (mul_nonneg (zero_le_one.trans hh) (Nat.cast_nonneg _)) (mul_le_mul_of_nonneg_left hi (zero_le_one.trans hh)) k).trans |
| 85 | (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le hh hv) hk) |
| 86 | exact (pow_le_pow_left₀ (Nat.cast_nonneg _) hi m).trans (pow_le_pow_right₀ hv hm) |
| 87 | _ = _ := by unfold premium orderFee Extra.Multi.Germs.pay s v shift; rw [pow_mul,pow_succ]; simp only [mul_pow]; ring |
| 88 | |
| 89 | variable {E E' : ι → Field G n} {U : Config G n} (hu : Healthy p.threshold (foot Y z) U) |
| 90 | include hx hu |
| 91 | lemma part_change {δ : ℝ} (hδ : 0≤δ) (hC : ∀ i,0 ≤ c i) |
| 92 | (hf : ∀ i, Healthy p.threshold (Y i) U → Chart p.order (E i) U ∧ Chart p.order (E' i) U) |
| 93 | (hh : ∀ i, Healthy p.threshold (Y i) U → ∀ l : List (Directions G n), l.length ≤ p.order → (∀ a∈l,p.dirBound (o i) a) → |
| 94 | |leftDerivs (E i) l U| ≤ c i ∧ |leftDerivs (E' i) l U| ≤ c i ∧ |
| 95 | |leftDerivs (E i) l U - leftDerivs (E' i) l U| ≤ δ*c i) |
| 96 | (l : List (Directions G n)) (hl : l.length ≤ p.order) (hd : ∀ a∈l,p.dirBound x a) : |
| 97 | |leftDerivs (part Y E z) l U - leftDerivs (part Y E' z) l U| ≤ δ * expense p Y (fun i => 2*c i) 0 z := by |
| 98 | have hy i : Healthy p.threshold (Y (z.2 i)) U := Disjoint.mono_left (covered Y z i) hu |
| 99 | let v := scalarWeight Y z; let s := shift p Y z |
| 100 | rw [cost_eq,cost_eq,left_constant_mul,left_constant_mul]; dsimp only []; rw [← mul_sub,abs_mul] |
| 101 | change |v| * _ ≤ _ |
| 102 | by_cases he : v=0 |
| 103 | · rw [he,abs_zero,zero_mul]; exact mul_nonneg hδ (expense_pos p _ (fun i => mul_nonneg zero_le_two (hC _)) ..) |
| 104 | have hs : 0<s := zero_lt_one.trans_le (shift_pos p z) |
| 105 | have h := product_change univ (D:=fun a : Directions G n => ∀ i, p.dirBound (o (z.2 i)) a) hδ (fun i _ => hf _ (hy i)) |
| 106 | (fun i _ L hl hd => hh (z.2 i) (hy i) L hl (fun a ha => hd a ha i)) (l.map (s⁻¹ • ·)) (by simpa) |
| 107 | (fun a ha i => by obtain ⟨q,hq,rfl⟩ := List.mem_map.mp ha; exact reanchor p ho z x hx he (hd q hq) i) |
| 108 | have h1 : Chart p.order (fun U => ∏ i,E (z.2 i) U) U := contDiffAt_prod fun i _ => (hf _ (hy i)).1 |
| 109 | have h2 : Chart p.order (fun U => ∏ i,E' (z.2 i) U) U := contDiffAt_prod fun i _ => (hf _ (hy i)).2 |
| 110 | rw [List.length_map,left_homogeneous l h1 hl,left_homogeneous l h2 hl,← smul_sub,smul_eq_mul,_root_.inv_pow,inv_mul_eq_div, |
| 111 | abs_div,abs_of_pos (pow_pos hs _),div_le_iff₀ (pow_pos hs _)] at h |
| 112 | have he := tariff p ho z (fun i => mul_nonneg zero_le_two (hC i)) hl (le_refl 0) |
| 113 | rw [Nat.add_zero] at he |
| 114 | rw [Finset.card_univ] at h; change s^l.length*(|v| * _) ≤ _ at he |
| 115 | linarith only [mul_le_mul_of_nonneg_left h (abs_nonneg v),mul_le_mul_of_nonneg_left he hδ] |
| 116 | |
| 117 | variable {f : ℝ → ι → Field G n} |
| 118 | omit hx hu ho in |
| 119 | private lemma shrink (L : List (Directions G n)) : ∃ s : ℝ, 1 ≤ s ∧ ∀ a ∈ L.map (s⁻¹ • ·), ∀ i, p.dirBound (o i) a := by |
| 120 | obtain ⟨u,hu,ht⟩ := can_shrink p L |
| 121 | let s := max 1 u⁻¹ |
| 122 | have hs : 0<s := zero_lt_one.trans_le (le_max_left ..) |
| 123 | have he : s⁻¹ ≤ u := by rw [inv_le_comm₀ hs hu]; exact le_max_right .. |
| 124 | refine ⟨s,le_max_left ..,fun a ha i j => ?_⟩ |
| 125 | obtain ⟨v,hv,rfl⟩ := List.mem_map.mp ha |
| 126 | refine le_trans ?_ (ht (o i) v hv j) |
| 127 | simp only [Pi.smul_apply,norm_smul,Real.norm_eq_abs,abs_of_pos (inv_pos.mpr hs),abs_of_pos hu]; gcongr |
| 128 | |
| 129 | omit ho hx in |
| 130 | lemma part_continuous {r : Set ℝ} (hf : ∀ t∈r, ∀ i, Healthy p.threshold (Y i) U → Chart p.order (f t i) U) |
| 131 | (hh : ∀ i, Healthy p.threshold (Y i) U → ∀ l : List (Directions G n), l.length ≤ p.order → (∀ a∈l,p.dirBound (o i) a) → |
| 132 | ContinuousOn (fun t => leftDerivs (f t i) l U) r) |
| 133 | (l : List (Directions G n)) (hl : l.length ≤ p.order) : ContinuousOn (fun t => leftDerivs (part Y (f t) z) l U) r := by |
| 134 | have hy i : Healthy p.threshold (Y (z.2 i)) U := Disjoint.mono_left (covered Y z i) hu |
| 135 | obtain ⟨s,hs,hD⟩ := shrink p (o:=o) l |
| 136 | have h := left_product_continuous univ (D:=fun a : Directions G n => ∀ i,p.dirBound (o (z.2 i)) a) |
| 137 | (fun t ht i _ => hf t ht _ (hy i)) (fun i _ L hl hd => hh (z.2 i) (hy i) L hl (fun a ha => hd a ha i)) |
| 138 | (l.map (s⁻¹ • ·)) (by simpa) (fun a ha i => hD a ha _) |
| 139 | refine ((h.const_mul (scalarWeight Y z)).const_mul (s^l.length)).congr (fun t ht => ?_) |
| 140 | rw [cost_eq,left_constant_mul]; dsimp only []; rw [left_homogeneous l (by exact contDiffAt_prod fun i _ => hf t ht _ (hy i)) hl] |
| 141 | simp only [smul_eq_mul,inv_pow]; field_simp |
| 142 | |
| 143 | set_option maxHeartbeats 500000 in |
| 144 | lemma mixed_part {t : ℝ} (N : ℕ) (hc : ∀ i,0 ≤ c i) (hf : ∀ᶠ t in 𝓝 t, ∀ i, Healthy p.threshold (Y i) U → Chart p.order (f t i) U) |
| 145 | (hh : ∀ i, Healthy p.threshold (Y i) U → ∀ l : List (Directions G n), l.length ≤ p.order → (∀ a∈l,p.dirBound (o i) a) → |
| 146 | let F := fun t => leftDerivs (f t i) l U |
| 147 | ContDiffAt ℝ N F t ∧ ∀ j ≤ N, |iteratedDeriv j F t| ≤ c i) |
| 148 | (l : List (Directions G n)) (hl : l.length ≤ p.order) (hd : ∀ a∈l,p.dirBound x a) : |
| 149 | let F := fun t => leftDerivs (part Y (f t) z) l U |
| 150 | ContDiffAt ℝ N F t ∧ ∀ j ≤ N, |iteratedDeriv j F t| ≤ expense p Y c N z := by |
| 151 | intro F |
| 152 | have hF u : F u = scalarWeight Y z * leftDerivs (fun U => ∏ i,f u (z.2 i) U) l U := by simp only [F,cost_eq,left_constant_mul] |
| 153 | by_cases he : scalarWeight Y z=0 |
| 154 | · simp only [funext hF, he,zero_mul,contDiffAt_const,true_and,iteratedDeriv_fun_const_zero, abs_zero]; exact fun j _ => expense_pos p c hc .. |
| 155 | have hy i : Healthy p.threshold (Y (z.2 i)) U := Disjoint.mono_left (covered Y z i) hu |
| 156 | let s := shift p Y z |
| 157 | have hs : 0<s := zero_lt_one.trans_le (shift_pos p z) |
| 158 | let g u := leftDerivs (fun U => ∏ i,f u (z.2 i) U) (l.map (s⁻¹ • ·)) U |
| 159 | have H : F =ᶠ[𝓝 t] fun u => s^l.length * (scalarWeight Y z * g u) := by |
| 160 | filter_upwards [hf] with u hu |
| 161 | unfold g; rw [hF,left_homogeneous l (by exact contDiffAt_prod fun i _ => hu _ (hy i)) hl,smul_eq_mul,inv_pow] |
| 162 | field_simp |
| 163 | have h := mixed_product univ (D:=fun a : Directions G n => ∀ i,p.dirBound (o (z.2 i)) a) |
| 164 | (hf.mono (fun t ht i _ => ht _ (hy i))) (N:=N) (fun i _ L hl hd => hh (z.2 i) (hy i) L hl (fun a ha => hd a ha i)) (l.map (s⁻¹ • ·)) |
| 165 | (by simpa) (fun a ha i => by obtain ⟨q,hq,rfl⟩ := List.mem_map.mp ha; exact reanchor p ho z x hx he (hd q hq) i) |
| 166 | change ContDiffAt ℝ N g t ∧ _ at h |
| 167 | refine ⟨(contDiffAt_const.mul (contDiffAt_const.mul h.1)).congr_of_eventuallyEq H,fun j hj => ?_⟩ |
| 168 | rw [H.iteratedDeriv_eq, iteratedDeriv_const_mul_field,iteratedDeriv_const_mul_field, abs_mul,abs_of_pos (pow_pos hs _),abs_mul] |
| 169 | have hb := h.2 j hj; rw [Finset.card_univ,List.length_map] at hb |
| 170 | exact le_trans (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hb (abs_nonneg _)) (pow_pos hs _).le) (tariff p ho z hc hl hj) |
| 171 | end Reanchor |
| 172 | end YM.PhysicalNext.InterpolatedSecantsFc.Cluster |