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.Cells.Margins |
| 2 | import YM.Cells.Packing |
| 3 | |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Finer centered grid inside arbitrary tiling |
| 8 | |
| 9 | Site seams too. Compare using TRUE lattice rotations. Odd small widths. |
| 10 | For the axis bracketing use a vertical congruence family with bias depending |
| 11 | on seams. Distinguish being a smaller-grid center from fitting the big cells. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Cells |
| 17 | open Lattice Function Set Filter MeasureTheory |
| 18 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder |
| 19 | |
| 20 | variable {k N p : ℕ} (S : Schedule) (h : k ≤ N) (T : Tiling (S.side N p)) |
| 21 | |
| 22 | abbrev span (S : Schedule) (h : k≤N) (p) := (S.toDepth h p).count.val |
| 23 | |
| 24 | def biasFor : ℕ := T.kind.shift * (span S h p / 2) |
| 25 | |
| 26 | def homeFor : Site (S.side N p) := fun i => T.base i + (biasFor S h T:ℕ) |
| 27 | |
| 28 | /-- All small center points relative to offset `o`. -/ |
| 29 | def onCenters (o : Site (S.side N p)) := {x | ∃ v, x=(center S p h o).copyMap v o} |
| 30 | |
| 31 | /-- Native grid for contiguous component coordinates. -/ |
| 32 | def OnGrid (a : Axis) (q : Per (S.side N p)) := ∃ z : ℤ, q = (homeFor S h T) a + ((z:ℤ):Per (S.side N p)) * (span S h p : ℕ) |
| 33 | |
| 34 | lemma handy (o : Site (S.side N p)) (i : Axis) : |
| 35 | let r := span S h p |
| 36 | (center S p h o).coordinated 0 o i = r/2 := by |
| 37 | intro r |
| 38 | have hr : r/2 < r := Nat.div_lt_self (S.toDepth h p).count.property (by decide) |
| 39 | have ht : r < (S.side N p).val := Tiling.narrow (center S p h o) |
| 40 | unfold Tiling.coordinated |
| 41 | rw [Tiling.starts_zero]; dsimp only [center] |
| 42 | rw [sub_sub_cancel]; exact ZMod.val_natCast_of_lt (hr.trans ht) |
| 43 | |
| 44 | lemma copy_home (o : Site (S.side N p)) (v : (center S p h o).Cell) : |
| 45 | (center S p h o).copyMap v o = o+(S.toDepth h p).embed v := by |
| 46 | ext1 i |
| 47 | let H := center S p h o |
| 48 | let r := span S h p |
| 49 | have ht : o i - H.base i= ((r/2 : ℕ):Per (S.side N p)) := sub_sub_cancel .. |
| 50 | have hs : H.starts v i = o i - ((r/2 : ℕ) : Per (S.side N p)) + (S.toDepth h p).embed v i := rfl |
| 51 | have he : H.copyMap v o i-H.starts v i=((r/2 : ℕ) : Per (S.side N p)) := by |
| 52 | rw [H.copy_formula,ht]; split |
| 53 | · obtain ⟨p,hp⟩ := S.toDepth_odd h p |
| 54 | have hy : r/2=p := by dsimp [r,span];omega |
| 55 | change (↑r:Per _) - (↑Kind.link.shift:Per _) - _ = _ |
| 56 | rw [hy,show r=2*p+1 from hp]; unfold Kind.shift; push_cast; ring |
| 57 | rfl |
| 58 | calc |
| 59 | _ = H.copyMap v o i-H.starts v i+H.starts v i := by rw [sub_add_cancel] |
| 60 | _ = _ := by rw [he,hs]; change _ = o i+_; abel |
| 61 | |
| 62 | lemma belongs {x : Site (S.side N p)} : x∈onCenters S h (homeFor S h T) ↔ ∀ a, OnGrid S h T a (x a) := by |
| 63 | let o := homeFor S h T |
| 64 | let H := center S p h o |
| 65 | constructor |
| 66 | · rintro ⟨v,hv⟩ a |
| 67 | refine ⟨(lift (n := S.side k p) v) a,?_⟩ |
| 68 | rw [hv,copy_home]; unfold Ratio.embed; simp [wrap, span,mul_comm] |
| 69 | intro hG |
| 70 | choose z hz using fun a => hG a |
| 71 | let v := wrap (S.side k p) z |
| 72 | refine ⟨v,?_⟩ |
| 73 | rw [copy_home] |
| 74 | unfold v |
| 75 | rw [Ratio.embed_wrap]; ext1 i |
| 76 | rw [hz] |
| 77 | dsimp only [wrap]; simp [span, mul_comm] |
| 78 | |
| 79 | lemma turns {x : Site (S.side N p)} (hx : x∈onCenters S h (homeFor S h T)) |
| 80 | (hd : span S h p ∣ T.side.val) (v : T.Cell) : T.copyMap v x∈onCenters S h (homeFor S h T) := by |
| 81 | let d := span S h p |
| 82 | let b := biasFor S h T |
| 83 | obtain ⟨q,hq⟩ := hd |
| 84 | rw [belongs]; intro i |
| 85 | obtain ⟨z,hz⟩ := (belongs S h T).mp hx i |
| 86 | have ho : T.starts v i=T.base i+ ((v i).val:ℕ)*((T.side.val:ℕ): Per (S.side N p)) := by |
| 87 | dsimp only [Tiling.starts]; simp only [Pi.add_apply, T.mount,Nat.cast_mul] |
| 88 | have hy : T.starts v i=T.base i+ ((↑((v i).val*q : ℕ)) : Per (S.side N p))*d := by |
| 89 | rw [ho,hq]; push_cast; dsimp [d]; ring |
| 90 | have ht := T.copy_formula v x i |
| 91 | rw [hy,hz] at ht |
| 92 | split_ifs at ht with he |
| 93 | · have hw : T.kind.shift + 2*b = T.kind.shift*d := by |
| 94 | obtain ⟨l, hl⟩ := S.toDepth_odd h p |
| 95 | have hs : d/2=l := by dsimp [d,span];omega |
| 96 | dsimp only [b,biasFor] |
| 97 | change T.kind.shift+ 2*(T.kind.shift*(d/2))=_ |
| 98 | rw [hs, show d=2*l+1 from hl]; ring |
| 99 | refine ⟨(((v i).val*q:ℕ):ℤ) + q - T.kind.shift - z,?_⟩ |
| 100 | rw [sub_eq_iff_eq_add.mp ht,hq] |
| 101 | have ha := congr_arg (fun x : ℕ => (x:Per (S.side N p))) hw |
| 102 | unfold homeFor; unfold d b at * |
| 103 | push_cast at * |
| 104 | linear_combination -ha |
| 105 | refine ⟨(((v i).val*q:ℕ):ℤ)+z,?_⟩ |
| 106 | rw [sub_eq_iff_eq_add.mp ht]; dsimp only [homeFor] |
| 107 | push_cast; unfold d; ring |
| 108 | |
| 109 | -- any sufficiently interior offset can be bracketed by TWO nearby columns on |
| 110 | -- this axis grid. Need margin w (smaller cell) at EVERY intermediate translate. |
| 111 | -- no accidental data about witnesses other than that one axis changed. |
| 112 | lemma bracket (w : Site (S.side N p)) (hx : w∈T.margin 0 (3*span S h p)) (i : Axis) : |
| 113 | let d := span S h p |
| 114 | ∃ v : ℕ → Site (S.side N p), ∃ j : ℕ, j ≤ d ∧ v j=w ∧ |
| 115 | (∀ l ≤ d, v l ∈ T.margin 0 (2 * d)) ∧ (∀ l, l+1 ≤ d → v (l+1)=v l+step i) ∧ |
| 116 | (∀ l a, a≠i → v l a=w a) ∧ OnGrid S h T i (v 0 i) ∧ OnGrid S h T i (v d i) := by |
| 117 | intro d |
| 118 | let b := biasFor S h T |
| 119 | let r := T.coordinated 0 w i |
| 120 | have hr := show 3*d≤r from hx.2 i |>.1 |
| 121 | have ht := show r+3*d+T.kind.shift≤T.side.val from hx.2 i |>.2 |
| 122 | have hk : 0<d := (S.toDepth h p).count.property |
| 123 | have hi : b≤d := by unfold b biasFor; change T.kind.shift*(d/2)≤_; cases T.kind <;> simp [Kind.shift,Nat.div_le_self] |
| 124 | let t := r-b |
| 125 | let f := t/d |
| 126 | let j := t%d |
| 127 | have hh : j<d := Nat.mod_lt _ hk |
| 128 | have he : b+f*d+j=r := by |
| 129 | rw [Nat.add_assoc, show f*d+j=t from Nat.div_add_mod' ..]; dsimp only [t];omega |
| 130 | let v (l : ℕ) := update w i (T.base i+((↑(b+f*d+l): Per _))) |
| 131 | have hb (s) (l : ℕ) (H : s≠i) : v l s=w s := by simp [v,H] |
| 132 | have hp (l : ℕ) (hl : l ≤ d) : T.coordinated 0 (v l) i=b+f*d+l := by |
| 133 | unfold v Tiling.coordinated |
| 134 | rw [update_self,T.starts_zero,add_sub_cancel_left] |
| 135 | have hz := T.narrow |
| 136 | apply ZMod.val_natCast_of_lt; omega |
| 137 | refine ⟨v,j, hh.le,?_,fun l hl => ?_, fun l hl => ?_, fun l a ha => hb a l ha, ⟨(f:ℤ),?_⟩,⟨((f+1:ℕ):ℤ),?_⟩⟩ |
| 138 | · have hC := T.indent 0 w i; rw [T.starts_zero] at hC |
| 139 | simp_rw [v,he]; rw [show T.base i+_ = _ from hC]; exact Function.update_eq_self _ _ |
| 140 | · have he := hp l hl |
| 141 | have hu : 2*d ≤ T.coordinated 0 (v l) i := by omega |
| 142 | have hw : T.coordinated 0 (v l) i+(2*d)+T.kind.shift ≤ T.side.val := by omega |
| 143 | refine ⟨fun a => ?_,fun a => ?_⟩ |
| 144 | · by_cases e:a=i; subst a |
| 145 | · change T.kind.Strict _ (T.coordinated 0 _ i) |
| 146 | cases T.kind <;> unfold Kind.Strict <;> omega |
| 147 | rw [hb _ _ e]; exact hx.1 a |
| 148 | by_cases e:a=i; subst a |
| 149 | · exact ⟨hu,hw⟩ |
| 150 | have hv := hx.2 a |
| 151 | rw [show T.coordinated 0 (v l) a=T.coordinated 0 w a by unfold Tiling.coordinated; rw [hb _ _ e]] |
| 152 | change 3*d ≤ _ ∧ T.coordinated 0 w a+3*d+_ ≤ _ at hv; omega |
| 153 | · ext1 a; by_cases hu : a=i |
| 154 | · subst a; simp [v]; ring |
| 155 | simp [hb a _ hu,hu] |
| 156 | · simp [v,homeFor]; dsimp only [b,d];ring |
| 157 | simp [v,homeFor]; dsimp only [b,d];ring |
| 158 | end YM.Cells |