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.Embedded |
| 2 | import YM.Slice.Calendar |
| 3 | import YM.Slice.Resident |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # The full replicated column cost, |
| 8 | |
| 9 | Centered at cube base (through an axis); height between slabs `2w`. |
| 10 | Occupy EVERY OTHER cell. This doesn't need volume p-independent |
| 11 | numerical bound and includes orientation cost at reflected copies. Supply actual |
| 12 | costs, normalization, conjugation. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Cells.Tiling |
| 17 | open MeasureTheory Measure Filter Function Set Lattice Wilson Slice Time |
| 18 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder |
| 19 | variable {n : Side} {G : Gauge} (T : Tiling n) |
| 20 | |
| 21 | def plank (a : Axis) (x : ℕ) : T.Cell := x • step a |
| 22 | |
| 23 | lemma plank_pos (a : Axis) (x : ℕ) : T.plank a x a=x := by simp [plank] |
| 24 | lemma plank_inj (a : Axis) {x y : ℕ} (hx : x<T.period.val) (hy : y<T.period.val) : T.plank a x=T.plank a y → x=y := by |
| 25 | intro h |
| 26 | have ht := congr_arg (fun p : T.Cell => (p a).val) h |
| 27 | simpa only [T.plank_pos,ZMod.val_natCast_of_lt hx, ZMod.val_natCast_of_lt hy] using ht |
| 28 | |
| 29 | lemma plank_even (a : Axis) (x : ℕ) : T.omega (T.plank a (x+x))=1 := by |
| 30 | refine Signed.ext rfl ?_; ext i |
| 31 | change decide (T.parity ((T.plank a (x+x)) i) ≠ 0) = _ |
| 32 | have he : (x : ZMod 2)+x=0 := by rw [← two_mul,show (2 : ZMod 2)=0 from rfl,zero_mul] |
| 33 | by_cases h : i=a |
| 34 | · subst i; simp only [T.plank_pos, parity,map_natCast]; simp [he] |
| 35 | simp [plank,h] |
| 36 | |
| 37 | lemma plank_translation (a : Axis) (x : ℕ) : T.translateBy (T.plank a (x+x)) = offset a ((((x+x)*T.side.val : ℕ):Per n)) := by |
| 38 | have he : T.bias (T.plank a (x+x))=0 := by ext1 i; simp [bias, T.plank_even] |
| 39 | unfold translateBy; rw [T.plank_even,he,Signed.act_one, starts] |
| 40 | simp only [add_sub_cancel_left,add_zero] |
| 41 | rw [plank,map_nsmul,T.root_step]; ext1 i; by_cases h : i=a <;> simp [offset,h] |
| 42 | |
| 43 | lemma plank_copies (a : Axis) (x) (u : Config G n) (F : Config G n → ℂ) : |
| 44 | T.copy (T.plank a (x+x)) F u = F (translate (offset a (↑((x+x)*T.side.val : ℕ))) u) := by |
| 45 | have he : ¬ T.hand (T.plank a (x+x)) := by simp [hand,T.plank_even,Finset.filter_false_of_mem] |
| 46 | rw [copy,if_neg he,T.plank_even,T.plank_translation,pull_one] |
| 47 | |
| 48 | def locus (a : Axis) (o : Site n) : Cut n := |
| 49 | { T.bandCut 0 a with baseLine := o a, kind := .site } |
| 50 | |
| 51 | variable (a : Axis) |
| 52 | |
| 53 | /-- Start on slice t. Anchored time inside initial cell. -/ |
| 54 | lemma turns_ref (t : Per n) (o : Site n) (H : t+T.side.val=o a) (B : Brick a G n) |
| 55 | (he : B.width=2*T.side.val) (F : Config G n) : B.reflect.value t F = |
| 56 | star (B.value t ((T.locus a o).pullC G F)) := |
| 57 | (flipValue (T.locus a o) T.side.val rfl B t H.symm ((two_mul T.side.val) ▸ he) F).symm |
| 58 | |
| 59 | lemma adjacency (B : Brick a G n) (he : B.width=2*T.side.val) (U : Config G n) (t : Per n) (p : ℕ) : |
| 60 | Time.word (Time.column B p) t U = ∏ i : Fin p, |
| 61 | T.copy (T.plank a (2 * (2*i.val))) (B.reflect.value t) U * T.copy (T.plank a (2 * (2*i.val+1))) (B.value t) U := by |
| 62 | induction p with |
| 63 | | zero => simp [Time.column] |
| 64 | | succ p ih => |
| 65 | rw [show Time.column B (p+1)=Time.column B p ++ [B.reflect,B] by |
| 66 | unfold Time.column; rw [List.replicate_succ',List.flatten_append];simp,Time.distributed] |
| 67 | rw [Fin.prod_univ_castSucc] |
| 68 | rw [ih]; congr 1 |
| 69 | rw [Time.read,Time.read,Time.word_nil,mul_one] |
| 70 | simp only [Time.clockTime,Brick.reflect_width,he,Fin.val_last] |
| 71 | rw [two_mul (2*p), two_mul (2*p+1),plank_copies,plank_copies] |
| 72 | rw [translation,translation] |
| 73 | push_cast |
| 74 | ring_nf |
| 75 | |
| 76 | theorem enough {β} (H : Seam G n β) {t : Per n} (o : Site n) (hq : t+T.side.val=o a) (B : Brick a G n) |
| 77 | (h : B.width=2*T.side.val) {p : ℕ} (hp : 0<p) (hC : (p+p)*B.width=n.val) |
| 78 | (F J : Config G n → ℂ) (A : ℝ) (hf : F=B.value t) (hw : ∀ x, J x=star (F ((T.locus a o).pullC G x))) |
| 79 | (ha : Interior (T.chamber 0) F) (hb : Interior (T.chamber 0) J) |
| 80 | (he : T.rootTest β F≤A) (hr : T.rootTest β J≤A) : |
| 81 | ‖moment β (Time.word (Time.column B p) t)‖^(Holder.rate p) ≤ A := by |
| 82 | classical |
| 83 | let g := Sum.elim (fun i : Fin p => 2*(2*i.val)) (fun i : Fin p => 2*(2*i.val+1)) |
| 84 | let f := Sum.elim (fun _ : Fin p => J) (fun _ : Fin p => F) |
| 85 | have hi : T.period.val=(p+p)*2 := by |
| 86 | rw [h,T.units.exact_size,← Nat.mul_assoc] at hC |
| 87 | exact (Nat.eq_of_mul_eq_mul_right T.side.property hC).symm |
| 88 | have hH (x) : g x < T.period.val := by |
| 89 | rcases x with i|i <;> have hv := i.isLt <;> simp only [hi,g, Sum.elim_inl,Sum.elim_inr] <;> omega |
| 90 | have hv : Injective (T.plank a ∘ g) := by |
| 91 | have H (p q) : g p=g q → p=q := by |
| 92 | intro hp |
| 93 | rcases p with p|p <;> rcases q with q|q <;> simp only [g,Sum.elim_inl,Sum.elim_inr] at hp |
| 94 | · rw [Fin.ext (show p.val=q.val by omega)] |
| 95 | · omega |
| 96 | · omega |
| 97 | rw [Fin.ext (show p.val=q.val by omega)] |
| 98 | exact fun i j hh => H _ _ (T.plank_inj a (hH _) (hH _) hh) |
| 99 | have hd := T.planted H _ hv f (fun x => by cases x; exacts [hb,ha]) |
| 100 | have hB : (fun U => ∏ j, T.copy (T.plank a (g j)) (f j) U) = Time.word (Time.column B p) t := by |
| 101 | funext U |
| 102 | rw [adjacency T a B h U t,Finset.prod_mul_distrib, Fintype.prod_sum_type] |
| 103 | unfold f; rw [show J=B.reflect.value t from funext fun x => by rw [hw,hf, T.turns_ref a t o hq B h],hf] |
| 104 | rfl |
| 105 | change ‖moment β (fun U => ∏ j, T.copy (T.plank a (g j)) (f j) U)‖ ≤ _ at hd |
| 106 | rw [hB] at hd |
| 107 | have he := hd.trans <| Finset.prod_le_prod (fun i _ => T.root_nonneg β _) |
| 108 | (fun i _ => show T.rootTest β (f i) ≤ A from by cases i; exacts [hr,he]) |
| 109 | simp only [Finset.prod_const,Fintype.card_fin,Finset.card_univ,Fintype.card_sum] at he |
| 110 | apply le_trans (Real.rpow_le_rpow (norm_nonneg _) he (inv_nonneg.mpr (by exact_mod_cast (show 0 ≤ p+p by omega)))) _ |
| 111 | rw [Real.pow_rpow_inv_natCast]; exacts [(T.root_nonneg β J).trans hr, by omega] |
| 112 | end YM.Cells.Tiling |