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.Support |
| 2 | import YM.Lattice.Box |
| 3 | import YM.Gauge.MatrixGroup |
| 4 | |
| 5 | /-! Inversion quotient with even side length. No fixed unoriented links. |
| 6 | Closed potential jets with this equivariance are gradients of even site jets. |
| 7 | This removes *all* harmonic one-form modes on the diagram regulator, without |
| 8 | an ad hoc deletion of gluon degrees at intermediate graph stages. -/ |
| 9 | set_option autoImplicit false |
| 10 | set_option maxHeartbeats 1000000 |
| 11 | noncomputable section |
| 12 | namespace YM.PertExtension.Orb |
| 13 | open Lattice Function Set |
| 14 | |
| 15 | variable {n : Side} {E : Type*} |
| 16 | |
| 17 | /-- Positive edge (x,i) maps to the *inverse* of this edge. -/ |
| 18 | def reflect (e : Edge (Site n)) : Edge (Site n) := (-e.1-step e.2, e.2) |
| 19 | @[simp] lemma reflect_reflect (e : Edge (Site n)) : reflect (reflect e)=e := by |
| 20 | unfold reflect; ext <;> simp |
| 21 | |
| 22 | lemma no_fixed_edge (h : Even n.val) (e : Edge (Site n)) : reflect e ≠ e := by |
| 23 | rcases e with ⟨x,i⟩ |
| 24 | intro he |
| 25 | have ht : 2 * (-x i)=1 := by |
| 26 | replace he := congr_arg (fun (p : Edge (Site n))=>p.1 i) he |
| 27 | change ((-x-step i):Site n) i=x i at he; simp only [Pi.sub_apply, Pi.neg_apply, step_apply, ite_true] at he |
| 28 | rw [two_mul] |
| 29 | calc |
| 30 | -x i + -x i = -(x i) + x i + 1 := by nth_rw 2 [← he]; abel |
| 31 | _ = _ := by abel |
| 32 | let f := ZMod.castHom h.two_dvd (Per ((2:ℕ+) : Side)) |
| 33 | have : ∀ y : Per n, 2*y ≠ 1 := by |
| 34 | intro y hy |
| 35 | replace hy := congr_arg f hy |
| 36 | rw [map_mul,map_ofNat,map_one] at hy |
| 37 | have hz : (2 : Per ((2:ℕ+):Side)) = 0 := by decide |
| 38 | rw [hz,zero_mul] at hy; exact (by decide : (0:ZMod 2) ≠ 1) (show (0:ZMod 2)=1 from hy) -- characteristic 2 |
| 39 | exact this _ ht |
| 40 | |
| 41 | /-- Ordinary positive-direction lattice curl. -/ |
| 42 | def Curl [AddCommGroup E] (A : Links (Per n) E) (x) (i j : Axis) := |
| 43 | A (x,i)+A (x+step i,j)-A (x+step j,i)-A (x,j) |
| 44 | |
| 45 | def Closed [AddCommGroup E] (A : Links (Per n) E) : Prop := ∀ x i j, Curl A x i j=0 |
| 46 | |
| 47 | def arrival {n : Side} (x : Site n) : Walk := route 0 (Lattice.lift x) (Equiv.refl _) |
| 48 | @[simp] lemma arrival_end {n : Side} (x : Site n) : stop (0:Site n) (arrival x) = x := by |
| 49 | unfold arrival |
| 50 | rw [← map_zero (Lattice.wrap n), ← wrap_stop_cover,route_end,wrap_lift] |
| 51 | |
| 52 | section Curl |
| 53 | variable [AddCommGroup E] |
| 54 | |
| 55 | def cash (A : Links (Per n) E)(d : Step)(x : Site n) : E := if d.neg then -(A (d.used x)) else A (d.used x) |
| 56 | @[simp] lemma cash_pos (A : Links (Per n) E)(i)(x : Site n) : cash A (posDir i) x=A (x,i) := rfl |
| 57 | @[simp] lemma cash_neg (A : Links (Per n) E)(i)(x : Site n) : cash A (negDir i) x=-A (x-step i,i) := rfl |
| 58 | lemma cash_rev (A : Links (Per n) E)(d)(x : Site n) : cash A d.rev (x+d.vec)=-cash A d x := by |
| 59 | rcases d with ⟨i,h|h⟩ <;> simp [cash, Step.rev,Step.vec,Step.used,sub_eq_add_neg] |
| 60 | |
| 61 | private def swapAt (A : Links (Per n) E)(d f : Step) (x : Site n) : Prop := cash A d x + cash A f (x + d.vec) = cash A f x + cash A d (x + f.vec) |
| 62 | lemma Closed.commuting0 {A : Links (Per n) E}(hA : Closed A) (i j) : ∀ x,swapAt A (posDir i) (posDir j) x := by |
| 63 | intro x |
| 64 | change _=_ |
| 65 | specialize hA x i j; unfold Curl at hA |
| 66 | rw [sub_sub, sub_eq_zero] at hA; rw [add_comm (A (x+step j,i))] at hA; exact hA |
| 67 | private lemma swap_symm {A : Links (Per n) E}{d f : Step} (h : ∀ x,swapAt A d f x) : ∀ x,swapAt A f d x := fun x=>(show _ from (h x).symm) |
| 68 | private lemma swap_rev_left {A : Links (Per n) E}{d f : Step} (h : ∀ x,swapAt A d f x) (x) : swapAt A d.rev f x := by |
| 69 | specialize h (x+d.rev.vec) |
| 70 | unfold swapAt at *; rw [Step.vec_rev] at *; rw [show (x+-d.vec+d.vec)=x from by rw [add_assoc,neg_add_cancel,add_zero]] at h |
| 71 | have he (y : Site n) : cash A d.rev y = -cash A d (y+-d.vec) := by |
| 72 | convert cash_rev A d (y+-d.vec) using 2; simp |
| 73 | rw [he,he,add_assoc, add_comm (f.vec),← add_assoc] |
| 74 | calc |
| 75 | _ = (cash A f (x+-d.vec)+cash A d (x+-d.vec+f.vec)) - (cash A d (x+-d.vec)+cash A d (x+-d.vec+f.vec)) := by abel |
| 76 | _ = _ := by rw [← h]; abel |
| 77 | |
| 78 | lemma Closed.commuting {A : Links (Per n) E}(hA : Closed A) (d f) : ∀ x,swapAt A d f x := by |
| 79 | obtain ⟨i,h|h⟩:=d |
| 80 | · refine commuting_left_pos hA i f -- not yet |
| 81 | exact swap_rev_left (commuting_left_pos hA i f) |
| 82 | where |
| 83 | -- doesn't give field notation automatically |
| 84 | commuting_left_pos {A : Links (Per n) E}(hA : Closed A) (i)(f : Step) : ∀ x,swapAt A (posDir i) f x := by |
| 85 | obtain ⟨j,h|h⟩:=f |
| 86 | · exact hA.commuting0 i j |
| 87 | exact swap_symm (swap_rev_left (hA.commuting0 j i)) |
| 88 | |
| 89 | def line (A : Links (Per n) E)(x : Site n) : Walk → E |
| 90 | | [] => 0 |
| 91 | | d::w => cash A d x + line A (x+d.vec) w |
| 92 | |
| 93 | lemma line_append (A : Links (Per n) E) (x : Site n) (a b : Walk) : line A x (a++b)=line A x a+line A (stop x a) b := by |
| 94 | induction a generalizing x <;> simp_all [stop,line,add_assoc] |
| 95 | |
| 96 | lemma line_reverse (A : Links (Per n) E) (x : Site n) (a : Walk) : |
| 97 | line A (stop x a) (reverse a) = -line A x a := by |
| 98 | induction a generalizing x with |
| 99 | | nil => simp [stop,line,reverse] |
| 100 | | cons d a ih => |
| 101 | rw [show Lattice.reverse (d::a) = (Lattice.reverse a ++ [d.rev]) from by |
| 102 | simp [Lattice.reverse,List.reverse_cons,List.map_append],line_append] |
| 103 | simp only [stop,reverse_stop,ih,line,add_zero,cash_rev]; abel |
| 104 | |
| 105 | lemma line_perm {A : Links (Per n) E}(hA : Closed A) {a b : Walk} (h : a.Perm b) (x : Site n) : line A x a=line A x b := by |
| 106 | induction h generalizing x with |
| 107 | | nil => simp |
| 108 | | cons d ht ih => simp [line,ih] |
| 109 | | swap d f l => have he := hA.commuting f d x; unfold swapAt at he; rw [line,line,line,line,← add_assoc,← add_assoc,he]; congr 1 <;> simp [add_right_comm] -- need syntax of rw defeq |
| 110 | | trans g h ih ih' => rw [ih,ih'] |
| 111 | |
| 112 | def InvLink (A : Links (Per n) E) := ∀ e,cash A (negDir e.2) (-e.1)=A e |
| 113 | lemma inv_cash {A : Links (Per n) E} (h : InvLink A) (d : Step) (x : Site n) : cash A d.rev (-x) = cash A d x := by |
| 114 | obtain ⟨i,hi|hi⟩:=d |
| 115 | · exact h (x,i) |
| 116 | have he := h (-x,i); rw [neg_neg] at he; exact he.symm |
| 117 | |
| 118 | lemma inv_line {A : Links (Per n) E} (h : InvLink A) (a : Walk) (x : Site n) : line A (-x) (a.map Step.rev)=line A x a := by |
| 119 | induction a generalizing x with |
| 120 | | nil => rfl |
| 121 | | cons d a ih => |
| 122 | simp only [List.map_cons,line,inv_cash h,Step.vec_rev, ← neg_add]; rw [ih] |
| 123 | |
| 124 | lemma loop_zero [Module ℝ E] {A : Links (Per n) E} (h : InvLink A) (hc : Closed A) {w : Walk} (hw : stop (0:Site n) w = 0) : line A 0 w = 0 := by |
| 125 | have ht := line_reverse A 0 w |
| 126 | unfold reverse at ht; rw [hw,line_perm hc (List.Perm.map _ (List.reverse_perm _)), ← show - (0 : Site n)=0 from neg_zero, inv_line h] at ht |
| 127 | refine smul_right_injective E (two_ne_zero : (2:ℝ) ≠ 0) (show (2:ℝ) • line A 0 w= ((2:ℝ) • (0:E)) from ?_) |
| 128 | rw [two_smul,smul_zero]; simp only [neg_zero] at ht; apply Eq.trans (congrArg₂ (·+·) ht rfl) (neg_add_cancel (line A 0 w)) |
| 129 | lemma path_eq [Module ℝ E] {A : Links (Per n) E} (h : InvLink A) (hc : Closed A) {a b : Walk} |
| 130 | (ht : stop (0:Site n) a=stop (0:Site n) b) : line A 0 a=line A 0 b := by |
| 131 | rw [← sub_eq_zero, sub_eq_add_neg, ← line_reverse A 0 b, ←ht, ← line_append] |
| 132 | exact loop_zero h hc (by rw [stop_append,ht,reverse_stop]) |
| 133 | |
| 134 | lemma exact_curl [Module ℝ E] {A : Links (Per n) E} (h : InvLink A) (hc : Closed A) : |
| 135 | ∃ P : Site n → E, P 0=0 ∧ ∀ x i, A (x,i)=P (x+step i)-P x := by |
| 136 | let P (x : Site n):= line A 0 (arrival x) |
| 137 | have hp (x : Site n) (i): stop x [posDir i]=x+step i := rfl |
| 138 | have he : P 0=line A 0 [] := path_eq h hc (by simp [arrival_end,stop]) |
| 139 | refine ⟨P,he.trans rfl,fun x i=> ?_⟩ |
| 140 | have hx := path_eq h hc (a:= arrival x ++ [posDir i]) (b:=arrival (x+step i)) (by rw [stop_append,arrival_end,arrival_end,hp]) |
| 141 | rw [line_append,arrival_end,line,line,add_zero,cash_pos] at hx |
| 142 | rw [← sub_eq_zero] at hx |
| 143 | dsimp [P]; rw [← sub_eq_zero]; calc |
| 144 | _ = line A 0 (arrival x) + A (x,i) - line A 0 (arrival (x+step i)) := by abel |
| 145 | _ = _ := hx |
| 146 | end Curl |
| 147 | end YM.PertExtension.Orb |