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.E07.Defects |
| 2 | |
| 3 | |
| 4 | /-! |
| 5 | # E07 — bound on all affected M departures |
| 6 | |
| 7 | A conditional estimate under exactly E01, E03 and E04. For the transferred |
| 8 | bounds freeze two excess arrays: toll U on `swell` (threshold **t**, not T), |
| 9 | and wire Q V on ALL `aisles`. The macro lemma pays both for the coarse term |
| 10 | of L and for toll V on third-range faces (even though the RHS uses all such |
| 11 | faces in `outs`, they are in `hit`). These payments and the transposed M on |
| 12 | the L rows keep the pre-L constants for large-input charges. All uniform |
| 13 | per-row small costs can use post-L constants and are paid by the size of |
| 14 | `hit`, hence by `spend` (the much higher cutoff T) with the B⁴ fee. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Work.E07 |
| 19 | open Lattice RG Finset Wilson Pressure Pressure.Stores Pressure.Teller Filter Bid |
| 20 | open scoped BigOperators Classical |
| 21 | |
| 22 | /-- Price per unit of t times the combined fine/noise bill; depends on clips, |
| 23 | penalty and the incoming pre-L constants. -/ |
| 24 | def preBill (high low : Clip) (K : KernelChoices) (a d D : ℝ) (N : ℕ) := |
| 25 | d * (a * (2 * (Real.sqrt high.direct + d)) + a * Real.sqrt K.penalty + |
| 26 | 2 * (Real.sqrt low.direct + d) * macroLarge N D) + |
| 27 | 2 * low.linear * macroLarge N D |
| 28 | |
| 29 | /-- Price of a hit face (unit t²). Small coarse-input costs also here. -/ |
| 30 | def seatBill (high low : Clip) (K : KernelChoices) (a d D W : ℝ) (j : ℕ) (L : Side) := |
| 31 | d * 2 * (a * (L.val : ℝ)^2 * (Real.sqrt high.direct + d) + a * Real.sqrt K.penalty * (2 * W) + |
| 32 | (Real.sqrt low.direct + d) * macroSmall j D L W) + |
| 33 | dCost a d + 2 * low.linear * macroSmall j D L W |
| 34 | |
| 35 | section |
| 36 | variable {G : Gauge} {c f : Side} {S : StepData c f} {T : Tube G S} |
| 37 | {A : Stores S} {δ x a d W D : ℝ} {U : Config G f} {V : Config G c} {k : S.Choices} {N : ℕ} |
| 38 | |
| 39 | lemma price_at (ha : 0 ≤ a) (hd : 0 ≤ d) (hD : 0 ≤ D) (hW : 0 ≤ W) |
| 40 | (hb : 1 + N ≤ radiusB x) (htemp : temp x ≤ 2 * fiery G x S.patch.L) |
| 41 | (hh : MacroStore S G N) (hp : Stores.Plot A U k V x W) |
| 42 | (hq : ∀ p : Cell c, usable S U p.1 k → |
| 43 | toll V p ≤ fuel (S.prediction U k) V p.1 p.2 + D / (S.patch.L.val : ℝ)^2 * port S p.1 U) |
| 44 | (he : Payments δ A x U (S.prediction U k) V N) |
| 45 | (hc : Allowance a T x V) (hm : Maximum d T x V) |
| 46 | (hu : LaneCounts T.up x (fiery G x S.patch.L) T.high d 1 S.ratio.parent) |
| 47 | (hv : LaneCounts T.down x (temp x) T.low d S.patch.L.val (id : Site c → Site c)) : |
| 48 | let Q := S.prediction U k |
| 49 | let s := A.hit U Q V x |
| 50 | let t := fiery G x S.patch.L |
| 51 | T.low.linear * temp x * (∑ i ∈ A.tides V x δ, toll V i) - talll T x U Q V s ≤ |
| 52 | preBill T.high T.low S.kernel a d D N * t * |
| 53 | ((∑ i ∈ A.swell U t, toll U i) / (S.patch.L.val : ℝ)^2 + ∑ i ∈ A.aisles, wire Q V i) + |
| 54 | seatBill T.high T.low S.kernel a d D W S.patch.J S.patch.L * t^2 * s.card := by |
| 55 | intro Q s t |
| 56 | have ht : 0 ≤ t := temp_nonneg _ |
| 57 | let l : ℝ := S.patch.L.val |
| 58 | let E := picked (A.swell U t) (toll U) |
| 59 | let F := picked A.aisles (wire Q V) |
| 60 | let H := macroExcess S D E F |
| 61 | let bill := (∑ i, E i) / l^2 + ∑ i, F i |
| 62 | have hE (p) : 0 ≤ E p := picked_nonneg _ (fun p : Cell f => (show 0 ≤ toll U p from G.chord_nonneg _)) p |
| 63 | have hF (p) : 0 ≤ F p := picked_nonneg _ (fun p : Bond c => (show 0 ≤ wire Q V p from G.chord_nonneg _)) p |
| 64 | have hH (p) : 0 ≤ H p := macroExcess_nonneg _ hD hE hF p |
| 65 | let r := macroSmall S.patch.J D S.patch.L W |
| 66 | let b := macroLarge N D * bill |
| 67 | have hr : 0 ≤ r := macroSmall_nonneg _ hD _ hW |
| 68 | have hb' : ∑ p, H p ≤ b := macroExcess_total hh hD hE hF |
| 69 | have hV (p : Cell c) (hi : p.1 ∈ A.dome (3 * radiusB x)) : toll V p ≤ r*t + H p := |
| 70 | coarse_split hh hD hW hp hb p hi (hq p) |
| 71 | let u := Real.sqrt T.high.direct + d |
| 72 | let v := Real.sqrt T.low.direct + d |
| 73 | let g := Real.sqrt S.kernel.penalty |
| 74 | let seats := s ×ˢ (univ : Finset Bool) |
| 75 | let m : ℝ := s.card |
| 76 | have hs (p : Cell c) (hi : p ∈ s) : p.1 ∈ A.dome (2 * radiusB x) := |
| 77 | (mem_filter.mp (show p ∈ A.outs x from (mem_filter.mp hi).1)).2 |
| 78 | have hi (p) (hn : p ∈ seats) : tagged p ∈ A.dome (2 * radiusB x) := |
| 79 | hs _ (mem_product.mp hn).1 |
| 80 | have hf : ∑ j ∈ seats, ‖unzip (T.Φ (till x) V) (T.Xf (till x) U) j‖ ≤ |
| 81 | (seats.card : ℝ) * (a*l^2 * (u*t)) + a * (2*u) * bill := |
| 82 | fine_total U hc ha hd hu hE |
| 83 | (le_add_of_nonneg_right (sum_nonneg fun i _ => hF i)) seats hi (toll_split hp) |
| 84 | have hn : ∑ j ∈ seats, ‖unzip (T.Φ' (till x) V) (Tube.Z S Q V) j‖ ≤ |
| 85 | (seats.card : ℝ) * (a * (g * (2*W*t))) + a * g * bill := |
| 86 | noise_total Q hc ha (by positivity) hF |
| 87 | (le_add_of_nonneg_left (div_nonneg (sum_nonneg fun i _ => hE i) (sq_nonneg l))) |
| 88 | seats hi (wire_split hp hW) |
| 89 | have hl : ∑ j ∈ seats, ‖T.Xn (till x) V j‖ ≤ |
| 90 | (seats.card : ℝ) * (v * (r*t)) + 2*v*b := coarse_total hv hd (by positivity) _ hH hb' hi hV |
| 91 | have hx := workL_total U Q hm hd s hf hn hl |
| 92 | have hcast : (seats.card : ℝ) = m * 2 := by |
| 93 | unfold m seats; rw [card_product]; simp |
| 94 | rw [hcast] at hx |
| 95 | have hy : -(dCost a d * t^2) * m ≤ ∑ p ∈ s, T.workD (till x) V (temp x) p := by |
| 96 | apply le_trans _ (sum_le_sum (s := s) fun p _ => workD_ge ha hd hc hm p) |
| 97 | rw [sum_const, nsmul_eq_mul, mul_comm] |
| 98 | have hthird : ∑ p ∈ A.tides V x δ, toll V p ≤ m * (r*t) + b := by |
| 99 | apply le_trans (sum_le_sum_of_subset_of_nonneg he.pushes (fun _ _ _ => G.chord_nonneg _)) |
| 100 | apply (sum_le_sum (s := s) (fun p hh => hV p |
| 101 | (Corona.halo_mono (by omega) (Subset.refl A.place) (hs p hh)))).trans |
| 102 | rw [sum_add_distrib, sum_const, nsmul_eq_mul] |
| 103 | exact add_le_add_right |
| 104 | ((sum_le_sum_of_subset_of_nonneg (subset_univ s) (fun i _ _ => hH i)).trans hb') _ |
| 105 | have hlin := T.low.tail_pos |
| 106 | have hz := mul_le_mul (mul_le_mul_of_nonneg_left htemp hlin.le) hthird |
| 107 | (sum_nonneg fun _ _ => G.chord_nonneg _) (mul_nonneg hlin.le (show 0 ≤ 2*t by positivity)) |
| 108 | unfold talll; rw [sum_add_distrib] |
| 109 | apply (sub_le_sub hz (add_le_add hx hy)).trans_eq |
| 110 | unfold b r bill l E F preBill seatBill m u v g t Q |
| 111 | rw [picked_sum, picked_sum] |
| 112 | ring |
| 113 | end |
| 114 | |
| 115 | theorem answer : YM.Bid.E07 := by |
| 116 | intro e1 e3 e4 G P δ hδ |
| 117 | obtain ⟨N, hN⟩ := e1 P δ hδ |
| 118 | obtain ⟨a, ha, ha'⟩ := e3 P |
| 119 | obtain ⟨d, hd, hd'⟩ := e4 e3 P |
| 120 | obtain ⟨D, hD, hq⟩ := qdc G P.bind P.j |
| 121 | let C := preBill P.top.clip P.below.clip P.bind a d D N |
| 122 | have hl := P.below.clip.tail_pos |
| 123 | refine ⟨C, by unfold C preBill macroLarge; positivity, fun L W hW => ?_⟩ |
| 124 | let Z := seatBill P.top.clip P.below.clip P.bind a d D W P.j L |
| 125 | have hZ : 0 ≤ Z := by unfold Z seatBill macroSmall macroSize dCost; positivity |
| 126 | refine ⟨Z*N + 1, by positivity, ⟨?_⟩⟩ |
| 127 | filter_upwards [(hN L W hW).late, (ha' L W).late, (hd' L W).late, |
| 128 | radiusB_eventually (1 + N), temp_coarse_le G L] |
| 129 | with x hx hxa hxd hB ht |
| 130 | intro c f S he hsize T hT F A U k V hh hp |
| 131 | obtain ⟨h1, hM⟩ := hx _ _ S he hsize T hT F A U k V hh hp |
| 132 | have h2 := hxa _ _ S he hsize T hT F A U k V hh hp |
| 133 | obtain ⟨h3, h4, hm⟩ := hxd _ _ S he hsize T hT F A U k V hh hp |
| 134 | have hscore := price_at ha.le hd.le hD.le hW.le hB (by rw [he]; exact ht) hM hp |
| 135 | (fun p h => (hq _ _ S hT.knobs.symm hT.atStep.symm U V p.1 k h p.2).2) |
| 136 | h1 h2 hm (by rw [he]; exact h3) (by rw [he]; exact h4) |
| 137 | -- quotes chosen at the promised scopes |
| 138 | have hc' : preBill T.high T.low S.kernel a d D N = C := by |
| 139 | unfold C; rw [hT.high, hT.low, hT.knobs] |
| 140 | have hz' : seatBill T.high T.low S.kernel a d D W S.patch.J L = Z := by |
| 141 | unfold Z; rw [hT.high, hT.low, hT.knobs, hT.atStep] |
| 142 | rw [he, hc', hz'] at hscore |
| 143 | intro Q t b |
| 144 | let m : ℝ := (A.spend U Q V x).shares |
| 145 | have hcast : ((A.hit U Q V x).card : ℝ) ≤ N * b^4 * m := by |
| 146 | unfold b m Q; exact_mod_cast h1.covers |
| 147 | have hb : 0 ≤ b := Nat.cast_nonneg _ |
| 148 | have h : Z * t^2 * ((A.hit U Q V x).card : ℝ) ≤ (Z*N + 1)*t^2 * b^4 * m := by |
| 149 | calc |
| 150 | _ ≤ Z * t^2 * ((N : ℝ) * b^4 * m) := mul_le_mul_of_nonneg_left hcast (by positivity) |
| 151 | _ = Z * N * t^2 * b^4 * m := by ring |
| 152 | _ ≤ _ := by have H : 0 ≤ m := Nat.cast_nonneg _; gcongr; linarith |
| 153 | have hpay : T.low.linear * temp x * (∑ i ∈ A.tides V x δ, toll V i) - talll T x U Q V (A.hit U Q V x) ≤ |
| 154 | C*t*((∑ i ∈ A.swell U t, toll U i)/(L.val : ℝ)^2 + ∑ i ∈ A.aisles, wire Q V i) + |
| 155 | (Z*N + 1) * t^2 * b^4 * m := hscore.trans (add_le_add_right h _) |
| 156 | apply (sub_le_iff_le_add.mp hpay).trans_eq |
| 157 | unfold m |
| 158 | ring |
| 159 | |
| 160 | end YM.Work.E07 |