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.Complex.Gaps |
| 2 | import YM.Overlay.Engine |
| 3 | import YM.Pressure.Seeds |
| 4 | import YM.Push.ABSOLUTE_SUMS.Basic |
| 5 | import YM.Push.ABSOLUTE_SUMS.Breadth |
| 6 | import YM.Slice.Gate |
| 7 | import YM.Vac.Treasury |
| 8 | |
| 9 | /-! |
| 10 | # Summable horizontal receipts from finite tests, without differentiating a series |
| 11 | |
| 12 | At a given beta, a batch of differentiated coefficient costs may be supplied for all |
| 13 | V and lists simultaneously but need NOT dominate the differentiated costs at the next beta. |
| 14 | Take finite signed linear combinations at *independent* test fields/directions first; recover |
| 15 | per-address boxes for actual secants with a common rate. Here `tax` includes hit/anchor |
| 16 | indicators and all requested support weights (even on difference or dead labels). |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.PhysicalNext.InterpolatedSecantsFc |
| 21 | open Function Filter Set Lattice RG Push.AbsoluteSums |
| 22 | open scoped Topology BigOperators Classical |
| 23 | |
| 24 | private lemma interval_price {a b c d : ℝ} {f : ℝ → ℝ} {M : ℝ} (hab : a < b) (ha : c ≤ a) (hb : b ≤ d) |
| 25 | (hf : ContinuousOn f (Icc c d)) (hg : ∀ t∈ Ioo c d, DifferentiableAt ℝ f t ∧ |deriv f t| ≤ M) : |
| 26 | |f b-f a| ≤ (b-a) * M := by |
| 27 | obtain ⟨v,hv,he⟩ := exists_deriv_eq_slope f hab (hf.mono (Icc_subset_Icc ha hb)) |
| 28 | (fun t ht => (hg t (Ioo_subset_Ioo ha hb ht)).1.differentiableWithinAt) |
| 29 | have h := (hg v (Ioo_subset_Ioo ha hb hv)).2 |
| 30 | rw [he, abs_div, abs_of_pos (sub_pos.mpr hab)] at h |
| 31 | rw [mul_comm]; exact (div_le_iff₀ (sub_pos.mpr hab)).1 h |
| 32 | |
| 33 | theorem interval_cost {a b c d : ℝ} {f : ℝ → ℝ} {M : ℝ} (ha : a∈Icc c d) (hb : b∈Icc c d) |
| 34 | (hf : ContinuousOn f (Icc c d)) (hg : ∀ t∈ Ioo c d, DifferentiableAt ℝ f t ∧ |deriv f t| ≤ M) : |
| 35 | |f b-f a| ≤ |b-a| * M := by |
| 36 | rcases lt_trichotomy a b with hab|rfl|hab |
| 37 | · rw [abs_of_pos (sub_pos.mpr hab)] |
| 38 | exact interval_price hab ha.1 hb.2 hf hg |
| 39 | · simp only [sub_self, abs_zero, zero_mul, le_refl] |
| 40 | rw [abs_sub_comm (f b), abs_sub_comm b, abs_of_pos (sub_pos.mpr hab)] |
| 41 | exact interval_price hab hb.1 ha.2 hf hg |
| 42 | |
| 43 | section Dual |
| 44 | variable {ι κ : Type*} |
| 45 | /-- Support/anchor currencies to be tested on finite sublists. -/ |
| 46 | structure Tax (ι κ : Type*) where |
| 47 | cost : κ → ι → ℝ |
| 48 | nonneg x i : 0 ≤ cost x i |
| 49 | visible i : ∃ x, 0 < cost x i |
| 50 | |
| 51 | namespace Tax |
| 52 | variable (p : Tax ι κ) |
| 53 | variable {U : ι → Type*} {M D : ℝ} |
| 54 | |
| 55 | structure Credits (c : ι → ℝ) (M : ℝ) : Prop where |
| 56 | positive i : 0 ≤ c i |
| 57 | pays x : SumBudget (fun i => p.cost x i * c i) M |
| 58 | |
| 59 | variable {p} |
| 60 | |
| 61 | lemma Credits.add {c M d N} (h : p.Credits c M) (h' : p.Credits d N) : |
| 62 | p.Credits (fun i => c i+d i) (M+N) := |
| 63 | ⟨fun i => add_nonneg (h.positive _) (h'.positive _),fun x => by simpa only [← mul_add] using budget_plus (h.pays x) (h'.pays x)⟩ |
| 64 | lemma Credits.relax {c M M'} (h : p.Credits c M) (he : M ≤ M') : p.Credits c M' := |
| 65 | ⟨h.positive,fun x => budget_loosen (h.pays x) he⟩ |
| 66 | |
| 67 | variable (p) |
| 68 | /-- Common per-address boxes for a batch (all tests), charged at the declared meters. -/ |
| 69 | def Box (f : ∀ i, U i → ℝ) (M : ℝ) := ∃ c, p.Credits c M ∧ ∀ i u, |f i u| ≤ c i |
| 70 | |
| 71 | def Dual (f : ∀ i, U i → ℝ) (M : ℝ) := ∀ (x : κ) (s : Finset ι) (u : ∀ i, U i) (e : ι → ℝ), |
| 72 | (∀ i∈s, |e i| ≤ p.cost x i) → |∑ i∈s, e i * f i (u i)| ≤ M |
| 73 | |
| 74 | variable {p} {f : ∀ i, U i → ℝ} |
| 75 | |
| 76 | theorem Box.dual (h : p.Box f M) : p.Dual f M := by |
| 77 | obtain ⟨c,hc,h⟩ := h |
| 78 | intro x s u e he |
| 79 | refine (Finset.abs_sum_le_sum_abs _ _).trans <| le_trans (Finset.sum_le_sum (g:=fun i => p.cost x i * c i) ?_) |
| 80 | (budget_sum (hc.pays x) s) |
| 81 | intro i hi; rw [abs_mul]; exact mul_le_mul (he i hi) (h i _) (abs_nonneg _) (p.nonneg _ _) |
| 82 | |
| 83 | theorem Dual.unsigned (h : p.Dual f M) (x : κ) (s : Finset ι) (u : ∀ i, U i) : |
| 84 | ∑ i∈s, p.cost x i * |f i (u i)| ≤ M := by |
| 85 | let e (i : ι) := if 0 ≤ f i (u i) then p.cost x i else -p.cost x i |
| 86 | have he i : |e i| = p.cost x i := by unfold e; split <;> simp [abs_of_nonneg (p.nonneg x i)] |
| 87 | simp_rw [show ∀ i, p.cost x i * |f i (u i)| = e i * f i (u i) from fun i => by |
| 88 | unfold e; split |
| 89 | · next he => rw [abs_of_nonneg he] |
| 90 | next he => rw [abs_of_nonpos (le_of_not_ge he),neg_mul,mul_neg]] |
| 91 | exact (le_abs_self _).trans (h x s u e fun i _ => (he i).le) |
| 92 | |
| 93 | theorem unsigned_box [∀ i, Nonempty (U i)] |
| 94 | (h : ∀ (x : κ) (s : Finset ι) (u : ∀ i, U i), ∑ i∈s, p.cost x i * |f i (u i)| ≤ M) : p.Box f M := by |
| 95 | let C i := sSup (range (fun u => |f i u|)) |
| 96 | let v (i : ι) := Classical.choice (inferInstance : Nonempty (U i)) |
| 97 | have hc (i : ι) (u : U i) : |f i u| ≤ C i := by |
| 98 | obtain ⟨x,hx⟩ := p.visible i |
| 99 | refine le_csSup ⟨M / p.cost x i,?_⟩ (mem_range_self u) |
| 100 | rintro a ⟨w,rfl⟩ |
| 101 | simpa only [le_div_iff₀ hx,mul_comm (|_|),Finset.sum_singleton,update_self] using! h x {i} (update v i w) |
| 102 | refine ⟨C,⟨fun i => (abs_nonneg _).trans (hc i (v i)),fun x => budget_of_sum |
| 103 | (fun i => mul_nonneg (p.nonneg x i) ((abs_nonneg _).trans (hc i (v i)))) (fun s => ?_)⟩,hc⟩ |
| 104 | suffices ht : ∀ (s : Finset ι) (M : ℝ), (∀ (u : ∀ i,U i), ∑ i∈s,p.cost x i * |f i (u i)| ≤ M) → |
| 105 | ∑ i∈s,p.cost x i * C i ≤ M by exact ht s M (h x s) |
| 106 | intro s; induction s using Finset.induction_on with |
| 107 | | empty => intro M h; simpa using h v |
| 108 | | @insert i s hi ih => |
| 109 | intro M h |
| 110 | simp only [Finset.sum_insert hi] at h ⊢ |
| 111 | have he (a : U i) : ∑ j∈s, p.cost x j * C j ≤ M - p.cost x i * |f i a| := by |
| 112 | apply ih |
| 113 | intro u; rw [le_sub_iff_add_le'] |
| 114 | convert h (update u i a) using 1 |
| 115 | simp only [update_self]; congr 1 |
| 116 | exact Finset.sum_congr rfl fun j hj => by rw [update_of_ne (by rintro rfl; contradiction) a u] |
| 117 | rcases (p.nonneg x i).eq_or_lt with h0|h0 |
| 118 | · simpa [← h0] using he (v i) |
| 119 | rw [← le_sub_iff_add_le,mul_comm,← le_div_iff₀ h0] |
| 120 | exact csSup_le (range_nonempty _) fun m ⟨a,hm⟩ => by rw [← hm, le_div_iff₀ h0,mul_comm (|_|)]; linarith only [he a] |
| 121 | |
| 122 | theorem Dual.box [∀ i, Nonempty (U i)] (h : p.Dual f M) : p.Box f M := unsigned_box h.unsigned |
| 123 | |
| 124 | |
| 125 | |
| 126 | lemma Box.relax (h : p.Box f M) {M' : ℝ} (he : M ≤ M') : p.Box f M' := |
| 127 | let ⟨c,h,h'⟩ := h; ⟨c,h.relax he,h'⟩ |
| 128 | |
| 129 | lemma Box.add {g : ∀ i,U i → ℝ} (h : p.Box f M) (he : p.Box g D) : |
| 130 | p.Box (fun i u => f i u+g i u) (M+D) := |
| 131 | let ⟨_,hc,h⟩ := h; let ⟨_,hc',he⟩ := he |
| 132 | ⟨_,hc.add hc',fun i u => (abs_add_le ..).trans (add_le_add (h i u) (he i u))⟩ |
| 133 | |
| 134 | variable [∀ i, Nonempty (U i)] |
| 135 | |
| 136 | |
| 137 | /-! Uniform dominating list over a whole trajectory of bounded beta. The sorting argument |
| 138 | is needed: there needn't be a single worst pair which maximizes every ledger entry. -/ |
| 139 | section Uniform |
| 140 | variable {T : Type*} (β : T → ℝ) {g : T → ∀ i, U i → ℝ} |
| 141 | (hD : 0 ≤ D) |
| 142 | (hM : ∀ t : T, p.Box (g t) M) |
| 143 | (h : ∀ t t' : T, p.Box (fun i u => g t i u - g t' i u) (D * |β t-β t'|)) |
| 144 | omit [∀ i, Nonempty (U i)] in |
| 145 | include hD hM h in |
| 146 | private lemma unified_sum (X : Finset T) (hX : X.Nonempty) {a b : ℝ} (hp : ∀ v∈X, β v ∈ Icc a b) |
| 147 | (o : κ) (s : Finset ι) (u : ∀ i,U i) (t : ι → T) (ht : ∀ i∈s,t i∈X) : |
| 148 | ∑ i∈s, p.cost o i * |g (t i) i (u i)| ≤ M + D*(b-a) := by |
| 149 | induction X using Finset.strongInduction generalizing b t with |
| 150 | | H X ih => |
| 151 | obtain ⟨v,hv,Hv⟩ := X.exists_max_image β hX |
| 152 | rcases Finset.eq_empty_or_nonempty (X.erase v) with hz|he |
| 153 | · have hm i (hi : i∈s) : t i=v := by |
| 154 | by_contra hw |
| 155 | exact Finset.notMem_empty _ (hz ▸ Finset.mem_erase.mpr ⟨hw,ht i hi⟩) |
| 156 | rw [Finset.sum_congr rfl fun i hi => by rw [hm i hi]] |
| 157 | exact ((hM v).dual.unsigned o s u).trans (le_add_of_nonneg_right (mul_nonneg hD |
| 158 | (sub_nonneg.mpr ((hp v hv).1.trans (hp v hv).2)))) |
| 159 | obtain ⟨v',hv',Hv'⟩ := (X.erase v).exists_max_image β he |
| 160 | let t' i := if t i = v then v' else t i |
| 161 | have h₁ := ih _ (Finset.erase_ssubset hv) he (fun w hw => ⟨(hp w (Finset.mem_of_mem_erase hw)).1,Hv' w hw⟩) t' |
| 162 | (fun i hi => by unfold t'; split <;> first | exact hv' | next hh => exact Finset.mem_erase.mpr ⟨hh,ht i hi⟩) |
| 163 | have h₂ := (h v v').dual.unsigned o (s.filter (fun i => t i=v)) u |
| 164 | rw [abs_of_nonneg (sub_nonneg.mpr (Hv v' (Finset.mem_of_mem_erase hv')))] at h₂ |
| 165 | calc |
| 166 | _ ≤ ∑ i∈s,(p.cost o i * |g (t' i) i (u i)| + |
| 167 | if t i=v then p.cost o i * |g v i (u i) - g v' i (u i)| else 0) := Finset.sum_le_sum (fun i hi => by |
| 168 | unfold t'; split_ifs with H |
| 169 | · rw [H,← mul_add] |
| 170 | apply mul_le_mul_of_nonneg_left _ (p.nonneg o i) |
| 171 | simpa [add_comm] using abs_add_le (g v i (u i) - g v' i (u i)) (g v' i (u i)) |
| 172 | exact (add_zero _).symm.le) |
| 173 | _ ≤ M + D*(β v'-a) + D*(β v-β v') := by rw [Finset.sum_add_distrib,← Finset.sum_filter]; exact add_le_add h₁ h₂ |
| 174 | _ ≤ M + D*(b-a) := by nlinarith [(hp v hv).2] |
| 175 | |
| 176 | include hD hM h in |
| 177 | theorem unified [Nonempty T] {a b : ℝ} (hp : ∀ t, β t ∈ Icc a b) : |
| 178 | ∃ c, p.Credits c (M+D*(b-a)) ∧ ∀ t i u, |g t i u| ≤ c i := by |
| 179 | obtain ⟨c,hc,he⟩ := unsigned_box (p:=p) (M:=M+D*(b-a)) (f:=fun i (v : T × U i) => g v.1 i v.2) (fun o s v => |
| 180 | unified_sum β hD hM h (insert (Classical.choice (inferInstance : Nonempty T)) (s.image (fun i => (v i).1))) (Finset.insert_nonempty ..) |
| 181 | (fun t _ => hp t) o s (fun i => (v i).2) (fun i => (v i).1) fun i hi => Finset.mem_insert_of_mem (Finset.mem_image_of_mem _ hi)) |
| 182 | exact ⟨c,hc, fun t i u => he i (t,u)⟩ |
| 183 | end Uniform |
| 184 | end Tax |
| 185 | end Dual |
| 186 | end YM.PhysicalNext.InterpolatedSecantsFc |