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.Packing |
| 2 | import YM.Cells.Present |
| 3 | import YM.Slice.Ordered |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Use actual cylinder on these tours |
| 10 | |
| 11 | Centered link tiling widths use subdivisions at schedules, powers p pair count |
| 12 | tracks the SAME p in moment. Centered estimates only on one law assumed. |
| 13 | Check on transported star (regular lattice labels), any list. Needed both on |
| 14 | fixed-volume patch and expanding ones. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Extraction.Difference |
| 19 | open Lattice Wilson MeasureTheory Measure Slice Time Cells Function Set |
| 20 | open scoped Topology Matrix.Norms.Frobenius BigOperators ComplexOrder |
| 21 | variable {G : Gauge} {n : Side} |
| 22 | variable {m N ℓ p : ℕ} |
| 23 | |
| 24 | lemma chrono {v : Fin (m+1)→Per n} (i : Fin (m+1)) (h : Injective v) : |
| 25 | ∃ P : Equiv.Perm (Fin (m+1)), P 0=i ∧ StrictMono (minutes (v ∘ P)) := by |
| 26 | let f (j : Fin (m+1)) := (v j - v i).val |
| 27 | have he : Injective f := by |
| 28 | intro s t H; apply h; apply sub_left_injective (b := v i) |
| 29 | exact ZMod.val_injective _ H |
| 30 | let e := Tuple.sort f |
| 31 | have hw : StrictMono (f ∘ e) := (Tuple.monotone_sort _).strictMono_of_injective (he.comp e.injective) |
| 32 | have ht := hw.monotone (show 0 ≤ e.symm i from Fin.zero_le _) |
| 33 | simp [Function.comp_apply] at ht |
| 34 | have hg : e 0=i := he (by simp [show f i=0 from by simp [f]] at ht ⊢; exact ht) |
| 35 | exact ⟨e,hg,show StrictMono _ from by unfold minutes; simp only [Function.comp_apply,hg];exact hw⟩ |
| 36 | |
| 37 | lemma stars {C : Family G} (A : C.Makes) (B : C.book.Token) (he : C.ref B.1 ≤ N) (o : Site (C.side N p)) |
| 38 | (T : Tiling (C.side N p)) (a : Axis) (U : Config G (C.side N p)) : |
| 39 | C.seen (C.book.reflectedToken a B) o U = star (C.seen B o ((T.locus a o).pullC G U)) := by |
| 40 | let Q := T.locus a o |
| 41 | have hp : Q.reflect o = o := by |
| 42 | funext i; by_cases h : i=a |
| 43 | · subst i |
| 44 | change Q.reflect o Q.pos = _; rw [Cut.reflect_here]; simp [Q,Tiling.locus,Kind.shift,Tiling.bandCut]; ring |
| 45 | exact Q.reflect_there _ h |
| 46 | change C.O N p ((C.labels.level B.1).act (Signed.mirror a).ortho (star B.2)) o U = _ |
| 47 | conv_lhs => rw [← hp] |
| 48 | change C.O N p _ (affine Q.flip Q.slide o) U = _ |
| 49 | exact (C.rotated A he (star B.2) (Signed.mirror a) o Q.slide U).trans (C.reality A he B.2 o _) |
| 50 | |
| 51 | lemma reading {C : Family G} (h : C.Makes) {D} (ho : D ≤ N) (a : Axis) (o : Site (C.side N p)) |
| 52 | (v : C.book.Token) (hV : C.ref v.1 ≤ N) |
| 53 | (d : ℕ) (hr : d=(C.S.toDepth ho p).count.val) |
| 54 | (M : ℕ) (hM : 0 < M) (he : (C.side N p).val=(M+M)*(2*d)) |
| 55 | (c : ℝ) |
| 56 | (H : ∀ w : C.book.Token, w=v ∨ w=C.book.reflectedToken a v → |
| 57 | Interior ((center C.S p ho o).chamber 0) (C.seen w o) ∧ |
| 58 | (center C.S p ho o).rootTest (C.beta N p) (C.seen w o) ≤ c) : |
| 59 | let t := o a-d |
| 60 | ∃ B : Brick a G (C.side N p), B.width=2*d ∧ |
| 61 | C.seen v o = B.value t ∧ ‖moment (C.beta N p) (Time.word (column B M) t)‖^(Holder.rate M) ≤ c := by |
| 62 | intro t |
| 63 | let T := center C.S p ho o |
| 64 | have hw (x) (hx : x∈T.chamber 0) : (x a-t).val < 2*d := by |
| 65 | have hz := Kind.strict_lt (hx a) |
| 66 | rw [T.starts_zero] at hz |
| 67 | let e := (x a-T.base a).val |
| 68 | have hE : e<d := hr ▸ hz |
| 69 | let c := e+d-d/2 |
| 70 | have hd : d/2 ≤ d := Nat.div_le_self _ _ |
| 71 | have hy : c<2*d := by unfold c; omega |
| 72 | rw [show x a-t=(c : Per (C.side N p)) by |
| 73 | unfold c; rw [Nat.cast_sub (by omega),Nat.cast_add] |
| 74 | have hc : (e : Per (C.side N p)) = x a-T.base a := by unfold e; simp [Per] |
| 75 | rw [hc]; dsimp only [T,Cells.center,t]; rw [← hr]; abel, ZMod.val_natCast_of_lt] |
| 76 | exacts [hy, hy.trans_le (by rw [he]; nlinarith)] |
| 77 | have hz : 0 < d := hr ▸ (C.S.toDepth ho p).count.property |
| 78 | have hy : 2*d-1+1=2*d := by omega |
| 79 | let g := C.seen v o |
| 80 | have hG := (H v (Or.inl rfl)).1 |
| 81 | obtain ⟨B,hB,Hb⟩ := Time.selects (a := a) (m := 2*d-1) g (C.continuousO N p v.1 v.2 _) t (by rw [hy,he]; nlinarith) |
| 82 | (fun U V h => hG.localSites U V (agrees_mono h (fun x hx => hy.symm ▸ hw x hx))) |
| 83 | rw [hy] at hB |
| 84 | obtain ⟨Hj,hh⟩ := H (C.book.reflectedToken a v) (Or.inr rfl) |
| 85 | exact ⟨B,hB,Hb,T.enough a (seamless h N p) o (by change t + _ = _; unfold t; rw [hr]; exact sub_add_cancel ..) B |
| 86 | (hr ▸ hB) hM (hB.symm ▸ he.symm) g (C.seen (C.book.reflectedToken a v) o) c Hb (stars h v hV o T a) hG Hj |
| 87 | (H v (Or.inl rfl)).2 hh⟩ |
| 88 | |
| 89 | /-- One primitive directional comparison. Tail passage separate. -/ |
| 90 | theorem primitive {C : Family G} (h : C.Makes) (a : Axis) (v : Fin (m+1) → C.book.Token) |
| 91 | (hV : C.sufficient N v) {D} (hD : D≤N) |
| 92 | (d : ℕ) (hr : d=(C.S.toDepth hD p).count.val) |
| 93 | (c : Fin (m+1) → ℝ) (hm : 0 < m) (x : Fin (m+1) → Site (C.side N p)) |
| 94 | (r : ℝ) (ht : 0<r) (he : ∀ i j, i≠j → (2*d:ℝ)+ 2*r < ((x j a-x i a).val:ℝ)) |
| 95 | (H : ∀ (i : Fin (m+1)) (w : C.book.Token), w=v i ∨ w=C.book.reflectedToken a (v i) → |
| 96 | Interior ((center C.S p hD (x i)).chamber 0) (C.seen w (x i)) ∧ |
| 97 | (center C.S p hD (x i)).rootTest (C.beta N p) (C.seen w (x i)) ≤ c i) |
| 98 | (u : Fin (m+1)) (ℓ : ℕ) (hℓ : (ℓ:ℝ) ≤ r) : |
| 99 | ‖C.numeric N p v (update x u (x u+offset a (ℓ:Per (C.side N p))))-C.numeric N p v x‖ ≤ (∏ i, c i)/r*(ℓ:ℝ) := by |
| 100 | let M : ℕ := (C.side D p).val / 4 |
| 101 | have hM : (C.side D p).val=4*M := by |
| 102 | have hh := C.S.side_four D p; change 4∣ (C.side D p).val at hh; unfold M; omega |
| 103 | have hz : 0 < M := by have hp : 0 < (C.side D p).val := (C.side D p).property; omega |
| 104 | have hk : (C.side N p).val=(M+M)*(2*d) := by |
| 105 | rw [(C.S.toDepth hD p).exact_size] |
| 106 | -- can't rw inside dependent toDepth |
| 107 | have hh := hr |
| 108 | rw [← hh,hM]; ring |
| 109 | let y i := x i a-(d:Per _) |
| 110 | have hp i j : y j-y i=x j a-x i a := by unfold y; abel |
| 111 | have hw : Injective y := by |
| 112 | intro i j hs; by_contra h' |
| 113 | have hh := he i j h' |
| 114 | rw [← hp,hs,sub_self] at hh |
| 115 | simp only [ZMod.val_zero,Nat.cast_zero] at hh; linarith [Nat.cast_nonneg (α := ℝ) d] |
| 116 | obtain ⟨P,hP,hS⟩ := chrono u hw |
| 117 | choose B hB Hb hn using fun i => reading h hD a (x i) (v i) (hV i) d hr M hz hk (c i) (H i) |
| 118 | let b := fun i => B (P i) |
| 119 | have hd := le_trans (div_nonneg (zero_le_one.trans (C.path.levels.fits.delayed N).le) (by norm_num)) (h.wilson.represents N p N le_rfl).band.1 |
| 120 | have hx (i j) (H : i ≠ j) : (((2*d:ℕ):ℝ))+2*r < (((y ∘ P) j-(y ∘ P) i).val:ℝ) := by |
| 121 | simp only [Function.comp_apply, hp]; exact_mod_cast he _ _ (P.injective.ne H) |
| 122 | have hj := organized (B := b) (2*d) (fun i => hB _) M hz hk hS r ht hm hx _ hd hℓ (K := c ∘ P) (fun i => hn (P i)) |
| 123 | let X' := fun i => if i=(0:Fin (m+1)) then (y ∘ P) i +(ℓ:Per _) else (y ∘ P) i |
| 124 | change ‖moment _ (fun U => ∏ i, (b i).value (X' i) U)-moment _ _‖ ≤ _ at hj |
| 125 | have hI (U : Config G (C.side N p)) : ∏ i, ((b i).value ((y ∘ P) i) U) = ∏ i, C.seen (v i) (x i) U := by |
| 126 | conv_rhs => rw [← Equiv.prod_comp P] |
| 127 | apply Finset.prod_congr rfl; intro i _ |
| 128 | exact congr_fun (Hb (P i)).symm U |
| 129 | let V := update x u (x u+offset a (ℓ:Per _)) |
| 130 | have hq (U : Config G (C.side N p)) : ∏ i, ((b i).value (X' i) U) = ∏ i, C.seen (v i) (V i) U := by |
| 131 | conv_rhs => rw [← Equiv.prod_comp P] |
| 132 | apply Finset.prod_congr rfl |
| 133 | intro i _ |
| 134 | by_cases he : i=0 |
| 135 | · subst i; unfold V; rw [hP, update_self] |
| 136 | change _ = C.O _ _ _ _ _ |
| 137 | rw [← C.translation] |
| 138 | change _ = C.seen _ _ _ |
| 139 | unfold X' |
| 140 | rw [Hb, Time.translation]; simp [y,b,hP] |
| 141 | unfold V; rw [Function.update_of_ne (fun h => he (P.injective (h.trans hP.symm)))] |
| 142 | unfold X'; rw [if_neg he]; exact congr_fun (Hb _).symm U |
| 143 | change ‖moment _ (fun U => ∏ i, (b i).value (X' i) U)-moment _ (fun U => ∏ i, (b i).value ((y ∘ P) i) U)‖ ≤ (∏ i, c (P i))/r*ℓ at hj |
| 144 | simp_rw [hI,hq,show ∏ i, c (P i) = _ from Equiv.prod_comp P c] at hj |
| 145 | exact hj |
| 146 | end YM.Extraction.Difference |