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.Extraction.Equicontinuity |
| 2 | import YM.Next.RANK.Bought |
| 3 | import YM.FullVolume.Skein |
| 4 | |
| 5 | /-! |
| 6 | # All-p uniform price at generic detector neighborhoods |
| 7 | Swap the Wcmain estimates in E's `comparable` use for the unextracted |
| 8 | ones. Probes from a `Purchases` ticket are COMPLETELY inside the |
| 9 | smallest admitted box as well, so we can buy epsilon-continuity at |
| 10 | these physical neighborhoods before the period. Used only for the |
| 11 | probe lower bounds; no assertion YET about all-position convergence. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.FullVolume |
| 16 | open Function Set Filter MeasureTheory Metric Lattice RG Wilson Extraction Extraction.Lease Difference Gaps Cells Next.Rank.Market Push.RelayDifference |
| 17 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 18 | variable {G:Gauge}{C : Family G} {d k N p n : ℕ} {S : Table C.book} {X:Columns C S d} (T:X.Trials) |
| 19 | structure Booths : Prop where |
| 20 | bounded k : ∃ A : ℝ, ∀ N p i, ‖T.lift k N p i‖ ≤ A |
| 21 | fit : ∃ η : ℝ, 0 < η ∧ ∀ k i j a, |
| 22 | |T.realPlace k i j a| ≤ C.S.a (T.width k)*((2:ℝ)⁻¹-η) |
| 23 | axis (k i) : T.realPlace k i∈YM.generic _ |
| 24 | lemma invested (h:Purchases T):Booths T:=⟨h.bounded,h.fit,h.axis⟩ |
| 25 | variable (h:Booths T) |
| 26 | |
| 27 | /-- positions on the common covering lattice used in the probe, if present. -/ |
| 28 | def loc (k : ℕ) (r:Fin X.amount)(i:Cutoffs) : Positions ((X.row r).extra+1):= if h:T.depth k ≤ i.1 then (fun j => (C.S.toDepth h i.2).count.val • T.mark k r j) else 0 |
| 29 | lemma loc_wrap (k : ℕ) (r : Fin X.amount) (i:Cutoffs) (hk:T.depth k ≤ i.1) (j) : wrap (C.side i.1 i.2) (loc T k r i j) = location C.S (T.depth k) i.1 i.2 (T.mark k r j):=by |
| 30 | rw [loc,location,dif_pos hk, dif_pos hk, Ratio.embed_wrap] |
| 31 | lemma loc_tag (k : ℕ) (r : Fin X.amount) (i:Cutoffs) (hk:T.depth k ≤ i.1) : tag (C.S.a i.1) (loc T k r i) = T.realPlace k r:=by |
| 32 | ext j a |
| 33 | let B:=C.S.toDepth hk i.2 |
| 34 | change C.S.a i.1 * (loc T k r i j a : ℤ)=_ -- |
| 35 | rw [loc,dif_pos hk]; change C.S.a i.1 * (((B.count.val • T.mark k r j a:ℤ):ℝ))= C.S.a (T.depth k) * (T.mark k r j a:ℝ) |
| 36 | rw [nsmul_eq_mul,Int.cast_mul,Int.cast_natCast,←mul_assoc, C.S.embeds_scale B] |
| 37 | |
| 38 | -- generic reductions from expand_equivalent, all periods used |
| 39 | private lemma ltd (S : Schedule) (p:ℕ) : 4 ≤ length S p := by |
| 40 | exact_mod_cast Nat.le_of_dvd (S.period p).property (S.period_four p) |
| 41 | private lemma pod {δ:ℝ}(hv:|δ|<2) (S : Schedule) (p : ℕ) : off S p δ |δ|:= by |
| 42 | intro u; rw [Real.dist_eq]; rcases lt_trichotomy u 0 with e|e|e |
| 43 | · have he : (u:ℝ) ≤ -1:= by exact_mod_cast (show u ≤ -1 by omega) |
| 44 | have hk : (u:ℝ)* length S p ≤ -length S p := by nlinarith [ltd S p] |
| 45 | grind [ltd] |
| 46 | · subst u; simp |
| 47 | have he : (1:ℝ) ≤ u:= by exact_mod_cast (show 1 ≤ u by omega) |
| 48 | have hk : length S p ≤ (u:ℝ)*length S p:= by nlinarith [ltd S p] |
| 49 | -- linarith with abs |
| 50 | grind [ltd] |
| 51 | |
| 52 | include h in |
| 53 | lemma arena (k:ℕ) (j : Fin X.amount) : ∃ t r : ℝ, 0<t ∧ 0<r ∧ ∀ x∈closedBall (T.realPlace k j) t,∀ p:ℕ, Gaps.allFine C.S p (4*r) x:= by |
| 54 | let m := (X.row j).extra+1 |
| 55 | let y:=T.realPlace k j |
| 56 | obtain ⟨b,hb,hK⟩:=h.fit |
| 57 | have he i a: |y i a|<1 := by |
| 58 | have hB:= (hK k j i a) |
| 59 | have hu := C.S.strictAnti.antitone (Nat.zero_le (T.width k)) |
| 60 | rw [Schedule.a_zero] at hu; change |y i a| ≤_ at hB; nlinarith [C.S.a_pos (T.width k)] |
| 61 | let v : Set (Points m) := {x|∀ i a, |x i a|<1} |
| 62 | have hp: v∈𝓝 y:=eventually_all.mpr (fun i=>eventually_all.mpr (fun a=> |
| 63 | (show Continuous (fun x:Points m=> |x i a|) by fun_prop).continuousAt (x:=y)|>.eventually (gt_mem_nhds (he i a)))) |
| 64 | have hz : generic m ∈ 𝓝 y := (genericOpen _).mem_nhds (h.axis k j) |
| 65 | obtain ⟨t,ht,hV⟩:= Metric.mem_nhds_iff.mp (inter_mem hp hz) |
| 66 | let B:= closedBall y (t/2) |
| 67 | have hU : B ⊆ v ∩ generic m:= (closedBall_subset_ball (half_lt_self ht)).trans hV |
| 68 | have hB : B ⊆ Cyclic C.S 0 m :=by |
| 69 | intro x hx; refine (no_wrap_tie C.S ?_).2 ((hU hx).2) |
| 70 | intro i a; obtain ⟨hf,hd⟩:=abs_lt.mp ((hU hx).1 i a) |
| 71 | have hh: 1 ≤ C.S.radius 0:= by have hf:=ltd C.S 0; change 4 ≤ ((C.S.period 0).val:ℝ) at hf; unfold Schedule.radius; linarith |
| 72 | constructor <;> linarith |
| 73 | obtain ⟨r,hr,H⟩ := Gaps.all C.S 0 (isCompact_closedBall ..) hB |
| 74 | refine ⟨t/2,r/4,half_pos ht,by positivity,fun x hx p i j h a z=>?_⟩ |
| 75 | have he:= H x hx i j h a 0 |
| 76 | simp at he |
| 77 | have hp : |distances x i j a|<2:= lt_of_le_of_lt (abs_sub ..) (by linarith only [(hU hx).1 j a,(hU hx).1 i a]) |
| 78 | refine le_trans (le_trans (b:=r) (by linarith) ?_) (pod hp C.S p z); simpa [Real.norm_eq_abs] using he |
| 79 | |
| 80 | -- relay step adjacency bounds uniform for every fixed row set bounded |
| 81 | abbrev bookshelf (C:Family G) (m:ℕ):= Fin m→ C.label d |
| 82 | |
| 83 | lemma spin_bound (C:Family G) (a:Axis) (b:ℝ) : ∃ D:ℝ,∀ x:C.label d, ‖x‖ ≤ b → |
| 84 | ‖(C.book.reflectedToken a ⟨d,x⟩).2‖ ≤ D := by |
| 85 | -- continuous across coefficient norm, use compact image |
| 86 | let f (x:C.label d): C.label d:= (C.book.reflectedToken a ⟨d,x⟩).2 |
| 87 | have hf:Continuous f:=by |
| 88 | exact (C.book.mirrorGroup d (Signed.mirror a)).continuous_of_finiteDimensional.comp continuous_star |
| 89 | obtain ⟨D,hD⟩:= ((isCompact_closedBall (0:C.label d) b).image hf.norm).bddAbove |
| 90 | exact ⟨D,fun x hx=> hD ⟨x,Metric.mem_closedBall.mpr (by rwa [dist_zero_right]),rfl⟩⟩ |
| 91 | lemma provisions (_M: C.Makes)(H: Wcmain C) (m : ℕ) (r : ℝ): ∀ᶠ k in atTop, ∃ A : ℝ, 0≤ A ∧ ∀ᶠ i in mesh,∀ x:Fin m → C.label d,(∀ j,‖x j‖ ≤ r) → Permit (fun j=> (⟨d,x j⟩: C.book.Token)) A k i.1 i.2:=by |
| 92 | choose D hD using spin_bound (d:=d) C (b:=r) |
| 93 | obtain ⟨b,hb,hb',hb''⟩:= ((eventually_gt_atTop (0:ℝ)).and ((eventually_ge_atTop r).and (eventually_all.mpr fun a:Axis=>eventually_ge_atTop (D a)))).exists |
| 94 | obtain ⟨a,ha,hF⟩:= H d b 1 hb zero_lt_one |
| 95 | filter_upwards [eventually_ge_atTop (C.ref d)] with k hk |
| 96 | refine ⟨a*C.S.a k^(-(d:ℝ)-1),mul_nonneg ha (Real.rpow_nonneg (C.S.a_pos _).le _),?_⟩ |
| 97 | filter_upwards [deepen.eventually (hF k hk)] with i hi x h |
| 98 | rintro j w (rfl|⟨s,rfl⟩) |
| 99 | · exact hi _ (x j) ((h _).trans hb') |
| 100 | let w:= C.book.reflectedToken s ⟨d,x j⟩; exact hi i.2 (w.2) ((hD s (x j) (h _)).trans (hb'' s)) |
| 101 | |
| 102 | private theorem norm_tag {m : ℕ} (x y : positions m) (t : ℝ) : |
| 103 | dist (tag t x) (tag t y) ^ 2 = ∑ i : Fin m × Axis, (t * (x i.1 i.2 - y i.1 i.2 : ℤ))^2 := by |
| 104 | rw [dist_eq_norm,← Points.flatten.norm_map,EuclideanSpace.real_norm_sq_eq]; simp only [map_sub,PiLp.sub_apply] |
| 105 | refine Finset.sum_congr rfl fun i _ => ?_; change (_ * _ - _ * _) ^ 2 = _ |
| 106 | simp only [Int.cast_sub,mul_sub] |
| 107 | |
| 108 | section |
| 109 | variable {n : ℕ} (x y : positions n) |
| 110 | private def via (s : Finset (Fin n × Axis)) (i : Fin n) (a : Axis) := if (i,a)∈s then x i a else y i a |
| 111 | |
| 112 | private lemma replaces (t : ℝ) (s u : Finset (Fin n × Axis)) : |
| 113 | dist (tag t (via x y s)) (tag t (via x y u)) ≤ dist (tag t x) (tag t y) := by |
| 114 | apply (sq_le_sq₀ dist_nonneg dist_nonneg).1 |
| 115 | simp_rw [norm_tag]; apply Finset.sum_le_sum; intro p _ |
| 116 | unfold via; split_ifs <;> simp <;> first | rfl | positivity | ring_nf; rfl |
| 117 | |
| 118 | private theorem pricing (h : C.Makes) {n : ℕ} (v : Fin (n+1) → C.book.Token) |
| 119 | {A r t : ℝ} (ha : 0 ≤ A) (hr : 0<r) (K L : Set (Points (n+1))) (p N D : ℕ) (hd : D≤N) (H : Permit v A D N p) |
| 120 | (he : ∀ y∈L, allFine C.S p (4*r) y) (hv : C.S.a D < r) (Ks : cthickening t K ⊆ L) |
| 121 | (x y : positions (n+1)) (hy : tag (C.S.a N) y ∈ K) |
| 122 | (hx : dist (tag (C.S.a N) x) (tag (C.S.a N) y) ≤ min r t) : |
| 123 | dist (lifted C N p v x) (lifted C N p v y) ≤ |
| 124 | ((n+1:ℕ)* (4:ℝ)) *((A^(n+1)/r)*dist (tag (C.S.a N) x) (tag (C.S.a N) y)) := by |
| 125 | let a := C.S.a N |
| 126 | let E := A^(n+1)/r |
| 127 | let R := dist (tag a x) (tag a y) |
| 128 | let D' := lifted C N p v |
| 129 | let W := via x y |
| 130 | have hb (s u) : dist (tag a (W s)) (tag a (W u)) ≤ R := replaces x y a s u |
| 131 | have hy' : W ∅=y := by ext; simp [W,via] |
| 132 | have hR (s) : tag a (W s)∈L := Ks (mem_cthickening_of_dist_le _ _ _ K hy |
| 133 | ((hy' ▸ hb s ∅ : dist (tag a (W s)) (tag a y) ≤ R).trans (hx.trans (min_le_right ..)))) |
| 134 | have he' : 0≤E := div_nonneg (pow_nonneg ha _) hr.le |
| 135 | have ht {u v' : Finset (Fin (n+1) × Axis)} (i j l) (hk : W u = advance (W v') i j l) : |
| 136 | dist (D' (W u)) (D' (W v')) ≤ E*R := by |
| 137 | apply le_trans (show dist (D' (W u)) (D' (W v')) ≤ E * dist (tag a (W u)) (tag a (W v')) from by |
| 138 | rw [hk]; refine stepTotal h v ha hr L p N D hd H he hv i j l (W v') (hR v') ?_ |
| 139 | exact hk ▸ (hb u v').trans (hx.trans (min_le_left ..))) (mul_le_mul_of_nonneg_left (hb u v') he') |
| 140 | have hs (s) : dist (D' (W s)) (D' y) ≤ (s.card:ℝ)*(E*R) := by |
| 141 | induction s using Finset.induction_on with |
| 142 | | empty => simp [hy'] |
| 143 | | @insert b s hB ih => |
| 144 | obtain ⟨i,j⟩ := b |
| 145 | rw [Finset.card_insert_of_notMem hB,Nat.cast_add,Nat.cast_one,add_mul,one_mul,add_comm ((s.card:ℝ)*_)] |
| 146 | refine (dist_triangle _ (D' (W s)) _).trans (add_le_add ?_ ih) |
| 147 | rcases le_total (x i j) (y i j) with h|h |
| 148 | · rw [dist_comm]; apply ht i j (y i j-x i j).natAbs |
| 149 | funext u w |
| 150 | by_cases hu : u=i |
| 151 | swap; simp [advance,W,via,hu] |
| 152 | subst u |
| 153 | by_cases hw : w=j |
| 154 | · subst w |
| 155 | simp only [advance,W,via, Function.update_self, hB,Finset.mem_insert_self, Pi.add_apply,Pi.smul_apply, |
| 156 | ↓reduceIte, step_apply]; simp [abs_of_nonneg (sub_nonneg.mpr h)] |
| 157 | · simp [advance,W,via,hw] |
| 158 | apply ht i j (x i j-y i j).natAbs |
| 159 | funext u w; by_cases hu : u=i |
| 160 | · subst u; by_cases hw : w=j |
| 161 | · subst w; simp [W,via,advance,hB,abs_of_nonneg (sub_nonneg.mpr h)] |
| 162 | simp [W,via,advance,hw] |
| 163 | simp [W,via,advance,hu] |
| 164 | convert hs Finset.univ using 1 |
| 165 | · rw [show W Finset.univ=x by ext; simp [W,via]] |
| 166 | simp only [Finset.card_univ,Fintype.card_prod,Axis,Fintype.card_fin, Nat.cast_mul,Nat.cast_ofNat];rfl |
| 167 | end |
| 168 | |
| 169 | private lemma tax {n : ℕ} (A r T ε : ℝ) (he : ε>0) (hr : 0<r) (hA : 0≤A) (hT : 0<T) : |
| 170 | ∃ t : ℝ, 0<t ∧ t ≤ min r T ∧ ((↑(n+1:ℕ):ℝ)* (4:ℝ)) * ((A^(n+1)/r)*t) < ε := by |
| 171 | let L := ((↑(n+1:ℕ):ℝ)* (4:ℝ)) * (A^(n+1)/r) |
| 172 | have hL : 0≤L := by unfold L; positivity |
| 173 | let t := min (min r T) (ε/(1+L)) |
| 174 | have ht : 0<t := by unfold t; exact lt_min (lt_min hr hT) (by positivity) |
| 175 | refine ⟨t,ht,min_le_left ..,?_⟩ |
| 176 | rw [← mul_assoc] |
| 177 | change L*t<ε |
| 178 | calc |
| 179 | _ < (1+L)*t := by linarith |
| 180 | _ ≤ _ := (le_div_iff₀' (by linarith : 0<1+L)).mp (min_le_right ..) |
| 181 | |
| 182 | include h |
| 183 | /-- Uniform local approximation of primary probe evaluations. |
| 184 | Centers near exactly the same grid point even at period 0. -/ |
| 185 | lemma lobby (M:C.Makes) (hc : Wcmain C) (k:ℕ) (j : Fin X.amount) (b ε:ℝ)(hε:0<ε): |
| 186 | let m:=(X.row j).extra+1 |
| 187 | ∃ r : ℝ, 0<r ∧ ∀ᶠ i in FullVolume.mesh, ∀ v:Fin m→ C.label d,(∀ u:Fin m, ‖v u‖ ≤ b) → |
| 188 | ∀ x, dist (tag (C.S.a i.1) x) (T.realPlace k j) ≤ r → let f (x:Positions m):= Extraction.lifted C i.1 i.2 (fun u=> (⟨d,v u⟩: C.book.Token)) x |
| 189 | dist (f x) (f (loc T k j i)) < ε:=by |
| 190 | intro m |
| 191 | obtain ⟨t,r,ht,hr,hK⟩:= arena T h k j |
| 192 | obtain ⟨l,⟨A,hA,hc'⟩,hl⟩:= ((provisions (d:=d) M hc m b).and (C.S.shrinks.eventually (gt_mem_nhds hr))).exists |
| 193 | obtain ⟨u,hu,hU,hv⟩:=tax (n:=(X.row j).extra) A r t ε hε hr hA ht |
| 194 | refine ⟨u,hu,?_⟩ |
| 195 | let y:=T.realPlace k j |
| 196 | filter_upwards [hc',deepen.eventually_ge_atTop l,deepen.eventually_ge_atTop (T.depth k)] with i hi H hD v hV x hp |
| 197 | intro f |
| 198 | have hx:= loc_tag T k j i hD |
| 199 | obtain ⟨hr',ht'⟩:=le_min_iff.mp hU |
| 200 | have he:= pricing (C:=C) M _ hA hr {y} (closedBall y t) _ i.1 l H (hi v hV) (fun x hx => hK x hx i.2) hl (show Metric.cthickening t {y}⊆ Metric.closedBall y t from ?_) x (loc T k j i) (by rw [hx]; exact mem_singleton _) (by rw [hx]; exact hp.trans hU) |
| 201 | · rw [hx] at he; exact lt_of_le_of_lt he (lt_of_le_of_lt (by gcongr) hv) |
| 202 | simp [cthickening_singleton y ht.le] |
| 203 | end YM.FullVolume |