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 Mathlib.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 9 | import Mathlib.Analysis.Normed.Group.Tannery |
| 10 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 11 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 12 | import YM.Bid.Craft |
| 13 | import YM.Bid.Drops |
| 14 | import YM.Bid.Fuels |
| 15 | import YM.Bid.Loan |
| 16 | import YM.Laurent.Rune |
| 17 | import YM.Ovens.Coffee |
| 18 | import YM.PREC.Derivative |
| 19 | import YM.Work.A05.Read |
| 20 | import YM.Work.A07 |
| 21 | import YM.Work.B06 |
| 22 | import YM.Work.B17 |
| 23 | import YM.Work.G03 |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /-! |
| 29 | # Scheduling: finite demands, primary layer |
| 30 | |
| 31 | Name and pay everything per smoothing index (`j`). A demand can of course be a MAX |
| 32 | of bills (e.g. for a whole family of weights), not a single operation. Distinguish |
| 33 | pre-L powers from post-L ones. No assertion in this library that RG calls *have* |
| 34 | all the indicated costs! We prove numerical availability before any rollout, and a |
| 35 | number of application lemmas usable with estimates of the indicated shape. |
| 36 | |
| 37 | Everything is explicit data; nothing to be found by inferring physics typeclasses. |
| 38 | Directions of pairs throughout the package: `j` fine, `i` coarse, |
| 39 | `i ≤ j ≤ i+1`. Step index `m` is coarse; the step uses L(stage of m+1). |
| 40 | -/ |
| 41 | set_option autoImplicit false |
| 42 | noncomputable section |
| 43 | namespace YM.Next.Scheduling |
| 44 | |
| 45 | open Filter Source RG RG.Supply Bid Precision Function Finset |
| 46 | |
| 47 | /-- Numeric needs. Use a countable exhaustion of FINITE lists (bills may be upper |
| 48 | bounds, so e.g. a support exponent request uses a natural ceiling). Not an |
| 49 | enumeration of continuum tests. The estimate supplier must prove uniformity over |
| 50 | what each such request is meant to buy. -/ |
| 51 | structure Need where |
| 52 | smoothing : ℕ -- min index incl e.g. two more than all spatial differences |
| 53 | order : ℕ |
| 54 | power : ℕ |
| 55 | exponent : ℕ |
| 56 | |
| 57 | /-- Include all needs up through `d` (use e.g. tranche d of finite comparison needs |
| 58 | along with ordinary engineering weight d). If a tranche tests HIGHER weights too, |
| 59 | use it *only* when those also admitted. Can postpone first admission arbitrarily. |
| 60 | The finite step here does not require admitting e.g. all the CONSEQUENCES of a |
| 61 | field through d that will use d+1. -/ |
| 62 | def Admits (a : ℕ → Need) (j d : ℕ) : Prop := |
| 63 | d+3 ≤ j ∧ ∀ i ≤ d, (a i).smoothing ≤ j |
| 64 | |
| 65 | lemma Admits.later {a : ℕ → Need} {i j d : ℕ} (h : Admits a i d) (hi : i ≤ j) : Admits a j d := |
| 66 | ⟨h.1.trans hi, fun x hx => (h.2 x hx).trans hi⟩ |
| 67 | |
| 68 | lemma Admits.down {a : ℕ → Need} {i x d : ℕ} (h : Admits a i d) (he : x ≤ d) : Admits a i x := |
| 69 | ⟨le_trans (Nat.add_le_add_right he _) h.1,fun y hy => h.2 y (hy.trans he)⟩ |
| 70 | |
| 71 | lemma Need.exhaust (a : ℕ → Need) (d : ℕ) : ∀ᶠ j : ℕ in atTop, Admits a j d := by |
| 72 | let H := (range (d+1)).sup (fun i => (a i).smoothing) |
| 73 | filter_upwards [eventually_ge_atTop H,eventually_ge_atTop (d+3)] with i hi hx |
| 74 | exact ⟨hx,fun j hj => (le_sup (s:=range (d+1)) (f:=fun i => (a i).smoothing) (mem_range.mpr (by omega))).trans hi⟩ |
| 75 | |
| 76 | /-- The increasing-order part of what must be chosen before L. -/ |
| 77 | structure Rungs (a : ℕ → Need) where |
| 78 | k : ℕ → ℕ |
| 79 | P : ℕ → ℕ |
| 80 | A : ℕ → ℝ |
| 81 | six i : 6 ≤ k i |
| 82 | two i : 2 ≤ P i |
| 83 | pos i : 0 < A i |
| 84 | dk : Monotone k |
| 85 | dP : Monotone P |
| 86 | dA : Monotone A |
| 87 | eng i d : Admits a i d → d+1 ≤ k i ∧ d ≤ P i |
| 88 | covers i d : Admits a i d → (a d).order ≤ k i ∧ (a d).power ≤ P i ∧ ((a d).exponent : ℝ) ≤ A i |
| 89 | |
| 90 | /-- `v` also requests arbitrary stage minima (the `.smoothing` field there |
| 91 | is unused). No hidden cap on how big. -/ |
| 92 | theorem Rungs.available (a v : ℕ → Need) : ∃ o : Rungs a, |
| 93 | ∀ i,(v i).order ≤ o.k i ∧ (v i).power ≤ o.P i ∧ ((v i).exponent : ℝ) ≤ o.A i := by |
| 94 | let s (i) (n : ℕ → Need) := (n i).order+(n i).power+(n i).exponent |
| 95 | let m i := s i a+s i v+i+7 |
| 96 | let b i := (range (i+1)).sup m |
| 97 | have hB : Monotone b := fun i j hij ↦ sup_mono (range_mono (by omega)) |
| 98 | have hm i : m i ≤ b i := le_sup (mem_range.mpr (by omega)) |
| 99 | have hn i : 6 ≤ b i := by have := hm i; unfold m at *; omega |
| 100 | let o : Rungs a := { |
| 101 | k := b |
| 102 | P := b |
| 103 | A := fun i => (b i:ℝ) |
| 104 | six := hn |
| 105 | two i := (by have := hn i; omega) |
| 106 | pos i := by exact_mod_cast (by have := hn i; omega : 0 < b i) |
| 107 | dk := hB |
| 108 | dP := hB |
| 109 | dA := fun i j hij => by dsimp; exact_mod_cast hB hij |
| 110 | eng i d h := by have := hm i; obtain ⟨hl,-⟩ := h; unfold m at *; omega |
| 111 | covers i d h := by |
| 112 | have ht := (hm d).trans (hB <| Nat.le_trans (Nat.le_add_right ..) h.1) |
| 113 | unfold m s at ht |
| 114 | refine ⟨by omega,by omega,?_⟩ |
| 115 | exact_mod_cast (show (a d).exponent ≤ b i by omega) } |
| 116 | refine ⟨o,fun i => ?_⟩ |
| 117 | change _ ≤ b i ∧ _ ≤ b i ∧ _ ≤ ((b i:ℕ):ℝ) |
| 118 | have := hm i; unfold m s at *; refine ⟨by omega,by omega,?_⟩ |
| 119 | exact_mod_cast (show (v i).exponent ≤ b i by omega) |
| 120 | |
| 121 | /-- Commit to the kernel parameters, chart and source books. `.credit` costs |
| 122 | independent of ANY scale parameters incl t, at chosen finite orders. -/ |
| 123 | structure Authorities (G : Gauge) where |
| 124 | kernel : KernelChoices |
| 125 | has : ∀ P : Patch, P.Branches kernel G |
| 126 | chart : ChartRatio G |
| 127 | chartRatio : LocalRatio chart |
| 128 | hol : Hol G |
| 129 | frames : Labels.Frames G |
| 130 | entry : ∀ d : ℕ, SectionData (frames.level d) |
| 131 | sound d : (entry d).Sound hol |
| 132 | profile d : pop (entry d) |
| 133 | fee : ℕ → ℕ → ℕ → ℝ |
| 134 | credit d k p : Credit (entry d) k p (fee d k p) |
| 135 | |
| 136 | |
| 137 | |
| 138 | /-- Convenient increasing pre-L price: can dominate arbitrary real *estimates*, |
| 139 | not a claim that such estimates for the RG procedure are available. -/ |
| 140 | def worth (f : ℕ → ℝ) : Worth := by |
| 141 | let m := Nat.ceil ∘ f |
| 142 | let k i := (range (i+1)).sup m + 1 |
| 143 | have hM : Monotone k := fun i j hij ↦ Nat.add_le_add_right (sup_mono (range_mono (Nat.add_le_add_right hij _))) _ |
| 144 | exact ⟨fun i ↦ k i,fun i => by exact_mod_cast (Nat.le_add_left 1 ((range (i+1)).sup m)),fun i j hij => by dsimp; exact_mod_cast hM hij⟩ |
| 145 | |
| 146 | lemma worth_ge (f : ℕ → ℝ) (i : ℕ) : f i ≤ (worth f).K i := by |
| 147 | unfold worth |
| 148 | apply (Nat.le_ceil _).trans |
| 149 | change (((Nat.ceil ∘ f) i : ℕ) : ℝ) ≤ (((range (i+1)).sup (Nat.ceil ∘ f)+1 : ℕ) : ℝ) |
| 150 | exact_mod_cast (le_trans (le_sup (s:=range (i+1)) (f:=Nat.ceil ∘ f) (mem_range.mpr i.lt_add_one)) (Nat.le_add_right _ 1)) |
| 151 | |
| 152 | /-- Inputs at survey stage: choose direct coefficient using prior analysis, and |
| 153 | commit to provisional linear prices `X`. `.first` initial stage (no transition |
| 154 | m=0 from a lower stage). Fields independent of all Roll parameters. Auxiliary |
| 155 | stage floors may of course depend on the chosen X. -/ |
| 156 | structure Survey (G : Gauge) where |
| 157 | B : Authorities G |
| 158 | requests : ℕ → Need |
| 159 | o : Rungs requests |
| 160 | direct : ℕ → ℝ |
| 161 | linear : ℕ → ℝ |
| 162 | direct_pos i : 0 < direct i |
| 163 | direct_cap i : direct i ≤ 1 |
| 164 | linear_pos i : 0 < linear i |
| 165 | kink i : linear i < direct i/16 |
| 166 | X : MapPrices |
| 167 | first : ℕ |
| 168 | cut : 4 ≤ first |
| 169 | floorL : ℕ → ℕ |
| 170 | |
| 171 | /-- Both transitions fine to coarse are needed, even when the stage equals |
| 172 | `.first`. -/ |
| 173 | def Adj (j i : ℕ) : Prop := i ≤ j ∧ j ≤ i+1 |
| 174 | |
| 175 | lemma Adj.cases_forward {i j} (h : Adj j i) : j=i ∨ j=i+1 := by obtain ⟨h,h'⟩:=h; omega |
| 176 | lemma Adj.cases_back {i j} (h : Adj j i) : i=j ∨ i=j-1 := by obtain ⟨h,h'⟩:=h; omega |
| 177 | |
| 178 | namespace Survey |
| 179 | variable {G : Gauge} (S : Survey G) |
| 180 | |
| 181 | /-- First quotation table. Its WHOLE stage isn't fixed -- only components |
| 182 | used to commit to the map prices. We will repin results relative to the paid |
| 183 | stage via a lowering lemma. Small path/column/drift asks here enable that. -/ |
| 184 | def sheet : Sheet G where |
| 185 | kernel := S.B.kernel |
| 186 | has := S.B.has |
| 187 | profile j := ⟨⟨S.direct j,S.linear j,12,S.direct_pos j,S.linear_pos j,S.kink j,by norm_num⟩, |
| 188 | S.o.k j,S.o.P j,S.o.A j,1,1,0,1,S.o.six j,S.o.two j,S.o.pos j,by norm_num,by norm_num, |
| 189 | by simp,by norm_num,le_rfl⟩ |
| 190 | first := S.first |
| 191 | cut := S.cut |
| 192 | orders := S.o.dk |
| 193 | powers := S.o.dP |
| 194 | prices := S.o.dA |
| 195 | floorL := S.floorL |
| 196 | end Survey |
| 197 | end YM.Next.Scheduling |