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.Melt |
| 2 | import YM.Shift.Osc |
| 3 | import YM.Work.A15 |
| 4 | import YM.Work.B04 |
| 5 | |
| 6 | /-! |
| 7 | # Pre-L floors |
| 8 | |
| 9 | Enforce ALL gates at both adjacent transitions. Include particular repeated |
| 10 | costs. `.shrink`: pay the pre-L coefficient C_J/L of the inherited E at that |
| 11 | transition with a further multiplier C_J (choose a common upper bound here). |
| 12 | `.exchange`: support exponents incl extra and lowest pre-L operation prices, |
| 13 | all halo sites, no assumption their number bounded. `.cone`: the separate |
| 14 | support damping C_J L^d exp(-c_J L^(1/3)) in singleton transfer. Error terms |
| 15 | paid AFTER L. The `.ladder` exponent covers products made e.g. at the |
| 16 | weak-comparison stages. Any other pre-L demands may increase the floors. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Next.Scheduling |
| 21 | open Filter RG RG.Supply Bid Precision Function Set Lattice |
| 22 | open scoped Topology |
| 23 | |
| 24 | /-- Choose these after melt. One fee per (`j` fine→ `i` coarse). |
| 25 | `weakHeight` max b in p^b for work stretches; `cost`, `multiplicity` may |
| 26 | include pre-L inputs to these stretches depending on FINAL adjacent profile |
| 27 | parameters. Never estimate a cost repeated an unbounded number of times on a |
| 28 | plateau by a post-L one-time fee. `guard` is lowest additional *incoming* A to |
| 29 | plan to work at IF working at multiple support exponents. -/ |
| 30 | structure Exchange where |
| 31 | radius : ℕ |
| 32 | extra : ℝ |
| 33 | guard : ℝ |
| 34 | cost : ℝ |
| 35 | sep : ℝ |
| 36 | weakHeight : ℝ |
| 37 | multiplicity : ℝ |
| 38 | ok : 0 ≤ extra ∧ 0 < guard ∧ 1 ≤ cost ∧ 0 < sep ∧ 0 ≤ weakHeight ∧ 0 ≤ multiplicity |
| 39 | |
| 40 | /-- `radius` includes all pre-L halo costs relative to B (e.g. enlarge Fproj |
| 41 | to cover flag reads); not hiding dependence on numerical L here. -/ |
| 42 | def Exchange.foot (e : Exchange) := ((e.radius+6)+(e.radius+6)+1)^4 |
| 43 | |
| 44 | /-- Uses `j` for an upper bound on D. -/ |
| 45 | def coneFee (L C c : ℝ) (j : ℕ) := C/L+C*L^j*Real.exp (-c*L^((1:ℝ)/3)) |
| 46 | |
| 47 | variable {G : Gauge} |
| 48 | structure Buy (S : Survey G) (q : Quote) (e : Exchange) (j i : ℕ) (L : ℝ) : Prop where |
| 49 | block : 3 ≤ L |
| 50 | exchange : 10*(e.foot:ℝ)*(S.o.A j+e.extra) / L ≤ min (S.o.A j) e.guard/4 |
| 51 | phase : q.widths.loads j i / L ≤ q.widths.width j / 2 |
| 52 | path : (q.classicalCost.cap j)/L^ (2:ℕ) ≤ 1/8 |
| 53 | loop : q.finish.loop j i/L^ (2:ℕ) ≤ 1/4 |
| 54 | shrink : e.cost^ (2:ℕ)/L ≤ 1/16 |
| 55 | cone : coneFee L e.cost e.sep j ≤ (1/2:ℝ)/L^((2:ℝ)/5) |
| 56 | ladder : ((j:ℝ)+1) * (e.weakHeight+4) * e.multiplicity * Real.log e.cost ≤ Real.log L |
| 57 | |
| 58 | private lemma cone_cheap (C c : ℝ) (h : 0 < c) (j : ℕ) : |
| 59 | ∀ᶠ L : ℝ in atTop, coneFee L C c j ≤ (1/2:ℝ)/L^((2:ℝ)/5) := by |
| 60 | let p : ℝ := 2/5 |
| 61 | let a : ℝ := 1/3 |
| 62 | have ha : 0 < a := by norm_num [a] |
| 63 | have hl : 0 < 1-p := by norm_num [p] |
| 64 | have h1 := ((tendsto_const_nhds (x:=C)).div_atTop (tendsto_rpow_atTop hl)).eventually |
| 65 | (ge_mem_nhds (show 0 < (1/4:ℝ) by norm_num)) |
| 66 | have H := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (((j:ℝ)+p)/a) c h).comp (tendsto_rpow_atTop ha) |
| 67 | have h2 := (H.const_mul C).eventually |
| 68 | (ge_mem_nhds (show C*0 < (1/4:ℝ) by norm_num)) |
| 69 | filter_upwards [h1,h2,eventually_gt_atTop (0:ℝ)] with L h1 h2 hL |
| 70 | change C/L^(1-p) ≤ 1/4 at h1 |
| 71 | change C*((L^a)^(((j:ℝ)+p)/a)*Real.exp _) ≤ 1/4 at h2 |
| 72 | rw [← Real.rpow_mul hL.le, mul_div_cancel₀ _ ha.ne', Real.rpow_add hL, Real.rpow_natCast] at h2 |
| 73 | rw [Real.rpow_sub hL, Real.rpow_one, div_div_eq_mul_div] at h1 |
| 74 | apply (le_div_iff₀ (Real.rpow_pos_of_pos hL p)).2 |
| 75 | change (C/L+C*L^j*Real.exp (-c*L^a))*L^p ≤ 1/2 |
| 76 | calc |
| 77 | _ = C*L^p/L+C*(L^j*L^p*Real.exp (-c*L^a)) := by ring |
| 78 | _ ≤ _ := by dsimp only at h2; linarith |
| 79 | |
| 80 | lemma Buy.afford (S : Survey G) (q : Quote) (e : Exchange) (j i : ℕ) : ∀ᶠ L in atTop, Buy S q e j i L := by |
| 81 | have hh (x y : ℝ) (h : 0 < y) : ∀ᶠ L : ℝ in atTop, x/L ≤ y := |
| 82 | ((tendsto_const_nhds (x:=x)).div_atTop tendsto_id).eventually (ge_mem_nhds h) |
| 83 | have hQ (x y : ℝ) (h : 0 < y) : ∀ᶠ L : ℝ in atTop, x/L^ (2:ℕ) ≤ y := |
| 84 | (tendsto_pow_atTop (by norm_num : (2:ℕ)≠0)).eventually (hh x y h) |
| 85 | have hr := e.ok.2.1 |
| 86 | filter_upwards [eventually_ge_atTop (3:ℝ), |
| 87 | hh (10*(e.foot:ℝ)*(S.o.A j+e.extra)) _ (div_pos (lt_min (S.o.pos j) hr) (by norm_num : (4:ℝ)>0)), |
| 88 | hh (q.widths.loads j i) _ (show 0 < q.widths.width j / 2 from half_pos (q.widths.wp _)), |
| 89 | hQ (q.classicalCost.cap j) _ (by norm_num : 0 < (1/8:ℝ)), |
| 90 | hQ (q.finish.loop j i) _ (by norm_num : 0 < (1/4:ℝ)), |
| 91 | hh (e.cost^ (2:ℕ)) _ (by norm_num : 0 < (1/16:ℝ)),cone_cheap e.cost e.sep e.ok.2.2.2.1 j, |
| 92 | Real.tendsto_log_atTop.eventually_ge_atTop (((j:ℝ)+1)*(e.weakHeight+4)*e.multiplicity*Real.log e.cost)] with L h1 h2 h3 h4 h5 h6 h7 h8 |
| 93 | exact ⟨h1,h2,h3,h4,h5,h6,h7,h8⟩ |
| 94 | |
| 95 | /-- Reach of a conference at C3 prices pinned pre-L. -/ |
| 96 | structure Prepaid (S : Survey G) (K : MapPrices) (q : Quote) (e : ℕ → ℕ → Exchange) (v : ℕ → ℕ) : Prop where |
| 97 | pins : Pinned (S.paper q v) S.X K |
| 98 | higher : S.floorL ≤ v |
| 99 | each (D : Rolls (S.paper q v)) (j i : ℕ) : Adj j i → Buy S q (e j i) j i (D.L j).val |
| 100 | cash (D : Rolls (S.paper q v)) : ∀ a : Levels G, a.clock.stage=S.melt q → a.clock.factor=D.L → |
| 101 | Bank q.finish.W a ∧ roomCost a q.finish.W |
| 102 | |
| 103 | lemma Prepaid.floors (S : Survey G) (K : MapPrices) (h : Pinned S.sheet S.X K) (q : Quote) (e : ℕ → ℕ → Exchange) : |
| 104 | ∃ f : ℕ → ℕ, ∀ v ≥ f, Prepaid S K q e v := by |
| 105 | have hx := tendsto_natCast_atTop_atTop (R:=ℝ) |
| 106 | choose l hl using fun j => eventually_atTop.1 (hx.eventually <| (Buy.afford S q (e j j) j j).and (Buy.afford S q (e j (j-1)) j (j-1))) |
| 107 | obtain ⟨k,hk⟩ := Bid.buffer q.finish.W (S.paper q S.floorL) (fun j => S.ahead q j) |
| 108 | refine ⟨fun i ↦ max (l i) (max (S.floorL i) (k i)),fun v hv => ⟨(h.later (S.forecast q v)), |
| 109 | fun i => le_trans (le_max_of_le_right (le_max_left ..)) (hv i),?_,?_⟩⟩ |
| 110 | · intro D j i he |
| 111 | obtain ⟨h1,h2⟩:=hl _ _ ((le_max_left ..).trans ((hv j).trans (D.large j).need)) |
| 112 | rcases he.cases_back with h|h <;> subst i |
| 113 | · exact h1 |
| 114 | exact h2 |
| 115 | exact fun D a h1 h2 => hk v (fun i => (le_max_of_le_right (le_max_right ..)).trans (hv i)) D a h2 h1 |
| 116 | |
| 117 | open Pressure Pressure.Testing |
| 118 | |
| 119 | /-- Extra energy prescription. Keep the actual response κ explicit: bids |
| 120 | made AFTER this (post-L) may depend on it. `floorBeta` measures entrance in |
| 121 | x = coarse hat-coupling β̂. These data (issued pre any calendar) apply on any |
| 122 | depth and period via the indicated Teller. -/ |
| 123 | structure Radios {P : Sheet G} (K : MapPrices) (D : Rolls P) where |
| 124 | W : ℕ → ℕ → ℝ |
| 125 | strength : ℕ → ℕ → ℝ |
| 126 | floorBeta : ℕ → ℕ → ℝ |
| 127 | station j i : 0 < W j i |
| 128 | sound j i : 0 < strength j i |
| 129 | reaches j i : Adj j i → P.first ≤ i → ∀ b ≥ floorBeta j i, |
| 130 | Teller.live (query P K j i) (D.L j) (W j i) (fun S T _ A x U k V => |
| 131 | strength j i*(fiery G x (D.L j))^2*A.shares ≤ A.assessed T x U (S.prediction U k) V) b |
| 132 | |
| 133 | def PreGrant (P : Sheet G) (K : MapPrices) := ∀ D : Rolls P, ∀ m : ℕ → ℕ → ℝ, |
| 134 | ∃ R : Radios K D, ∀ j i, m j i ≤ R.W j i |
| 135 | |
| 136 | /-- The extra fees `m` on W can use different post-L prices at EVERY stage, |
| 137 | not bounded uniformly over the schedule. -/ |
| 138 | lemma PreGrant.joint (P : Sheet G) (K : MapPrices) (A : ∀ j i, Teller.Grants (query P K j i)) : |
| 139 | ∃ f : ℕ → ℕ, ∀ v ≥ f, PreGrant { P with floorL := v } K := by |
| 140 | obtain ⟨k,hk⟩ := pricing_order P K A |
| 141 | refine ⟨k,fun v hv D m => ?_⟩ |
| 142 | let p' : Sheet G := { P with floorL := v } |
| 143 | -- Auxiliary theta and delay ONLY to read the commission; not constraining |
| 144 | -- choices of PostCost or theta at these L. |
| 145 | obtain ⟨T,-⟩ := Protection.exists_margin D (fun _ => 1) (fun _ => zero_lt_one) |
| 146 | let d : Delays T := ⟨fun _ => 0,fun _ _ => 0,fun _ => 0,fun _ => 0⟩ |
| 147 | have hr (j i : ℕ) : ∃ w μ x : ℝ, m j i ≤ w ∧ 0 < w ∧ 0 < μ ∧ ∀ (h : Adj j i) (_ : P.first ≤ i), ∀ b ≥ x, |
| 148 | Teller.live (query p' K j i) (D.L j) w (fun S T _ A x U k V => |
| 149 | μ*(fiery G x (D.L j))^2*A.shares ≤ A.assessed T x U (S.prediction U k) V) b := by |
| 150 | let y := max 1 (m j i) |
| 151 | have hp : 0 < y := lt_of_lt_of_le zero_lt_one (le_max_left ..) |
| 152 | by_cases h : Adj j i ∧ P.first ≤ i |
| 153 | · obtain ⟨Y,-,-,-,-,F,g,hF⟩ := hk v hv D y hp.le T d |
| 154 | obtain ⟨hw,μ,hμ,H⟩ := g.receipts i j h.1.1 h.1.2 h.2 |
| 155 | exact ⟨F j i,μ,_,(le_max_right ..).trans (hF _ _),hw,hμ,fun _ _ => H⟩ |
| 156 | exact ⟨y,1,0,le_max_right ..,hp,zero_lt_one,fun u a => (h ⟨u,a⟩).elim⟩ |
| 157 | choose w u x hh hw hu he using hr |
| 158 | exact ⟨⟨w,u,x,hw,hu,he⟩,hh⟩ |
| 159 | |
| 160 | /-- Get K witnesses first. No assumption of universal Energy grant unless |
| 161 | actually requesting this extra pair of floors also. Usable with |
| 162 | `Integrated.pressure_grants` given EBare or specialized to just these queries. -/ |
| 163 | theorem before (S : Survey G) : ∃ K : MapPrices, ∀ (q : Quote) (e : ℕ → ℕ → Exchange), |
| 164 | (∃ f : ℕ → ℕ, ∀ v ≥ f, Prepaid S K q e v) ∧ |
| 165 | ((∀ i j, Teller.Grants (query (S.paper q S.floorL) K i j)) → |
| 166 | ∃ f : ℕ → ℕ, ∀ v ≥ f, Prepaid S K q e v ∧ PreGrant (S.paper q v) K) := by |
| 167 | obtain ⟨K,hK⟩:=commit S.sheet S.X |
| 168 | refine ⟨K,fun q e => ?_⟩ |
| 169 | obtain ⟨f,hf⟩:=Prepaid.floors S K hK q e |
| 170 | refine ⟨⟨f,hf⟩,fun ha => ?_⟩ |
| 171 | obtain ⟨l,hl⟩:=PreGrant.joint (S.paper q S.floorL) K ha |
| 172 | exact ⟨fun i => max (f i) (l i),fun v hv => ⟨hf v (fun i => (le_max_left ..).trans (hv i)),hl v (fun i => (le_max_right ..).trans (hv i))⟩⟩ |
| 173 | end YM.Next.Scheduling |