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.Work.E09.Budget |
| 2 | import YM.Work.E09.Scales |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Drow assembly |
| 7 | |
| 8 | E:5793–5810, in this orientation-local interface. `m` below is a rate AFTER |
| 9 | L and W but fixed before the x-tail. Use it even in the payment for flags. |
| 10 | The Lapse fees proportional to the *sum* of large fine tolls and to the noise |
| 11 | sum are dealt with differently: bend L and W respectively against pre-L and |
| 12 | pre-W costs. `Z`, which can depend on both L and W, will be paid on the x-tail |
| 13 | instead. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Work.E09 |
| 19 | open Filter Function Lattice RG RG.Patch Axial Wilson Finset Precision Tree Exterior Bloch Laurent |
| 20 | open YM.Pressure YM.Pressure.Stores YM.Pressure.Tube YM.Pressure.Teller Input |
| 21 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators NNReal ComplexOrder Classical |
| 22 | |
| 23 | private lemma bank (G : Gauge) (L : Side) (m Z B δ : ℝ) (K : ℕ) |
| 24 | (hm : 0 < m) (hB : 0 ≤ B) (hδ : 0 < δ) : |
| 25 | ∀ᶠ x : ℝ in atTop, |
| 26 | let t := fiery G x L; let u := largeT G x L; let s := temp x; let b : ℝ := radiusB x |
| 27 | 0 ≤ s ∧ s ≤ δ ∧ 0 ≤ t ∧ t ≤ u ∧ t ≤ 2*s ∧ |
| 28 | (4*m*K + Z*b^4)*t^2 ≤ m*t*u ∧ B*s^4*K*b^4 ≤ m/4*t^2 := by |
| 29 | have hs : Tendsto temp atTop (𝓝 0) := by simpa using radiusB_temp 0 |
| 30 | have hr : Tendsto (fun x : ℝ => fiery G x L / temp x) atTop (𝓝 1) := temp_ratio _ |
| 31 | have hq : Tendsto (fun x : ℝ => fiery G x L / largeT G x L) atTop (𝓝 0) := by |
| 32 | simpa using radiusB_fiery_largeT G L 0 |
| 33 | have hy := ((hq.const_mul (4*m*K)).add ((radiusB_fiery_largeT G L 4).const_mul Z)) |
| 34 | rw [mul_zero, mul_zero, add_zero] at hy |
| 35 | have hz := (((radiusB_temp 4).mul hs).const_mul (4*B*K)) |
| 36 | rw [mul_zero, mul_zero] at hz |
| 37 | filter_upwards [eventually_gt_atTop 0, (betaF_growth G L).eventually (eventually_gt_atTop 0), |
| 38 | hs.eventually (ge_mem_nhds hδ), hr.eventually (ge_mem_nhds (show (1:ℝ)<2 by norm_num)), |
| 39 | hr.eventually (le_mem_nhds (show (1/2:ℝ)<1 by norm_num)), |
| 40 | hq.eventually (ge_mem_nhds zero_lt_one), hy.eventually (ge_mem_nhds hm), |
| 41 | hz.eventually (ge_mem_nhds (show 0 < m/4 by positivity))] with x hx he hsd hrt hrs hqu hY hZ |
| 42 | let t := fiery G x L |
| 43 | let u := largeT G x L |
| 44 | let s := temp x |
| 45 | let b : ℝ := radiusB x |
| 46 | have hs : 0 < s := temp_pos hx |
| 47 | have ht : 0 < t := temp_pos he |
| 48 | have hu : 0 < u := by |
| 49 | unfold u; rw [largeT_eq _ _ _ he.le]; exact Real.rpow_pos_of_pos he _ |
| 50 | refine ⟨hs.le,hsd,ht.le,?_,(div_le_iff₀ hs).mp hrt,?_,?_⟩ |
| 51 | · exact (le_trans ((div_le_iff₀ hu).mp hqu) (one_mul u).le) |
| 52 | · change (4*m*K + Z*b^4)*t^2 ≤ m*t*u |
| 53 | change (4*m*K)*(t/u) + Z*(b^4*(t/u)) ≤ m at hY |
| 54 | have h : (4*m*K + Z*b^4)*t ≤ m*u := by |
| 55 | apply (div_le_iff₀ hu).mp; apply le_trans _ hY; exact le_of_eq (by ring) |
| 56 | linarith only [mul_le_mul_of_nonneg_right h ht.le] |
| 57 | change B*s^4*K*b^4 ≤ m/4*t^2 |
| 58 | change 4*B*K*((b^4*s)*s) ≤ m/4 at hZ |
| 59 | have h : s ≤ 2*t := by linarith only [(le_div_iff₀ hs).mp hrs] |
| 60 | have hP : 0 ≤ B*s^2*K*b^4 := by positivity |
| 61 | linarith only [mul_le_mul_of_nonneg_left (pow_le_pow_left₀ hs.le h 2) hP, |
| 62 | mul_le_mul_of_nonneg_right hZ (sq_nonneg t)] |
| 63 | |
| 64 | variable {G : Gauge} {c f : Side} |
| 65 | |
| 66 | /-- Single cue, no need for bounds outside the provided estimates. |
| 67 | Second-range tides pay flags directly at rate m; for third-range tides the |
| 68 | C-loss is in Lapse, but there's a *separate* charge for flags against spend. -/ |
| 69 | lemma assemble {S : StepData c f} (A : Stores S) (T : Tube G S) |
| 70 | (U : Config G f) (Q V : Config G c) (x m t cF C W Z B δ d : ℝ) (K : ℕ) |
| 71 | (hm : 0 ≤ m) (hf : m ≤ T.high.linear/8) (hd : m ≤ d) |
| 72 | (hi : m ≤ S.kernel.penalty/32) (hc : m ≤ T.low.direct/64) |
| 73 | (hF : cF ≤ T.high.linear/4) (hC : C ≤ S.kernel.penalty/16 * W) |
| 74 | (hw : 1 ≤ W) (hlist : ∀ i ∈ A.aisles, W*t ≤ wire Q V i) |
| 75 | (ht : 0 ≤ t) (hu : t ≤ largeT G x S.patch.L) (hB : 0 ≤ B) |
| 76 | (hs : 0 ≤ temp x) (hst : t ≤ 2*temp x) (hx : temp x ≤ δ) |
| 77 | (hspend : (4*m*K + Z*(radiusB x:ℝ)^4)*t^2 ≤ m*t*largeT G x S.patch.L) |
| 78 | (herr : B*temp x^4*K*(radiusB x:ℝ)^4 ≤ m/4*t^2) |
| 79 | (a : T.high.linear/2*t*(∑ i ∈ A.swell U t, toll U i) + |
| 80 | d*t^2*((A.costs \ A.swell U t).card:ℝ) ≤ A.tally T x U V) |
| 81 | (a' : S.kernel.penalty/8*(∑ i∈A.aisles, wire Q V i^2) ≤ A.talli T x Q V) |
| 82 | (b : Bid.Payments δ A x U Q V K) (e : Bid.Crowds δ B T x V) |
| 83 | (g : talll T x U Q V (A.hit U Q V x) + cF*t*(∑ i ∈ A.swell U t,toll U i) + |
| 84 | C*t*(∑ i∈A.aisles, wire Q V i) + Z*t^2*(radiusB x:ℝ)^4*(A.spend U Q V x).shares ≥ |
| 85 | (T.low.linear*temp x)*(∑ i ∈ A.tides V x δ,toll V i)) |
| 86 | (g' : talll T x U Q V (A.outs x \ A.hit U Q V x) ≥ -(m/4*t^2*A.shares)) : |
| 87 | m/2*t^2*A.shares ≤ A.assessed T x U Q V := by |
| 88 | let D := A.spend U Q V x |
| 89 | have h₁ := fine_budget A T U V x m d cF Q t ht hu hm hf hd hF a |
| 90 | have h₂ := noise_budget A T U Q V x m C W t hw hlist ht hu hm hi hC a' |
| 91 | have h₃ := coarse_budget A T V x m B δ t hs hx hB ht hst hc e |
| 92 | have h₄ : (A.flags.card:ℝ) ≤ 4 * |
| 93 | (((A.tides V x (temp x) \ A.tides V x δ).card:ℝ) + K*(D.shares:ℝ)) := by |
| 94 | exact_mod_cast flags_budget A V Q U x δ hx K b |
| 95 | have hn : 0 ≤ A.talln T x V := sum_nonneg (fun i _ => |
| 96 | div_nonneg (sq_nonneg _) (by norm_num)) |
| 97 | have heq : talll T x U Q V (A.outs x \ A.hit U Q V x) + talll T x U Q V (A.hit U Q V x) = |
| 98 | talll T x U Q V (A.outs x) := |
| 99 | sum_sdiff (show A.hit U Q V x ⊆ A.outs x from filter_subset ..) |
| 100 | have hflags := mul_le_mul_of_nonneg_left h₄ (mul_nonneg hm (sq_nonneg t)) |
| 101 | have hy := mul_le_mul_of_nonneg_right hspend (show 0 ≤ ((D.shares):ℝ) by positivity) |
| 102 | have hz : B*temp x^4*(A.outs x).card ≤ m/4*t^2*A.shares := by |
| 103 | have h : ((A.outs x).card:ℝ) ≤ K*(radiusB x:ℝ)^4*A.shares := by exact_mod_cast b.ours |
| 104 | linarith only [mul_le_mul_of_nonneg_left h (mul_nonneg hB (show 0 ≤ temp x^4 by positivity)), |
| 105 | mul_le_mul_of_nonneg_right herr (show 0 ≤ (A.shares:ℝ) by positivity)] |
| 106 | have hnot : ((A.spend U Q V x).shares:ℝ) = (D.costs.card:ℝ) + D.aisles.card := by |
| 107 | simp [shares, D, spend] |
| 108 | dsimp only [D] at * |
| 109 | rw [hnot] at g hflags hy |
| 110 | simp only [assessed, shares, Nat.cast_add] at g' hz ⊢ |
| 111 | linarith only [h₁,h₂,h₃, hflags, hn, heq, hz, hy, g, g'] |
| 112 | |
| 113 | theorem answer : Bid.E09 := by |
| 114 | intro a G P J δ hδ H Q w |
| 115 | obtain ⟨K, hK⟩ := a P δ hδ |
| 116 | obtain ⟨B, hB, hCover⟩ := H |
| 117 | obtain ⟨C, _, hC⟩ := Q |
| 118 | obtain ⟨N, hN⟩ := J |
| 119 | -- Pre-L work. No dependence on W or x. |
| 120 | have hp : 0 < P.top.clip.linear := P.top.clip.tail_pos |
| 121 | have he : Tendsto (fun n : ℕ => C/(n:ℝ)^2) atTop (𝓝 0) := |
| 122 | tendsto_const_nhds.div_atTop ((tendsto_pow_atTop (n:=2) (by decide)).comp tendsto_natCast_atTop_atTop) |
| 123 | obtain ⟨n, hn⟩ := eventually_atTop.mp |
| 124 | (he.eventually (ge_mem_nhds (show 0 < P.top.clip.linear/4 by positivity))) |
| 125 | refine ⟨max n N, fun L hL => ?_⟩ |
| 126 | have hr : 0 < P.bind.penalty := P.bind.penalty_pos |
| 127 | have hh : Tendsto (fun W : ℝ => P.bind.penalty/16*W) atTop atTop := |
| 128 | Tendsto.const_mul_atTop (by positivity) tendsto_id |
| 129 | -- After L. Use eventually W, even when m needs to depend on W. |
| 130 | filter_upwards [eventually_ge_atTop 1, hh.eventually_ge_atTop C, |
| 131 | hN L ((le_max_right ..).trans hL)] with W hW hh hA |
| 132 | have hw : 0 < W := zero_lt_one.trans_le hW |
| 133 | obtain ⟨Z, _, hZ⟩ := hC L W hw |
| 134 | obtain ⟨d, hd, hs⟩ := hA |
| 135 | let m := min (min (P.top.clip.linear/8) d) (min (P.bind.penalty/32) (P.below.clip.direct/64)) |
| 136 | have hm : 0 < m := by unfold m; have ha := P.below.clip.quadratic_pos; positivity |
| 137 | refine ⟨m/2, by positivity, ⟨?_⟩⟩ |
| 138 | -- Now use ALL estimates on the same tail of x. No cost depending on the live period. |
| 139 | filter_upwards [hs.late, (hCover L W).late, hZ.late, (hK L W hw).late, |
| 140 | (w L W hw (m/4) (by positivity)).late, bank G L m Z B δ K hm hB.le hδ] |
| 141 | with x ha ha' hz hb he hx |
| 142 | obtain ⟨hst, hx, ht, hu, ht', hbank, herr⟩ := hx |
| 143 | intro c f S hL' hSize T hT F A U k V hF hPlot |
| 144 | obtain ⟨hS,hS'⟩ := ha c f S hL' hSize T hT F A U k V hF hPlot |
| 145 | refine assemble A T U (S.prediction U k) V x m (fiery G x L) (C/(L.val:ℝ)^2) C W Z B δ d K |
| 146 | hm.le ?_ ?_ ?_ ?_ ?_ ?_ hW ?_ ht ?_ hB.le hst ht' hx ?_ herr hS hS' |
| 147 | (hb c f S hL' hSize T hT F A U k V hF hPlot).1 |
| 148 | (ha' c f S hL' hSize T hT F A U k V hF hPlot) |
| 149 | (hz c f S hL' hSize T hT F A U k V hF hPlot) |
| 150 | (he c f S hL' hSize T hT F A U k V hF hPlot) |
| 151 | · rw [hT.high]; exact le_trans (min_le_left ..) (min_le_left ..) |
| 152 | · exact le_trans (min_le_left ..) (min_le_right ..) |
| 153 | · rw [hT.knobs]; exact le_trans (min_le_right ..) (min_le_left ..) |
| 154 | · rw [hT.low]; exact le_trans (min_le_right ..) (min_le_right ..) |
| 155 | · rw [hT.high]; exact hn L.val ((le_max_left ..).trans hL) |
| 156 | · rw [hT.knobs]; exact hh |
| 157 | · rw [← hL']; exact wire_listed A U V k x W hPlot |
| 158 | · rw [hL']; exact hu |
| 159 | rw [hL']; exact hbank |
| 160 | |
| 161 | end YM.Work.E09 |