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.OPE.Log.Plans |
| 2 | import YM.OPE.Prices.Space |
| 3 | import YM.OPE.Log.Wallet |
| 4 | /-! # Register short-coast licenses -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.OPE.Log |
| 8 | open Function Set Filter Lattice RG Wilson MergeProof Accent Ribbons Source Overlay Bid |
| 9 | open PhysicalNext.Repeat.Legato PhysicalNext.Repeat.Mallow Bandage ManyCopies |
| 10 | open scoped Topology BigOperators |
| 11 | set_option quotPrecheck false |
| 12 | variable {G:Gauge}{C:Family G}{ι I:Type*}{l: Filter ι}{T x:ι→ℝ}{a:ℝ} |
| 13 | {m k:ι→ℕ} {W r D} (L : LogPackage C W r D)(hG : G.Simple) |
| 14 | local notation "Y"=> C.path.levels |
| 15 | local notation "S'"=> C.path.levels.budget |
| 16 | local notation "Γ"=> C.path.levels.clock |
| 17 | local notation "β"=> C.path.levels.clock.hatBeta |
| 18 | local notation "δ"=> renal C.path.levels |
| 19 | local notation "η"=> near C.path.levels |
| 20 | variable (hT:Tendsto T l atTop) |
| 21 | include hT |
| 22 | lemma scaleWallet (h:Height C.S l T m a) : Wallet l T (fun i=> C.S.scale (m i)):= by |
| 23 | apply ((Wallet.from_tends hT h.pace).mul (Wallet.id hT)).congr |
| 24 | filter_upwards [hT.eventually_gt_atTop 0] with i hi; field_simp |
| 25 | lemma betaStamp (h:Height C.S l T m a): ValueStamp l T (fun i=> C.path.levels.clock.hatBeta (m i)):= |
| 26 | ⟨Eventually.of_forall (fun _=>zero_lt_one.trans ((Y).fits.delayed _)), |
| 27 | (Wallet.const hT _).add hT ((Wallet.const hT _).mul (scaleWallet hT h)), |
| 28 | ((ValueStamp.const hT one_pos).down).invLe (Eventually.of_forall (fun _ => one_pos)) (Eventually.of_forall (fun _=> ((Y).fits.delayed _).le))⟩ |
| 29 | include L in |
| 30 | lemma blockWallet (h:Height C.S l T m a): ValueStamp l T (fun i=> (C.path.S.block (m i)).val):= |
| 31 | ⟨Eventually.of_forall fun i=> zero_lt_two.trans_le (ManyCopies.size_enough C.path (m i)), |
| 32 | (betaStamp hT h).up.of_le (Eventually.of_forall fun i=> Nat.cast_nonneg _) (Eventually.of_forall fun i=> L.money.mesh _), (ValueStamp.const hT one_pos).down.invLe (Eventually.of_forall fun _=> one_pos) (Eventually.of_forall (fun _=> one_le_two.trans (size_enough C.path _)))⟩ |
| 33 | lemma coverWallet (h:Height C.S l T m a) : Wallet l T (fun i=> ((C.path.levels.budget (m i)).B:ℝ)):=by |
| 34 | apply (((betaStamp hT h).up.pow hT 2).add hT (Wallet.const hT (1:ℝ))).of_le (Eventually.of_forall fun i=> Nat.cast_nonneg _) |
| 35 | refine Eventually.of_forall fun i=>?_ ; let u:= β (m i); have hu:1 < u:= (Y).fits.delayed _; refine le_trans (Nat.ceil_lt_add_one (sq_nonneg (Real.log u))|>.le) (add_le_add_left ?_ 1); exact pow_le_pow_left₀ (Real.log_nonneg hu.le) (Real.log_le_self (by linarith only [hu])) _ |
| 36 | include L in |
| 37 | lemma columnsWallet (h:Height C.S l T m a): Wallet l T (fun i=> (C.path.levels.params (m i)).columns):= |
| 38 | (betaStamp hT h).up.of_le (Eventually.of_forall fun _=> zero_le_one.trans ( (Y).params _).columns_ge) (Eventually.of_forall fun i=> L.money.present _) |
| 39 | omit hT in |
| 40 | lemma price_paid (Q:Levels G)(i:ℕ): renal Q i = (Q.clock.hatBeta (i+1)^2)⁻¹:= by unfold renal probe; rw [Real.rpow_neg (zero_le_one.trans (Q.fits.delayed _).le),Real.rpow_ofNat] |
| 41 | lemma renalStamp (h:Height C.S l T m a): ValueStamp l T (fun i => renal C.path.levels (m i)):= by |
| 42 | simp_rw [price_paid]; exact ((betaStamp hT (h.step (Y).fits.mesh)).pow hT 2).inv |
| 43 | lemma nearStamp (h: Height C.S l T m a) : ValueStamp l T (fun i=> near C.path.levels (m i)):= (betaStamp hT (h.step (Y).fits.mesh)).inv |
| 44 | lemma flyStamp (h: Height C.S l T m a)(d:ℕ) : ValueStamp l T (fun i=> fly C.path.levels d (m i)):= ((betaStamp hT h).pow hT (MergeProof.winter G d)).inv |
| 45 | |
| 46 | omit hT |
| 47 | local notation "L'"=> LogPackage C W r D |
| 48 | local notation "i'"=> (Nat.ceil (256*Real.log (C.path.levels.clock.hatBeta (_+1)))) -- leave? |
| 49 | include L |
| 50 | lemma shortened_choice i : ∃ w,8 ≤ w ∧ 1 ≤ renal C.path.levels i*mintK w:=by |
| 51 | have he:= L.system.costs.stay.mint i (Nat.zero_le _); have hx:η i ≤ 1:= inv_le_one_of_one_le₀ ((Y).fits.delayed _).le |
| 52 | exact ⟨_,L.system.costs.stay.support i (Nat.zero_le _), he.trans (mul_le_mul_of_nonneg_right (mul_le_of_le_one_right ((L.system.costs.stay.water i (Nat.zero_le _)).2.le) hx) (Real.exp_pos _).le)⟩ |
| 53 | open scoped Classical |
| 54 | -- canonical license cut, monotone in β |
| 55 | def short (i:ℕ) := Nat.find (shortened_choice L i) |
| 56 | lemma short_affords (i:ℕ): 8 ≤ short L i ∧ short L i ≤ (C.path.levels.budget i).B ∧ 1 ≤ renal C.path.levels i*mintK (short L i) :=by |
| 57 | classical |
| 58 | have he:= Nat.find_spec (shortened_choice L i); refine ⟨he.1,?_,he.2⟩; unfold short; refine Nat.find_min' _ ⟨L.system.costs.stay.support i (Nat.zero_le _),?_⟩ |
| 59 | have he:= L.system.costs.stay.mint i (Nat.zero_le _); have hx: η i ≤ 1:= inv_le_one_of_one_le₀ ((Y).fits.delayed _).le |
| 60 | exact he.trans (mul_le_mul_of_nonneg_right (mul_le_of_le_one_right ( (L.system.costs.stay.water i (Nat.zero_le _)).2.le) hx) (Real.exp_pos _).le) |
| 61 | include hG in |
| 62 | lemma renalAnti : Antitone (renal C.path.levels) :=by |
| 63 | intro i j hi; rw [price_paid,price_paid]; let p:= G.slopeConstant; have hq:= Gauge.slopeConstant_pos hG |
| 64 | have he: β (i+1) ≤ β (j+1):=add_le_add_right (mul_le_mul_of_nonneg_left ((scale_mono _).monotone (Nat.succ_le_succ hi)) hq.le) _ -- check order |
| 65 | exact inv_anti₀ (pow_pos (zero_lt_one.trans ((Y).fits.delayed _)) _) (pow_le_pow_left₀ (zero_le_one.trans ((Y).fits.delayed _).le) he _) |
| 66 | omit hG |
| 67 | lemma short_mono (hG:G.Simple): Monotone (short L):= fun i j hij=> Nat.find_min' _ ⟨(short_affords L j).1,(short_affords L j).2.2.trans (mul_le_mul_of_nonneg_right (renalAnti L hG hij) (Real.exp_pos _).le)⟩ |
| 68 | lemma short_upper i : (short L i:ℝ) ≤ 256*Real.log (C.path.levels.clock.hatBeta (i+1))+9:=by |
| 69 | classical |
| 70 | let x:=β (i+1); let u:=256*Real.log x; let y:=Nat.ceil u |
| 71 | have hv:1<x:= (Y).fits.delayed _; have hp:0 ≤ u:= mul_nonneg (by norm_num) (Real.log_nonneg hv.le) |
| 72 | have hu:u ≤ y:= Nat.le_ceil _; have hy:x^2 ≤ mintK (y+8):= by |
| 73 | unfold mintK; calc |
| 74 | x^2 = Real.exp ((↑(2:ℕ):ℝ)*Real.log x):= by rw [Real.exp_nat_mul,Real.exp_log (by linarith only [hv])] |
| 75 | _ ≤ _:=by apply Real.exp_monotone; push_cast; unfold u at hu; linarith only [hu] |
| 76 | have hf : short L i ≤ y+8:=Nat.find_min' _ ⟨by omega,by rw [price_paid,mul_comm, ← div_eq_mul_inv]; exact (one_le_div (pow_pos (zero_lt_one.trans hv) _)).2 hy⟩ |
| 77 | have hg : (short L i:ℝ) ≤ (y+8:ℕ):= Nat.cast_le.mpr hf; push_cast at hg; change (short L i:ℝ) ≤ u+9; linarith only [hg, show (y:ℝ) < u+1 from Nat.ceil_lt_add_one hp] |
| 78 | |
| 79 | def solvency (H i:ℕ) := (license C.path δ H (short L i+2) i)*renal C.path.levels i |
| 80 | lemma solvency_pos (i:ℕ){H:ℕ} (hp:0<H):0 < solvency L H i:= mul_pos (license_pos _ _ (L.system.costs.stay.water _ (Nat.zero_le i)|>.2) hp) (L.system.costs.stay.water _ (Nat.zero_le i)|>.2) |
| 81 | lemma renal_le (i:ℕ):renal C.path.levels i≤1:= by rw [price_paid]; exact inv_le_one_of_one_le₀ (one_le_pow₀ ((Y).fits.delayed (i+1)|>.le)) |
| 82 | lemma solvency_le (i:ℕ){H:ℕ}(h:0<H):solvency L H i ≤ 1:=by |
| 83 | have hU:0<δ i:=(L.system.costs.stay.water i (Nat.zero_le _)).2; have ht:=renal_le L i; let x:=δ i; have hx:1 ≤ (H:ℝ):=(by exact_mod_cast h); let p:=license C.path δ H (short L i+2) i |
| 84 | have hp : p≤1:= by unfold p license; exact (div_le_self (by positivity) (Real.one_le_exp (mul_nonneg (add_nonneg (S' i).exponent_pos.le (by norm_num)) (Nat.cast_nonneg _)))).trans ((mul_le_of_le_one_left hU.le ((div_le_self hU.le hx).trans ht)).trans ht) |
| 85 | exact (mul_le_of_le_one_left hU.le hp).trans ht |
| 86 | lemma solvency_anti (H:ℕ)(h:0<H)(hG:G.Simple): Antitone (solvency L H):= by |
| 87 | intro i j hi; have hr:= renalAnti L hG hi; have hU(i):0≤δ i:= (L.system.costs.stay.water i (Nat.zero_le _)|>.2).le; have hs: (short L i+2:ℕ) ≤ short L j+2:= Nat.add_le_add_right (short_mono L hG hi) _ |
| 88 | unfold solvency license; simp_rw [show ∀ i,(S' i).supportExponent = (100:ℝ) from L.support] |
| 89 | have hf:=hU i; have hf':=hU j; gcongr |
| 90 | |
| 91 | include hT |
| 92 | lemma solvency_stamp {H:ℕ} (h:Height C.S l T k a)(hp:0<H): ValueStamp l T (fun i=> solvency L H (k i)):= by |
| 93 | let p i:=short L (k i)+2; let f i:= Real.exp ((100+(1/2:ℝ))* p i); let x i:=β (k i +1) |
| 94 | have hx:ValueStamp l T x:= betaStamp hT (h.step (Y).fits.mesh) |
| 95 | have he(i): Real.log (f i) ≤ (100+(1/2:ℝ))*11+ 25728*Real.log (x i):= by |
| 96 | have hh : (p i:ℝ) ≤ 256*Real.log (x i)+11:=by unfold p; push_cast; linarith only [show (short L (k i):ℝ) ≤ 256*Real.log (x i)+9 from short_upper L (k i)] |
| 97 | unfold f; rw [Real.log_exp]; linarith only [hh] |
| 98 | have hf : ValueStamp l T f:=by |
| 99 | refine ⟨Eventually.of_forall fun _=> Real.exp_pos _, ?_,(ValueStamp.const hT one_pos).down.invLe (Eventually.of_forall fun _=>one_pos) (Eventually.of_forall fun i=> Real.one_le_exp (mul_nonneg (by norm_num) (Nat.cast_nonneg _)))⟩ |
| 100 | apply ((Wallet.const hT (Real.exp ((100+(1/2:ℝ))*11))).mul (hx.up.pow hT 25728)).of_le' (Eventually.of_forall fun _=> Real.exp_pos _) -- nat large simpl? |
| 101 | filter_upwards [hx.profit] with i hi; let y:= Real.exp ((100+(1/2:ℝ))*11); have hz: y*x i^25728=Real.exp ((100+(1/2:ℝ))*11+25728*Real.log (x i)):= by rw [Real.exp_add,show (25728:ℝ)= (↑(25728:ℕ):ℝ) from (by norm_num),Real.exp_nat_mul,Real.exp_log hi] |
| 102 | rw [show Real.exp _ * x i^25728= _ from hz]; exact Real.le_exp_of_log_le (he i) |
| 103 | have hd:=renalStamp hT h; unfold solvency license; simp_rw [show ∀ i,(S' i).supportExponent=(100:ℝ) from L.support]; exact ((((hd.div (ValueStamp.const hT (Nat.cast_pos.mpr hp))).mul hd).div hf).mul hd) |
| 104 | end YM.OPE.Log |