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.Next.EXTRACTION.Relay |
| 2 | import YM.Next.FLUCTUATIONS.Kernel |
| 3 | import YM.Next.PHASE.Assembly |
| 4 | import YM.Push.PRICE_COMPILER.Basic |
| 5 | |
| 6 | /-! |
| 7 | # The price currency for actual path data |
| 8 | |
| 9 | 1179, 2961 `CRn`. A formal handoff that counts the actual |
| 10 | path lengths, retaining arbitrarily many terms and using `SumBudget` (not |
| 11 | spending a comparison of two `tsum`s without their certificates). |
| 12 | Give also a uniform cost lemma at any narrower width with any finite |
| 13 | polynomial weight. Prices are coefficients norms in the *B70* color |
| 14 | conventions (`Atom.magnitude`). |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Push.PriceCompiler |
| 20 | open Filter Function Lattice RG Wilson RG.Supply Precision Exterior |
| 21 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 22 | |
| 23 | /-- Currency cost from exponent surplus `τ>0`. Example estimate; works |
| 24 | for all lengths, doesn't care about the period. -/ |
| 25 | def momentFactor (d : ℕ) (τ : ℝ) : ℝ := (1 + (d+1 : ℝ) / τ) ^ d |
| 26 | |
| 27 | lemma momentFactor_one (d : ℕ) {τ : ℝ} (h : 0 < τ) : 1 ≤ momentFactor d τ := |
| 28 | one_le_pow₀ (le_add_of_nonneg_right (by positivity)) |
| 29 | |
| 30 | |
| 31 | |
| 32 | lemma pays_moment (d n : ℕ) {τ : ℝ} (h : 0 < τ) : |
| 33 | (1 + (n:ℝ)) ^ d ≤ momentFactor d τ * Real.exp (τ*n) := by |
| 34 | let r : ℝ := τ / (d + 1 : ℝ) |
| 35 | have hr : 0 < r := by unfold r; positivity |
| 36 | have hn : 0 ≤ r*n := by positivity |
| 37 | let K := 1 + r⁻¹ |
| 38 | have he : (1 + (n:ℝ)) ≤ K * Real.exp (r*n) := calc |
| 39 | _ ≤ K * (r*n+1) := by |
| 40 | have hh : 0 ≤ r⁻¹ := by positivity |
| 41 | have hg : r⁻¹*(r*n)=n := by field_simp |
| 42 | unfold K; linarith |
| 43 | _ ≤ _ := mul_le_mul_of_nonneg_left (Real.add_one_le_exp _) (by unfold K; positivity) |
| 44 | have hf : (d:ℝ) * r ≤ τ := by |
| 45 | unfold r; have hh : 0 < (d:ℝ)+1 := by positivity |
| 46 | rw [← mul_div_assoc, div_le_iff₀ hh]; linarith |
| 47 | have ha : (d:ℝ) * (r*n) ≤ τ*n := by rw [← mul_assoc]; gcongr |
| 48 | have hK : K = 1 + (d+1:ℝ) / τ := by unfold K r; rw [inv_div] |
| 49 | calc |
| 50 | _ ≤ (K * Real.exp (r*n)) ^ d := pow_le_pow_left₀ (by positivity) he d |
| 51 | _ = K ^ d * Real.exp ((d:ℝ) * (r*n)) := by rw [mul_pow, Real.exp_nat_mul] |
| 52 | _ ≤ _ := by |
| 53 | rw [hK, momentFactor] |
| 54 | gcongr |
| 55 | |
| 56 | lemma buys_exponential (d n : ℕ) {σ t : ℝ} (h : σ < t) : |
| 57 | Real.exp (σ*n) * (1+(n:ℝ)) ^ d ≤ momentFactor d (t-σ) * Real.exp (t*n) := calc |
| 58 | _ ≤ Real.exp (σ*n) * (momentFactor d (t-σ) * Real.exp ((t-σ)*n)) := |
| 59 | mul_le_mul_of_nonneg_left (pays_moment d n (sub_pos.mpr h)) (by positivity) |
| 60 | _ = _ := by rw [mul_left_comm, ← Real.exp_add]; ring_nf |
| 61 | |
| 62 | section Path |
| 63 | variable {G : Gauge} |
| 64 | |
| 65 | /-- Symbolic amount estimates can be kept separate per kind of term. -/ |
| 66 | structure PathMass (W : PathData G) (σ rows two three four : ℝ) : Prop where |
| 67 | pos : 0 < σ |
| 68 | row (p : PlaqAxes) : SumBudget (fun i => |(W.row p i).1| * Real.exp (σ * (W.row p i).2.length)) rows |
| 69 | loop : SumBudget (fun i => (W.loop i).budget σ) two |
| 70 | cubic : SumBudget (fun i => (W.cubic i).budget σ) three |
| 71 | quartic : SumBudget (fun i => (W.quartic i).budget σ) four |
| 72 | |
| 73 | /-- Non-numerical normalizations with THESE paths, still input. The |
| 74 | infinite sums here acquire their Summable receipts via `PathMass` below. -/ |
| 75 | structure Normalized (W : PathData G) (c : Clip) : Prop where |
| 76 | invariant i : (W.loop i).Invariant ∧ (W.cubic i).Invariant ∧ (W.quartic i).Invariant |
| 77 | metric : W.metric_zero c |
| 78 | jets : W.loop_jets |
| 79 | |
| 80 | lemma atom_magnitude_nonneg {d : ℕ} (p : Atom G d) : 0 ≤ p.magnitude := by unfold Atom.magnitude; positivity |
| 81 | lemma budget_mono {d : ℕ} (p : Atom G d) {s t : ℝ} (h : s ≤ t) : p.budget s ≤ p.budget t := by |
| 82 | unfold Atom.budget; have := atom_magnitude_nonneg p; gcongr |
| 83 | |
| 84 | lemma sum_atoms_mono {t v a b : ℝ} {d : ℕ} {F : ℕ → Atom G d} (hs : SumBudget (fun i => (F i).budget t) a) |
| 85 | (h : v ≤ t) (he : a ≤ b) : SumBudget (fun i => (F i).budget v) b := |
| 86 | sumBudget_mono hs (fun i => mul_nonneg (atom_magnitude_nonneg _) (by positivity)) |
| 87 | (fun i => budget_mono (F i) h) he |
| 88 | |
| 89 | lemma length_exp_mono (n : ℕ) {s t : ℝ} (h : s ≤ t) : Real.exp (s*n) ≤ Real.exp (t*n) := by gcongr |
| 90 | |
| 91 | lemma PathMass.mono {W : PathData G} {p q A B C D x y z u : ℝ} (h : PathMass W p A B C D) |
| 92 | (hz : 0 < q) (hq : q ≤ p) (ha : A ≤ x) (hb : B ≤ y) (hc : C ≤ z) (hd : D ≤ u) : PathMass W q x y z u := |
| 93 | ⟨hz, fun i => sumBudget_mono (h.row i) (fun _ => by positivity) |
| 94 | (fun _ => mul_le_mul_of_nonneg_left (length_exp_mono _ hq) (by positivity)) ha, |
| 95 | sum_atoms_mono h.loop hq hb,sum_atoms_mono h.cubic hq hc,sum_atoms_mono h.quartic hq hd⟩ |
| 96 | |
| 97 | /-- Polynomial moment cost interface on the slot arrays. -/ |
| 98 | lemma moment_mass {ι : Type*} (n : ι → ℕ) {a σ t : ℝ} (s : ℕ) (p : ι → ℝ) (hp : ∀ i, 0 ≤ p i) |
| 99 | (h : SumBudget (fun i => p i * Real.exp (t * n i)) a) (ht : σ < t) : |
| 100 | SumBudget (fun i => p i * Real.exp (σ * n i) * (1+(n i:ℝ))^s) (momentFactor s (t-σ) * a) := by |
| 101 | let C := momentFactor s (t-σ) |
| 102 | have he : 0 ≤ C := zero_le_one.trans (momentFactor_one s (sub_pos.mpr ht)) |
| 103 | let F := fun i => p i * Real.exp (t * n i) |
| 104 | have hx : SumBudget (fun i => C * F i) (C*a) := ⟨fun i => mul_nonneg he (h.1 i), |
| 105 | h.2.1.mul_left C, (Eq.trans_le (tsum_mul_left) (mul_le_mul_of_nonneg_left h.2.2 he))⟩ |
| 106 | apply sumBudget_mono hx _ _ le_rfl |
| 107 | · intro i; have := hp i; positivity |
| 108 | intro i; dsimp only [C, F]; rw [mul_assoc, mul_left_comm (momentFactor ..)] |
| 109 | exact mul_le_mul_of_nonneg_left (buys_exponential s (n i) ht) (hp i) |
| 110 | |
| 111 | lemma moment_atoms {k : ℕ} {F : ℕ → Atom G k} {σ t b : ℝ} (h : SumBudget (fun i => (F i).budget t) b) |
| 112 | (ht : σ < t) (s : ℕ) : SumBudget (fun i => (F i).budget σ * (1 + ((F i).length:ℝ))^s) (momentFactor s (t-σ) * b) := |
| 113 | moment_mass _ s _ (fun _ => atom_magnitude_nonneg _) h ht |
| 114 | |
| 115 | private lemma displacement (w : Walk) (x : Cover) (l : Axis) : ((stop x w l) - x l).natAbs ≤ w.length := by |
| 116 | induction w generalizing x with |
| 117 | | nil => simp [stop] |
| 118 | | cons d w ih => |
| 119 | have hb : ((d.vec : Cover) l).natAbs ≤ 1 := by |
| 120 | rcases d with ⟨j,z|z⟩ <;> by_cases h : l=j <;> simp [Step.vec,h] |
| 121 | simp only [stop,List.length] |
| 122 | let t : Cover := x+d.vec |
| 123 | have he : stop (x+d.vec) w l - x l = (stop t w l - t l)+(d.vec : Cover) l := by dsimp [t]; omega |
| 124 | rw [he]; exact (Int.natAbs_add_le ..).trans (Nat.add_le_add (ih t) hb) |
| 125 | |
| 126 | lemma offset_le (s : Slot) (l : Axis) : (s.offset l).natAbs ≤ s.length := by |
| 127 | have he := displacement s.walk 0 l |
| 128 | simp only [Pi.zero_apply, sub_zero] at he |
| 129 | exact he.trans (Nat.le_add_right ..) |
| 130 | |
| 131 | lemma loop_offset_le (s : Atom G 2) (l : Axis) : |
| 132 | (((s.leg 1).offset l) - (s.leg 0).offset l).natAbs ≤ s.length := by |
| 133 | rw [sub_eq_add_neg]; refine (Int.natAbs_add_le ..).trans ?_ |
| 134 | rw [Int.natAbs_neg, Atom.length, Fin.sum_univ_two, add_comm ((s.leg 0).length)] |
| 135 | exact Nat.add_le_add (offset_le ..) (offset_le ..) |
| 136 | |
| 137 | lemma loop_coeff_le (W : PathData G) (i : Fin 2 → PlaqAxes) (x : Fin 2 → G.ColorIndex) (k : ℕ) : |
| 138 | ‖W.loop_coeff i x k‖ ≤ (W.loop k).magnitude := by |
| 139 | unfold PathData.loop_coeff; split |
| 140 | · exact Finset.single_le_sum (fun a _ => abs_nonneg ((W.loop k).coeff a)) (Finset.mem_univ x) |
| 141 | rw [norm_zero]; exact atom_magnitude_nonneg _ |
| 142 | |
| 143 | /-- Obtain the unweighted (period-independent!) summability receipts. |
| 144 | Thus one can ask for the actual amount estimates without asking also |
| 145 | for their summability consequences separately. -/ |
| 146 | lemma PathMass.bounds {W : PathData G} {t v b C D : ℝ} (h : PathMass W t v b C D) |
| 147 | {c : Clip} (he : Normalized W c) {u : ℝ} (hx : v ≤ u) (hc : C ≤ u) (hd : D ≤ u) : |
| 148 | W.Bounds c t u b := by |
| 149 | have hv := h.mono h.pos le_rfl hx le_rfl hc hd |
| 150 | refine ⟨h.pos,hv.row,hv.loop,hv.cubic,hv.quartic,he.invariant, ?_, he.metric, ?_,he.jets⟩ |
| 151 | · intro p q |
| 152 | refine Summable.of_norm ?_ |
| 153 | apply (h.row p).2.1.of_nonneg_of_le (fun _ => norm_nonneg _) |
| 154 | intro i; split_ifs |
| 155 | · apply le_mul_of_one_le_right (abs_nonneg _) (Real.one_le_exp _) |
| 156 | exact mul_nonneg h.pos.le (by positivity) |
| 157 | rw [norm_zero]; positivity |
| 158 | intro i x |
| 159 | have hb (s : ℕ) : SumBudget (fun j => (W.loop j).magnitude * (1+((W.loop j).length:ℝ))^s) (momentFactor s t * b) := by |
| 160 | simpa only [Atom.budget, zero_mul,sub_zero,Real.exp_zero, mul_one] using moment_atoms h.loop h.pos s |
| 161 | refine ⟨Summable.of_norm ?_, fun l => Summable.of_norm ?_⟩ |
| 162 | · exact (hb 0).2.1.of_nonneg_of_le (fun a => norm_nonneg _) (fun a => by simpa using loop_coeff_le W i x a) |
| 163 | apply (hb 1).2.1.of_nonneg_of_le (fun _ => norm_nonneg _) |
| 164 | intro j; rw [norm_mul,pow_one] |
| 165 | refine mul_le_mul (loop_coeff_le ..) ?_ (norm_nonneg _) (atom_magnitude_nonneg _) |
| 166 | rw [← norm_natAbs, Real.norm_natCast] |
| 167 | exact (Nat.cast_le.mpr (loop_offset_le (W.loop j) l)).trans (le_add_of_nonneg_left zero_le_one) |
| 168 | |
| 169 | |
| 170 | end Path |
| 171 | end YM.Push.PriceCompiler |