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.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.FrameCosts |
| 2 | import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Station |
| 3 | import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Veil |
| 4 | |
| 5 | /-! |
| 6 | # Forecast the REAL affine remainder on the local unmasked arguments |
| 7 | |
| 8 | Each piece estimated before regrouping. Polynomial costs all here post-L, |
| 9 | paid at fixed stencil and order. Don't estimate actual output on a forest using |
| 10 | only one period norm for analytic germs; these all-period invoices involve each |
| 11 | actual `T` and its path/alignment costs. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticNext.ConnectedActivity.Aff |
| 16 | open Function Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Bloch Turn |
| 17 | open Matrix Work.F03 Progress.StationaryScenes Push.SectorMeasure Push.SectorMeasure.Oriented |
| 18 | open Push.AbsoluteSums Tree Next.Fluctuations Finset Filter |
| 19 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 20 | variable {G : Gauge} {c f n : Side} {S : StepData c f} |
| 21 | |
| 22 | def forecast (T : Tube G S) (p : Pos S) (a : LogField G f) (b : LogField G c) := |
| 23 | let x := orient p.1 a |
| 24 | let y := orient p.1 b |
| 25 | p.2.elim (fun i => xLin T.high T.up x i-Fout T y i) (fun i => zLin S x y i-Qout T y i) |
| 26 | |
| 27 | -- This will give a forecast even for N (affine complement, needed on V) |
| 28 | def Guess (u v : G.Color) (A h w : ℝ) := ‖v‖ ≤ A*h ∧ ‖u-v‖ ≤ A*h*w |
| 29 | |
| 30 | lemma Guess.loosen {u v : G.Color} {A h w B e : ℝ} (he : Guess u v A h w) (hh : 0≤h) (hv : 0≤w) |
| 31 | (hB : 0≤B) (hy : A ≤ B) (hw : w≤e) : Guess u v B h e := |
| 32 | ⟨he.1.trans (by gcongr),he.2.trans (by gcongr)⟩ |
| 33 | |
| 34 | lemma Guess.subtract {u v a b : G.Color} {A B h w : ℝ} (he : Guess u v A h w) (hh : Guess a b B h w) : |
| 35 | Guess (u-a) (v-b) (A+B) h w := by |
| 36 | constructor |
| 37 | · exact (norm_sub_le ..).trans ((add_le_add he.1 hh.1).trans_eq (add_mul A B h).symm) |
| 38 | rw [show u-a-(v-b)=(u-v)-(a-b) by abel]; exact (norm_sub_le ..).trans ((add_le_add he.2 hh.2).trans_eq (by ring)) |
| 39 | |
| 40 | -- Analogous to EBare's interior L. zip first rather than maxtnorm of covariance. |
| 41 | private lemma ghost {X Y : Type} [Fintype X] [Fintype Y] (F W : X → Y → Pay G) (f v : Y → G.Color) |
| 42 | {A D h w : ℝ} (hA : 0≤A) (hD : 0≤D) (hh : 0≤h) (hw : 0≤w) (hf : NearFlat F W A w) |
| 43 | (he : ∀ i, Guess (f i) (v i) D h w) : ∀ x, Guess (zip F f x) (zip W v x) (2*A*D) h w := by |
| 44 | intro i; constructor |
| 45 | · apply (Work.E07.zip_uniform W v i (hf.full.rows i) (show 0≤D*h by positivity) (fun j => (he j).1)).trans |
| 46 | nlinarith [mul_nonneg (mul_nonneg hA hD) hh] |
| 47 | rw [show zip F f i-zip W v i=zip F (f-v) i+zip (F-W) v i by |
| 48 | unfold zip; simp only [Pi.sub_apply,map_sub,_root_.sub_apply,sum_sub_distrib]; abel] |
| 49 | exact (norm_add_le ..).trans ((add_le_add (Work.E07.zip_uniform F (f-v) i (hf.cut.rows i) |
| 50 | (show 0≤D*h*w by positivity) (fun j => (he j).2)) (Work.E07.zip_uniform (F-W) v i |
| 51 | (hf.close.rows i) (show 0≤D*h by positivity) (fun j => (he j).1))).trans_eq (by ring)) |
| 52 | |
| 53 | lemma orient_norm (s : Signed) (x : LogField G n) : ‖orient s x‖ ≤ ‖x‖ := by |
| 54 | refine (pi_norm_le_iff_of_nonneg (norm_nonneg _)).mpr (fun i => ?_) |
| 55 | unfold orient Aff.form; rw [maps_cost]; exact norm_le_pi_norm x _ |
| 56 | |
| 57 | lemma ordered_cost (P : Teller G) (D : Patch) (hb : D.Branches P.bind G) : ∃ C τ r : ℝ, |
| 58 | 0<C ∧ 0<τ ∧ 0<r ∧ ∀ (c f : Side) (S : StepData c f) (T : Tube G S), P.Funds S T → S.patch=D → |
| 59 | ∀ (x : LogField G f) (b : LogField G c) (h : ℝ), h≤r → ‖x‖≤h → ‖b‖≤h → |
| 60 | ∀ (R : ℕ) (k : S.Choices), let U := represent x; let V := represent b; let w := widen R h τ |
| 61 | (∀ i, Guess (primalN T R V i) (zip (flatN T) (Limage T b) i) C h w) ∧ |
| 62 | ∀ p, Guess (primal T R p k V U) (forecast T p x b) C h w := by |
| 63 | obtain ⟨A,r,hA,hr,H⟩ := x_chart_cost G P.top 1 (by decide) |
| 64 | obtain ⟨B,v,hB,hv,K⟩ := x_chart_cost G P.below D.L.val D.L.property |
| 65 | obtain ⟨E,s,w,hE,hs,hw,hp⟩ := kernel_chart_cost G D.L P.η P.C P.width |
| 66 | obtain ⟨F,u,hF,hu,hq⟩ := z_chart_cost D P.bind G hb |
| 67 | let C := (A+F)+2*E*B |
| 68 | let τ := min P.top.width (min (P.below.width/D.L.val) s) |
| 69 | let l := min (min r v) (min w u) |
| 70 | have hh : 0 < P.below.width / D.L.val := div_pos P.below.width_pos (side_pos D.L) |
| 71 | refine ⟨C,τ,l, by unfold C; positivity, lt_min P.top.width_pos (lt_min hh hs),lt_min (lt_min hr hv) (lt_min hw hu),?_⟩ |
| 72 | intro c f S T ht hD x b h hf hx hy R k U V t |
| 73 | obtain ⟨a,a',ha,hb'⟩ := ht.feeds |
| 74 | have hnn : 0 ≤ h := (norm_nonneg _).trans hx |
| 75 | have hT : 0 ≤ t := widen_nonneg R hnn |
| 76 | have hf' (x : LogField G f) (he : ‖x‖ ≤ h) (j : Twin f) : |
| 77 | Guess (T.Xf R (represent x) j) (xLin T.high T.up x j) A h t := by |
| 78 | dsimp only [Tube.Xf]; rw [ht.high]; apply Guess.loosen (w:=widen R h P.top.width) _ hnn (widen_nonneg _ hnn) |
| 79 | hA.le (le_rfl) (widen_anti R h (min_le_left ..)) |
| 80 | simpa [Guess] using! H f T.up a ha R x h he (hf.trans ((min_le_left ..).trans (min_le_left ..))) j |
| 81 | have hc (b : LogField G c) (he : ‖b‖ ≤ h) (j : Twin c) : |
| 82 | Guess (T.Xn R (represent b) j) (Limage T b j) B h t := by |
| 83 | dsimp only [Tube.Xn,Limage]; rw [ht.low,hD]; apply Guess.loosen (w:=widen R h (P.below.width/D.L.val)) _ hnn |
| 84 | (widen_nonneg _ hnn) hB.le (le_rfl) (widen_anti R h ((min_le_right ..).trans (min_le_left ..))) |
| 85 | exact K c T.down a' hb' R b h he (hf.trans ((min_le_left ..).trans (min_le_right ..))) j |
| 86 | have hy' (b : LogField G c) (he : ‖b‖ ≤ h) : let V := represent b |
| 87 | NearFlat (T.Φ R V) (flatF T) E t ∧ NearFlat (T.Φ' R V) (flatI T) E t ∧ NearFlat (T.N R V) (flatN T) E t := by |
| 88 | intro V; obtain ⟨h1,h2,h3⟩ := hp S T (congr_arg _ hD) ⟨_,ht.crosses⟩ R b h he (hf.trans |
| 89 | ((min_le_right ..).trans (min_le_left ..))) |
| 90 | have hv : widen R h s ≤ t := widen_anti R h ((min_le_right ..).trans (min_le_right ..)) |
| 91 | exact ⟨h1.mono hE.le (widen_nonneg R hnn) le_rfl hv, h2.mono hE.le (widen_nonneg R hnn) le_rfl hv, |
| 92 | h3.mono hE.le (widen_nonneg R hnn) le_rfl hv⟩ |
| 93 | constructor |
| 94 | · intro j |
| 95 | have he := ghost _ _ _ _ hE.le hB.le hnn hT (hy' b hy).2.2 (hc b hy) j |
| 96 | exact he.loosen (B:=C) hnn hT (by unfold C; positivity) (by unfold C; linarith) le_rfl |
| 97 | rintro ⟨s,p|p⟩ |
| 98 | · let y := orient s x; let z := orient s b |
| 99 | have hr := (orient_norm s x).trans hx |
| 100 | have hz := (orient_norm s b).trans hy |
| 101 | unfold primal forecast; unfold V U; simp only [← orient_represents,Sum.elim_inl] |
| 102 | have hv := hf' y hr p |
| 103 | have ht := hv.subtract (ghost _ _ _ _ hE.le hB.le hnn hT (hy' _ hz).1 (hc z hz) p) |
| 104 | exact ht.loosen (B:=C) hnn hT (by unfold C; positivity) (by unfold C; linarith) le_rfl |
| 105 | let z := orient s b; let y := orient s x |
| 106 | have hz := (orient_norm s b).trans hy |
| 107 | have hy := (orient_norm s x).trans hx |
| 108 | unfold primal forecast; unfold V U; simp only [← orient_represents, Sum.elim_inr] |
| 109 | have hi : Guess (zTest S (choice s k) p (y,z)) (zLin S y z p) F h t := by |
| 110 | have he : ‖(y,z)‖ ≤ h := max_le hy hz |
| 111 | obtain ⟨hz,hy⟩ := hq c f S hD ht.knobs (choice s k) p (y,z) |
| 112 | refine ⟨hz.trans (mul_le_mul_of_nonneg_left he hF.le), |
| 113 | (hy (he.trans (hf.trans ((min_le_right ..).trans (min_le_right ..))))).trans ?_⟩ |
| 114 | calc |
| 115 | _ ≤ F*h^2 := by gcongr |
| 116 | _ = F*h*h := by ring |
| 117 | _ ≤ F*h*t := by gcongr; exact le_widen R hnn |
| 118 | have hb := hi.subtract (ghost _ _ _ _ hE.le hB.le hnn hT (hy' _ hz).2.1 (hc z hz) p) |
| 119 | exact hb.loosen (B:=C) hnn hT (by unfold C; positivity) (by unfold C; linarith) le_rfl |
| 120 | |
| 121 | -- retain the uncut row identities AND the cost of every path after cut |
| 122 | |
| 123 | lemma orient_plus (s : Signed) (x y : LogField G n) : orient s (x+y)=orient s x+ orient s y := by |
| 124 | unfold orient; rw [show collect G (x+y)=collect G x+collect G y from rfl,map_add]; rfl |
| 125 | lemma orient_zero (s : Signed) : orient s (0:LogField G n)=0 := by |
| 126 | unfold orient; rw [show collect G (0:LogField G n)=0 from rfl,map_zero]; rfl |
| 127 | |
| 128 | lemma form_collect (x : LogField G n) : form (collect G x)=x := by |
| 129 | funext i; unfold Aff.form collect; dsimp only |
| 130 | rw [show coord _ = axisEquiv _ from rfl, Equiv.apply_symm_apply] |
| 131 | |
| 132 | lemma x_zero (q : Clip) (T : PathData G) (b : Twin n) : xLin q T (0:LogField G n) b=0 := by |
| 133 | have hh (c : Cell n) : faceCurl c (0:LogField G n) = 0 := by |
| 134 | ext k; unfold faceCurl dColor; simp only [show parts G 1 (0:LogField G n) k=0 from rfl, |
| 135 | mulVec_zero,Pi.zero_apply] |
| 136 | rfl |
| 137 | unfold xLin ellLine; split <;> simp [hh] |
| 138 | |
| 139 | lemma forecast_step {P : Teller G} {T : Tube G S} (hp : P.Funds S T) (p : Pos S) (x y : LogField G f) (b : LogField G c) : |
| 140 | forecast T p (x+y) b=forecast T p x b + forecast T p y 0 := by |
| 141 | let h := hp.feeds; obtain ⟨C,L,h1,h2⟩ := h |
| 142 | rw [← hp.high] at h1 |
| 143 | have hv (a : LogField G f) (b : LogField G f) (i : Twin f) : xLin T.high T.up (a+b) i=xLin T.high T.up a i+xLin T.high T.up b i := by |
| 144 | have he (p : Cell f) : faceCurl p (a+b)=faceCurl p a+faceCurl p b := by |
| 145 | conv_lhs => rw [← form_collect (a+b),show collect G (a+b) = collect G a+collect G b from rfl] |
| 146 | rw [← form_collect a, ← form_collect b]; simp only [collect_form]; apply curl_add -- loops check |
| 147 | unfold xLin ellLine; split |
| 148 | next => |
| 149 | simp only [he,smul_add]; exact (ellLine_summable _ h1 ..).tsum_add (ellLine_summable _ h1 ..) |
| 150 | next => rw [he,smul_add] |
| 151 | have hZ : Limage T (0:LogField G c)=0 := funext (x_zero T.low T.down) |
| 152 | have he i (x y : LogField G f) (b : LogField G c) : zLin S (x+y) b i=zLin S x b i + zLin S y 0 i := by |
| 153 | ext k; simp only [zLin,PiLp.add_apply,PiLp.sub_apply,PiLp.smul_apply, Pi.zero_apply,PiLp.zero_apply] |
| 154 | rw [show parts G 1 (x+y) k=parts G 1 x k+parts G 1 y k from rfl, Matrix.mulVec_add,Pi.add_apply]; module |
| 155 | rcases p with ⟨s,i|i⟩ |
| 156 | · simp only [forecast,orient_plus,hv,orient_zero,Fout,hZ,Sum.elim_inl]; unfold zip; simp only [Pi.zero_apply, |
| 157 | map_zero,Finset.sum_const_zero,sub_zero]; abel |
| 158 | simp only [forecast, orient_plus, he,orient_zero,Qout,hZ,Sum.elim_inr]; unfold zip; simp only [Pi.zero_apply, |
| 159 | map_zero,Finset.sum_const_zero,sub_zero]; abel |
| 160 | |
| 161 | lemma leave (P : Teller G) (x : ℝ) (T : Tube G S) (hp : P.Funds S T) (p : Pos S) (w : Directions G f) |
| 162 | (a : ℝ) (ha : 0 ≤ a) (hx : ∀ i, ‖w i‖ ≤ a) : |
| 163 | ‖forecast T p (form w) 0- derivative T (till x) p 1 w‖ ≤ |
| 164 | Real.exp (-P.top.width*till x)*P.top.paths*4*a := by |
| 165 | obtain ⟨L,C,hA,hV⟩ := hp.feeds |
| 166 | have hH : Limage T 0=0 := funext (x_zero T.low T.down) |
| 167 | have he : untwine S p 1 w=maps p.1 1 w := by |
| 168 | unfold untwine; rw [replica_one,show pull p.1 0 (1:Config G c)=1 from funext fun i => by simp [pull,Step.read]] |
| 169 | funext; simp [rotateG,corner_flat] |
| 170 | have hu : orient p.1 (form w)=form (untwine S p 1 w) := by rw [he,orient,collect_form] |
| 171 | have hv v : ‖untwine S p 1 w v‖ ≤ a := by rw [pull_cost]; exact hx _ |
| 172 | let R := till x |
| 173 | let B := Real.exp (-P.top.width*R) |
| 174 | have hb : 0≤B := (Real.exp_pos _).le |
| 175 | have hy : 0 < P.top.paths := P.top.paths_pos |
| 176 | rcases p with ⟨s,⟨i,y⟩|i⟩ |
| 177 | · unfold forecast derivative; dsimp only [Sum.elim_inl] |
| 178 | rw [hu,orient_zero,Fout,hH,show zip (flatF T) 0 (i,y)=0 from by simp [zip],sub_zero,level,xLin]; split |
| 179 | next hy => |
| 180 | let z := untwine S (s,Sum.inl (i,y)) (1:Config G c) w |
| 181 | let u (l : ℕ) := (T.up.row i.2 l).1 • curl (slotFace (T.up.row i.2 l).2 i.1) z |
| 182 | let v l := bandTerm T R i l z |
| 183 | have hu : Summable u := ellLine_summable _ hA .. |
| 184 | have h2 : Summable v := band_summable hp .. |
| 185 | change ‖(∑' l,u l)- ∑' l, v l‖ ≤ B*P.top.paths*4*a |
| 186 | rw [← hu.tsum_sub h2] |
| 187 | let A l := |(T.up.row i.2 l).1| * Real.exp (P.top.width*(T.up.row i.2 l).2.length) |
| 188 | have H : SumBudget A P.top.paths := hA.rows _ |
| 189 | have hf l : ‖u l-v l‖ ≤ A l * (4*a*B) := by |
| 190 | unfold v bandTerm; split |
| 191 | next ht => unfold u; rw [sub_self,norm_zero]; unfold A; positivity |
| 192 | next ht => |
| 193 | rw [sub_zero]; unfold u; rw [norm_smul]; unfold A |
| 194 | let X := (T.up.row i.2 l).1 |
| 195 | let L := (T.up.row i.2 l).2.length |
| 196 | have hp := P.top.width_pos |
| 197 | have hh : 1 ≤ Real.exp (P.top.width*L)*B := by |
| 198 | unfold B; rw [← Real.exp_add]; apply Real.one_le_exp |
| 199 | have he : (R:ℝ) ≤ L := Nat.cast_le.mpr ((Nat.lt_of_not_ge ht).le) |
| 200 | linarith only [mul_le_mul_of_nonneg_left he hp.le] |
| 201 | apply le_trans (mul_le_mul_of_nonneg_left (curl_cost _ _ _ hv) (norm_nonneg _)) |
| 202 | calc |
| 203 | ‖X‖*(4*a) ≤ ‖X‖*(4*a)*(Real.exp (P.top.width*L)*B) := le_mul_of_one_le_right (by positivity) hh |
| 204 | _ = _ := by rw [Real.norm_eq_abs]; unfold L X; ring |
| 205 | have hs := (H.2.1.mul_right (4*a*B)).of_nonneg_of_le (fun l => norm_nonneg _) hf |
| 206 | calc |
| 207 | _ ≤ ∑' l,A l *(4*a*B) := (norm_tsum_le_tsum_norm hs).trans (hs.tsum_le_tsum hf (H.2.1.mul_right _)) |
| 208 | _ ≤ P.top.paths*(4*a*B) := by rw [tsum_mul_right]; gcongr; exact H.2.2 |
| 209 | _ = _ := by ring |
| 210 | next => rw [sub_self,norm_zero]; positivity |
| 211 | unfold forecast derivative; dsimp only [Sum.elim_inr] |
| 212 | rw [hu,orient_zero,Qout,hH, show zip (flatI T) 0 i=0 from by simp [zip], sub_zero,sub_self,norm_zero]; positivity |
| 213 | end YM.AnalyticNext.ConnectedActivity.Aff |