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.Circuit |
| 2 | import YM.Work.A05.Window |
| 3 | import YM.Work.B09.Shell |
| 4 | |
| 5 | /-! |
| 6 | # Issue path-label derivative bills |
| 7 | |
| 8 | PricePoint and Projection actual hit costs for 𝒢 path labels. |
| 9 | For cubic & quartic with actual β ratio at band, these costs with an |
| 10 | extra length reserve attain a size gasket before recursions. Use also |
| 11 | with posterior activation of e.g. contour price requests. Not an account |
| 12 | of the subsequent near-integral costs. This price is period independent. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Next.Scheduling |
| 17 | open Wages Lattice Corona RG RG.Supply Bid Clock Instrument Pressure Precision |
| 18 | open Filter Function |
| 19 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 20 | |
| 21 | variable {G : Gauge} |
| 22 | |
| 23 | -- Invoice independent of all Roll parameters except approved M, L, ancestry q costs. |
| 24 | def tollRate (s : Survey G) (q : Quote) (e : Exchange) (j : ℕ) (d k : ℕ) (L B : ℕ) : ℝ := |
| 25 | footprintCost s j e d L B * fund G (s.o.P j) (s.o.k j) k (s.o.A j) (q.widths.width j) |
| 26 | |
| 27 | lemma fund_pos (G : Gauge) (P k d) (a σ : ℝ) (h : 0 < σ) : 0 < Wages.fund G P d k a σ := by |
| 28 | have hs : 0 < Wages.startup G k P d := by |
| 29 | unfold Wages.startup; have ht:=lt_of_lt_of_le zero_lt_one (slot_ge G P d 0); positivity |
| 30 | unfold Wages.fund |
| 31 | apply mul_pos (mul_pos hs (Real.exp_pos _)) |
| 32 | unfold momentCost |
| 33 | let c:=grade k P d |
| 34 | have hj:= decay_summable c (σ/4) (by positivity) |
| 35 | have h:=hj.sum_le_tsum ({0}:Finset ℕ) (fun i _ => by unfold decay; positivity) |
| 36 | apply lt_of_lt_of_le _ h; simp [decay] |
| 37 | |
| 38 | private lemma tollShape (s : Survey G) (q : Quote) (e : Exchange) (j d k L B) : |
| 39 | tollRate s q e j d k L B=tollRate s q e j d k L 1*(B:ℝ)^ (4:ℕ) := by unfold tollRate footprintCost; push_cast; ring |
| 40 | |
| 41 | /-- All costs at the step relevant to testing the Atom from the input. |
| 42 | `d` a booked polynomial power in downstream cover size; any finite power |
| 43 | chosen at the stage fits. If a caller works at order or tests higher than |
| 44 | that booked, they must issue new gates. |
| 45 | -/ |
| 46 | structure Loan (s : Survey G) (q : Quote) (e : Exchange) (x y : ℝ) (d j L : ℕ) : Prop where |
| 47 | fit : let a:=s.o.A j; let σ:=q.widths.width j; a / ↑(plain.body y) ≤ σ/4 |
| 48 | lens : plain.body y ≤ 2*plain.body x |
| 49 | paths (β : ℝ) : inBand y β → ∀ k∈ Finset.Icc 3 4, |
| 50 | tollRate s q e j d k L (plain.body x)*(q.classicalCost.cap j)*β*(plain.t y)^k ≤ Real.sqrt (gap y) |
| 51 | loops (θ : ℝ) : 0 < θ → θ ≤ 1 → |
| 52 | tollRate s q e j d 2 L (plain.body x)*(2*LevelCost θ y)*(plain.t y)^ (2:ℕ) ≤ Real.sqrt (gap y) |
| 53 | |
| 54 | open Real in |
| 55 | lemma Loan.prepare (s : Survey G) (q : Quote) (e : Exchange) (c : ℝ) (d j L : ℕ) (hh : 1 ≤ L) : |
| 56 | ∀ᶠ x : ℝ in atTop, Loan s q e x (x+c) d j L := by |
| 57 | let H k B:=tollRate s q e j d k L B |
| 58 | have hL0 (k) : 0 < H k 1 := by |
| 59 | unfold H tollRate; exact mul_pos (footprintCost_pos _ _ _ _ _ _ hh zero_lt_one) (fund_pos G _ _ _ _ _ (q.widths.wp j)) |
| 60 | let C:=q.classicalCost.cap j; have hC :0<C:=lt_of_lt_of_le zero_lt_one (q.classicalCost.cp j) |
| 61 | have ha (k : ℕ) : ∀ᶠ y : ℝ in atTop, |
| 62 | H k 1*2^ (4:ℕ)*C*4*y*(plain.P y)^ (4:ℕ)*(plain.t y)^ (3:ℕ) ≤ Real.sqrt (gap y) := by |
| 63 | let Z (y : ℝ):=(plain.P y)^ (7:ℕ)*gap y ^ ((1:ℝ)/2) |
| 64 | have hx : Tendsto Z atTop (𝓝 0) := by simpa only [Z,Instrument.P,plain,Real.rpow_natCast] using light 2 (↑(7:ℕ):ℝ) ((1:ℝ)/2) (by norm_num) |
| 65 | let U:= H k 1*(2:ℝ)^ (4:ℕ)*C*4 |
| 66 | have hp:0 < U:=by have := hL0 k; unfold U; positivity |
| 67 | filter_upwards [(hx.const_mul U).eventually (ge_mem_nhds (show U*0<1 by norm_num)),eventually_gt_atTop (0:ℝ)] with y hf hy |
| 68 | have he:=gp hy |
| 69 | let p := plain.P y; let g:=gap y |
| 70 | have hg : y*g^ (2:ℕ)=1 := by unfold g gap; rw [inv_pow,Real.sq_sqrt hy.le]; field_simp |
| 71 | have hu : Z y= p^ (7:ℕ)*√g := by unfold Z; rw [Real.sqrt_eq_rpow] |
| 72 | change U*Z y ≤ 1 at hf |
| 73 | rw [hu] at hf |
| 74 | have ht :0 < √g:=Real.sqrt_pos.2 he; have hz : (√g)^ (2:ℕ)=g:=Real.sq_sqrt he.le |
| 75 | change _*y*p^ (4:ℕ)*(g*p)^ (3:ℕ) ≤ √g |
| 76 | calc |
| 77 | _ = U* p^ (7:ℕ)*(y*g^ (2:ℕ))*g := by unfold U; ring |
| 78 | _ = U*(p^(7:ℕ)*√g)*√g := by rw [hg,mul_one]; nth_rw 1 [← hz]; ring |
| 79 | _ ≤ √g := (mul_le_mul_of_nonneg_right hf ht.le).trans_eq (one_mul _) |
| 80 | have hb : ∀ᶠ y : ℝ in atTop, |
| 81 | H 2 1* (2*plain.P y)^ (4:ℕ)*(2*plain.P y)*(plain.t y)^ (2:ℕ) ≤ √(gap y) := by |
| 82 | -- take k=2 above, compare 2/(y*t*g) |
| 83 | have hh0 := (Real.tendsto_sqrt_atTop).eventually_ge_atTop 1 |
| 84 | filter_upwards [ha 2,plain.pitched,eventually_gt_atTop (0:ℝ),hh0] with y ha hp hj hh0 |
| 85 | have ht : 1 ≤ plain.P y := hp.2.2.1 |
| 86 | have hD:0 < plain.P y:= wp _ _ |
| 87 | have he := gp hj |
| 88 | apply le_trans _ ha |
| 89 | let p:=plain.P y |
| 90 | let t:=plain.t y |
| 91 | have hg : √y = y*gap y := by |
| 92 | unfold gap; have he:=Real.sqrt_pos.2 hj; field_simp; nlinarith [Real.sq_sqrt hj.le] |
| 93 | have hk : 1 ≤ C*y*gap y := by |
| 94 | have hp0:=q.classicalCost.cp j |
| 95 | calc |
| 96 | _ ≤ C*1 := by rw [mul_one]; assumption |
| 97 | _ ≤ C*(y*gap y) := mul_le_mul_of_nonneg_left (hg ▸ hh0) hC.le |
| 98 | _ = _ := by rw [mul_assoc] |
| 99 | change H 2 1*(2*p)^ (4:ℕ)*(2*p)*t^ (2:ℕ) ≤ H 2 1*2^ (4:ℕ)*C*4*y*p^ (4:ℕ)*t^ (3:ℕ) |
| 100 | have hq:0 ≤ H 2 1*2^ (4:ℕ)*p^ (4:ℕ)*p*t^(2:ℕ):= by unfold p; have := hL0 2; positivity |
| 101 | calc |
| 102 | _= 2*(H 2 1*2^ (4:ℕ)*p^ (4:ℕ)*p*t^(2:ℕ)) := by ring |
| 103 | _ ≤ (4*(C*y*gap y))*(H 2 1*2^ (4:ℕ)*p^ (4:ℕ)*p*t^(2:ℕ)) := by gcongr; linarith |
| 104 | _ = _ := by unfold t p Instrument.t; ring |
| 105 | have hx : ∀ᶠ y : ℝ in atTop,(plain.body y:ℝ) ≤ plain.P y := by |
| 106 | filter_upwards [(ceiling_cheaper 2 1 1 one_lt_two zero_lt_one).eventually (ge_mem_nhds zero_lt_one)] with y hy |
| 107 | rw [Instrument.body]; simp only [plain,pow_one] |
| 108 | have hh : (1+↑(cover y))/plain.P y≤1 := by simpa [Instrument.P,plain] using hy |
| 109 | have hv :0<plain.P y:=wp _ _ |
| 110 | change (cover y:ℝ) ≤ plain.P y; linarith [(div_le_iff₀ hv).mp hh] |
| 111 | have hk : ∀ᶠ y : ℝ in atTop,s.o.A j/↑(plain.body y) ≤ q.widths.width j/4 := by |
| 112 | have hh := (tendsto_natCast_atTop_atTop (R:=ℝ)).comp counting |
| 113 | filter_upwards [(tendsto_const_nhds (x:=s.o.A j)).div_atTop hh |>.eventually |
| 114 | (ge_mem_nhds (show 0 < q.widths.width j/4 from div_pos (q.widths.wp j) (by norm_num)))] with y hy |
| 115 | simpa [Instrument.body,plain] using hy |
| 116 | filter_upwards [advance (hx.and ((ha 3).and ((ha 4).and (hb.and ((plain.pitched.and hk)) )))), |
| 117 | just_near c,plain.support 2 one_lt_two] with x hp hN hP |
| 118 | let y:=x+c |
| 119 | obtain ⟨hh0,hx3,hx4,hb,⟨hm,hs0,ht0,hy⟩,hE0⟩:=hp y hN |
| 120 | obtain ⟨hBx,-⟩:=hp x (Clock.same x) |
| 121 | have hp := hP _ _ (Clock.same x) hN |
| 122 | have hc := hp.mass.2 |
| 123 | have he : (plain.body x:ℝ) ≤ 2*plain.P y := le_trans hBx hp.peek.1 |
| 124 | have ht : 0<plain.t y := mul_pos (gp (by linarith)) (wp _ _) |
| 125 | have hE (k) : tollRate s q e j d k L (plain.body x) ≤ H k 1*(2*plain.P y)^ (4:ℕ) := by |
| 126 | rw [tollShape]; gcongr |
| 127 | exact (hL0 k).le |
| 128 | have hEO k : 0 ≤ H k 1*(2*plain.P y)^ (4:ℕ) := mul_nonneg (hL0 k).le (by positivity) |
| 129 | refine ⟨hE0,?_,fun β hB k hk => ?_,fun θ hθ hθ' => ?_⟩ |
| 130 | · dsimp only at hc |
| 131 | exact_mod_cast hc |
| 132 | · obtain ⟨h1,h2⟩:=Finset.mem_Icc.mp hk |
| 133 | have hu : β ≤ 4*y := hB.2 |
| 134 | have hz : 0 ≤ β := le_trans (show 0 ≤ y/4 by linarith) hB.1 |
| 135 | have ha : plain.t y^k ≤ plain.t y^ (3:ℕ) := pow_le_pow_of_le_one ht.le hy h1 |
| 136 | have hR : (H k 1* (2*plain.P y)^ (4:ℕ))*C*(4*y)*plain.t y^ (3:ℕ) ≤ Real.sqrt (gap y) := by |
| 137 | rw [show (H k 1* (2*plain.P y)^ (4:ℕ))*C*(4*y)*plain.t y^ (3:ℕ)=H k 1*2^ (4:ℕ)*C*4*y*(plain.P y)^ (4:ℕ)*(plain.t y)^ (3:ℕ) by ring] |
| 138 | have he : k=3∨ k=4 := by omega |
| 139 | rcases he with rfl|rfl |
| 140 | · exact hx3 |
| 141 | exact hx4 |
| 142 | refine le_trans ?_ hR |
| 143 | apply mul_le_mul _ ha (pow_nonneg ht.le _) _ |
| 144 | · exact mul_le_mul (mul_le_mul_of_nonneg_right (hE k) hC.le) hu hz (mul_nonneg (hEO k) hC.le) |
| 145 | exact mul_nonneg (mul_nonneg (hEO k) hC.le) (by linarith) |
| 146 | have ha : LevelCost θ y ≤ plain.P y := (Real.rpow_le_rpow_of_exponent_le ht0 hθ').trans_eq (Real.rpow_one _) |
| 147 | have hrP : 0 < LevelCost θ y:=Real.rpow_pos_of_pos (wp _ _) _ |
| 148 | apply le_trans _ hb; exact mul_le_mul_of_nonneg_right |
| 149 | (mul_le_mul (hE 2) (mul_le_mul_of_nonneg_left ha (by norm_num)) (by positivity) (hEO 2)) (sq_nonneg _) |
| 150 | variable {s : Survey G} {K : MapPrices} {q : Quote} {e : ℕ → ℕ → Exchange} {v : ℕ → ℕ} |
| 151 | variable {D : Rolls (s.paper q v)} {Θ : Protection D} |
| 152 | |
| 153 | /-- Addition to W issuance; preserves all other charges exactly. Estimate |
| 154 | powers d of cover for receiving CRT at the current level chosen beforehand, |
| 155 | not at R. -/ |
| 156 | def Routed (e : ℕ → ℕ → Exchange) (d : ℕ → ℕ) (V : Delays Θ) := ∀ j i, Adj j i → |
| 157 | ∀ x ≥ V.betaEntry j, Loan s q (e j i) x (x+G.slopeConstant*Real.log (D.L j).val) (d j) j (D.L j).val |
| 158 | |
| 159 | lemma Routed.ready (e) (d) (V : Delays Θ) : ∃ W, Boost V W ∧ Routed e d W := by |
| 160 | have hx j i := Loan.prepare s q (e j i) (G.slopeConstant*Real.log (D.L j).val) (d j) j _ (D.L j).property |
| 161 | choose x hx using fun i => eventually_atTop.mp ((hx i i).and (hx i (i-1))) |
| 162 | let W : Delays Θ := { V with betaEntry := fun i => max (V.betaEntry i) (x i) } |
| 163 | refine ⟨W, ⟨fun i => le_max_left ..,le_rfl,le_rfl,le_rfl⟩,fun j i hg u hh => ?_⟩ |
| 164 | have ht := hx j u (le_trans (le_max_right ..) hh) |
| 165 | rcases hg.cases_back with rfl|rfl |
| 166 | · exact ht.1 |
| 167 | exact ht.2 |
| 168 | |
| 169 | namespace Deployment |
| 170 | variable {W : Delays Θ} {Y : Bar W} {I : Wait Y} {a : Levels G} {d : ℕ → ℕ} |
| 171 | |
| 172 | def coverage {G : Gauge} {k : ℕ} {c f : Side} (s : Survey G) (C : Exchange) (q : Quote) (j d) (H : Ratio c f) (P B : BudgetPoint) |
| 173 | (T : ℕ → Atom G k) (weight δ : ℝ) := |
| 174 | let σ:= (s.melt q j).width |
| 175 | -- same d-cover cost as E/K; horizon assertion does not consume unknown true length moments |
| 176 | let X (i : Site f × ℕ) := (T i.2).footprint i.1 |
| 177 | -- certificate through true ORDER. Includes arbitrary path derivative moments all labels jointly |
| 178 | (∀ (o : Site f) i,P.supBounds o (X (o,i)) (fun U => (T i).unmasked U o) (price P (T i))) ∧ |
| 179 | ∀ S : Site f × ℕ → Support c, (∀ i,Footage H C.radius B.B (X i) (S i)) → ∀ p ∈ Set.Icc 0 C.extra, ∀ y : Site c, |
| 180 | SumBudget (fun i => weight * (if y∈S i then |
| 181 | Real.exp ((B.supportExponent + p)*coverNumber B.B (S i)+foundation s C j/4*coverNumber P.B (X i))* |
| 182 | ((coverNumber P.B (X i):ℝ)+1)^d*Wages.toll P σ (T i.2) else 0)) δ |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | end Deployment |
| 188 | end YM.Next.Scheduling |