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.Fourier.Convolution |
| 2 | import YM.Next.BOUNDARY.Coordinates |
| 3 | import YM.Next.FREE_KERNELS.Curl |
| 4 | import YM.Next.ROTATIONS.Dyad |
| 5 | import YM.Next.SCHEDULE.Blocks |
| 6 | import YM.Next.SCHEDULE.Pitfalls |
| 7 | import YM.Push.CUTOFF_PROJECTORS.Along |
| 8 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Schur |
| 9 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Tier |
| 10 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Delay |
| 11 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Multiplier |
| 12 | import YM.Work.B18 |
| 13 | |
| 14 | /-! |
| 15 | # Root value cost for the mean/linear-ratio integration |
| 16 | |
| 17 | Price the genuine F0 array, even when off intact prerequisites (can |
| 18 | use same budget with sectored formulas and shared Y/tags). |
| 19 | |
| 20 | In particular leave |
| 21 | smallness of μ itself as at to other jobs. |
| 22 | |
| 23 | No zooming, no V marks. |
| 24 | -/ |
| 25 | set_option autoImplicit false |
| 26 | set_option linter.unusedSectionVars false |
| 27 | set_option linter.unusedSimpArgs false |
| 28 | noncomputable section |
| 29 | namespace YM.AnalyticBridge.AnnulusRatioInsertions.Prism |
| 30 | open Function Filter Lattice Wilson RG RG.Patch Precision Exterior Tree MeasureTheory Metric Matrix |
| 31 | open Next.SectorChange Next.SectorChange.Motion Next.SectorChange.Rows Next.SectorChange.Gaussian |
| 32 | open Pressure Pressure.Tube Pressure.Stores Pressure.Teller Bid Push.SectorMeasure Push.SectorMeasure.Oriented Presented |
| 33 | open Tier Wisps Schur LocalJet |
| 34 | open SectorNext.Remainder |
| 35 | open scoped Topology InnerProductSpace BigOperators Classical ContDiff Matrix.Norms.Frobenius Push.SectorMeasure |
| 36 | |
| 37 | section value |
| 38 | variable {G : Gauge} (J : Patch) (P : Teller G) |
| 39 | |
| 40 | /-- Small helper for transporting termwise budgets through Schur/Pours. -/ |
| 41 | lemma diary {c : Side} {Y I : Type} [Fintype I] [Fintype Y] {A : Matrix I Y ℝ} {p : I → Site c} {q : Y → Site c} {v C H : ℝ} |
| 42 | (hv : 0≤v) (hH : 0≤H) (h : Pours A p q v C) (b : Vec Y) (hb : ∀ i, |b i| ≤ H) (i : I) : |(A *ᵥ b) i| ≤ C*H := by |
| 43 | have hs := (h.weaker (e:=C) (t:=0) hv le_rfl).row i |
| 44 | simp only [rate,zero_mul,Real.exp_zero,one_mul] at hs |
| 45 | change |∑ j:Y, A i j * b j| ≤ _ |
| 46 | apply (Finset.abs_sum_le_sum_abs ..).trans |
| 47 | simp_rw [abs_mul] |
| 48 | apply le_trans (Finset.sum_le_sum (s:=Finset.univ) (g:=fun j=>|A i j| * H) (fun j _=>mul_le_mul_of_nonneg_left (hb _) (abs_nonneg _))) |
| 49 | rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right hs hH |
| 50 | |
| 51 | private lemma common_move (h : J.Branches P.bind G) : ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ x : ℝ in atTop, ∀ {c f : Side} (S : StepData c f) |
| 52 | (T : Tube G S), S.patch=J → 100*(1+radiusB x) ≤ c.val → P.Funds S T → |
| 53 | ∀ (F : Forest S.ratio) (A : Stores S) (k:S.Choices) (V : Config G c), A.flags=RG.flags (temp x) V → |
| 54 | Pours (Rows.move T x V k (shots S x) A F) (Wisps.down S (G:=G)) (Wisps.front A F) (P.top.width/2) C := by |
| 55 | obtain ⟨C,δ,hC,hδ,H⟩:=Wisps.written P.bind J G P h |
| 56 | let v:=P.top.width/2 |
| 57 | let fee (v:ℝ):=((Fintype.card G.ColorIndex:ℝ)*(Fintype.card (Site J.L)*Fintype.card Axis))*Tier.wealth v |
| 58 | let slot (v:ℝ) : ℝ := Fintype.card G.ColorIndex * ((Fintype.card Signed:ℝ)* |
| 59 | ((Fintype.card Bool * Fintype.card PlaqAxes * Fintype.card (Site J.L)*wealth v)+Fintype.card Axis *wealth v)) |
| 60 | have hf (v:ℝ) : 0≤fee v := by unfold fee; have := Tier.wealth_nn v; positivity |
| 61 | refine ⟨max (slot v) (fee v)*C,mul_nonneg ((hf _).trans (le_max_right ..)) hC,?_⟩ |
| 62 | filter_upwards [small_span J,Work.E01.radiusB_tendsto.eventually_ge_atTop (allot J+1), |
| 63 | Work.E01.fiery_le G (1:Side) (permit J),(Work.E01.largeT_tendsto G 1).eventually (ge_mem_nhds hδ)] with x hx hf hg hi |
| 64 | intro c f S T hS he hP F A k V hV |
| 65 | have ha : permit J*temp x ≤ δ := by simpa [fiery,betaF] using hg.trans hi |
| 66 | have h := H S T hS hP.knobs hP A V F x hV hx (by omega) (by omega) ha k |
| 67 | have hv : 0<v:=half_pos P.top.width_pos |
| 68 | have ht := pure P.top.width_pos hC h (down_price v hv S G) (front_price v hv A F G (x:=x)) |
| 69 | have hh : Fintype.card (Site S.patch.L) = Fintype.card (Site J.L) := by rw [hS] |
| 70 | unfold slotFee keyFee at ht; rw [hh] at ht; exact ht |
| 71 | |
| 72 | -- Maximum cost for Mv/Mw also off the sector prerequisite |
| 73 | private lemma free_plot {c f : Side} (S : StepData c f) (x w : ℝ) (U : Config G f) (V : Config G c) (k : S.Choices) : |
| 74 | ∃ B : Stores S,B.Plot U k V x w := by |
| 75 | let B : Stores S := ⟨∅,∅,∅⟩ |
| 76 | have h b : B.dome b = ∅ := by ext; simp [Stores.dome,halo_spec,Stores.place,B] |
| 77 | refine ⟨B,⟨fun _ ht=>?_,fun _ ht=>?_,fun _ ht=>?_,fun _ ht=>?_⟩⟩ <;> simp_all only [h,Finset.disjoint_empty_left,not_true_eq_false,Finset.notMem_empty] |
| 78 | |
| 79 | private def per_cost (J : Patch) (r : ℕ) := 2*((Fintype.card (Site J.L):ℝ)*(grain r*(Fintype.card Axis))) |
| 80 | private lemma per_cost_nonneg (J : Patch) (r : ℕ) : 0 ≤ per_cost J r := by unfold per_cost grain; positivity |
| 81 | |
| 82 | private lemma neighborhood {c f : Side} (S : StepData c f) (i : Site c) (r : ℕ) (a : Directions G f) |
| 83 | (h : ∀ i, ‖a i‖ ≤ 2) : settle S i r a ≤ per_cost S.patch r := by |
| 84 | change (∑ j∈members S i r, _) ≤ _ |
| 85 | apply le_trans (Finset.sum_le_sum (g:=fun _=> (2:ℝ)) (fun j _=>h j)) |
| 86 | rw [Finset.sum_const,nsmul_eq_mul] |
| 87 | unfold per_cost; rw [mul_comm]; exact mul_le_mul_of_nonneg_left (saves S i r) (show 0≤(2:ℝ) by norm_num) |
| 88 | |
| 89 | private lemma barrel_size {c f : Side} (S : StepData c f) (T : Tube G S) (h : P.Funds S T) (R : ℕ) (U : Config G f) |
| 90 | (b : LogArray G (Cell f)) {K : ℝ} (hK : 0≤K) (hb : ∀ i, ‖b i‖ ≤ K) (i : Cell f) : |
| 91 | ‖barrel T.up R U b i‖ ≤ P.top.paths*K := by |
| 92 | obtain ⟨l,m,H,-⟩:= h.feeds |
| 93 | obtain ⟨h1,h2,h3⟩:= H.rows i.2 |
| 94 | let p (l : ℕ) := (T.up.row i.2 l).2 |
| 95 | let q (l : ℕ) := (T.up.row i.2 l).1 |
| 96 | let D (i:ℕ):= |q i| * Wisps.rate P.top.width (p i).length |
| 97 | let F (n:ℕ):G.Color := if (p n).length ≤ R then q n • |
| 98 | G.adjoint (travel U i.1 (p n).walk) (b (Work.F03.slotFace (p n) i.1)) else 0 |
| 99 | have hs : Summable F := barrel_summed T.up R U b i H |
| 100 | change ‖∑' n,F n‖ ≤ _ |
| 101 | calc |
| 102 | _ ≤ ∑' n, ‖F n‖ := norm_tsum_le_tsum_norm hs.norm |
| 103 | _ ≤ ∑' n,D n*K := by |
| 104 | have he : Summable D := h2 |
| 105 | refine Summable.tsum_le_tsum (fun n=>?_) hs.norm (he.mul_right K) |
| 106 | unfold F; split |
| 107 | · rw [norm_smul,G.norm_adjoint,Real.norm_eq_abs] |
| 108 | unfold D; exact mul_le_mul (le_mul_of_one_le_right (abs_nonneg _) (Real.one_le_exp (by have := P.top.width_pos; positivity))) (hb _) (norm_nonneg _) (h1 _) |
| 109 | rw [norm_zero]; exact mul_nonneg (h1 _) hK |
| 110 | _ ≤ _ := by rw [tsum_mul_right]; exact mul_le_mul_of_nonneg_right h3 hK |
| 111 | |
| 112 | private lemma read_source {c f : Side} (S : StepData c f) (U : LogArray G (Slots S)) (i : Receipt G S) : |
| 113 | |tape.symm U i| ≤ ‖U i.1‖ := by |
| 114 | change |U i.1 i.2| ≤ _ |
| 115 | rw [← EuclideanSpace.basisFun_inner G.ColorIndex ℝ (U i.1) i.2] |
| 116 | simpa using abs_real_inner_le_norm (EuclideanSpace.basisFun G.ColorIndex ℝ i.2) (U i.1) |
| 117 | |
| 118 | set_option maxHeartbeats 480000 in |
| 119 | private lemma sources (h : J.Branches P.bind G) : ∃ C : ℝ, 0≤C ∧ ∀ᶠ x : ℝ in atTop, |
| 120 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), S.patch=J → 100*(1+radiusB x) ≤ c.val → P.Funds S T → |
| 121 | ∀ (F : Forest S.ratio) (A : Stores S) (k:S.Choices) (V : Config G c), A.flags=RG.flags (temp x) V → |
| 122 | ∀ (q : Chi) (d : ℝ),0<d → d ≤ 1 → ∀ (Y : LinkArray G (Frozen A x F)) (i : Receipt G S), |
| 123 | |source T x V k (shots S x) A F q d Y i| ≤ C := by |
| 124 | obtain ⟨E,hE,H⟩ := LocalJet.face_global G |
| 125 | obtain ⟨B,δ,hB,hδ,hQ⟩:= earned J P.bind G h |
| 126 | obtain ⟨A0,hA,HA⟩:= Work.E04.answer Work.E03.answer P |
| 127 | let K := max (Real.sqrt P.top.clip.direct) P.top.paths + Real.sqrt P.bind.penalty |
| 128 | have hK : 0≤K := add_nonneg ((Real.sqrt_nonneg _).trans (le_max_left ..)) (Real.sqrt_nonneg _) |
| 129 | let Y0:= E*per_cost J 1+B*per_cost J (Next.Fluctuations.predReach J) |
| 130 | have hY : 0≤Y0 := add_nonneg (mul_nonneg hE.le (per_cost_nonneg ..)) (mul_nonneg hB.le (per_cost_nonneg ..)) |
| 131 | refine ⟨slip*(K*2+A0+K*Y0), by have := slip_pos; positivity,?_⟩ |
| 132 | filter_upwards [(HA J.L (1:ℝ)).late, small_span J,Work.E01.radiusB_tendsto.eventually_ge_atTop (allot J+1), |
| 133 | Work.E01.fiery_le G (1:Side) (permit J),(Work.E01.largeT_tendsto G 1).eventually (ge_mem_nhds hδ), |
| 134 | Work.E01.fiery_le G J.L 1,(Work.E01.largeT_tendsto G J.L).eventually (ge_mem_nhds zero_lt_one)] with x hM hN h he he' ha hb |
| 135 | intro c f S T hS hs hP F A k V hV q d hd hD Y i |
| 136 | have h0 : permit J*temp x ≤ δ := by simpa [fiery,betaF] using he.trans he' |
| 137 | have h1 : fiery G x J.L ≤ 1 := by simpa using ha.trans hb |
| 138 | have hR := hQ S hS hP.knobs F A V x hV hN (by omega) (by omega) h0 |
| 139 | let D := input x A F (autoShell q d V Y) |
| 140 | have hz (i : Bond f) : ‖D i‖ ≤ 2 := by |
| 141 | unfold D input; split |
| 142 | · rename_i h; split |
| 143 | · unfold autoShell; exact (patched_small q hd _).trans (by linarith) |
| 144 | rw [norm_zero]; norm_num |
| 145 | rw [norm_zero]; norm_num |
| 146 | let W:=shots S x |
| 147 | unfold source |
| 148 | apply le_trans (read_source S _ _) |
| 149 | unfold Rows.restrict; split |
| 150 | · rename_i hh |
| 151 | rw [norm_smul,Real.norm_of_nonneg slip_pos.le] |
| 152 | apply mul_le_mul_of_nonneg_left _ slip_pos.le |
| 153 | obtain ⟨⟨s,cell|edge⟩,j⟩:=i |
| 154 | · apply le_trans (norm_add_le (faceFixed T x s V cell) (faceKick T x V D s cell)) |
| 155 | let V' := pull s 0 V |
| 156 | obtain ⟨Z,hZ⟩:=free_plot S x (1:ℝ) (1:Config G f) V' k |
| 157 | have hU : SliceSet S F (1:Config G f) := by intro p _; rfl |
| 158 | obtain ⟨-, -, hl⟩ := hM c f S (congr_arg RG.Patch.L hS) hs T hP F Z (1:Config G f) k V' hU hZ |
| 159 | apply add_le_add |
| 160 | · unfold faceFixed; apply (norm_sub_le ..).trans (add_le_add ?_ ?_) |
| 161 | · unfold Xf plotted; split |
| 162 | · obtain ⟨t0,l,h,-⟩:=hP.feeds |
| 163 | have hz := (fine_cut_pay h cell.1 (facade S s V 0) _ (till x) (show 0<1 by omega)).2.1 |
| 164 | exact hz.trans (by |
| 165 | have hp : P.top.paths ≤ K := (le_max_right ..).trans (le_add_of_nonneg_right (Real.sqrt_nonneg _)) |
| 166 | linarith only [hp]) |
| 167 | unfold shoot |
| 168 | rw [norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _),hP.high] |
| 169 | exact mul_le_mul ((le_max_left ..).trans (le_add_of_nonneg_right (Real.sqrt_nonneg _))) ((G.curvature_norm _).trans (G.chord_le_two _)) |
| 170 | (norm_nonneg _) hK |
| 171 | exact (hl.phi cell).trans (by |
| 172 | rw [hS]; have hL : (1:ℝ)≤ (J.L.val:ℝ)^2 := one_le_pow₀ (by exact_mod_cast J.L.property) |
| 173 | exact le_trans (mul_le_of_le_one_right (by positivity) h1) (div_le_self hA.le hL)) |
| 174 | have hX (p : Cell f) : ‖plaquetteJet S V s p D‖ ≤ Y0 := by |
| 175 | rw [plaquetteJet,(Motion.plaquette_turn s V p (face_smooth _ _).contDiffAt).2] |
| 176 | apply (H S p _ _).trans |
| 177 | apply le_trans (mul_le_mul_of_nonneg_left (neighborhood S _ _ _ (by intro i; rw [Motion.in_size]; exact hz _)) hE.le) |
| 178 | rw [hS]; unfold Y0; have := per_cost_nonneg J (Next.Fluctuations.predReach J); nlinarith |
| 179 | unfold faceKick; split |
| 180 | · apply (barrel_size P S T hP _ _ _ hY hX _).trans |
| 181 | have hp : P.top.paths ≤ K := (le_max_right ..).trans (le_add_of_nonneg_right (Real.sqrt_nonneg _)) |
| 182 | exact mul_le_mul_of_nonneg_right hp hY |
| 183 | rw [norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _),hP.high] |
| 184 | exact mul_le_mul ((le_max_left ..).trans (le_add_of_nonneg_right (Real.sqrt_nonneg _))) (hX _) (norm_nonneg _) hK |
| 185 | · apply le_trans (norm_add_le (noiseFixed x V k s edge (T:=T)) (noiseKick V k D s edge)) |
| 186 | let V' := pull s 0 V |
| 187 | obtain ⟨Z,hZ⟩:=free_plot S x (1:ℝ) (1:Config G f) V' k |
| 188 | have hU : SliceSet S F (1:Config G f) := by intro p _; rfl |
| 189 | obtain ⟨-, -, hl⟩ := hM c f S (congr_arg RG.Patch.L hS) hs T hP F Z (1:Config G f) k V' hU hZ |
| 190 | have hp : Real.sqrt P.bind.penalty ≤ K := le_add_of_nonneg_left ((Real.sqrt_nonneg _).trans (le_max_left ..)) |
| 191 | apply add_le_add |
| 192 | · unfold noiseFixed Tube.Z |
| 193 | apply (norm_sub_le ..).trans (add_le_add ?_ ?_) |
| 194 | · rw [norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _),hP.knobs] |
| 195 | exact mul_le_mul hp ((G.curvature_norm _).trans (G.chord_le_two _)) (norm_nonneg _) hK |
| 196 | exact (hl.hot edge).trans (by rw [hS]; exact mul_le_of_le_one_right hA.le h1) |
| 197 | unfold noiseKick; rw [norm_neg,norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _),hP.knobs] |
| 198 | refine mul_le_mul hp ?_ (norm_nonneg _) hK |
| 199 | obtain ⟨hQ,hT,hG⟩ := hR.noise s k edge hh |
| 200 | rw [blockJet,(Motion.block_turn s V edge k hT).2] |
| 201 | apply (hG _).trans |
| 202 | apply le_trans (mul_le_mul_of_nonneg_left (neighborhood S _ _ _ (by intro i; rw [Motion.in_size]; exact hz _)) hB.le) |
| 203 | rw [hS]; unfold Y0; have := per_cost_nonneg J 1; nlinarith |
| 204 | rw [norm_zero]; have := slip_pos; positivity |
| 205 | |
| 206 | /-- Post-L *per key* value bound for b, real all-worlds including Y |
| 207 | outside charts. Does NOT yield C-small μ0. -/ |
| 208 | lemma root_pay (G : Gauge) (J : Patch) (P : Teller G) (h : J.Branches P.bind G) : ∃ C : ℝ, 0≤C ∧ ∀ᶠ x : ℝ in atTop, |
| 209 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), S.patch=J → 100*(1+radiusB x) ≤ c.val → P.Funds S T → |
| 210 | ∀ (F : Forest S.ratio) (A : Stores S) (k:S.Choices) (V : Config G c), A.flags=RG.flags (temp x) V → |
| 211 | ∀ (q : Chi) (d : ℝ),0<d → d ≤ 1 → ∀ (Y : LinkArray G (Frozen A x F)) (i), |
| 212 | |blame T x V k (shots S x) A F q d Y i| ≤ C := by |
| 213 | obtain ⟨K,hK,H⟩:=sources J P h |
| 214 | obtain ⟨M,hM,HM⟩:=common_move J P h |
| 215 | refine ⟨M*K,mul_nonneg hM hK,?_⟩ |
| 216 | filter_upwards [H,HM] with x hx hh |
| 217 | intro c f S T hS hR hT F A k V hV q d hd hD Y i |
| 218 | exact diary (half_pos P.top.width_pos).le hK (hh S T hS hR hT F A k V hV).turn _ (hx S T hS hR hT F A k V hV q d hd hD Y) i |
| 219 | end value |
| 220 | end YM.AnalyticBridge.AnnulusRatioInsertions.Prism |