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.Overlay.Supplier |
| 2 | import YM.Shoot.Reach |
| 3 | |
| 4 | /-! |
| 5 | # Metering . Stop and budget arithmetic. |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Stock |
| 10 | open Lattice Wilson RG Marker Cells MeasureTheory Filter Set Function Overlay Extraction |
| 11 | open scoped Topology Matrix.Norms.Frobenius BigOperators ENNReal ContDiff |
| 12 | variable {G : Gauge} {C : Family G} |
| 13 | |
| 14 | -- log power fit purely schedule may be imposed at stage entrances |
| 15 | structure Tabs (a : Levels G) : Prop where |
| 16 | grows i : (a.clock.coverSize (i+1))^2 ≤ 2*(a.clock.coverSize i)^2 |
| 17 | cheap : ∀ ε : ℝ, 0<ε → ∀ᶠ i : ℕ in atTop, |
| 18 | ((a.S.block i).val * ((a.clock.coverSize i:ℝ)^2))^ (4:ℕ)*YM.Vac.fiat G (a.params (i+1)) (a.clock.hatBeta (i+1)) ≤ ε*a.S.scale (i+1) |
| 19 | |
| 20 | namespace Tabs |
| 21 | variable (a : Levels G) (s : ℝ) |
| 22 | |
| 23 | def opens (i j : ℕ) := i≤j ∧ s*(a.clock.coverSize j:ℝ)^ (2:ℕ) ≤ a.S.a i/a.S.a j |
| 24 | |
| 25 | lemma open_later (t : Tabs a) {j k i : ℕ} (h : opens a s i j) (he : j ≤ k) (hs : 0≤s) : opens a s i k := by |
| 26 | induction k,he using Nat.le_induction with |
| 27 | | base => exact h |
| 28 | | succ k hk ih => |
| 29 | refine ⟨le_trans ih.1 (Nat.le_succ _),?_⟩ |
| 30 | calc |
| 31 | _ ≤ s*(2*(a.clock.coverSize k:ℝ)^2) := mul_le_mul_of_nonneg_left (by exact_mod_cast t.grows k) hs |
| 32 | _ ≤ 2*(a.S.a i/a.S.a k) := by rw [mul_left_comm]; exact mul_le_mul_of_nonneg_left ih.2 (by positivity) |
| 33 | _ ≤ ((a.S.block k).val:ℝ)*(a.S.a i/a.S.a k) := mul_le_mul_of_nonneg_right (by exact_mod_cast (le_trans (show 2 ≤ 3 by decide) (a.S.block_large k))) (by exact (div_pos (a.S.a_pos i) (a.S.a_pos k)).le) |
| 34 | _ = _ := by rw [a.S.a_step]; field_simp |
| 35 | |
| 36 | lemma mayOpen (h : Tabs a) (m : ℕ) : ∃ b, opens a s m b := by |
| 37 | by_cases hs : 0≤s |
| 38 | · have hu i : a.S.a (i+1)* (a.clock.coverSize (i+1):ℝ)^ (2:ℕ) ≤ |
| 39 | ((2:ℝ)/3)*(a.S.a i * (a.clock.coverSize i:ℝ)^ (2:ℕ)) := by |
| 40 | have hb : (a.clock.coverSize (i+1):ℝ)^ (2:ℕ) ≤ 2*(a.clock.coverSize i:ℝ)^ (2:ℕ) := by exact_mod_cast h.grows i |
| 41 | rw [a.S.a_step] |
| 42 | have ha := a.S.a_pos i |
| 43 | apply le_trans (mul_le_mul (b:=a.S.a i/3) ?_ hb (by positivity) (by positivity)) (by ring_nf; rfl) |
| 44 | gcongr; exact_mod_cast a.S.block_large i |
| 45 | let f (i : ℕ) := a.S.a i * ((a.clock.coverSize i:ℝ)^ (2:ℕ)) |
| 46 | have hv i : f i ≤ f 0*((2:ℝ)/3)^i := by |
| 47 | induction i with |
| 48 | | zero => simp |
| 49 | | succ i ih => apply (hu i).trans; apply (mul_le_mul_of_nonneg_left ih (by positivity : 0≤(2:ℝ)/3)).trans_eq; ring |
| 50 | have ht : Tendsto (fun i : ℕ => s*f i) atTop (𝓝 0) := by |
| 51 | have he : Tendsto f atTop (𝓝 0) := squeeze_zero (fun i => mul_nonneg (a.S.a_pos i).le (sq_nonneg _)) hv (by |
| 52 | simpa only [mul_zero] using (tendsto_pow_atTop_nhds_zero_of_lt_one (r:= (2:ℝ)/3) (by norm_num) (by norm_num)).const_mul (f 0)) |
| 53 | simpa only [mul_zero] using he.const_mul s |
| 54 | obtain ⟨i,H,he⟩ := ((eventually_ge_atTop m).and (ht.eventually (ge_mem_nhds |
| 55 | (a.S.a_pos m)))).exists |
| 56 | refine ⟨i,H,(le_div_iff₀ (a.S.a_pos _)).2 (le_trans (le_of_eq ?_) (show s*f i≤_ from he))⟩ |
| 57 | unfold f; ring |
| 58 | refine ⟨m,le_rfl,(mul_nonpos_of_nonpos_of_nonneg (le_of_not_ge hs) (by positivity)).trans (div_nonneg (a.S.a_pos m).le (a.S.a_pos m).le)⟩ |
| 59 | |
| 60 | open scoped Classical in |
| 61 | def chosen (h : Tabs a) (m : ℕ) : ℕ := Nat.find (mayOpen a s h m) |
| 62 | lemma opened (h : Tabs a) (m : ℕ) : opens a s m (chosen a s h m) := by classical exact Nat.find_spec (mayOpen a s h m) |
| 63 | lemma needs (h : Tabs a) {m u} (he : m < chosen a s h m) (hk : chosen a s h m=u+1) : |
| 64 | a.S.a m/a.S.a u ≤ s * (a.clock.coverSize u:ℝ)^2 := by |
| 65 | classical |
| 66 | have ht : ¬ opens a s m u := fun F => by |
| 67 | have H : chosen a s h m ≤ u := Nat.find_min' (mayOpen a s h m) F |
| 68 | omega |
| 69 | exact le_of_not_ge (fun hv => ht ⟨by omega,hv⟩) |
| 70 | |
| 71 | lemma expensive (h : Tabs a) (hs : 1 ≤ s) (i : ℕ) (F : ℕ) (hF : chosen a s h i=F+1) : |
| 72 | a.S.a i / a.S.a (F+1) ≤ s * ((a.S.block F).val * (a.clock.coverSize F:ℝ)^2) := by |
| 73 | have ht := (opened a s h i).1 |
| 74 | have hh := a.S.a_pos F |
| 75 | have hg : (3:ℝ)≤ (a.S.block F).val := by exact_mod_cast (a.S.block_large F) |
| 76 | have hp : 0< ((a.S.block F).val:ℝ) := lt_of_lt_of_le (by norm_num) hg |
| 77 | have h1 : (1:ℝ) ≤ (a.clock.coverSize F:ℝ) := by exact_mod_cast (a.budget F).B_pos |
| 78 | rcases eq_or_lt_of_le ht with e|e |
| 79 | · have hw : a.S.a i=a.S.a (F+1) := congr_arg a.S.a (e.trans hF) |
| 80 | rw [hw,div_self (a.S.a_pos _).ne'] |
| 81 | exact one_le_mul_of_one_le_of_one_le hs (one_le_mul_of_one_le_of_one_le (by linarith) (one_le_pow₀ h1)) |
| 82 | rw [a.S.a_step, show a.S.a i / (a.S.a F / (a.S.block F).val)= (a.S.a i/a.S.a F)*(a.S.block F).val by field_simp] |
| 83 | exact (mul_le_mul_of_nonneg_right (needs a s h e hF) hp.le).trans_eq (by ring) |
| 84 | |
| 85 | lemma pay (h : Tabs a) (hs : 1≤s) (e : ℝ) (he : 0<e) : |
| 86 | ∀ᶠ m : ℕ in atTop, |
| 87 | let p := chosen a s h m |
| 88 | (a.S.a m / a.S.a p)^4* Vac.fiat G (a.params p) (a.clock.hatBeta p) ≤ e * a.S.scale p := by |
| 89 | have hw : ∀ᶠ m : ℕ in atTop, ∀ i ≥ m-1, |
| 90 | ((a.S.block i).val * ((a.clock.coverSize i:ℝ)^2))^(4:ℕ) * Vac.fiat G (a.params (i+1)) (a.clock.hatBeta (i+1)) ≤ |
| 91 | (e/s^4) * a.S.scale (i+1) := by |
| 92 | have hn : 0 < s := by linarith |
| 93 | obtain ⟨j,hj⟩ := eventually_atTop.1 (h.cheap (e/s^4) (by positivity)) |
| 94 | filter_upwards [eventually_gt_atTop j] with i hg k hk using hj _ (by omega) |
| 95 | filter_upwards [hw,eventually_gt_atTop 0] with i hi hp |
| 96 | dsimp only |
| 97 | have hv := (opened a s h i).1 |
| 98 | cases hg : chosen a s h i with |
| 99 | | zero => omega |
| 100 | | succ m => |
| 101 | have hh := hi m (by omega) |
| 102 | have hf (q : ℕ) : 0≤Vac.fiat G (a.params q) (a.clock.hatBeta q) := by |
| 103 | unfold Vac.fiat |
| 104 | have hu := (a.params q).clip.quadratic_pos |
| 105 | have hx := (a.params q).paths_pos |
| 106 | have he := Real.log_pos (a.fits.delayed q) |
| 107 | positivity |
| 108 | calc |
| 109 | _ ≤ (s*((a.S.block m).val*(a.clock.coverSize m:ℝ)^ (2:ℕ)))^(4:ℕ) * Vac.fiat G (a.params (m+1)) (a.clock.hatBeta (m+1)) := mul_le_mul_of_nonneg_right |
| 110 | (pow_le_pow_left₀ (div_nonneg (a.S.a_pos _).le (a.S.a_pos _).le) (expensive a s h hs i m hg) 4) (hf (m+1)) |
| 111 | _ ≤ _ := by |
| 112 | rw [mul_pow,mul_assoc] |
| 113 | refine (mul_le_mul_of_nonneg_left hh (show 0 ≤ s^4 by positivity)).trans_eq ?_ |
| 114 | have hn := ne_of_gt (lt_of_lt_of_le (by norm_num : (0:ℝ) < 1) hs) |
| 115 | field_simp |
| 116 | end Tabs |
| 117 | |
| 118 | /-- forward supplier. Enough to serve any first stop for construction. -/ |
| 119 | structure Fuel (C : Family G) (d : ℕ) (r : ℝ) where |
| 120 | charge : ℝ |
| 121 | charge_limit : 1 ≤ charge |
| 122 | stamps : ℕ → Foot |
| 123 | slot i : (stamps i).stop=i |
| 124 | |
| 125 | namespace Fuel |
| 126 | variable {d : ℕ} {r : ℝ} (F : Fuel C d r) |
| 127 | |
| 128 | def ready := ∀ i j, C.ref d ≤ i → Tabs.opens C.path.levels F.charge i j → (F.stamps j).services C d i r |
| 129 | |
| 130 | def covers := ∀ ε : ℝ, 0<ε → ∀ᶠ i in atTop, |
| 131 | let X:=F.stamps i |
| 132 | X.u+X.c+X.d*X.b-Real.log X.w ≤ ε*C.S.scale i |
| 133 | |
| 134 | lemma record (h : G.Simple) (ht : Tabs C.path.levels) (he : F.ready) (hv : F.covers) : |
| 135 | ∃ X : ℕ → Foot, (∀ i,C.ref d ≤ i → (X i).services C d i r) ∧ |
| 136 | ∀ ε : ℝ, 0 < ε → ∀ᶠ i : ℕ in atTop, (X i).bill C i d ≤((d:ℝ)+ε)*C.S.scale i := by |
| 137 | let p := Tabs.chosen C.path.levels F.charge ht |
| 138 | refine ⟨fun i => F.stamps (p i),fun i hi => he i (p i) hi (by apply Tabs.opened),?_⟩ |
| 139 | intro ε hε |
| 140 | let z := min (ε/4) (ε/(4*((d:ℝ)+ε))) |
| 141 | have h0 : 0<z := by unfold z; positivity |
| 142 | have hz := ht.pay C.path.levels F.charge F.charge_limit _ h0 |
| 143 | have hp : ∀ i,i ≤ p i := fun i => (Tabs.opened _ _ ht i).1 |
| 144 | have hS : Tendsto p atTop atTop := tendsto_atTop_mono hp tendsto_id |
| 145 | filter_upwards [hz,hS.eventually (Vac.treasury_stage C.path.levels h), hS.eventually (hv z h0)] with i hi ha hh |
| 146 | -- gap of scales ← log ratio ≤ price. m_i* always ≥1. |
| 147 | let r := p i |
| 148 | let b := C.path.levels |
| 149 | let u := C.S.a i/C.S.a r |
| 150 | let B := Vac.fiat G (b.params r) (b.clock.hatBeta r) |
| 151 | change u^4 * B≤ z*C.S.scale r at hi |
| 152 | have hs : 1≤u := (one_le_div (C.S.a_pos _)).2 (C.S.strictAnti.antitone (hp i)) |
| 153 | have hB : 1≤B := by |
| 154 | unfold B Vac.fiat |
| 155 | have he := (b.params r).paths_pos |
| 156 | have ha := (b.params r).clip.quadratic_pos |
| 157 | have hp : 0≤ (Fintype.card PlaqAxes:ℝ)*((b.params r).clip.direct + (b.params r).paths^2) + |
| 158 | 4*Module.finrank ℝ G.Mat*(Real.log 16+Real.log (b.clock.hatBeta r)/2) := by |
| 159 | have hu := Real.log_pos (b.fits.delayed r) |
| 160 | positivity |
| 161 | linarith only [hp,he] |
| 162 | have hG : C.S.scale r-C.S.scale i=Real.log u := by |
| 163 | unfold Schedule.scale u; rw [Real.log_div (C.S.a_pos _).ne' (C.S.a_pos _).ne', Real.log_inv,Real.log_inv]; ring |
| 164 | have hw : C.S.scale r-C.S.scale i≤z*C.S.scale r := by |
| 165 | rw [hG] |
| 166 | calc |
| 167 | _ ≤ u := Real.log_le_self (by linarith) |
| 168 | _ ≤ u^4 := by |
| 169 | conv_lhs => rw [← pow_one u] |
| 170 | exact pow_le_pow_right₀ hs (by norm_num) |
| 171 | _ ≤ u^4*B := le_mul_of_one_le_right (by positivity) hB |
| 172 | _ ≤ _ := hi |
| 173 | have hf := (mul_le_mul_of_nonneg_left ha (show 0 ≤ u^4 from by positivity)).trans hi |
| 174 | let X := F.stamps r |
| 175 | change X.u+X.c+X.d*X.b-Real.log X.w≤z*C.S.scale r at hh |
| 176 | unfold Foot.bill expPrice |
| 177 | rw [F.slot] |
| 178 | change u^4 * Vac.treasury C.path.levels r + X.u+X.c+X.d*X.b +_ -Real.log X.w ≤((d:ℝ)+ε)*C.S.scale i |
| 179 | have H₀ : 0 < (d:ℝ)+ε := by positivity |
| 180 | have hX := mul_le_mul_of_nonneg_left hw H₀.le |
| 181 | have hY : z*((d:ℝ)+ε) ≤ ε/4 := by |
| 182 | apply (mul_le_mul_of_nonneg_right (show z ≤ ε/(4*((d:ℝ)+ε)) from min_le_right ..) H₀.le).trans |
| 183 | exact le_of_eq (by field_simp) |
| 184 | have hQ : 0 ≤ C.S.scale r := Shoot.scale_nn b r |
| 185 | have ht' : u^4*Vac.treasury C.path.levels r ≤ z*C.S.scale r := hf |
| 186 | change _+_+_+_+(d:ℝ)*C.S.scale r-_≤_ |
| 187 | linarith only [hh,hX, ht', mul_le_mul_of_nonneg_right hY hQ, |
| 188 | mul_le_mul_of_nonneg_right (show z≤ε/4 from min_le_left ..) hQ, mul_nonneg hε.le hQ] |
| 189 | end Fuel |
| 190 | end YM.Stock |