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.Push.STATIONARY_UNIFORM.Beacons |
| 2 | import YM.Push.STATIONARY_UNIFORM.Count |
| 3 | |
| 4 | /-! |
| 5 | # The period-independent tensor bounds from exponentially paid local packets |
| 6 | |
| 7 | Even for infinitely many labels in a row, on the SAME real field domains. |
| 8 | Beacon Σ→Scatter pays for the density as an actual sum over sites (not an |
| 9 | average). No promise of a uniform scalar bound at order zero after summing. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Push.Uniform |
| 14 | open Filter Function Set Metric Lattice RG |
| 15 | open scoped Topology ContDiff BigOperators Classical |
| 16 | |
| 17 | section series |
| 18 | variable {α E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 20 | |
| 21 | lemma iterated_at_sum {u : α → E → F} {s : Set E} (h : IsOpen s) (hc : IsPreconnected s) |
| 22 | {C : α → ℝ} (hC : Summable C) {N} (hu : ∀ i x, x∈s → Allows N (u i) x (C i)) {x : E} (hx : x∈s) (k : ℕ) (hk : k≤N) : |
| 23 | iteratedFDeriv ℝ k (fun x => ∑' i, u i x) x = ∑' i, iteratedFDeriv ℝ k (u i) x := by |
| 24 | induction k generalizing x with |
| 25 | | zero => |
| 26 | simp_rw [iteratedFDeriv_zero_eq_comp, comp_apply] |
| 27 | exact (continuousMultilinearCurryFin0 ℝ E F).symm.toContinuousLinearEquiv.map_tsum |
| 28 | | succ k ih => |
| 29 | let f i := iteratedFDeriv ℝ k (u i) |
| 30 | have he : Summable (fun i => f i x) := .of_norm_bounded hC (fun i => (hu _ x hx).norm_le k (by omega)) |
| 31 | have ht := hasFDerivAt_tsum_of_isPreconnected hC h hc |
| 32 | (fun i x hx => ((hu i x hx).analytic.differentiableAt_iteratedFDeriv (m:=k) (by simp)).hasFDerivAt) |
| 33 | (fun i x hx => by rw [fderiv_iteratedFDeriv]; simpa only [comp_apply,LinearIsometryEquiv.norm_map] using (hu i x hx).norm_le _ hk) hx he hx |
| 34 | have hw : (iteratedFDeriv ℝ k fun x => ∑' i, u i x) =ᶠ[𝓝 x] fun x => ∑' i, f i x := by |
| 35 | filter_upwards [h.mem_nhds hx] with i hi; exact ih hi (by omega) |
| 36 | simp_rw [iteratedFDeriv_succ_eq_comp_left, comp_apply, (ht.congr_of_eventuallyEq hw).fderiv] |
| 37 | exact (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (k+1) => E) F).symm.toContinuousLinearEquiv.map_tsum |
| 38 | |
| 39 | end series |
| 40 | |
| 41 | variable {n : Side} {ι α E : Type} [Fintype ι] |
| 42 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 43 | variable {p : Positions ι} {N : ℕ} {y : Site n} {a K C D : ℝ} {l : ι → Site n} |
| 44 | |
| 45 | lemma beacon_sum {s : Finset α} {C : α → ℝ} {f : α → Positions ι → E} |
| 46 | (h : ∀ i∈s, Beacon l a N (f i) y p (C i)) (he : ∀ i∈s, ContDiffAt ℝ ω (f i) p) : Beacon l a N (fun z => ∑ i∈s, f i z) y p (∑ i∈s, C i) := by |
| 47 | induction s using Finset.induction with |
| 48 | | empty => intro k hk q; simp [entry] |
| 49 | | insert i s hi ih => |
| 50 | have ht j (hj : j∈s) := he j (Finset.mem_insert_of_mem hj) |
| 51 | simp_rw [Finset.sum_insert hi] |
| 52 | exact (h i (Finset.mem_insert_self ..)).add (he i (Finset.mem_insert_self ..)) (ContDiffAt.sum ht) (ih (fun _ hj => h _ (Finset.mem_insert_of_mem hj)) ht) |
| 53 | |
| 54 | lemma beacon_tsum [CompleteSpace E] {u : α → Positions ι → E} {s : Set (Positions ι)} (h : IsOpen s) (hs : IsPreconnected s) |
| 55 | {P Q : α → ℝ} (hP : Summable P) (hQ : SumBudget Q C) (ht : ∀ i x, x∈s → Allows N (u i) x (P i)) (hp : p∈s) |
| 56 | (hB : ∀ i, Beacon l a N (u i) y p (Q i)) : Beacon l a N (fun z => ∑' i, u i z) y p C := by |
| 57 | intro k hk q; let L := Real.exp (-a*spanSites l y q) |
| 58 | have hf : Summable (fun i => iteratedFDeriv ℝ k (u i) p) := |
| 59 | .of_norm_bounded hP (fun i => (ht i p hp).norm_le _ hk) |
| 60 | unfold entry; rw [iterated_at_sum h hs hP ht hp k hk, ContinuousMultilinearMap.tsum_eval hf] |
| 61 | have he : Summable (fun i => ‖entry (u i) p q‖) := (hQ.2.1.mul_right L).of_nonneg_of_le (fun i => norm_nonneg _) (fun i => hB i k hk q) |
| 62 | apply (norm_tsum_le_tsum_norm he).trans |
| 63 | apply le_trans (he.tsum_le_tsum (fun i => hB i k hk q) (hQ.2.1.mul_right L)); rw [tsum_mul_right] |
| 64 | exact mul_le_mul_of_nonneg_right hQ.2.2 (Real.exp_pos _).le |
| 65 | |
| 66 | variable {f g : Positions ι → E} |
| 67 | |
| 68 | def Scatter (l : ι → Site n) (a : ℝ) (N : ℕ) (f : Positions ι → E) (p : Positions ι) (C : ℝ) := |
| 69 | ∀ (k : ℕ), k ≤ N → ∀ (q : Fin k → ι) (j : Fin k), ‖entry f p q‖ ≤ C * Real.exp (-a*spanSites l (l (q j)) q) |
| 70 | |
| 71 | lemma Scatter.add (hf : ContDiffAt ℝ ω f p) (hg : ContDiffAt ℝ ω g p) (h : Scatter l a N f p C) (h' : Scatter l a N g p D) : |
| 72 | Scatter l a N (fun z => f z+g z) p (C+D) := by |
| 73 | intro k hk q j |
| 74 | unfold entry; rw [show (fun z => f z+g z)=f+g from rfl,iteratedFDeriv_add_apply (hf.of_le le_top) (hg.of_le le_top), add_mul]; exact (norm_add_le ..).trans |
| 75 | (add_le_add (h _ hk _ j) (h' _ hk _ j)) |
| 76 | |
| 77 | lemma Scatter.smul (hf : ContDiffAt ℝ ω f p) (h : Scatter l a N f p C) (b : ℝ) : |
| 78 | Scatter l a N (fun z => b • f z) p (|b| * C) := by |
| 79 | intro k hk q j; unfold entry |
| 80 | rw [show (fun z => b • f z) = b • f from rfl,iteratedFDeriv_const_smul_apply (hf.of_le le_top)] |
| 81 | change ‖b • entry f p q‖ ≤ _; rw [norm_smul, mul_assoc] |
| 82 | exact mul_le_mul_of_nonneg_left (h _ hk _ j) (abs_nonneg _) |
| 83 | |
| 84 | lemma Scatter.mono (h : Scatter l a N f p C) (hC : C≤D) : Scatter l a N f p D := |
| 85 | fun k hk q j => (h k hk q j).trans (mul_le_mul_of_nonneg_right hC (by positivity)) |
| 86 | |
| 87 | lemma entries_finset {u : α → Positions ι → E} {s : Finset α} (h : ∀ i∈s, ContDiffAt ℝ ω (u i) p) {k} (q : Fin k → ι) : |
| 88 | entry (fun z => ∑ i∈s, u i z) p q = ∑ i∈s, entry (u i) p q := by |
| 89 | induction s using Finset.induction with |
| 90 | | empty => simp [entry] |
| 91 | | insert i s hi ih => |
| 92 | have he j (hj : j∈s) := h j (Finset.mem_insert_of_mem hj) |
| 93 | simp_rw [Finset.sum_insert hi,← ih he]; unfold entry |
| 94 | let F z := ∑ j∈s, u j z |
| 95 | change iteratedFDeriv ℝ k (u i+F) _ _ = _ |
| 96 | rw [iteratedFDeriv_add_apply ((h i (Finset.mem_insert_self ..)).of_le le_top) ((ContDiffAt.sum he).of_le le_top)]; rfl |
| 97 | |
| 98 | lemma scatter_sum {u : α → Positions ι → E} {s : Finset α} (h : ∀ i∈s, ContDiffAt ℝ ω (u i) p) |
| 99 | {P : α → ℝ} (hp : ∀ i∈s, Scatter l a N (u i) p (P i)) : Scatter l a N (fun z => ∑ i∈s, u i z) p (∑ i∈s,P i) := by |
| 100 | intro k hk q j; rw [entries_finset h, Finset.sum_mul]; exact (norm_sum_le ..).trans |
| 101 | (Finset.sum_le_sum fun i hi => hp i hi k hk q j) |
| 102 | |
| 103 | def weaker (N : ℕ) (a : ℝ) := a/(2*(N+1 : ℝ)) |
| 104 | omit [Fintype ι] in |
| 105 | lemma price_relative {k} (hk : k ≤ N) (q : Fin k → ι) (j : Fin k) (ha : 0≤a) : |
| 106 | Real.exp (-a*spanSites l y q) ≤ Decay (a/2) (l (q j)) y * Real.exp (-(weaker N a)*spanSites l (l (q j)) q) := by |
| 107 | let r := l (q j); let d := spanSites l y q |
| 108 | have hp : separation y r ≤ d := Finset.single_le_sum (fun i _ => Nat.zero_le (separation y (l (q i)))) (Finset.mem_univ j) |
| 109 | have hs : spanSites l r q ≤ (N+1)*d := calc |
| 110 | _ ≤ ∑ i, (d+separation y (l (q i))) := Finset.sum_le_sum fun i _ => (separation_triangle r y (l (q i))).trans |
| 111 | (by rw [separation_comm r]; omega) |
| 112 | _ = k*d+d := by rw [Finset.sum_add_distrib]; simp [d,spanSites] |
| 113 | _ ≤ _ := by rw [add_mul,one_mul]; exact Nat.add_le_add_right (Nat.mul_le_mul_right d hk) _ |
| 114 | rw [decay_comm, Decay, ← Real.exp_add,Real.exp_le_exp] |
| 115 | have he : (separation y r:ℝ) ≤ d := by exact_mod_cast hp |
| 116 | have hh : ((separation y r:ℝ))*(a/2) ≤ d * (a/2) := mul_le_mul_of_nonneg_right he (by linarith) |
| 117 | have H : weaker N a * spanSites l r q ≤ a/2 * d := calc |
| 118 | _ ≤ weaker N a * ((N+1:ℝ) * (d:ℝ)) := mul_le_mul_of_nonneg_left (by exact_mod_cast hs) (by unfold weaker; positivity) |
| 119 | _ = _ := by unfold weaker; field_simp |
| 120 | change -a*(d:ℝ) ≤ -(a/2)*(separation y r:ℝ) + -(weaker N a)*(spanSites l r q:ℝ) |
| 121 | linarith |
| 122 | |
| 123 | lemma scatter [Fintype α] {hc : ℕ} {y : α → Site n} (hy : Multiplicity y hc) {f : α → Positions ι → E} |
| 124 | (hf : ∀ i, ContDiffAt ℝ ω (f i) p) (h : ∀ i, Beacon l a N (f i) (y i) p C) (ha : 0 < a) (hp : 0 ≤ C) : |
| 125 | Scatter l (weaker N a) N (fun z => ∑ i, f i z) p (C*(hc:ℝ)*countCost (a/2)) := by |
| 126 | intro k hk q j |
| 127 | rw [entries_finset (fun i _ => hf i)] |
| 128 | let A := l (q j); let B := Real.exp (-(weaker N a)*(spanSites l A q:ℝ)) |
| 129 | apply le_trans (norm_sum_le ..) |
| 130 | calc |
| 131 | _ ≤ ∑ i, C * (Decay (a/2) A (y i) * B) := Finset.sum_le_sum fun i _ => (h i k hk q).trans |
| 132 | (mul_le_mul_of_nonneg_left (price_relative hk q j ha.le) hp) |
| 133 | _ = C*(∑ i, Decay (a/2) A (y i))*B := by rw [← Finset.mul_sum, ← Finset.sum_mul, mul_assoc] |
| 134 | _ ≤ _ := by |
| 135 | have he := mul_le_mul_of_nonneg_left (hy.count y (half_pos ha) A) hp |
| 136 | rw [← mul_assoc] at he |
| 137 | exact mul_le_mul_of_nonneg_right he (Real.exp_pos _).le |
| 138 | end YM.Push.Uniform |