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.Analysis.Multilinear |
| 2 | import YM.Maxwell.Bilinear |
| 3 | |
| 4 | /-! |
| 5 | # Free Maxwell Wick polynomials evaluated only on separated configurations |
| 6 | |
| 7 | `correlation` acts on the actual polynomial labels (it restricts to shell and |
| 8 | invariant sector). `moment` on any Wick polynomial, useful algebraically and in detector proofs. |
| 9 | Both only use different insertions for pairings. Stars on reflected legs must be |
| 10 | supplied separately. No sign representation from any fermionic grading. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Maxwell.Wick |
| 15 | open Function Set Filter |
| 16 | open scoped ContDiff Topology BigOperators |
| 17 | |
| 18 | variable {G : Gauge} {n : ℕ} |
| 19 | |
| 20 | abbrev Powers (G : Gauge) (n : ℕ) := Fin n → Slot G →₀ ℕ |
| 21 | |
| 22 | def monBasis (G : Gauge) := MvPolynomial.basisMonomials (Slot G) ℂ |
| 23 | |
| 24 | def entry (p q : Slot G) (x y : E4) : ℂ := (legKernel (coordinateLeg p) (coordinateLeg q) (x-y) : ℂ) |
| 25 | |
| 26 | theorem entry_smooth (p q : Slot G) {x : E4 × E4} (h : x.1 ≠ x.2) : |
| 27 | ContDiffAt ℝ ∞ (fun z : E4 × E4 => entry p q z.1 z.2) x := by |
| 28 | have hw : ContDiffAt ℝ ∞ (fun y : E4 × E4 => y.1-y.2) x := contDiffAt_fst.sub contDiffAt_snd |
| 29 | have he := (kernel_smooth (coordinateLeg p) (coordinateLeg q) (sub_ne_zero.mpr h)).comp x hw |
| 30 | exact Complex.ofRealCLM.contDiff.contDiffAt.comp x he |
| 31 | |
| 32 | theorem entry_symmetric (p q : Slot G) {x y : E4} (h : x ≠ y) : entry p q x y = entry q p y x := by |
| 33 | unfold entry |
| 34 | rw [← neg_sub (a := x) (b := y)] |
| 35 | exact congr_arg (fun x : ℝ => (x : ℂ)) (exchange (coordinateLeg p) (coordinateLeg q) (sub_ne_zero.mpr h)) |
| 36 | |
| 37 | /-- Individual occurrences/distinguishable copies. -/ |
| 38 | def Occ (W : Powers G n) := {p : Fin n × Slot G × ℕ // p.2.2 < W p.1 p.2.1} |
| 39 | |
| 40 | namespace Occ |
| 41 | variable {W : Powers G n} |
| 42 | def label (p : Occ W) : Fin n := Subtype.val p |>.1 |
| 43 | def probe (p : Occ W) : Slot G := Subtype.val p |>.2.1 |
| 44 | def index (p : Occ W) : ℕ := Subtype.val p |>.2.2 |
| 45 | |
| 46 | theorem legit (p : Occ W) : index p < W p.label p.probe := Subtype.property p |
| 47 | |
| 48 | def atSlot (i : Fin n) (v : Slot G) (k : ℕ) (h : k < W i v) : Occ W := ⟨(i,v,k),h⟩ |
| 49 | |
| 50 | @[simp] theorem pos_at (i : Fin n) (v : Slot G) (k : ℕ) (h : k < W i v) : (atSlot i v k h).label = i := rfl |
| 51 | @[simp] theorem probe_at (i : Fin n) (v : Slot G) (k : ℕ) (h : k < W i v) : (atSlot i v k h).probe = v := rfl |
| 52 | @[simp] theorem index_at (i : Fin n) (v : Slot G) (k : ℕ) (h : k < W i v) : (atSlot i v k h).index = k := rfl |
| 53 | @[simp] theorem eta (p : Occ W) : atSlot p.label p.probe p.index p.legit = p := rfl |
| 54 | |
| 55 | @[ext] theorem ext {p q : Occ W} (h : label p = label q) (w : probe p = probe q) (k : index p = index q) : p=q := by |
| 56 | apply Subtype.ext |
| 57 | exact Prod.ext h (Prod.ext w k) |
| 58 | |
| 59 | instance : DecidableEq (Occ W) := Classical.decEq _ |
| 60 | |
| 61 | instance : Fintype (Occ W) := by |
| 62 | classical |
| 63 | let A := (i : Fin n) × (v : (W i).support) × Fin (W i v.val) |
| 64 | have he (p : Occ W) : p.probe ∈ (W p.label).support := by |
| 65 | have := p.legit |
| 66 | apply Finsupp.mem_support_iff.mpr; omega |
| 67 | let e : Occ W ≃ A := |
| 68 | { toFun p := ⟨p.label,⟨p.probe,he p⟩,p.index,p.legit⟩ |
| 69 | invFun p := atSlot p.1 p.2.1 p.2.2 p.2.2.isLt |
| 70 | left_inv _ := rfl |
| 71 | right_inv _ := rfl } |
| 72 | exact Fintype.ofEquiv A e.symm |
| 73 | |
| 74 | /-- No internal pairings. -/ |
| 75 | def Matching (W : Powers G n) := |
| 76 | {s : Equiv.Perm (Occ W) // s*s = 1 ∧ ∀ v, (s v).label ≠ v.label} |
| 77 | |
| 78 | instance : Fintype (Matching W) := by |
| 79 | classical |
| 80 | unfold Matching |
| 81 | infer_instance |
| 82 | instance : DecidableEq (Matching W) := Classical.decEq _ |
| 83 | |
| 84 | def partner (P : Matching W) : Equiv.Perm (Occ W) := Subtype.val P |
| 85 | |
| 86 | @[simp] theorem turn (P : Matching W) (v : Occ W) : partner P (partner P v) = v := |
| 87 | DFunLike.congr_fun (show partner P * partner P = 1 from (Subtype.property P).1) v |
| 88 | |
| 89 | theorem different (P : Matching W) (v : Occ W) : (partner P v).label ≠ v.label := |
| 90 | (Subtype.property P).2 _ |
| 91 | |
| 92 | def edge {W : Powers G n} (x : Points n) (v w : Occ W) := entry v.probe w.probe (x v.label) (x w.label) |
| 93 | |
| 94 | def corners (P : Matching W) : Finset (Occ W) := {p | p.label < (partner P p).label} |
| 95 | |
| 96 | theorem orientation (P : Matching W) (v : Occ W) : partner P v ∈ corners P ↔ v ∉ corners P := by |
| 97 | have h := different P v |
| 98 | simp only [corners, Finset.mem_filter, Finset.mem_univ,true_and,turn, not_lt] |
| 99 | exact ⟨fun H => H.le, fun H => lt_of_le_of_ne H h⟩ |
| 100 | |
| 101 | /-- One copy of each pair, orienting by slot number. -/ |
| 102 | def graph {W : Powers G n} (x : Points n) (P : Matching W) := ∏ p ∈ corners P, edge x p (partner P p) |
| 103 | |
| 104 | end Occ |
| 105 | open Occ |
| 106 | |
| 107 | def monomial (x : Points n) (W : Powers G n) : ℂ := ∑ v : Occ.Matching W, Occ.graph x v |
| 108 | |
| 109 | lemma monomial_smooth (W : Powers G n) {x : Points n} (hx : x ∈ conf n) : |
| 110 | ContDiffAt ℝ ∞ (fun x => monomial x W) x := by |
| 111 | classical |
| 112 | unfold monomial |
| 113 | apply ContDiffAt.sum |
| 114 | intro P _ |
| 115 | unfold Occ.graph |
| 116 | refine contDiffAt_prod ?_ |
| 117 | intro a ha |
| 118 | have hs (i : Fin n) : ContDiffAt ℝ ∞ (fun y : Points n => y i) x := |
| 119 | (PiLp.proj (𝕜 := ℝ) 2 (fun _ => E4) i).contDiff.contDiffAt |
| 120 | have he := (entry_smooth a.probe ((partner P a).probe) (x := (x a.label, x (partner P a).label)) (show x a.label ≠ x (partner P a).label from |
| 121 | (show Injective x.ofLp from hx).ne (different P a).symm)).comp x |
| 122 | ((hs a.label).prodMk (hs (partner P a).label)) |
| 123 | exact he |
| 124 | |
| 125 | /-- Sum over all monomials (& over all cross pairings). n=0 permitted. -/ |
| 126 | def moment (G : Gauge) {n : ℕ} (x : Points n) : MultilinearMap ℂ (fun _ : Fin n => WickPol G) ℂ := |
| 127 | Multilabel.ofBasis (fun _ => monBasis G) (monomial x) |
| 128 | |
| 129 | theorem moment_basis (W : Powers G n) (x : Points n) : |
| 130 | moment G x (fun i => monBasis G (W i)) = monomial x W := |
| 131 | Multilabel.applyBasis _ _ _ |
| 132 | |
| 133 | theorem sumFormula (x : Points n) (v : Fin n → WickPol G) : |
| 134 | moment G x v = ∑ e ∈ Fintype.piFinset (fun i => ((monBasis G).repr (v i)).support), |
| 135 | (∏ i, (monBasis G).repr (v i) (e i)) * monomial x e := by |
| 136 | rw [Multilabel.expansion (fun _ => monBasis G)] |
| 137 | simp only [moment_basis, smul_eq_mul] |
| 138 | |
| 139 | theorem moment_smooth (v : Fin n → WickPol G) {x : Points n} (hx : x ∈ conf n) : |
| 140 | ContDiffAt ℝ ∞ (fun y => moment G y v) x := by |
| 141 | simp_rw [sumFormula] |
| 142 | exact ContDiffAt.sum fun _ _ => contDiffAt_const.mul (monomial_smooth _ hx) |
| 143 | |
| 144 | /-- Free separated hierarchy on gauge-labelled polynomials before quotient. -/ |
| 145 | def correlation (G : Gauge) {n : ℕ} (x : Points n) (d : Fin n → ℕ) : |
| 146 | MultilinearMap ℂ (fun i => Labels.Label G (d i)) ℂ := |
| 147 | (moment G x).compLinearMap fun i => observable G (d i) |
| 148 | |
| 149 | theorem kills_equation (x : Points n) (d : Fin n → ℕ) (v : (i : Fin n) → Labels.Label G (d i)) (i : Fin n) |
| 150 | (h : v i ∈ equationIdeal G (d i)) : correlation G x d v = 0 := (moment G x).map_coord_zero i h |
| 151 | |
| 152 | theorem smooth (d : Fin n → ℕ) (v : (i : Fin n) → Labels.Label G (d i)) : |
| 153 | ContDiffOn ℝ ∞ (fun x => correlation G x d v) (conf n) := fun _ hx => |
| 154 | (moment_smooth (fun i => observable G (d i) (v i)) hx).contDiffWithinAt |
| 155 | end YM.Maxwell.Wick |