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.Center |
| 2 | import YM.Extraction.Difference |
| 3 | import YM.Extraction.Gaps |
| 4 | |
| 5 | /-! The equicontinuity producer for primaries is ready to USE the finite cutoff estimates. |
| 6 | |
| 7 | Proof path: Bricks, verified finite Schatten-Hadamard argument & true cyclic reimpl, |
| 8 | axis gap scheduling in native units, oriented room on fixed-p/expanding p separately, |
| 9 | deterministic hybrid telescope to use arbitrary grid tags through patch boundary. |
| 10 | No equicontinuity through ties. No assuming expansion global bounds from local compact |
| 11 | extraction. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extraction.Difference |
| 16 | open Function Filter Set Lattice MeasureTheory Metric Gaps Wilson Slice.Time |
| 17 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 18 | variable {G : Gauge} {C : Family G} |
| 19 | |
| 20 | abbrev positions (n : ℕ) := Fin n → Cover |
| 21 | |
| 22 | /-- Moves by ONE whole component, positive. -/ |
| 23 | def advance {n : ℕ} (s : positions n) (k : Fin n) (i : Axis) (l : ℕ) : positions n := update s k (s k + (l • step i)) |
| 24 | |
| 25 | lemma shifted {m N p : ℕ} (v : Fin (m+1) → C.book.Token) (a : positions (m+1)) (k : Fin (m+1)) (i : Axis) (l : ℕ) : |
| 26 | lifted C N p v (advance a k i l) = C.numeric N p v (update (wrap _ ∘ a) k (wrap (C.side N p) (a k) + offset i (↑l))) := by |
| 27 | unfold lifted |
| 28 | congr 1; funext j; by_cases he : j=k |
| 29 | · subst j; simp only [Function.comp_apply,advance,update_self,map_add,map_nsmul,wrap_step]; congr 1; ext1; simp [offset] |
| 30 | simp [advance,he] |
| 31 | |
| 32 | private theorem norm_tag {m : ℕ} (x y : positions m) (t : ℝ) : |
| 33 | 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 |
| 34 | rw [dist_eq_norm,← Points.flatten.norm_map,EuclideanSpace.real_norm_sq_eq]; simp only [map_sub,PiLp.sub_apply] |
| 35 | refine Finset.sum_congr rfl fun i _ => ?_; change (_ * _ - _ * _) ^ 2 = _ |
| 36 | simp only [Int.cast_sub,mul_sub] |
| 37 | |
| 38 | lemma extent {n : ℕ} (s : positions n) (k : Fin n) (i : Axis) (l : ℕ) (t : ℝ) (ht : 0 < t) : |
| 39 | dist (tag t (advance s k i l)) (tag t s) = t*l := by |
| 40 | apply (sq_eq_sq₀ dist_nonneg (by positivity)).1 |
| 41 | rw [norm_tag,Finset.sum_eq_single_of_mem (k,i) (Finset.mem_univ _)] |
| 42 | · simp [advance] |
| 43 | rintro ⟨j,b⟩ _ he; by_cases h : j=k |
| 44 | · subst j; simp at he; simp [advance,he] |
| 45 | simp [advance,h] |
| 46 | |
| 47 | /-- A centered width cost for current word, each token and adjoints. -/ |
| 48 | def Permit {n} (v : Fin n→C.book.Token) (A : ℝ) (e N p : ℕ) := |
| 49 | ∀ i w, (w=v i ∨ ∃ a, w=C.book.reflectedToken a (v i)) → centeredBudget C w A e N p |
| 50 | |
| 51 | lemma permits {f} (h : CenteredBook C f) (p : ℕ) {n} (v : Fin n → C.book.Token) : |
| 52 | (∀ᶠ m in atTop, ∃ A : ℝ, 0 ≤ A ∧ ∀ᶠ j in atTop, Permit v A m (f.mesh j) p) ∧ |
| 53 | (∀ᶠ m in atTop, ∃ A : ℝ, 0 ≤ A ∧ f.late (Permit v A m)) := by |
| 54 | let I := Fin n ⊕ (Axis × Fin n) |
| 55 | let P : I → C.book.Token := Sum.elim v fun i => C.book.reflectedToken i.1 (v i.2) |
| 56 | letI : Fintype I := inferInstanceAs (Fintype (Fin n ⊕ (Axis × Fin n))) |
| 57 | have ht := lib _ _ Finset.univ h p P |
| 58 | have he (m N p T) (h : ∀ i∈Finset.univ, centeredBudget C (P i) T m N p) : Permit v T m N p := by |
| 59 | rintro i w (rfl|⟨a,rfl⟩) |
| 60 | · exact h (Sum.inl i) (Finset.mem_univ _) |
| 61 | exact h (Sum.inr (a,i)) (Finset.mem_univ _) |
| 62 | constructor |
| 63 | · filter_upwards [ht.1] with m hm; obtain ⟨Q,hq,H⟩ := hm; exact ⟨Q,hq,H.mono fun i h => he _ _ _ _ h⟩ |
| 64 | filter_upwards [ht.2] with m hm; obtain ⟨Q,hq,H⟩ := hm; exact ⟨Q,hq,H.mono fun j h => h.mono fun i h => he _ _ _ _ h⟩ |
| 65 | |
| 66 | lemma stepTotal {m : ℕ} (H : C.Makes) (v : Fin (m+1)→C.book.Token) {A r : ℝ} (ha : 0 ≤ A) |
| 67 | (hr : 0<r) (K : Set (Points (m+1))) (p N D : ℕ) (hd : D≤N) (h : Permit v A D N p) |
| 68 | (he : ∀ x∈K, allFine C.S p (4*r) x) (hv : C.S.a D < r) |
| 69 | (k : Fin (m+1)) (i : Axis) (l : ℕ) (u : positions (m+1)) |
| 70 | (hq : tag (C.S.a N) u ∈ K) (hb : dist (tag (C.S.a N) (advance u k i l)) (tag (C.S.a N) u) ≤ r) : |
| 71 | dist (lifted C N p v (advance u k i l)) (lifted C N p v u) ≤ |
| 72 | (A^(m+1)/r)*dist (tag (C.S.a N) (advance u k i l)) (tag (C.S.a N) u) := by |
| 73 | let L := (C.S.toDepth hd p).count.val |
| 74 | let x := wrap (C.side N p) ∘ u |
| 75 | let g := C.S.a N |
| 76 | have hh := show 0<g from C.S.a_pos _ |
| 77 | rw [extent _ _ _ _ _ hh] at hb ⊢ |
| 78 | unfold Permit at h |
| 79 | have hp : C.sufficient N v := by |
| 80 | intro i; exact (h i (v i) (Or.inl rfl)).choose_spec.1 |
| 81 | cases Nat.eq_zero_or_pos m with |
| 82 | | inl e => |
| 83 | subst m; rw [shifted]; change dist _ (C.numeric N p v x) ≤ _ |
| 84 | let t := offset i ((↑l:Per (C.side N p))) |
| 85 | rw [show update (⇑(wrap _) ∘ u) k _= fun i : Fin (0+1) => x i + t by |
| 86 | ext1 i; rw [@Subsingleton.elim (Fin 1) _ i k, Function.update_self];rfl, C.anchored H v hp t x,dist_self] |
| 87 | exact mul_nonneg (div_nonneg (pow_nonneg ha _) hr.le) (mul_nonneg hh.le (Nat.cast_nonneg _)) |
| 88 | | inr e => |
| 89 | have hw : g*L=C.S.a D := C.S.embeds_scale (C.S.toDepth hd p) |
| 90 | have ht (a b : Fin (m+1)) (hs:a≠b) : (2:ℝ)*L + 2*(r/g) < ((x b i - x a i).val:ℝ) := by |
| 91 | have hz := gridAxis _ x rfl (he _ hq) _ _ hs i |
| 92 | apply lt_of_mul_lt_mul_left _ hh.le |
| 93 | calc |
| 94 | g * ((2:ℝ)*L+2*(r/g)) = 2*(g*L)+2*r := by field_simp |
| 95 | _ < 4*r := by linarith |
| 96 | _ ≤ _ := hz |
| 97 | have hf : (l:ℝ) ≤ r/g := (le_div_iff₀' hh).mpr hb |
| 98 | have hu := primitive H i v hp hd L rfl (fun _ => A) e x (r/g) (div_pos hr hh) ht (fun j w hh => ?_) k l hf |
| 99 | · rw [dist_eq_norm, shifted] |
| 100 | apply hu.trans_eq |
| 101 | simp only [Finset.prod_const,Finset.card_univ,Fintype.card_fin] |
| 102 | ring_nf; simp [mul_comm,mul_left_comm]; ring |
| 103 | obtain ⟨hD,_,hr⟩ := h j w (hh.imp_right fun p => ⟨i,p⟩); exact hr _ |
| 104 | |
| 105 | section |
| 106 | variable {n : ℕ} (x y : positions n) |
| 107 | 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 |
| 108 | |
| 109 | private lemma replaces (t : ℝ) (s u : Finset (Fin n × Axis)) : |
| 110 | dist (tag t (via x y s)) (tag t (via x y u)) ≤ dist (tag t x) (tag t y) := by |
| 111 | apply (sq_le_sq₀ dist_nonneg dist_nonneg).1 |
| 112 | simp_rw [norm_tag]; apply Finset.sum_le_sum; intro p _ |
| 113 | unfold via; split_ifs <;> simp <;> first | rfl | positivity | ring_nf; rfl |
| 114 | |
| 115 | private theorem comparable (h : C.Makes) {n : ℕ} (v : Fin (n+1) → C.book.Token) |
| 116 | {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) |
| 117 | (he : ∀ y∈L, allFine C.S p (4*r) y) (hv : C.S.a D < r) (Ks : cthickening t K ⊆ L) |
| 118 | (x y : positions (n+1)) (hy : tag (C.S.a N) y ∈ K) |
| 119 | (hx : dist (tag (C.S.a N) x) (tag (C.S.a N) y) ≤ min r t) : |
| 120 | dist (lifted C N p v x) (lifted C N p v y) ≤ |
| 121 | ((n+1:ℕ)* (4:ℝ)) *((A^(n+1)/r)*dist (tag (C.S.a N) x) (tag (C.S.a N) y)) := by |
| 122 | let a := C.S.a N |
| 123 | let E := A^(n+1)/r |
| 124 | let R := dist (tag a x) (tag a y) |
| 125 | let D' := lifted C N p v |
| 126 | let W := via x y |
| 127 | have hb (s u) : dist (tag a (W s)) (tag a (W u)) ≤ R := replaces x y a s u |
| 128 | have hy' : W ∅=y := by ext; simp [W,via] |
| 129 | have hR (s) : tag a (W s)∈L := Ks (mem_cthickening_of_dist_le _ _ _ K hy |
| 130 | ((hy' ▸ hb s ∅ : dist (tag a (W s)) (tag a y) ≤ R).trans (hx.trans (min_le_right ..)))) |
| 131 | have he' : 0≤E := div_nonneg (pow_nonneg ha _) hr.le |
| 132 | have ht {u v' : Finset (Fin (n+1) × Axis)} (i j l) (hk : W u = advance (W v') i j l) : |
| 133 | dist (D' (W u)) (D' (W v')) ≤ E*R := by |
| 134 | apply le_trans (show dist (D' (W u)) (D' (W v')) ≤ E * dist (tag a (W u)) (tag a (W v')) from by |
| 135 | rw [hk]; refine stepTotal h v ha hr L p N D hd H he hv i j l (W v') (hR v') ?_ |
| 136 | exact hk ▸ (hb u v').trans (hx.trans (min_le_left ..))) (mul_le_mul_of_nonneg_left (hb u v') he') |
| 137 | have hs (s) : dist (D' (W s)) (D' y) ≤ (s.card:ℝ)*(E*R) := by |
| 138 | induction s using Finset.induction_on with |
| 139 | | empty => simp [hy'] |
| 140 | | @insert b s hB ih => |
| 141 | obtain ⟨i,j⟩ := b |
| 142 | rw [Finset.card_insert_of_notMem hB,Nat.cast_add,Nat.cast_one,add_mul,one_mul,add_comm ((s.card:ℝ)*_)] |
| 143 | refine (dist_triangle _ (D' (W s)) _).trans (add_le_add ?_ ih) |
| 144 | rcases le_total (x i j) (y i j) with h|h |
| 145 | · rw [dist_comm]; apply ht i j (y i j-x i j).natAbs |
| 146 | funext u w |
| 147 | by_cases hu : u=i |
| 148 | swap; simp [advance,W,via,hu] |
| 149 | subst u |
| 150 | by_cases hw : w=j |
| 151 | · subst w |
| 152 | simp only [advance,W,via, Function.update_self, hB,Finset.mem_insert_self, Pi.add_apply,Pi.smul_apply, |
| 153 | ↓reduceIte, step_apply]; simp [abs_of_nonneg (sub_nonneg.mpr h)] |
| 154 | · simp [advance,W,via,hw] |
| 155 | apply ht i j (x i j-y i j).natAbs |
| 156 | funext u w; by_cases hu : u=i |
| 157 | · subst u; by_cases hw : w=j |
| 158 | · subst w; simp [W,via,advance,hB,abs_of_nonneg (sub_nonneg.mpr h)] |
| 159 | simp [W,via,advance,hw] |
| 160 | simp [W,via,advance,hu] |
| 161 | convert hs Finset.univ using 1 |
| 162 | · rw [show W Finset.univ=x by ext; simp [W,via]] |
| 163 | simp only [Finset.card_univ,Fintype.card_prod,Axis,Fintype.card_fin, Nat.cast_mul,Nat.cast_ofNat];rfl |
| 164 | end |
| 165 | |
| 166 | private lemma budget_epsilon {n : ℕ} (A r T ε : ℝ) (he : ε>0) (hr : 0<r) (hA : 0≤A) (hT : 0<T) : |
| 167 | ∃ t : ℝ, 0<t ∧ t ≤ min r T ∧ ((↑(n+1:ℕ):ℝ)* (4:ℝ)) * ((A^(n+1)/r)*t) < ε := by |
| 168 | let L := ((↑(n+1:ℕ):ℝ)* (4:ℝ)) * (A^(n+1)/r) |
| 169 | have hL : 0≤L := by unfold L; positivity |
| 170 | let t := min (min r T) (ε/(1+L)) |
| 171 | have ht : 0<t := by unfold t; exact lt_min (lt_min hr hT) (by positivity) |
| 172 | refine ⟨t,ht,min_le_left ..,?_⟩ |
| 173 | rw [← mul_assoc] |
| 174 | change L*t<ε |
| 175 | calc |
| 176 | _ < (1+L)*t := by linarith |
| 177 | _ ≤ _ := (le_div_iff₀' (by linarith : 0<1+L)).mp (min_le_right ..) |
| 178 | |
| 179 | /-- Two compact clauses, now genuinely supplied from *the exact* cell |
| 180 | estimates on one trajectory. -/ |
| 181 | theorem completed (H : C.Makes) {f} (h : CenteredBook C f) : TransferLip C f := by |
| 182 | constructor |
| 183 | · intro p n K ht hK v ε hε |
| 184 | cases n with |
| 185 | | zero => exact ⟨1,zero_lt_one,Eventually.of_forall fun i b u _ _ _ => by rw [Subsingleton.elim b u, dist_self]; exact hε⟩ |
| 186 | | succ n => |
| 187 | obtain ⟨T,hT,hKT⟩ := ht.exists_cthickening_subset_open (cyclicOpen C.S p (n+1)) hK |
| 188 | let M := cthickening T K |
| 189 | obtain ⟨R,hR,hr⟩ := all _ _ (show IsCompact M from ht.cthickening) hKT |
| 190 | obtain ⟨D,hD,hB⟩ := ((C.S.shrinks.eventually (gt_mem_nhds (by linarith : (0:ℝ)<R/4))).and (permits h p v).1).exists |
| 191 | obtain ⟨A,hA,hv⟩ := hB |
| 192 | obtain ⟨t,hy,hw,hf⟩ := budget_epsilon (n := n) A (R/4) T ε hε (by positivity) hA hT |
| 193 | refine ⟨t,hy,?_⟩ |
| 194 | filter_upwards [hv, f.mesh.cofinal.eventually (eventually_ge_atTop D)] with i he hi b u hb hu Ht |
| 195 | apply lt_of_le_of_lt (comparable H v hA (r := R/4) (by positivity) K M p _ D hi he (by |
| 196 | rw [show (4:ℝ)*(R/4)=R by ring]; exact hr) hD (subset_refl (cthickening T K)) _ _ hu (Ht.le.trans hw)) |
| 197 | exact lt_of_le_of_lt (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left Ht.le (by positivity)) (by positivity)) hf |
| 198 | intro n K ht hk v ε hε |
| 199 | cases n with |
| 200 | | zero => exact ⟨1,zero_lt_one,Eventually.of_forall fun i => Eventually.of_forall fun j b u _ _ _ => by rw [Subsingleton.elim b u, dist_self]; exact hε⟩ |
| 201 | | succ n => |
| 202 | obtain ⟨T,hT,hKT⟩ := ht.exists_cthickening_subset_open (genericOpen _) hk |
| 203 | let M := cthickening T K |
| 204 | obtain ⟨R,hR,hr⟩ := allGrows C.S (show IsCompact M from ht.cthickening) hKT |
| 205 | obtain ⟨D,hD,hB⟩ := ((C.S.shrinks.eventually (gt_mem_nhds (by linarith : (0:ℝ)<R/4))).and (permits h 0 v).2).exists |
| 206 | obtain ⟨A,hA,hv⟩ := hB |
| 207 | obtain ⟨t,hy,hw,hf⟩ := budget_epsilon (n := n) A (R/4) T ε hε (by positivity) hA hT |
| 208 | refine ⟨t,hy,?_⟩ |
| 209 | unfold Order.late at hv ⊢ |
| 210 | filter_upwards [hv,f.per.cofinal.eventually hr] with i he hp |
| 211 | filter_upwards [he, f.mesh.cofinal.eventually (eventually_ge_atTop D)] with j hh hi b u hb hu Ht |
| 212 | apply lt_of_le_of_lt (comparable H v hA (r := R/4) (by positivity) K M (f.per i) _ D hi hh (by |
| 213 | rw [show (4:ℝ)*(R/4)=R by ring]; exact hp) hD (subset_refl (cthickening T K)) _ _ hu (Ht.le.trans hw)) |
| 214 | exact lt_of_le_of_lt (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left Ht.le (by positivity)) (by positivity)) hf |
| 215 | end YM.Extraction.Difference |