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.Extra.WEAK_SCALING_ACTLAW.Mixed |
| 2 | |
| 3 | /-! |
| 4 | # Bound on real polar-vector labels through Maxwell weight five |
| 5 | |
| 6 | Finite symmetry reduction and the actual quotient Bianchi/divergence |
| 7 | constraints on the same projected generators. Numbers use each |
| 8 | antisymmetric curl pair once in the nonincident squares. No assumption of |
| 9 | independence of unconstrained jets in the quotient. Only an upper bound on |
| 10 | this polar-vector rank is needed. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Extra.WeakScaling.Five |
| 15 | open Function Set Filter Table Maxwell Climb Color Cube |
| 16 | open Work.A01 (eps) |
| 17 | variable {G : Gauge} {L : Register G} |
| 18 | |
| 19 | private abbrev S (L : Register G) := Bel L |
| 20 | private abbrev C (L : Register G) := (S L).Field 5 |
| 21 | private abbrev v (L : Register G) := mixedPin L |
| 22 | variable {H : (S L).RealSpin} {x : Axis → C L} |
| 23 | |
| 24 | private def χ (t a : Axis) := eps (Signed.mirror t) a |
| 25 | private def pair (t : Axis) (i : Fin 6) := χ t (left i)*χ t (right i) |
| 26 | private def screen (t : Axis) : C L →ₗ[ℝ] C L := |
| 27 | (2:ℝ)⁻¹ • (LinearMap.id + χ t 0 • ((S L).mirror H 5 (Signed.mirror t)).restrictScalars ℝ) |
| 28 | private def delta (t a : Axis) (i j : Fin 6) := |
| 29 | (2:ℝ)⁻¹*(1+χ t 0 * (pair t i * pair t j * χ t a)) |
| 30 | private def gate (i j : Fin 6) (a : Axis) := delta 0 a i j * delta 1 a i j * delta 2 a i j |
| 31 | private lemma kept (h : x∈polar H) t : screen (H:=H) t (x 0) = x 0 := by |
| 32 | have ht := (show _ ∧ ∀ k j, _ from h).2 (Signed.mirror t) 0 |
| 33 | change (S L).mirror H _ _ (x 0) = (↑(χ t 0):ℂ) • x 0 at ht |
| 34 | rw [show (↑(χ t 0):ℂ) • x 0 = χ t 0 • x 0 from (RCLike.real_smul_eq_coe_smul (K:=ℂ) ..).symm] at ht |
| 35 | change (2:ℝ)⁻¹ • (x 0 + χ t 0 • _) = _ |
| 36 | change (2:ℝ)⁻¹ • (x 0 + χ t 0 • ((S L).mirror H _ _ (x 0))) = _ |
| 37 | rw [ht,smul_smul,χ,Work.A01.eps_self,one_smul]; module |
| 38 | private lemma coef (i j : Fin 6) (t a : Axis) : screen (H:=H) t (mixedAt L i j a) = delta t a i j • mixedAt L i j a := by |
| 39 | change (2:ℝ)⁻¹ • (_ + χ t 0 • ((S L).mirror H _ _ _)) = _ |
| 40 | rw [mixedAt,mixedPin_action]; simp only [delta,pair,χ,Signed.mirror,Equiv.refl_apply]; module |
| 41 | private lemma selects (h : x ∈ polar H) (p : Fin 6 → Fin 6 → Axis → ℝ) |
| 42 | (he : x 0 = ∑ i, ∑ j, ∑ a, p i j a • mixedAt L i j a) : x 0 = ∑ i, ∑ j, ∑ a, p i j a • gate i j a • mixedAt L i j a := by |
| 43 | calc |
| 44 | x 0 = screen (H:=H) 2 (screen (H:=H) 1 (screen (H:=H) 0 (x 0))) := by rw [kept h,kept h,kept h] |
| 45 | _ = _ := by rw [he]; simp only [_root_.map_sum,map_smul,coef,smul_smul,gate,mul_assoc] |
| 46 | |
| 47 | private def tA (L : Register G) (a : Axis) := v L 0 a 0 a 0 |
| 48 | private def tB (L : Register G) (a b : Axis) := v L a b a b 0 |
| 49 | private def tC (L : Register G) (a b : Axis) := v L 0 b a b a |
| 50 | private def tD (L : Register G) (a b : Axis) := v L a b 0 b a |
| 51 | private lemma symmetric (a b : Axis) : tB L a b = tB L b a := by |
| 52 | unfold tB v; rw [mixedPin_left a b, mixedPin_right b a a b,neg_neg] |
| 53 | |
| 54 | set_option maxHeartbeats 3000000 in |
| 55 | private lemma table_gate (i j : Fin 6) (a : Axis) : gate i j a = if (i=j ∧ a=0) ∨ |
| 56 | (a=1 ∧ (i=1 ∧ j=3)) ∨ |
| 57 | (a=2 ∧ (i=2 ∧ j=5)) ∨ |
| 58 | (a=3 ∧ (i=0 ∧ j=4)) ∨ |
| 59 | (a=2 ∧ (i=0 ∧ j=3)) ∨ |
| 60 | (a=3 ∧ (i=1 ∧ j=5)) ∨ |
| 61 | (a=1 ∧ (i=2 ∧ j=4)) ∨ |
| 62 | (a=1 ∧ (i=3 ∧ j=1)) ∨ |
| 63 | (a=2 ∧ (i=5 ∧ j=2)) ∨ |
| 64 | (a=3 ∧ (i=4 ∧ j=0)) ∨ |
| 65 | (a=2 ∧ (i=3 ∧ j=0)) ∨ |
| 66 | (a=3 ∧ (i=5 ∧ j=1)) ∨ |
| 67 | (a=1 ∧ (i=4 ∧ j=2)) then 1 else 0 := by |
| 68 | fin_cases i <;> fin_cases j <;> fin_cases a <;> norm_num [gate,delta,pair,χ,eps,Signed.mirror,Signed.matrix_at,left,right,Fin.ext_iff] |
| 69 | |
| 70 | private def comb {V : Type*} [AddCommGroup V] [Module ℝ V] (w : Fin 3 → V) (c : Fin 3 → ℝ) := ∑ i, c i • w i |
| 71 | private abbrev wA (L : Register G) := ![tA L 1,tA L 2,tA L 3] |
| 72 | private abbrev tri {V : Type*} (w : Axis → Axis → V) := ![w 1 2,w 2 3,w 3 1] |
| 73 | private abbrev tri' {V : Type*} (w : Axis → Axis → V) := ![w 2 1,w 3 2,w 1 3] |
| 74 | private abbrev wB (L : Register G) := tri (tB L) |
| 75 | private abbrev wC (L : Register G) := tri (tC L) |
| 76 | private abbrev wC' (L : Register G) := tri' (tC L) |
| 77 | private abbrev wD (L : Register G) := tri (tD L) |
| 78 | private abbrev wD' (L : Register G) := tri' (tD L) |
| 79 | |
| 80 | @[simp] private lemma at_two {V : Type*} (x y z : V) : ![x,y,z] (2:Fin 3) = z := rfl |
| 81 | |
| 82 | set_option maxRecDepth 10000 in |
| 83 | set_option maxHeartbeats 3000000 in |
| 84 | private lemma shape (h : x∈polar H) (p : Fin 6 → Fin 6 → Axis → ℝ) (he : x 0 = ∑ i, ∑ j, ∑ a, p i j a • mixedAt L i j a) : |
| 85 | ∃ a b c d e f : Fin 3 → ℝ, x 0 = comb (wA L) a + comb (wB L) b + comb (wC L) c + comb (wC' L) d + comb (wD L) e + comb (wD' L) f := by |
| 86 | refine ⟨![p 0 0 0,p 1 1 0,p 2 2 0],![p 3 3 0,p 5 5 0,p 4 4 0], |
| 87 | ![p 1 3 1, p 2 5 2, -p 0 4 3],![-p 0 3 2, -p 1 5 3, p 2 4 1], |
| 88 | ![p 3 1 1, p 5 2 2, -p 4 0 3],![-p 3 0 2, -p 5 1 3, p 4 2 1], |
| 89 | ?_⟩ |
| 90 | rw [selects h p he] |
| 91 | simp only [Fin.sum_univ_six,Fin.sum_univ_four, comb, Fin.sum_univ_three, table_gate]; norm_num [Fin.ext_iff,wA,wB,wC,wC',wD,wD',tri,tri',neg_smul] |
| 92 | have h₁ : ∀ i : Fin 6, left i = if i=0 ∨ i=1 ∨ i=2 then 0 else if i=3 ∨ i=4 then 1 else 2 := by decide |
| 93 | have h₂ : ∀ i : Fin 6, right i = if i=0 then 1 else if i=1 ∨ i=3 then 2 else 3 := by decide |
| 94 | rw [symmetric (L:=L) 3 1]; norm_num [mixedAt,tA,tB,tC,tD,v,h₁,h₂,Fin.ext_iff] |
| 95 | rw [mixedPin_right (L:=L) 0 1 3 1 3, mixedPin_left (L:=L) 3 1 0 1 3, |
| 96 | mixedPin_right (L:=L) 0 1 2 1 2, mixedPin_left (L:=L) 2 1 0 1 2, |
| 97 | mixedPin_right (L:=L) 0 2 3 2 3, mixedPin_left (L:=L) 3 2 0 2 3] |
| 98 | module |
| 99 | |
| 100 | private def plain (s : Equiv.Perm Axis) : Signed := ⟨s,fun _ => false⟩ |
| 101 | private def maps (s : Equiv.Perm Axis) := ((S L).mirror H 5 (plain s)).restrictScalars ℝ |
| 102 | private def rot := Equiv.swap (1:Axis) 2 * Equiv.swap (2:Axis) 3 |
| 103 | private lemma fixed (h : x∈polar H) (s : Equiv.Perm Axis) (a : Axis) : maps (H:=H) s (x a) = x (s a) := by |
| 104 | have ht := (show _ ∧ ∀ k i, _ from h).2 (plain s) a; simpa [maps,plain,eps,Signed.matrix_at] using ht |
| 105 | private lemma moved (s : Equiv.Perm Axis) (i j a b k : Axis) : maps (H:=H) s (v L i j a b k) = v L (s i) (s j) (s a) (s b) (s k) := by |
| 106 | simp [maps,v,mixedPin_action,plain,eps,Signed.matrix_at] |
| 107 | |
| 108 | private def average (m : C L →ₗ[ℝ] C L) := (3:ℝ)⁻¹ • (LinearMap.id + m + m.comp m) |
| 109 | private lemma symmetrize (m : C L →ₗ[ℝ] C L) (w : Fin 3 → C L) (p : Fin 3 → ℝ) |
| 110 | (h : ∀ i, m (w i) = w (i+1)) : average m (comb w p) = ((3:ℝ)⁻¹ * ∑ i, p i) • (∑ i, w i) := by |
| 111 | have he i j (he : i+1=j) : m (w i) = w j := he ▸ h i |
| 112 | simp only [average,LinearMap.smul_apply,LinearMap.add_apply, LinearMap.id_coe,id_eq,LinearMap.comp_apply,comb, |
| 113 | Fin.sum_univ_three,map_add,map_smul,he 0 1 (by decide),he 1 2 (by decide),he 2 0 (by decide)] |
| 114 | module |
| 115 | |
| 116 | set_option maxHeartbeats 1000000 in |
| 117 | private lemma sums (hG : G.Simple) (h : x∈polar H) : ∃ a b c d : ℝ, x 0 = |
| 118 | a • (∑ i, wA L i) + b • (∑ i, wB L i) + c • ((∑ i, wC L i) + (∑ i, wC' L i)) + d • ((∑ i, wD L i)+(∑ i, wD' L i)) := by |
| 119 | obtain ⟨p,hp⟩ := odd_center hG H x h |
| 120 | obtain ⟨a,b,c,d,e,f,he⟩ := shape h p hp |
| 121 | let r := maps (H:=H) rot |
| 122 | let s := maps (H:=H) (Equiv.swap 1 2) |
| 123 | have h₁ : rot (0:Axis)=0 := by decide |
| 124 | have h₂ : rot (1:Axis)=2 := by decide |
| 125 | have h₃ : rot (2:Axis)=3 := by decide |
| 126 | have h₄ : rot (3:Axis)=1 := by decide |
| 127 | have hr := fixed h rot 0; rw [h₁] at hr |
| 128 | have hi : ∀ i : Fin 3, i=0 ∨ i=1 ∨ i=2 := by decide |
| 129 | have hrA (i) : r (wA L i)= wA L (i+1) := by |
| 130 | rcases hi i with h|h|h <;> subst i <;> |
| 131 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 132 | all_goals |
| 133 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tA,tri,tri',wA] |
| 134 | have hrB (i) : r (wB L i)= wB L (i+1) := by |
| 135 | rcases hi i with h|h|h <;> subst i <;> |
| 136 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 137 | all_goals |
| 138 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tB,tri,tri',wB] |
| 139 | have hrC (i) : r (wC L i)= wC L (i+1) := by |
| 140 | rcases hi i with h|h|h <;> subst i <;> |
| 141 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 142 | all_goals |
| 143 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tC,tri,tri',wC] |
| 144 | have hrC' (i) : r (wC' L i)= wC' L (i+1) := by |
| 145 | rcases hi i with h|h|h <;> subst i <;> |
| 146 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 147 | all_goals |
| 148 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tC,tri,tri',wC'] |
| 149 | have hrD (i) : r (wD L i)= wD L (i+1) := by |
| 150 | rcases hi i with h|h|h <;> subst i <;> |
| 151 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 152 | all_goals |
| 153 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tD,tri,tri',wD] |
| 154 | have hrD' (i) : r (wD' L i)= wD' L (i+1) := by |
| 155 | rcases hi i with h|h|h <;> subst i <;> |
| 156 | first | rw [show (0:Fin 3)+1=1 from rfl] | rw [show (1:Fin 3)+1=2 from rfl] | rw [show (2:Fin 3)+1=0 from rfl] |
| 157 | all_goals |
| 158 | norm_num [r,moved,rot, Equiv.swap_apply_def,Fin.ext_iff,tD,tri,tri',wD'] |
| 159 | have hs := congrArg (average r) he; simp only [map_add] at hs |
| 160 | rw [show average r (x 0) = x 0 by change (3:ℝ)⁻¹ • (x 0 + r (x 0) + r (r (x 0))) = _; simp only [r,hr]; module, |
| 161 | symmetrize r _ a hrA, |
| 162 | symmetrize r _ b hrB, |
| 163 | symmetrize r _ c hrC, |
| 164 | symmetrize r _ d hrC', |
| 165 | symmetrize r _ e hrD, |
| 166 | symmetrize r _ f hrD'] at hs |
| 167 | have hA : s (∑ i, wA L i) = ∑ i, wA L i := by |
| 168 | norm_num [s,Fin.sum_univ_three,map_add,wA,tA,moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 169 | abel |
| 170 | have hB : s (∑ i, wB L i) = ∑ i, wB L i := by |
| 171 | norm_num [s,Fin.sum_univ_three,map_add,wB,tB,tri,moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 172 | rw [show v L 2 1 2 1 0 = v L 1 2 1 2 0 from symmetric .., show v L 1 3 1 3 0 = v L 3 1 3 1 0 from symmetric ..,show v L 3 2 3 2 0 = v L 2 3 2 3 0 from symmetric ..] |
| 173 | abel |
| 174 | have hC : s (∑ i, wC L i) = ∑ i, wC' L i := by |
| 175 | norm_num [s,Fin.sum_univ_three,map_add,wC,tC,wC',tri,tri',moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 176 | abel |
| 177 | have hC' : s (∑ i, wC' L i) = ∑ i, wC L i := by |
| 178 | norm_num [s,Fin.sum_univ_three,map_add,wC',tC,wC,tri,tri',moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 179 | abel |
| 180 | have hD : s (∑ i, wD L i) = ∑ i, wD' L i := by |
| 181 | norm_num [s,Fin.sum_univ_three,map_add,wD,tD,wD',tri,tri',moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 182 | abel |
| 183 | have hD' : s (∑ i, wD' L i) = ∑ i, wD L i := by |
| 184 | norm_num [s,Fin.sum_univ_three,map_add,wD',tD,wD,tri,tri',moved,Equiv.swap_apply_def,Fin.ext_iff] |
| 185 | abel |
| 186 | let mean (a : Fin 3 → ℝ) := (3:ℝ)⁻¹*(∑ i, a i) |
| 187 | refine ⟨mean a,mean b,(2:ℝ)⁻¹*(mean c+mean d),(2:ℝ)⁻¹*(mean e+mean f),?_⟩ |
| 188 | have ht : s (x 0) = x 0 := (fixed h (Equiv.swap 1 2) 0).trans (by rfl) |
| 189 | have hx : x 0 = (2:ℝ)⁻¹ • (x 0 + s (x 0)) := by rw [ht]; module |
| 190 | rw [hx,hs]; dsimp only [mean]; simp only [map_add,map_smul,hA,hB,hC,hC',hD,hD']; module |
| 191 | |
| 192 | private lemma dropped (a b i k : Axis) : v L a b i i k = 0 := by |
| 193 | apply smul_right_injective _ (two_ne_zero (α:=ℝ)); change (2:ℝ) • mixedPin L _ _ _ _ _ = (2:ℝ) • 0 |
| 194 | rw [two_smul,smul_zero,add_eq_zero_iff_eq_neg]; exact mixedPin_right .. |
| 195 | private lemma via_equation : ((∑ i, wC L i)+(∑ i, wC' L i)) = -∑ i, wA L i := by |
| 196 | have h i : ∑ j : Axis, v L 0 i j i j = 0 := mixedPin_delta .. |
| 197 | have h₁ := h 1; have h₂ := h 2; have h₃ := h 3 |
| 198 | simp only [Fin.sum_univ_four, dropped] at h₁ h₂ h₃ |
| 199 | simp only [Fin.sum_univ_three,wC,wC',wA,tC,tA,tri,tri']; dsimp only [Matrix.cons_val_zero,Matrix.cons_val_one,at_two] |
| 200 | apply eq_neg_of_add_eq_zero_left |
| 201 | conv_rhs => rw [← h₁, ← h₂, ← h₃] |
| 202 | abel |
| 203 | |
| 204 | private lemma via_bianchi : ((∑ i, wD L i)+(∑ i, wD' L i)) = ∑ i, wB L i := by |
| 205 | have ht (a b : Axis) : tD L a b + tD L b a = tB L a b := by |
| 206 | have he := mixedPin_closed (L:=L) a b 0 b a |
| 207 | rw [mixedPin_right a b b a, mixedPin_right a b a 0, ← mixedPin_left b a 0 a b] at he |
| 208 | change tD L a b + -tB L a b + tD L b a = 0 at he |
| 209 | exact sub_eq_zero.mp (by rw [← he]; abel) |
| 210 | simp [Fin.sum_univ_three,tri,tri',wB,wD,wD']; rw [← ht 1 2,← ht 2 3,← ht 3 1]; abel |
| 211 | |
| 212 | lemma rank_polar (hG : G.Simple) (H : (Bel L).RealSpin) : Module.finrank ℝ (polar H) ≤ 2 := by |
| 213 | let T : (Fin 2 → ℝ) →ₗ[ℝ] C L := (LinearMap.proj 0).smulRight (∑ i, wA L i) + (LinearMap.proj 1).smulRight (∑ i, wB L i) |
| 214 | have he (x : Axis → C L) (hx : x∈polar H) : x 0 ∈ T.range := by |
| 215 | obtain ⟨a,b,c,d,h⟩ := sums hG hx |
| 216 | refine ⟨![a-c,b+d],?_⟩ |
| 217 | rw [via_equation,via_bianchi] at h; rw [h] |
| 218 | change (a-c) • (∑ i, wA L i) + (b+d) • (∑ i, wB L i) = _ |
| 219 | module |
| 220 | let P := LinearMap.codRestrict T.range ((LinearMap.proj (φ:=fun _:Axis => C L) 0).domRestrict (polar H)) (fun x => he x x.property) |
| 221 | refine (LinearMap.finrank_le_finrank_of_injective (f:=P) (fun a b he => Subtype.ext ?_)).trans |
| 222 | ((LinearMap.finrank_le_finrank_of_surjective T.surjective_rangeRestrict).trans_eq (Module.finrank_fin_fun ℝ)) |
| 223 | funext i |
| 224 | simpa only [Equiv.swap_apply_left] using ((fixed a.property (Equiv.swap 0 i) 0).symm.trans |
| 225 | ((congrArg (maps (H:=H) (Equiv.swap 0 i)) (congrArg Subtype.val he)).trans (fixed b.property _ _))) |
| 226 | end YM.Extra.WeakScaling.Five |