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.Lattice.Site |
| 2 | import YM.Gauge.Chart |
| 3 | /-! Even inversion quotient for finite top Wilson diagrams; positivity after Feynman fixing. -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Pert.Orb |
| 7 | open Lattice |
| 8 | |
| 9 | variable {n : Side} |
| 10 | abbrev Links (n : Side) := Edge (Site n) |
| 11 | |
| 12 | def image (l : Links n) : Links n := (-l.1-step l.2, l.2) |
| 13 | @[simp] lemma image_image (l : Links n) : image (image l) = l := by apply Prod.ext <;> dsimp [image]; abel |
| 14 | |
| 15 | def Admissible (n : Side) := 4 ≤ n.val ∧ 2 ∣ n.val |
| 16 | |
| 17 | lemma image_ne_self (hn : Admissible n) (l : Links n) : image l ≠ l := by |
| 18 | rintro e |
| 19 | have h := congrArg (fun p : Links n => p.1 l.2) e |
| 20 | have μ := ZMod.castHom (m:=2) (n:=n.val) hn.2 (ZMod 2) |
| 21 | simp only [image, Pi.sub_apply, Pi.neg_apply, step_apply, ↓reduceIte] at h |
| 22 | change -(l.1 l.2) - (1:Per n) = _ at h |
| 23 | have hh := congrArg μ h |
| 24 | rw [map_sub,map_neg,map_one] at hh |
| 25 | have hs : ∀ p : ZMod 2, -p - 1 ≠ p := by decide |
| 26 | exact hs _ hh |
| 27 | |
| 28 | lemma site_induct (P : Site n → Prop) (h : ∀ x i, P x → P (x+step i)) (x : Site n) (hx : P x) (y : Site n) : P y := by |
| 29 | have hc (z : Site n) (i : Axis) (k : ℕ) : P z → P (z + k • step i) := by |
| 30 | induction k with |
| 31 | | zero => simp |
| 32 | | succ k ih => intro hz; rw [succ_nsmul,← add_assoc]; exact h _ _ (ih hz) |
| 33 | let diff := y-x |
| 34 | let k := fun i : Axis => (diff i).val |
| 35 | have he : diff = ∑ i : Axis, k i • step i := by |
| 36 | funext i |
| 37 | rw [Finset.sum_apply, Finset.sum_eq_single i] |
| 38 | · simp [k, Pi.smul_apply, nsmul_eq_mul] |
| 39 | all_goals simp_all [Pi.smul_apply,ne_comm] |
| 40 | have hq (s : Finset Axis) : P (x + ∑ i ∈ s, k i • step i) := by |
| 41 | induction s using Finset.induction_on with |
| 42 | | empty => simp [hx] |
| 43 | | insert i s hs hh => rw [Finset.sum_insert hs,add_comm (k i • step i), ← add_assoc]; apply hc _ _ _ hh |
| 44 | convert! hq Finset.univ using 1 |
| 45 | rw [← he]; dsimp [diff]; abel |
| 46 | |
| 47 | lemma harmonic_const (f : Site n → ℝ) (hf : ∀ x, ∑ i : Axis, (f (x+step i) + f (x-step i) - (2:ℝ)*f x) = 0) (x y : Site n) : |
| 48 | f x = f y := by |
| 49 | obtain ⟨z,hz,H⟩ := Finset.exists_max_image Finset.univ f Finset.univ_nonempty |
| 50 | have eq : ∀ q : Site n, f q = f z := by |
| 51 | refine site_induct _ ?_ z rfl |
| 52 | intro t i ht |
| 53 | have he := hf t |
| 54 | have hh := (Finset.sum_eq_zero_iff_of_nonpos (fun (j : Axis) (_ : j∈Finset.univ) => |
| 55 | show f (t+step j) + f (t-step j) - 2*f t ≤ 0 by linarith [H (t+step j) (Finset.mem_univ _), H (t-step j) (Finset.mem_univ _)])).mp he i (Finset.mem_univ _) |
| 56 | exact le_antisymm (H _ (Finset.mem_univ _)) (by linarith [H (t-step i) (Finset.mem_univ _)]) |
| 57 | simp [eq x, eq y] |
| 58 | |
| 59 | section difference |
| 60 | variable {V : Type*} [AddCommGroup V] |
| 61 | |
| 62 | def grad (f : Site n → V) (l : Links n) := f l.1 - f (l.1+step l.2) |
| 63 | def cur (A : Links n → V) (x : Site n) (i j : Axis) := A (x,i)+A (x+step i,j)-A (x,j)-A (x+step j,i) |
| 64 | def divB (A : Links n → V) (x : Site n) := ∑ i : Axis, (A (x,i)-A (x-step i,i)) |
| 65 | def lap (f : Site n → V) (x : Site n) := ∑ i : Axis, (f (x+step i)+f (x-step i)-2 • f x) |
| 66 | lemma lap_eq (A : Links n → V) (hc : ∀ x i j, cur A x i j = 0) (x : Site n) (b : Axis) : |
| 67 | lap (fun z => A (z,b)) x = divB A (x+step b)-divB A x := by |
| 68 | unfold lap divB |
| 69 | rw [← Finset.sum_sub_distrib] |
| 70 | apply Finset.sum_congr rfl; intro i _ |
| 71 | have he1 : A (x+step b,i) = A (x,i)+A (x+step i,b)-A (x,b) := by rw [eq_comm, ← sub_eq_zero]; exact hc .. |
| 72 | have he2 := hc (x-step i) i b |
| 73 | rw [cur,sub_add_cancel] at he2 |
| 74 | have he3 : A (x+step b-step i,i) = A (x-step i,i)+A (x,b)-A (x-step i,b) := by |
| 75 | rw [eq_comm,← sub_eq_zero, show x+step b-step i=x-step i+step b by abel]; exact he2 |
| 76 | rw [he1,he3]; abel |
| 77 | lemma sum_div (A : Links n → V) : ∑ x : Site n, divB A x = 0 := by |
| 78 | unfold divB; rw [Finset.sum_comm] |
| 79 | apply Finset.sum_eq_zero; intro i hi |
| 80 | rw [Finset.sum_sub_distrib] |
| 81 | apply sub_eq_zero.mpr |
| 82 | simpa [sub_eq_add_neg] using (Equiv.sum_comp (Equiv.addRight (-step i)) (fun z : Site n => A (z,i))).symm |
| 83 | lemma div_even (A : Links n → V) (e : ∀ l, A (image l) = -A l) (x) : divB A (-x) = divB A x := by |
| 84 | apply Finset.sum_congr rfl; intro i hi |
| 85 | rw [show ((-x-step i),i)=image (x,i) from rfl,show ((-x),i)=image ((x-step i),i) by unfold image; congr 1; change -x=-((x-step i): Site n)-(step i); simp [neg_sub],e,e,neg_sub_neg] |
| 86 | end difference |
| 87 | |
| 88 | variable {G : Gauge} |
| 89 | lemma closed_div_zero (A : Links n → G.Color) (hc : ∀ x i j, cur A x i j = 0) (hd : ∀ x, divB A x = 0) (b : Axis) (x y) : A (x,b) = A (y,b) := by |
| 90 | ext k |
| 91 | apply harmonic_const (fun t => A (t,b) k) _ x y |
| 92 | intro a |
| 93 | have hl : lap (fun z => A (z,b)) a = 0 := by rw [lap_eq A hc]; simp only [hd,sub_self] |
| 94 | have h := congrArg (fun (z : G.Color) => z k) hl |
| 95 | rw [lap,WithLp.ofLp_sum,Finset.sum_apply] at h |
| 96 | simpa only [PiLp.add_apply,PiLp.sub_apply,PiLp.smul_apply,PiLp.zero_apply,nsmul_eq_mul,Nat.cast_ofNat] using h |
| 97 | |
| 98 | lemma kernel (A : Links n → G.Color) (he : ∀ l, A (image l)= -A l) (hc : ∀ x i j, cur A x i j=0) (hd : ∀ x, divB A x=0): A=0 := by |
| 99 | ext l k |
| 100 | have hh := closed_div_zero A hc hd l.2 (-l.1-step l.2) l.1 |
| 101 | rw [show ((-l.1-step l.2),l.2) = image l from rfl,he] at hh |
| 102 | have he := congrArg (fun z : G.Color => z k) hh |
| 103 | rw [PiLp.neg_apply] at he |
| 104 | change A l k = (0:ℝ) |
| 105 | linarith only [he] |
| 106 | |
| 107 | def LinkP (G : Gauge) (n : Side) : Submodule ℝ (Links n → G.Color) where |
| 108 | carrier := {A | ∀ l, A (image l) = -(A l)} |
| 109 | zero_mem' l := by dsimp; rw [neg_zero] |
| 110 | add_mem' {A B} ha hb l := show A (image l)+B (image l) = _ by rw [ha l,hb l,← neg_add]; rfl |
| 111 | smul_mem' r A h l := show r • A (image l) = _ by rw [h, smul_neg]; rfl |
| 112 | |
| 113 | def EvenSite (G : Gauge) (n : Side) : Submodule ℝ (Site n→G.Color) where |
| 114 | carrier := {a | ∀ x, a (-x) = a x} |
| 115 | zero_mem' _ := rfl |
| 116 | add_mem' {_ _} h h' x := congrArg₂ (· + ·) (h x) (h' x) |
| 117 | smul_mem' r _ h x := congrArg (r • ·) (h x) |
| 118 | |
| 119 | def Zero (G : Gauge) (n : Side) : Submodule ℝ (Site n→G.Color) := |
| 120 | EvenSite G n ⊓ LinearMap.ker (LinearMap.proj (R:=ℝ) (0:Site n)) |
| 121 | def Mean (G : Gauge) (n : Side) : Submodule ℝ (Site n→G.Color) := |
| 122 | EvenSite G n ⊓ LinearMap.ker (∑ x : Site n, LinearMap.proj (R:=ℝ) x) |
| 123 | |
| 124 | abbrev Pot := ↥(LinkP G n) |
| 125 | |
| 126 | end YM.Pert.Orb |