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.Bid.Craft |
| 2 | import YM.Next.MAXWELL.Depth |
| 3 | import YM.Next.MAXWELL.Flavor |
| 4 | |
| 5 | /-! |
| 6 | # Three low legs |
| 7 | |
| 8 | Obtain explicitly the triangular identity and the cluster power -5, |
| 9 | with sign. Needed in real-vector testing. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Maxwell.Free |
| 14 | open Set Function Filter Tensor Analysis MeasureTheory Wick |
| 15 | open scoped ContDiff Topology BigOperators InnerProductSpace ComplexOrder |
| 16 | variable {G : Gauge} {j l d n : ℕ} |
| 17 | |
| 18 | abbrev tripod (x y z : E4) : Points 3 := Points.cons x (pairPoints y z) |
| 19 | |
| 20 | def triangle (G : Gauge) (x y z : E4) : WickPol G →ₗ[ℂ] WickPol G →ₗ[ℂ] WickPol G →ₗ[ℂ] ℂ where |
| 21 | toFun a := |
| 22 | { toFun b := (((moment G (tripod x y z)).curryLeft a).curryLeft b).toLinearMap (fun _ => 0) 0 |
| 23 | map_add' b c := by apply LinearMap.ext; intro u; simp |
| 24 | map_smul' t b := by apply LinearMap.ext; intro u; simp } |
| 25 | map_add' a b := by apply LinearMap.ext; intro c; apply LinearMap.ext; intro u; simp |
| 26 | map_smul' a b := by apply LinearMap.ext; intro c; apply LinearMap.ext; intro u; simp |
| 27 | |
| 28 | def triCols (a b c : WickPol G) : Fin 3 → WickPol G := Fin.cons a (Fin.cons b fun _ => c) |
| 29 | lemma tri_eval (x y z : E4) (a b c : WickPol G) : triangle G x y z a b c = moment G (tripod x y z) (triCols a b c) := by |
| 30 | simp only [triangle, LinearMap.coe_mk, AddHom.coe_mk,MultilinearMap.toLinearMap_apply, MultilinearMap.curryLeft_apply]; congr 1 |
| 31 | ext1 i; fin_cases i <;> simp [triCols] ; rfl |
| 32 | lemma tri_ok {x y z : E4} (h : x≠y) (w : x≠z) (r : y≠z) : tripod x y z∈conf _ := by |
| 33 | intro i j; fin_cases i <;> fin_cases j <;> simp [Points.cons,tripod,pairPoints,h,h.symm] <;> (first | exact w | exact w.symm | exact r | exact r.symm) |
| 34 | lemma tri_around {x y z : E4} (h : tripod x y z∈conf 3) (a b c : WickPol G) : triangle G x y z a b c = triangle G y x z b a c := by |
| 35 | let s := Equiv.swap (0:Fin 3) 1 |
| 36 | rw [tri_eval,exchangeSites s h, tri_eval] |
| 37 | have hs : Points.rearrange s (tripod x y z)=tripod y x z := by |
| 38 | ext1 i; fin_cases i <;> simp [s] <;> rfl |
| 39 | change (moment G (Points.rearrange s (tripod x y z))) _ = _ |
| 40 | rw [hs]; congr 1 |
| 41 | ext1 i; fin_cases i <;> simp [s] <;> rfl |
| 42 | lemma tri_switch {x y z : E4} (h : tripod x y z∈conf 3) (a b c : WickPol G) : triangle G x y z a b c = triangle G z y x c b a := by |
| 43 | let s := Equiv.swap (0:Fin 3) 2 |
| 44 | rw [tri_eval,exchangeSites s h, tri_eval] |
| 45 | have hs : Points.rearrange s (tripod x y z)=tripod z y x := by |
| 46 | ext1 i; fin_cases i <;> simp [s] <;> rfl |
| 47 | change (moment G (Points.rearrange s (tripod x y z))) _ = _ |
| 48 | rw [hs]; congr 1 |
| 49 | ext1 i; fin_cases i <;> simp [s] <;> rfl |
| 50 | |
| 51 | lemma triangle_stat {x y z : E4} (h : tripod x y z∈conf 3) {T : Module.End ℂ (WickPol G)} (H : silence G d T) {p q r} |
| 52 | (hp : p ∈ shellSector G d) (hq : q ∈ shellSector G d) (hr : r ∈ shellSector G d) : |
| 53 | triangle G x y z (T p) q r + triangle G x y z p (T q) r + triangle G x y z p q (T r) = 0 := by |
| 54 | let V := triCols p q r |
| 55 | have he := H 3 V _ (fun i => Fin.cases hp (Fin.cases hq (fun _ => hr)) i) h |
| 56 | rw [Fin.sum_univ_three] at he; simp_rw [tri_eval]; |
| 57 | rw [show triCols (T p) q r = update V 0 (T (V 0)) from (Fin.update_cons_zero ..).symm, |
| 58 | show triCols p (T q) r=update V 1 (T (V 1)) from ?_, |
| 59 | show triCols p q (T r)=update V 2 (T (V 2)) from ?_]; exact he |
| 60 | all_goals ext1 i; fin_cases i <;> simp [triCols,V] ; rfl |
| 61 | |
| 62 | section Signal |
| 63 | variable {x y z : E4} (h₁ : x≠y) (h₂ : x≠z) (h₃ : y≠z) |
| 64 | include h₁ h₂ h₃ |
| 65 | |
| 66 | theorem tri_cost (p q u w : Factor G) : triangle G x y z (letter p*letter q) (letter u * letter u) (letter w*letter w) = |
| 67 | 4 * (linkEntry (x,p) (y,u)*linkEntry (x,q) (z,w) + linkEntry (x,p) (z,w)*linkEntry (x,q) (y,u)) * |
| 68 | linkEntry (y,u) (z,w) := by |
| 69 | let f : Fin 2 → Factor G := Fin.cons u fun _ => w |
| 70 | let A := [(0 : Fin 2),0,1,1] |
| 71 | let B := Fin.cons (α:=fun _ : Fin 2 => WickPol G) (letter u* letter u) (fun _ => letter w*letter w) |
| 72 | rw [tri_eval]; change moment G _ (Fin.cons _ B) = _ |
| 73 | have he : B=bag id f A := by |
| 74 | ext1 i; fin_cases i <;> simp [B,A,bag,f] |
| 75 | change moment G (Points.cons x (pairPoints y z)) _ = _ |
| 76 | rw [he,show letter p * letter q = ([p,q].map letter).prod by simp,planted _ _ _ _ _ (tri_ok h₁ h₂ h₃)] |
| 77 | change pairCost _ ([(x,p),(x,q),(y,u),(y,u),(z,w),(z,w)])=_ |
| 78 | simp only [pair_step,pulls_cons,pulls_nil,zero_mul,mul_zero,add_zero,zero_add,link_zero] |
| 79 | rw [pairCost]; ring |
| 80 | |
| 81 | theorem tri_fares (a : Flavor 0) (v : Flavor 1) (p q : Flavor 0) (c : G.ColorIndex) : |
| 82 | triangle G x y z (team G a v) (team G p p) (team G q q) = ((G.lieDim : ℝ)*4* |
| 83 | (fare c a p (x-y)*fare c v q (x-z) + fare c a q (x-z)*fare c v p (x-y)) * fare c p q (y-z):ℝ) := by |
| 84 | let F {j : ℕ} (a : Flavor j) (i : G.ColorIndex) : Factor G := ⟨j,flavor j i a⟩ |
| 85 | have he {j l : ℕ} (a : Flavor j) (p : Flavor l) {x y : E4} (h : x≠y) (i m) : |
| 86 | linkEntry (x,F a i) (y,F p m) = (((if i=m then 1 else 0) * fare c a p (x-y):ℝ) : ℂ) := by |
| 87 | rw [link_eq x y _ _ h]; exact congr_arg ((↑) : ℝ → ℂ) (any_ink c a p _ _ (sub_ne_zero.mpr h)) |
| 88 | unfold team; simp only [map_sum,LinearMap.sum_apply]; |
| 89 | have hl (i m l : G.ColorIndex) := tri_cost h₁ h₂ h₃ (F a i) (F v i) (F p m) (F q l) |
| 90 | change (∑ l : G.ColorIndex, ∑ m : G.ColorIndex, ∑ i : G.ColorIndex, triangle G x y z (letter (F a i) * letter (F v i)) (letter (F p m) * letter (F p m)) (letter (F q l) * letter (F q l)))=_ |
| 91 | simp_rw [hl, he _ _ h₁, he _ _ h₂, he _ _ h₃] |
| 92 | let k := (fare c a p (x-y)*fare c v q (x-z) + fare c a q (x-z)*fare c v p (x-y))*fare c p q (y-z) |
| 93 | rw [show (↑((G.lieDim:ℝ) * 4 * _ * fare c p q (y-z)):ℂ)= ∑ _i : G.ColorIndex, ((4*k:ℝ):ℂ) from ?_] |
| 94 | · refine Finset.sum_congr rfl fun i _ => ?_; rw [Finset.sum_eq_single_of_mem i (Finset.mem_univ _)] |
| 95 | · rw [Finset.sum_eq_single_of_mem i (Finset.mem_univ _)] |
| 96 | · simp [k]; ring |
| 97 | intro m _ hm; simp [hm] |
| 98 | intro m _ hm; refine Finset.sum_eq_zero fun l _ => ?_ |
| 99 | simp [hm] |
| 100 | simp [k,Gauge.ColorIndex]; ring |
| 101 | end Signal |
| 102 | end YM.Maxwell.Free |