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.SCHEDULE.Dues |
| 2 | |
| 3 | /-! |
| 4 | # Numeric windows for the two weak reflection geometries |
| 5 | |
| 6 | All logs in native LEVEL units. Real inequalities but |
| 7 | heights are exact integers ≥ 0; can instantiate with chosen odd L. Order of |
| 8 | support exponent etc paid separately. Upper bound h log L pays repeated |
| 9 | prices via pre-L ladder, no power-slop at post-L repeated exponentially. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Next.Scheduling.Weak |
| 14 | open Filter Function RG RG.Supply Bid Lattice Pressure Precision Real Clock Instrument |
| 15 | open scoped Topology |
| 16 | |
| 17 | /-- Fixed tests at this stage. Choose `accuracy` genuinely tending to zero |
| 18 | for asymptotic uses. Lower `positive` for the exponent b (B uses b-δ), |
| 19 | `lower` for the fraction in B. Post-L constants; costs already repeated |
| 20 | use `Exchange` chosen before L (including b upper). -/ |
| 21 | structure Focus where |
| 22 | accuracy : ℝ |
| 23 | positive : ℝ |
| 24 | lower : ℝ |
| 25 | funds : Postage |
| 26 | toll : 0 < accuracy |
| 27 | pos : 0 < positive |
| 28 | posL : 0 < lower |
| 29 | margin : lower ≤ 1 |
| 30 | |
| 31 | private lemma above (L x : ℝ) (hL : 1<L) (hx : 1 ≤ x) : ∃ i : ℕ, x ≤ L^i ∧ L^i < x*L := by |
| 32 | let y:= Real.log x/Real.log L |
| 33 | have hp:=Real.log_pos hL; have ht : 0≤y := div_nonneg (Real.log_nonneg hx) hp.le |
| 34 | have hv:= Nat.le_ceil y; have hb:=Nat.ceil_lt_add_one ht |
| 35 | let i:=Nat.ceil y |
| 36 | have he : 0<x := lt_of_lt_of_le zero_lt_one hx; have hh : 0<L := by linarith |
| 37 | have hI : 0 < L^i := by positivity |
| 38 | refine ⟨i, (Real.log_le_log_iff he hI).1 ?_, (Real.log_lt_log_iff hI (by positivity)).1 ?_⟩ |
| 39 | · rw [Real.log_pow]; exact (div_le_iff₀ hp).1 hv |
| 40 | rw [Real.log_pow,Real.log_mul he.ne' hh.ne'] |
| 41 | apply lt_of_lt_of_le (mul_lt_mul_of_pos_right hb hp) |
| 42 | unfold y; field_simp; rfl |
| 43 | |
| 44 | private lemma underneath (L x : ℝ) (hL : 1<L) (hx : 1 ≤ x) : ∃ i : ℕ, L^i ≤ x ∧ x < L^i*L := by |
| 45 | let y:= Real.log x / Real.log L |
| 46 | have hp:=Real.log_pos hL; have ht : 0≤y := div_nonneg (Real.log_nonneg hx) hp.le |
| 47 | have he:= Nat.floor_le ht; have hh:=Nat.lt_floor_add_one y |
| 48 | let i:=Nat.floor y |
| 49 | have hx' : 0<x:=lt_of_lt_of_le zero_lt_one hx; have hL':0<L:= by linarith |
| 50 | have hi : 0<L^i := by positivity |
| 51 | refine ⟨i,(Real.log_le_log_iff hi hx').1 ?_,(Real.log_lt_log_iff hx' (by positivity)).1 ?_⟩ |
| 52 | · rw [Real.log_pow]; exact (le_div_iff₀ hp).1 he |
| 53 | rw [Real.log_mul hi.ne' hL'.ne',Real.log_pow]; have ho := (div_lt_iff₀ hp).1 hh; linarith |
| 54 | |
| 55 | /-- A: S index = `u`, cell-side h (plateau exponents). One proof parametric |
| 56 | in every b. Î scale `p^b` not rounded here (round the h required to take |
| 57 | larger seams). -/ |
| 58 | structure A (L p M b : ℝ) (u h : ℕ) : Prop where |
| 59 | le : u ≤ h |
| 60 | block : p^b*p^ (2:ℕ) ≤ L^u ∧ L^u < p^b*p^ (2:ℕ)*L |
| 61 | spacing : M^ (10:ℕ) ≤ L^(h-u) ∧ L^(h-u) < M^ (10:ℕ)*L |
| 62 | log_le : (h:ℝ)*Real.log L ≤ (b+4)*Real.log p |
| 63 | |
| 64 | /-- B: largest admissible S index. Use `r=b-δ`, both explicit. |
| 65 | -/ |
| 66 | structure B (L p M b r c : ℝ) (u h : ℕ) : Prop where |
| 67 | le : u ≤ h |
| 68 | side : L^h ≤ c*p^r ∧ c*p^r < L^h*L |
| 69 | spacing : M^ (10:ℕ) ≤ L^(h-u) ∧ L^(h-u) < M^ (10:ℕ)*L |
| 70 | log_le : (h:ℝ)*Real.log L ≤ (b+4)*Real.log p |
| 71 | |
| 72 | /-- Produces both heights when additional numeric gates paid. Joint for all |
| 73 | focus requirements; `M` is actual cover, no silently replacing by approximate |
| 74 | s-laws. -/ |
| 75 | lemma heights (F : Focus) (p M L b : ℝ) (hp : 1 ≤ p) (hM : 1 ≤ M) (hL : 1<L) |
| 76 | (hb : 0≤ b) (ha : L^ (2:ℕ)*M^ (10:ℕ) ≤ p^ (2:ℕ)) (he : M^ (10:ℕ)*L ≤ F.lower*p^F.positive) : |
| 77 | (∃ u h, A L p M b u h) ∧ ∀ r c : ℝ, F.positive ≤ r → r ≤ b → F.lower ≤ c → c ≤ 1 → |
| 78 | ∃ u h, B L p M b r c u h := by |
| 79 | have hl : 0<L:= by linarith |
| 80 | have hm : 0<M:= by linarith |
| 81 | have hu : 0<p:=by linarith |
| 82 | have hx h : L^h ≤ p^(b+4) → (h:ℕ)*Real.log L ≤ (b+4)*Real.log p := by |
| 83 | intro hI; simpa [Real.log_pow, Real.log_rpow hu] using Real.log_le_log (by positivity) hI |
| 84 | have hh : 1 ≤ M^ (10:ℕ) := one_le_pow₀ hM |
| 85 | constructor |
| 86 | · obtain ⟨i,h1,h2⟩ := above L (p^b*p^ (2:ℕ)) hL (one_le_mul_of_one_le_of_one_le (Real.one_le_rpow hp hb) (one_le_pow₀ hp)) |
| 87 | obtain ⟨j,h3,h4⟩:= above L (M^ (10:ℕ)) hL hh |
| 88 | refine ⟨i,i+j, Nat.le_add_right ..,⟨h1,h2⟩,?_,hx _ ?_⟩ |
| 89 | · simpa using And.intro h3 h4 |
| 90 | calc |
| 91 | _ ≤ (p^b*p^ (2:ℕ)*L)*(M^ (10:ℕ)*L) := by rw [pow_add]; gcongr |
| 92 | _ = p^b*p^ (2:ℕ)*(L^ (2:ℕ)*M^ (10:ℕ)) := by ring |
| 93 | _ ≤ p^b*p^ (2:ℕ)*p^ (2:ℕ) := by gcongr |
| 94 | _ = _ := by rw [Real.rpow_add hu]; norm_num; ring |
| 95 | intro r c hc hr hy hz |
| 96 | have hd := F.posL |
| 97 | have haC := hd.trans_le hy |
| 98 | have hm0 : M^ (10:ℕ)*L ≤ c*p^r := he.trans (by gcongr) |
| 99 | obtain ⟨i,h1,h2⟩:= underneath L (c*p^r) hL (le_trans (one_le_mul_of_one_le_of_one_le hh hL.le) hm0) |
| 100 | have hv : M^ (10:ℕ) ≤ L^i := le_of_mul_le_mul_right (hm0.trans h2.le) hl |
| 101 | obtain ⟨j,h3,h4⟩:=underneath L (L^i/M^ (10:ℕ)) hL (by apply (le_div_iff₀ (by positivity)).mpr; simpa) |
| 102 | have hM10 : 0<M^ (10:ℕ) := by positivity |
| 103 | have hh' := (le_div_iff₀ hM10).1 h3 |
| 104 | have he' := (div_lt_iff₀ hM10).1 h4 |
| 105 | have hi : j ≤ i := (pow_le_pow_iff_right₀ hL).mp (le_trans (le_mul_of_one_le_right (by positivity) hh) hh') |
| 106 | have eq : L^i=L^j*L^(i-j) := by rw [← pow_add,Nat.add_sub_of_le hi] |
| 107 | rw [eq] at hh' he' |
| 108 | exact ⟨j,i,hi,⟨h1,h2⟩, ⟨le_of_mul_le_mul_left hh' (by positivity),lt_of_mul_lt_mul_left |
| 109 | (show L^j*L^(i-j) < L^j*(M^ (10:ℕ)*L) by linarith) (by positivity)⟩,hx _ (le_trans h1 <| by |
| 110 | calc |
| 111 | _ ≤ 1*p^r := by gcongr |
| 112 | _ ≤ p^(b+4) := by rw [one_mul]; exact Real.rpow_le_rpow_of_exponent_le hp (by linarith))⟩ |
| 113 | |
| 114 | variable {G : Gauge} {s : Survey G} {q : Quote} {e : Exchange} {j i : ℕ} {L : ℝ} |
| 115 | |
| 116 | /-- Don't use a post-L `p^o(1)` factor raised to h! -/ |
| 117 | lemma payment (H : Buy s q e j i L) (h : ℕ) (b p D : ℝ) (hh : (h:ℝ)*Real.log L ≤ (b+4)*Real.log p) |
| 118 | (hb : b ≤ e.weakHeight) (hp : 1 ≤ p) (hd : 0 ≤ D) (hm : D ≤ e.multiplicity) : |
| 119 | e.cost^((h:ℝ)*D) ≤ p^(((j:ℝ)+1)⁻¹) := by |
| 120 | have hX : 0 < Real.log L := Real.log_pos (lt_of_lt_of_le (by norm_num) H.block) |
| 121 | have hCP := e.ok.2.2.1 |
| 122 | have hC:=Real.log_nonneg hCP |
| 123 | have hQ:= Real.log_nonneg hp |
| 124 | let x : ℝ := (j:ℝ)+1; have hx : 0<x:=by unfold x; positivity |
| 125 | apply (Real.log_le_log_iff (by have := lt_of_lt_of_le zero_lt_one hCP; positivity) (by have := lt_of_lt_of_le zero_lt_one hp; positivity)).1 |
| 126 | rw [Real.log_rpow (by linarith),Real.log_rpow (by linarith)] |
| 127 | apply le_of_mul_le_mul_right ?_ hX |
| 128 | have hu := hh.trans (mul_le_mul_of_nonneg_right (add_le_add_left hb _) hQ) |
| 129 | calc |
| 130 | _ ≤ ((h:ℝ)*Real.log L)*(e.multiplicity*Real.log e.cost) := by |
| 131 | have hh := mul_le_mul_of_nonneg_right hm (show 0 ≤ h * Real.log L * Real.log e.cost by positivity); linarith |
| 132 | _ ≤ ((e.weakHeight+4)*Real.log p)*(e.multiplicity*Real.log e.cost) := |
| 133 | mul_le_mul_of_nonneg_right hu (mul_nonneg (hd.trans hm) hC) |
| 134 | _ ≤ _ := by |
| 135 | change _ ≤ (x⁻¹*Real.log p)*Real.log L |
| 136 | have hZ := mul_le_mul_of_nonneg_right H.ladder hQ |
| 137 | field_simp |
| 138 | unfold x; linarith |
| 139 | end YM.Next.Scheduling.Weak |