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.RANK.Incoming |
| 2 | import YM.Next.RANK.Voucher |
| 3 | |
| 4 | /-! |
| 5 | # This charge can be scheduled (in isolation) |
| 6 | |
| 7 | Freeze a pre/post catalogue *before* choosing the clock. This only checks |
| 8 | Tally and determinant can in fact be paid in the numerical receipts in RPost |
| 9 | when entrance of W and restart and upper rank equations etc available. More tests |
| 10 | must be simultaneous, poses **no** Factory existence claim. Don't apply this |
| 11 | to a lagging B-j clock then raise the receipts after without redoing upstream. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Next.Rank.Peak |
| 16 | open Lattice Perch Filter Asymptotics Real RG RG.Supply Set Ship Station |
| 17 | open scoped Topology BigOperators Classical |
| 18 | |
| 19 | variable {G : Gauge} {p : Sheet G} {w : Rolls p} {T : Protection w} {D : Delays T} (Z : Bar D) |
| 20 | |
| 21 | -- Cost of h stretch in sigma confined to s/2. Here j param fixed under InWindow, not chosen by this gate. |
| 22 | |
| 23 | def cardTest (O : HaarBudget G) (k m : ℕ) (b : ℝ) (d : Era) (s : ℝ) := |
| 24 | Tally ((w.L k).val:ℝ) (preHat Z s) d m ∧ (benchCost Z b k s:ℝ)*Real.log (w.L k).val*G.slopeConstant ≤ preHat Z s/2 ∧ |
| 25 | Station.ticket O (p.profile k) m ≤ amount Z m s |
| 26 | |
| 27 | theorem reserves (h : G.Simple) (k m : ℕ) (hm : 0<m) (b : ℝ) (hb : 0≤b) (d : Era) (O : HaarBudget G) : |
| 28 | ∀ᶠ s in atTop, cardTest Z O k m b d s := by |
| 29 | let u := Real.log (w.L k).val |
| 30 | have hc := Gauge.slopeConstant_pos h |
| 31 | have hf := ((accommodate Z b k h hb).mul_const u).mul_const G.slopeConstant; rw [zero_mul,zero_mul] at hf |
| 32 | have he : Tendsto (preHat Z) atTop atTop := Filter.tendsto_atTop_add_const_left _ _ (tendsto_id.const_mul_atTop hc) |
| 33 | have hv : 1 < ((w.L k).val:ℝ) := by exact_mod_cast (by have ht := (w.large k).size; omega : 1 < (w.L k).val) |
| 34 | filter_upwards [(able Z h m hm).eventually_ge_atTop _,hf.eventually (ge_mem_nhds (show 0 < G.slopeConstant/2 by linarith)), |
| 35 | he.eventually (on_time (↑(w.L k).val:ℝ) hv d m),eventually_gt_atTop 0] with s hs hf he hp |
| 36 | refine ⟨he, ?_, hs⟩ |
| 37 | rw [div_mul_eq_mul_div,div_mul_eq_mul_div,div_le_iff₀ hp] at hf; unfold preHat |
| 38 | change _ * u * _ ≤ _; linarith only [hf,Z.good] |
| 39 | |
| 40 | def Fired (B : Wait Z) (O : HaarBudget G) (j : ℕ) (b : ℝ) (m : ℕ) (d : Era) := ∀ s : ℝ,B.readyHere j ≤ s → |
| 41 | cardTest Z O j m b d s ∧ benchCost Z b j s ≤ B.window j s |
| 42 | |
| 43 | -- Simpler using honoured for bench part |
| 44 | lemma served (h : G.Simple) (O : HaarBudget G) (B : Wait Z) (M : ℕ → ℕ) (b : ℕ → ℝ) (E : ℕ → ℕ → Era) (J : ℕ → Finset ℕ) |
| 45 | (hm : ∀ i, 0 < M i) (hb : ∀ i,0 ≤ b i) : |
| 46 | ∃ W : Wait Z, B.minLength ≤ W.minLength ∧ (∀ j,B.readyHere j ≤ W.readyHere j ∧ (∀ s,B.window j s ≤ W.window j s)) ∧ |
| 47 | ∀ j i,i∈J j → Fired Z W O j (b i) (M i) (E j i) := by |
| 48 | obtain ⟨P,hL,hs,hP⟩ := honoured Z (P:=B) h O M b hb J hm |
| 49 | have he (j : ℕ) : ∀ᶠ s in atTop,∀ i∈ J j, cardTest Z O j (M i) (b i) (E j i) s := |
| 50 | (eventually_all_finset _).2 (fun i _ => reserves Z h j _ (hm i) _ (hb i) (E j i) O) |
| 51 | choose v hv using fun j => eventually_atTop.mp (he j) |
| 52 | let W : Wait Z := { P with readyHere := fun j => max (P.readyHere j) (v j) } |
| 53 | refine ⟨W,hL,fun j => ⟨(hs j).1.trans (le_max_left ..), (hs j).2⟩,fun j i hi s h => ?_⟩ |
| 54 | exact ⟨hv j s ((le_max_right ..).trans h) i hi,(hP j i hi s ((le_max_left ..).trans h)).2⟩ |
| 55 | |
| 56 | variable {Z} |
| 57 | lemma held_at (B : Wait Z) (a : Levels G) (h : Paid B a) {j k : ℕ} (hb : p.first<j) |
| 58 | (hk : a.clock.J k=j) (hs : B.readyHere j ≤ a.S.scale k) (hf : B.window j (a.S.scale k)≤k) |
| 59 | (hm : ∀ i,k-B.window j (a.S.scale k) ≤ i → i≤k → a.clock.J i=j) |
| 60 | (O : HaarBudget G) (m : ℕ) (b : ℝ) (D : Era) (hi : Fired Z B O j b m D) (hg : G.Simple) : Charge a b k m O D := by |
| 61 | let s := a.S.scale k |
| 62 | let u := wheel a k |
| 63 | have he : preHat Z s=a.clock.hatBeta k := by rw [preHat, Calendar.hatBeta,h.bar] |
| 64 | have hp : u=((w.L j).val:ℝ) := by dsimp only [u]; rw [wheel,h.lengths,hk] |
| 65 | obtain ⟨⟨H,I,T⟩,Q⟩ := hi s hs |
| 66 | unfold benchCost at Q; rw [he,← hp] at Q; change height a b k + surplus a k ≤ _ at Q |
| 67 | unfold benchCost at I; rw [he,← hp] at I; push_cast at I |
| 68 | have hA : Allocated a m k O b := by |
| 69 | have ht : a.params k=p.profile j := by change a.clock.stage _=p.profile j; rw [h.stage,hk] |
| 70 | refine ⟨⟨?_,Q.trans hf,fun i ha hb => ?_⟩,?_⟩ |
| 71 | · by_contra! hj; rw [Nat.le_zero.mp hj,h.firstZero] at hk; omega |
| 72 | · apply (hm i ?_ hb).trans hk.symm |
| 73 | unfold width middle at ha; change k-B.window j s ≤ _; omega |
| 74 | rw [ht]; unfold amount at T; rw [he] at T; exact T |
| 75 | rw [he,← hp] at H |
| 76 | refine ⟨hA,H,fun i hk hi => ?_⟩ |
| 77 | have hv := (Stock.a_log a.S i); have he' := hA.permitted.scales i k hk (hi.trans (before ..)) le_rfl |
| 78 | have hi' : a.S.scale k-a.S.scale i=(k-i:ℕ)*Real.log u := by |
| 79 | have hb := congr_arg Real.log he' |
| 80 | rw [Real.log_div (a.S.a_pos _).ne' (a.S.a_pos _).ne',Real.log_pow] at hb |
| 81 | rw [hv,Stock.a_log] at hb; simp only [Real.log_exp] at hb; linarith only [hb] |
| 82 | have H' : 0 ≤ Real.log u := (Real.log_pos hA.permitted.large).le |
| 83 | have hz : k-i ≤ height a b k + surplus a k := by unfold width middle at hk; omega |
| 84 | have ha := Gauge.slopeConstant_pos hg; refine ⟨?_,?_⟩ |
| 85 | · have hy : (k-i:ℕ)*Real.log u*G.slopeConstant ≤ a.clock.hatBeta k/2 := by |
| 86 | refine le_trans ?_ I; gcongr; exact_mod_cast hz |
| 87 | dsimp only [Calendar.hatBeta] at hy ⊢; rw [← hi'] at hy; linarith only [hy] |
| 88 | have ht : 0 ≤ a.S.scale k-a.S.scale i := hi' ▸ mul_nonneg (Nat.cast_nonneg _) H' |
| 89 | exact add_le_add_right (mul_le_mul_of_nonneg_left (sub_nonneg.mp ht) ha.le) _ |
| 90 | |
| 91 | -- Allocation channel support, no changing Era or Paid at the stage after costs. |
| 92 | |
| 93 | end YM.Next.Rank.Peak |