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.Angular |
| 2 | |
| 3 | /-! |
| 4 | # Reality and signed subgroup for the wave polynomial |
| 5 | |
| 6 | Compatibility step at any one cap. Conjugating the skew generators by a |
| 7 | signed permutation permutes all ordered planes with signs; in particular we |
| 8 | need not assume that the transported infinitesimal matrices integrate to a |
| 9 | group action. The sign is common to the left/right actions on Hom and occurs |
| 10 | twice in the relative sum of squares. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace YM.Work.A11 |
| 16 | open Set Function Filter Org Climb Table Ward Spin Bid |
| 17 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 18 | |
| 19 | private def reindexPlanes (g : Signed) : Spin.Ind ≃ Spin.Ind := |
| 20 | Equiv.prodCongr g.perm g.perm |
| 21 | |
| 22 | private def axisSign (g : Signed) (i : Axis) : ℝ := if g.flip i then -1 else 1 |
| 23 | private def planeSign (g : Signed) (p : Spin.Ind) : ℝ := axisSign g p.1 * axisSign g p.2 |
| 24 | |
| 25 | private lemma sign_square (g : Signed) (p : Spin.Ind) : |
| 26 | (↑(planeSign g p) : ℂ) * ↑(planeSign g p) = 1 := by |
| 27 | cases h : g.flip p.1 <;> cases k : g.flip p.2 <;> simp [planeSign, axisSign, h, k] |
| 28 | |
| 29 | private lemma conjugate_entry (g : Signed) (i j : Axis) : |
| 30 | g.ortho.val * Matrix.single i j 1 * star g.ortho.val = |
| 31 | (axisSign g i * axisSign g j) • Matrix.single (g.perm i) (g.perm j) 1 := by |
| 32 | apply Matrix.ext |
| 33 | intro a b |
| 34 | rw [Matrix.mul_apply] |
| 35 | rw [Finset.sum_eq_single_of_mem j (Finset.mem_univ _)] |
| 36 | · rw [Matrix.mul_single_apply_same, Matrix.star_eq_conjTranspose, Matrix.conjTranspose_apply] |
| 37 | by_cases h : g.perm i = a <;> by_cases k : g.perm j = b <;> |
| 38 | simp [Signed.ortho, Signed.matrix_at, axisSign, h, k] |
| 39 | · intro k _ hk |
| 40 | rw [Matrix.mul_single_apply_of_ne _ _ _ _ _ hk, zero_mul] |
| 41 | |
| 42 | private lemma signed_plane (g : Signed) (p : Spin.Ind) : |
| 43 | orients g (Spin.K p) = planeSign g p • Spin.K (reindexPlanes g p) := by |
| 44 | apply Subtype.ext |
| 45 | rcases p with ⟨i,j⟩ |
| 46 | change g.ortho.val * (Matrix.single i j 1 - Matrix.single j i 1) * star g.ortho.val = |
| 47 | (axisSign g i * axisSign g j) • |
| 48 | (Matrix.single (g.perm i) (g.perm j) 1 - Matrix.single (g.perm j) (g.perm i) 1) |
| 49 | rw [mul_sub, sub_mul, conjugate_entry, conjugate_entry, smul_sub, |
| 50 | mul_comm (axisSign g i) (axisSign g j)] |
| 51 | |
| 52 | -- Check with unequal flips and a nontrivial permutation; the sign uses INPUT axes. |
| 53 | example : |
| 54 | let g : Signed := ⟨Equiv.swap 0 2, fun i => decide (i = 0)⟩ |
| 55 | orients g (Ortho.plane 0 1) = -(Ortho.plane 2 1) := by |
| 56 | let g : Signed := ⟨Equiv.swap 0 2, fun i => decide (i = 0)⟩ |
| 57 | change orients g (Spin.K (0, 1)) = -(Ortho.plane 2 1) |
| 58 | rw [signed_plane] |
| 59 | simp [planeSign, axisSign, reindexPlanes, g] |
| 60 | rw [show (Equiv.swap (0:Axis) 2) 1 = 1 by decide] |
| 61 | exact neg_one_smul ℝ (Ortho.plane 2 1) |
| 62 | |
| 63 | section Square |
| 64 | |
| 65 | /-- One-term calculation. `m` may play the role of signed action OR of real |
| 66 | conjugation. `effect` acts on Hom by left minus right. Even though that effect |
| 67 | may not preserve `fine` by itself, its square has the sign cancellation (it |
| 68 | still carries a permutation of the plane index). -/ |
| 69 | private lemma square_action {X : Type*} [NormedAddCommGroup X] [NormedSpace ℂ X] |
| 70 | (f B C B' C' : Spin.Mat X) (m : X → X) (e : ℂ) (he : e * e = 1) |
| 71 | (hm : ∀ x y, m (x-y) = m x - m y) (hf : ∀ x, m (f x) = f (m x)) |
| 72 | (hB : ∀ x, m (B x) = e • B' (m x)) (hC : ∀ x, m (C x) = e • C' (m x)) (x : X) : |
| 73 | m (((effect B C)^2) f x) = ((effect B' C')^2) f (m x) := by |
| 74 | have h (t : X) : m (effect B C f t) = e • effect B' C' f (m t) := by |
| 75 | rw [Spin.atAct, Spin.atAct] |
| 76 | change m (B (f t) - f (C t)) = e • (B' (f (m t)) - f (C' (m t))) |
| 77 | rw [hm, hB, hf, hf, hC, map_smul, smul_sub] |
| 78 | rw [pow_two, pow_two] |
| 79 | change m (B (effect B C f x) - effect B C f (C x)) = |
| 80 | B' (effect B' C' f (m x)) - effect B' C' f (C' (m x)) |
| 81 | rw [hm, hB, h, h, hC, map_smul, map_smul, smul_smul, he, one_smul, smul_smul, he, one_smul] |
| 82 | |
| 83 | end Square |
| 84 | |
| 85 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 86 | |
| 87 | private def Covariant (a : S.RealSpin) (d : ℕ) (B : Spin.Ind → Spin.Mat (S.Field d)) : Prop := |
| 88 | (∀ g p x, |
| 89 | S.mirror a d g (B p x) = |
| 90 | (↑(planeSign g p) : ℂ) • B (reindexPlanes g p) (S.mirror a d g x)) ∧ |
| 91 | ∀ p x, S.conj a d (B p x) = B p (S.conj a d x) |
| 92 | |
| 93 | private lemma casimir_fine (a : S.RealSpin) (d : ℕ) (B C : Spin.Ind → Spin.Mat (S.Field d)) |
| 94 | (hB : Covariant a d B) (hC : Covariant a d C) : |
| 95 | (∑ p, effect (B p) (C p)^2) ∈ Spin.preserves (Spin.fine a d) := by |
| 96 | let E (p : Spin.Ind) := (effect (B p) (C p))^2 |
| 97 | change Set.MapsTo (∑ p, E p : Spin.End (S.Field d)) (Spin.fine a d) (Spin.fine a d) |
| 98 | intro f hf |
| 99 | obtain ⟨hu,hv⟩ := hf |
| 100 | constructor |
| 101 | · intro g x |
| 102 | suffices h : S.mirror a d g (∑ p, E p f x) = ∑ p, E p f (S.mirror a d g x) by |
| 103 | simpa only [_root_.sum_apply] using h.symm |
| 104 | rw [map_sum] |
| 105 | calc |
| 106 | _ = ∑ p : Spin.Ind, E (reindexPlanes g p) f (S.mirror a d g x) := Finset.sum_congr rfl fun p _ => |
| 107 | square_action f (B p) (C p) (B (reindexPlanes g p)) (C (reindexPlanes g p)) (S.mirror a d g) |
| 108 | ((planeSign g p : ℝ) : ℂ) (sign_square g p) |
| 109 | (map_sub (S.mirror a d g)) (fun t => (hu g t).symm) (hB.1 g p) (hC.1 g p) x |
| 110 | _ = _ := Equiv.sum_comp (reindexPlanes g) fun p => E p f (S.mirror a d g x) |
| 111 | · intro x |
| 112 | suffices h : S.conj a d (∑ p, E p f x) = ∑ p, E p f (S.conj a d x) by |
| 113 | simpa only [_root_.sum_apply] using h.symm |
| 114 | rw [map_sum] |
| 115 | refine Finset.sum_congr rfl fun p _ => |
| 116 | square_action f (B p) (C p) (B p) (C p) (S.conj a d) 1 (one_mul _) (map_sub (S.conj a d)) |
| 117 | (fun t => (hv t).symm) ?_ ?_ x |
| 118 | · intro t |
| 119 | rw [one_smul] |
| 120 | exact hB.2 p t |
| 121 | · intro t |
| 122 | rw [one_smul] |
| 123 | exact hC.2 p t |
| 124 | |
| 125 | private lemma evaluate_fine (a : S.RealSpin) (d : ℕ) (A : Spin.End (S.Field d)) |
| 126 | (hA : A ∈ Spin.preserves (Spin.fine a d)) (z : List ℝ) : |
| 127 | Spin.evaluate z A ∈ Spin.preserves (Spin.fine a d) := by |
| 128 | let s := Spin.preserves (Spin.fine a d) |
| 129 | change Spin.evaluate z A ∈ s |
| 130 | induction z with |
| 131 | | nil => exact s.zero_mem |
| 132 | | cons r z ih => |
| 133 | change (r:ℂ) • 1 + A * Spin.evaluate z A ∈ s |
| 134 | refine s.add_mem ?_ (s.mul_mem hA ih) |
| 135 | change Set.MapsTo ((r:ℂ) • 1 : Spin.End (S.Field d)) (Spin.fine a d) (Spin.fine a d) |
| 136 | intro f hf |
| 137 | obtain ⟨hp,hq⟩ := hf |
| 138 | constructor |
| 139 | · intro g x |
| 140 | change (r:ℂ) • f (S.mirror a d g x) = S.mirror a d g ((r:ℂ) • f x) |
| 141 | rw [hp, map_smul] |
| 142 | intro x |
| 143 | change (r:ℂ) • f (S.conj a d x) = S.conj a d ((r:ℂ) • f x) |
| 144 | rw [hq, map_smulₛₗ] |
| 145 | simp |
| 146 | |
| 147 | private lemma covariant_leaf (a : S.RealSpin) (D : SpinRows S) (d : ℕ) |
| 148 | (h : ∀ g u x, S.mirror a d g (D d u x) = D d (orients g u) (S.mirror a d g x)) |
| 149 | (hc : ∀ u x, S.conj a d (D d u x) = D d u (S.conj a d x)) : |
| 150 | Covariant a d (leaf D d) := by |
| 151 | constructor |
| 152 | · intro g p x |
| 153 | change S.mirror a d g (D d (Spin.K p) x) = |
| 154 | (↑(planeSign g p) : ℂ) • D d (Spin.K (reindexPlanes g p)) (S.mirror a d g x) |
| 155 | rw [h, signed_plane, map_smul] |
| 156 | exact RCLike.real_smul_eq_coe_smul (K := ℂ) (planeSign g p) _ |
| 157 | · exact fun p x => hc (Spin.K p) x |
| 158 | |
| 159 | private lemma covariant_transport (A : S.RealSpin) (a : (comparator L).RealSpin) |
| 160 | (D : SpinRows S) (d : ℕ) (U : Spin.change S d) (hU : realH A a U) |
| 161 | (h : Covariant A d (leaf D d)) : |
| 162 | Covariant a d (transport D U) := by |
| 163 | have moved (p : Spin.Ind) (x : (comparator L).Field d) : |
| 164 | U (transport D U p x) = leaf D d p (U x) := U.apply_symm_apply _ |
| 165 | obtain ⟨hm,hc⟩ := hU |
| 166 | constructor |
| 167 | · intro g p x |
| 168 | apply U.injective |
| 169 | rw [hm, moved, h.1 g p, map_smul, moved, hm] |
| 170 | · intro p x |
| 171 | apply U.injective |
| 172 | rw [hc, moved, h.2 p, moved, hc] |
| 173 | |
| 174 | /-- Differentiate the Port reality law as an equality of real-parametric |
| 175 | curves; field conjugation is antilinear over ℂ, but real continuous linear. -/ |
| 176 | private lemma port_lie_real (H : S.RealSpin) (R : Rotation S) (h : Port R H) |
| 177 | (d : ℕ) (u : Ortho.Skew) (x : S.Field d) : |
| 178 | S.conj H d (R.lie d u x) = R.lie d u (S.conj H d x) := by |
| 179 | let m : S.Field d →L[ℝ] S.Field d := |
| 180 | { toFun := S.conj H d |
| 181 | map_add' := map_add _ |
| 182 | map_smul' := fun c v => by |
| 183 | change S.conj H d (c • v) = c • S.conj H d v |
| 184 | simp only [RCLike.real_smul_eq_coe_smul (K := ℂ), map_smulₛₗ] |
| 185 | simp |
| 186 | cont := Spin.cont_conj H d } |
| 187 | have ht : HasDerivAt (fun t : ℝ => S.conj H d (R.act d (Ortho.oneParameter u t) x)) |
| 188 | (S.conj H d (R.lie d u x)) 0 := |
| 189 | m.hasFDerivAt.comp_hasDerivAt 0 (h.spinAt d u x) |
| 190 | simp_rw [h.real] at ht |
| 191 | exact ht.unique (h.spinAt d u (S.conj H d x)) |
| 192 | |
| 193 | private lemma covariant_port (A : A10) (H : S.RealSpin) (R : Rotation S) (h : Port R H) |
| 194 | (d : ℕ) : Covariant H d (leaf R.lie d) := by |
| 195 | refine covariant_leaf H R.lie d (fun g u x => ?_) (port_lie_real H R h d) |
| 196 | rw [← h.signed, ← h.signed] |
| 197 | exact (A H R h).2 d g.ortho u x |
| 198 | |
| 199 | theorem answer : YM.Bid.A11 := by |
| 200 | intro A G C S H K Y hY R d U hU z |
| 201 | have h := R.lit.turns |
| 202 | have ht : Port R.T.K R.hT.spin := ⟨h.spin,h.fixes,h.group,h.signed,h.real,h.infinitesimal⟩ |
| 203 | have hv : Covariant H d (leaf Y d) := covariant_leaf H Y d (hY.hex d) (hY.real d) |
| 204 | apply evaluate_fine |
| 205 | exact casimir_fine R.hT.spin d (transport Y U) (attach R.T.K d) |
| 206 | (covariant_transport H R.hT.spin Y d U hU hv) (covariant_port A R.hT.spin R.T.K ht d) |
| 207 | end YM.Work.A11 |