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.Push.COMMON_WITNESSES.GridMerge |
| 2 | import YM.Push.COMMON_WITNESSES.Servings |
| 3 | |
| 4 | /-! |
| 5 | # Buying Grill on successive orders using only single-field comparison work |
| 6 | |
| 7 | This is not a proof that the comparison bounds are attainable. |
| 8 | |
| 9 | It's a |
| 10 | sufficient mechanism THROUGH the common-witness transport. |
| 11 | |
| 12 | Note h is chosen |
| 13 | arbitrarily far **before n**, with respect to asks of later orders, and need |
| 14 | one quantitative bound for all these repeats on one estimate. |
| 15 | |
| 16 | The primary |
| 17 | budgets here are real prerequisites; derive them (at the same centred grid |
| 18 | h) as soon as reaching Base via `center`. |
| 19 | |
| 20 | It would be |
| 21 | incorrect to require a regulator-uniform sup comparison directly with the |
| 22 | primary point-fields in this use. |
| 23 | |
| 24 | Only `rootTest` similarity on actual |
| 25 | measures. |
| 26 | -/ |
| 27 | set_option autoImplicit false |
| 28 | noncomputable section |
| 29 | namespace YM.Push.Common |
| 30 | open Function Filter Set Extraction Cells Table Lattice MeasureTheory Next.Extract Wilson OS |
| 31 | open scoped Topology BigOperators ContDiff |
| 32 | open Extraction.Spin |
| 33 | |
| 34 | variable {G : Gauge} {C : Family G} {h d : ℕ} {f : Extraction.Order} |
| 35 | variable {n : ℕ} |
| 36 | |
| 37 | private def coarse (x : Fin n → Cover) (a : Bool) (t i : ℕ) (u : Fin n) := stems x a u + jump t i |
| 38 | |
| 39 | private lemma far (x : Fin n → Cover) (hx : Injective x) : ∃ s : ℕ → ℕ → ℕ, |
| 40 | ∀ i j : ℕ, i<j → ∀ t ≥ s i j, ∀ a b : Bool, Injective |
| 41 | (Fin.append (coarse x a t i) (coarse x b t j)) := by |
| 42 | have he (a : Bool) (t i : ℕ) : Injective (coarse x a t i) := by |
| 43 | intro k j hkj |
| 44 | have hv : stems x a k=stems x a j := add_right_cancel hkj |
| 45 | have hw p : (flipBook a)⁻¹.act (stems x a p)=x p := by rw [stems,comp_apply,Signed.inv_act] |
| 46 | apply hx; rw [← hw,← hw,hv] |
| 47 | have ht i j : ∃ r : ℕ, i<j → ∀ t ≥ r, ∀ (a b : Bool) (v w : Fin n), |
| 48 | coarse x a t i v timeAxis < coarse x b t j w timeAxis := by |
| 49 | by_cases hij : i < j |
| 50 | swap; · exact ⟨0,fun hh => (hij hh).elim⟩ |
| 51 | have hp (a b : Bool) (v w : Fin n) : ∀ᶠ t in atTop, |
| 52 | coarse x a t i v timeAxis < coarse x b t j w timeAxis := by |
| 53 | let g := stems x a v timeAxis - stems x b w timeAxis |
| 54 | filter_upwards [eventually_gt_atTop g.natAbs] with t ht |
| 55 | have hw : g < (t:ℤ) := lt_of_le_of_lt (Int.le_natAbs (a:=g)) (by exact_mod_cast ht) |
| 56 | change _ + (t:ℤ)*i < stems x b w timeAxis + (t:ℤ)*j |
| 57 | have hh : (i:ℤ)+1 ≤ j := by exact_mod_cast hij |
| 58 | unfold g at *; nlinarith |
| 59 | obtain ⟨r,hr⟩ := eventually_atTop.mp (eventually_all.mpr fun a => eventually_all.mpr fun b => |
| 60 | eventually_all.mpr fun v => eventually_all.mpr (hp a b v)) |
| 61 | exact ⟨r,fun _ => hr⟩ |
| 62 | choose s hs using ht |
| 63 | refine ⟨s,fun i j hij t hv a b k l => ?_⟩ |
| 64 | refine Fin.addCases ?_ ?_ k |
| 65 | · intro k; refine Fin.addCases ?_ ?_ l |
| 66 | · intro l hh; have heq : coarse x a t i k = coarse x a t i l := by simpa only [Fin.append_left] using hh |
| 67 | rw [he a t i heq] |
| 68 | intro l hh; have hh : coarse x a t i k = coarse x b t j l := by simpa only [Fin.append_left,Fin.append_right] using hh |
| 69 | exact ((hs i j hij t hv a b k l).ne (congr_fun hh timeAxis)).elim |
| 70 | intro k; refine Fin.addCases ?_ ?_ l |
| 71 | · intro l hh; have hh : coarse x b t j k = coarse x a t i l := by simpa only [Fin.append_left,Fin.append_right] using hh |
| 72 | exact ((hs i j hij t hv a b l k).ne (congr_fun hh.symm timeAxis)).elim |
| 73 | intro l hh; have heq : coarse x b t j k = coarse x b t j l := by simpa only [Fin.append_right] using hh |
| 74 | rw [he b t j heq] |
| 75 | |
| 76 | private lemma seats_work (S : Schedule) (h : ℕ) (x : Fin n → Cover) (hx : Injective x) : |
| 77 | ∀ᶠ p in atTop, Injective (wrap (S.side h p) ∘ x) := by |
| 78 | have ht (a : Axis) (i : Fin n) : ∀ᶠ p in atTop, |
| 79 | -((S.side h p).val:ℤ)< 2*x i a ∧ 2*x i a ≤ (S.side h p).val := by |
| 80 | filter_upwards [S.period_strict.tendsto_atTop.eventually (eventually_gt_atTop ((2*x i a).natAbs))] with p hp |
| 81 | have hw : (S.period p).val ≤ (S.side h p).val := by |
| 82 | change _ ≤ (S.period p).val*(S.denominator h).val; exact Nat.le_mul_of_pos_right _ (S.denominator h).property |
| 83 | have hh : (2*x i a).natAbs < (S.side h p).val := hp.trans_le hw |
| 84 | omega |
| 85 | filter_upwards [eventually_all.mpr fun a => eventually_all.mpr (ht a)] with p hp |
| 86 | exact fun i j h => hx (wrap_injOn (S.side _ _) (show ∀ a : Axis,_ ∧ _ from fun a => hp a i) |
| 87 | (show ∀ a : Axis, _ ∧ _ from fun a => hp a j) h) |
| 88 | |
| 89 | /-- Root-based per-field input gate. Only ask an approximation at |
| 90 | origin. Need in this version the whole finite orbit, and data such as |
| 91 | *actual* F and bounds at these tolerances. -/ |
| 92 | def Prox (C : Family G) (f : Extraction.Order) (d h l : ℕ) (R : ℝ) := f.late fun N p => |
| 93 | ∃ hN : h ≤ N, ∀ i : Flavour C d, ∃ P, DirectedField hN i (p:=p) P R (toll l) |
| 94 | |
| 95 | lemma Prox.upon {R : ℝ} {l : ℕ} {g : Extraction.Order} (H : Prox C f d h l R) (e : Tails g f) : Prox C g d h l R := by |
| 96 | unfold Prox at * |
| 97 | exact e.late H |
| 98 | |
| 99 | def PrimaryBill (C : Family G) (f : Extraction.Order) (d h : ℕ) (W : ℝ) := f.late fun N p => |
| 100 | ∀ i : Flavour C d, centeredBudget C (herb i) W h N p |
| 101 | |
| 102 | /-- h grid needs to be one of these, available already at Base. -/ |
| 103 | lemma primary_deep (H : CenterPort C f) (d : ℕ) : ∀ᶠ h in atTop, ∃ W : ℝ, 0 ≤ W ∧ PrimaryBill C f d h W := by |
| 104 | have ht := (lib C f (Finset.univ : Finset (Flavour C d)) (H.book ..) 0 herb).2 |
| 105 | simpa only [Finset.mem_univ, forall_true_left,PrimaryBill] using ht |
| 106 | |
| 107 | /-- Choose tolerance l before any translation requests. -/ |
| 108 | lemma buys (h' : C.Makes) (x : Fin n → Cover) (hx : Order.grid C h x ∈ generic n) (u : Caps n) (hu : ∀ i, u i ≤ d) |
| 109 | (W : ℝ) (hW : 0 ≤ W) (k : ℕ) : ∃ l : ℕ, ∀ (f : Extraction.Order), PrimaryBill C f d h W → |
| 110 | ∀ R : ℝ, 0≤R → Prox C f d h l R → ∃ A : GrillCosts, ∀ t J, PrefixBill C h x u A f k t J := by |
| 111 | let α : ℝ := 4*(↑(n+n : ℕ) : ℝ)*(W+1)^(n+n) |
| 112 | obtain ⟨l,hl,hL⟩ := ((toll_go.eventually (gt_mem_nhds (by norm_num : (0:ℝ)<1))).and |
| 113 | ((show Tendsto (fun i => α*toll i) atTop (𝓝 0) by simpa only [mul_zero] using toll_go.const_mul α).eventually |
| 114 | (gt_mem_nhds (toll_pos k)))).exists |
| 115 | have hδ : toll l≤1 := hl.le |
| 116 | have hB : 4*((↑(n+n : ℕ) : ℝ)*(toll l*(W+1)^(n+n))) ≤ toll k := by |
| 117 | apply le_trans ?_ hL.le |
| 118 | unfold α; ring_nf; rfl |
| 119 | refine ⟨l,fun f hw R hR hm => ?_⟩ |
| 120 | have hp : Injective x := by |
| 121 | intro i j he |
| 122 | exact (generic_conf _ hx) (congr_arg (C.S.gridPoint h) he) |
| 123 | obtain ⟨s,hs⟩ := far x hp |
| 124 | let A : GrillCosts := ⟨fun _ => 2*R^n,fun _ => by positivity,fun _ => s⟩ |
| 125 | refine ⟨A,fun t J => ?_⟩ |
| 126 | have he (i j : Fin J) (hq : i<j) (hQ : s i j≤t) (a b : Bool) : ∀ᶠ p in atTop, Injective (Fin.append |
| 127 | ((wrap (C.S.side h p)) ∘ (coarse x a t i)) ((wrap (C.S.side h p)) ∘ (coarse x b t j))) := by |
| 128 | have hv := seats_work C.S h _ (hs i j hq _ hQ a b) |
| 129 | apply hv.mono; intro p h |
| 130 | convert h using 1; funext v |
| 131 | exact Fin.addCases (fun _ => by simp only [Fin.append_left,Function.comp_apply]) (fun _ => by simp only [Fin.append_right,Function.comp_apply]) v |
| 132 | have hy : ∀ (i j : Fin J), ∀ (hQ : i < j) (_ : s i j≤t) (a b : Bool), ∀ᶠ p in atTop, |
| 133 | Injective (Fin.append ((wrap (C.S.side h p)) ∘ (coarse x a t i)) ((wrap (C.S.side h p)) ∘ (coarse x b t j))) := he |
| 134 | have hz := eventually_all.mpr fun i => eventually_all.mpr fun j => eventually_all.mpr fun hv => |
| 135 | eventually_all.mpr fun hl => eventually_all.mpr fun a => eventually_all.mpr (hy i j hv hl a) |
| 136 | unfold PrefixBill Extraction.Order.late |
| 137 | unfold PrimaryBill Extraction.Order.late at hw |
| 138 | unfold Prox Extraction.Order.late at hm |
| 139 | filter_upwards [hw,hm,f.per.cofinal.eventually hz] with p hp hv hg |
| 140 | filter_upwards [hp,hv] with i hi hi' |
| 141 | obtain ⟨v,Z⟩ := hi' |
| 142 | choose L hL using Z |
| 143 | apply sample_finite x u hu v L hL h' hi hW hR (toll_pos _).le hδ k A (le_refl _) hB t J |
| 144 | intro m j hj hj' hh a b |
| 145 | exact hg (⟨m,hj.trans hj'⟩ : Fin J) (⟨j,hj'⟩ : Fin J) hj hh a b |
| 146 | |
| 147 | /-- Quantitative comparison precursor with stations. Requires being able to |
| 148 | pick h arbitrarily far out on this C (especially for these d), BEFORE |
| 149 | label, arity etc. Once picked under given inherited order, can deliver |
| 150 | Prox bills for every approximation task l on demand underneath. NO claim |
| 151 | of such sources. -/ |
| 152 | def Study (C : Family G) (f : Extraction.Order) : Prop := OnDemand f fun (i : Slot) u => |
| 153 | ∃ h : ℕ, i.2≤h ∧ OnDemand u (fun l t => ∃ R : ℝ, 0≤R ∧ Prox C t i.1 h l R) |
| 154 | |
| 155 | /-- Prove our GrillInputs from only real single-field rooted Prox inputs on |
| 156 | the stated stations. No estimating coincident-field kernels (even on one |
| 157 | character). Transfer through any further orders after this answer via the |
| 158 | API at GridMerge. -/ |
| 159 | theorem studying (H : CenterPort C f) (h : C.Makes) (hS : Study C f) : GrillInputs C f := by |
| 160 | apply GrillDemand.inputs |
| 161 | intro i u |
| 162 | obtain ⟨m,hm⟩ := eventually_atTop.mp (primary_deep H i.1) |
| 163 | obtain ⟨v,k,hk,hK⟩ := hS (i.1,max m i.2) u |
| 164 | obtain ⟨W,hW,b⟩ := hm k ((le_max_left ..).trans hk) |
| 165 | refine ⟨v,k,(le_max_right ..).trans hk,?_⟩ |
| 166 | intro x g |
| 167 | by_cases he : serves C k i.1 x.1 |
| 168 | · obtain ⟨l,hl⟩ := buys h _ he.2 _ he.1 W hW x.2 |
| 169 | obtain ⟨r,R,hr,hR⟩ := hK l g |
| 170 | have hw (t : Extraction.Order) : PrimaryBill C (f.refine t) i.1 k W := by |
| 171 | unfold PrimaryBill at *; exact (Tails.refine f t).late b |
| 172 | obtain ⟨A,hA⟩ := hl _ (hw ((u.refine v).refine (g.refine r))) R hr hR |
| 173 | exact ⟨r,A,fun _ => already fun j => hA j.1 j.2⟩ |
| 174 | exact ⟨Order.full,⟨fun _ => 0,fun _ => le_rfl,fun _ _ _ => 0⟩,fun h => (he h).elim⟩ |
| 175 | end YM.Push.Common |