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 Mathlib.Analysis.Normed.Module.Connected |
| 2 | import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls |
| 3 | import Mathlib.RingTheory.MvPolynomial.EulerIdentity |
| 4 | import YM.Bid.Drops |
| 5 | import YM.Bid.Loan |
| 6 | import YM.Next.MAXWELL.House |
| 7 | import YM.Next.MAXWELL.Pole |
| 8 | import YM.Pressure.Seeds |
| 9 | import YM.Work.A13 |
| 10 | |
| 11 | /-! # Proper quarter turns inside Signed, the internal parameter action -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Maxwell.Free.Corners |
| 15 | open Set Function Filter Tensor Analysis MeasureTheory Wick |
| 16 | open Ortho Org |
| 17 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 18 | |
| 19 | def quarter (a b : Axis) : Signed := ⟨Equiv.swap a b,fun i => decide (i=a)⟩ |
| 20 | |
| 21 | open scoped Matrix.Norms.Frobenius in |
| 22 | lemma fact (s : Ortho.Skew) (t r : ℝ) : oneParameter s (t+r) = oneParameter s t * oneParameter s r := by |
| 23 | apply Subtype.ext; change NormedSpace.exp ((t+r) • s.val)= _ * _ |
| 24 | rw [add_smul] |
| 25 | have h : Commute (t • s.val) (r • s.val) := by simp [Commute,SemiconjBy,smul_comm t] |
| 26 | exact NormedSpace.exp_add_of_commute h |
| 27 | |
| 28 | lemma sendsTime (a b : Axis) (h : a≠b) : (quarter a b).ortho = oneParameter (Ortho.plane a b) (Real.pi/2) := by |
| 29 | apply Ortho.ext; intro x |
| 30 | have H := Work.A13.plane_givens h x (Real.pi/2) |
| 31 | dsimp only at H |
| 32 | rw [Real.sin_pi_div_two, Real.cos_pi_div_two] at H |
| 33 | apply PiLp.ext; intro i |
| 34 | obtain ⟨ha,hb,hc⟩ := H |
| 35 | by_cases ht : i=a |
| 36 | · subst i; rw [ha]; simp [quarter,Signed.ortho_move, Signed.act,h.symm] |
| 37 | by_cases hv : i=b |
| 38 | · subst i; rw [hb]; simp [quarter,Signed.ortho_move, Signed.act] |
| 39 | rw [hc _ ht hv]; simp [quarter, Signed.ortho_move, Signed.act, Equiv.swap_apply_of_ne_of_ne ht hv,ht] |
| 40 | |
| 41 | lemma quarter_house (a b : Axis) (h : a≠b) (r : ℝ) (hr : 0<r) : |
| 42 | house ((-r) • basis a) * house (basis a+basis b) = (quarter a b).ortho := by |
| 43 | apply Ortho.ext; intro x; rw [Ortho.move_mul] |
| 44 | have ht : ‖basis a+basis b‖^2 = 2 := by rw [norm_add_sq_real]; simp [h]; norm_num |
| 45 | have he (y : E4) : Ortho.move (house ((-r) • basis a)) y = Ortho.move (Signed.reflect a) y := by |
| 46 | apply PiLp.ext; intro i |
| 47 | change M4.move (houseM _) _ _= _; rw [house_on ((-r) • basis a) y]; |
| 48 | simp only [norm_smul,Real.norm_eq_abs,abs_neg,abs_of_pos hr, real_inner_smul_left, basis_inner, basis_norm,mul_one] |
| 49 | by_cases H : i=a |
| 50 | · subst i; simp; field_simp; ring |
| 51 | simp [H] |
| 52 | rw [he,sendsTime a b h] |
| 53 | have hu := Work.A13.plane_givens h x (Real.pi/2) |
| 54 | apply PiLp.ext; intro i |
| 55 | obtain ⟨ha,hb,hc⟩ := hu |
| 56 | by_cases h1 : i=a |
| 57 | · subst i; rw [ha,show Ortho.move (house _) x = _ from house_on (basis a+basis b) x] |
| 58 | simp [ht,inner_add_left,h] |
| 59 | by_cases h2 : i=b |
| 60 | · subst i; rw [hb,show Ortho.move (house _) x = _ from house_on (basis a+basis b) x] |
| 61 | simp [ht,inner_add_left,h.symm] |
| 62 | rw [hc _ h1 h2,show Ortho.move (house _) x = _ from house_on (basis a+basis b) x] |
| 63 | simp [h1,h2] |
| 64 | |
| 65 | theorem proper (a b : Axis) (h : a≠b) : (quarter a b).matrix.det=1 := by |
| 66 | let K := Ortho.plane a b |
| 67 | have he : (quarter a b).ortho=oneParameter K (Real.pi/2) := sendsTime a b h |
| 68 | let t := Real.pi/2/2 |
| 69 | let T := oneParameter K t |
| 70 | rw [show (quarter a b).matrix=T.val*T.val from (congr_arg (fun p : Ortho => p.val) (show (quarter a b).ortho=T*T from by |
| 71 | rw [he,show T*T=oneParameter K (t+t) from (fact K t t).symm, add_halves]))] |
| 72 | rw [Matrix.det_mul] |
| 73 | have hv := congr_arg Matrix.det (Ortho.transp T); rwa [Matrix.det_mul,Matrix.det_transpose,Matrix.det_one] at hv |
| 74 | |
| 75 | lemma bracket_orient (g : Signed) (a b : Axis) : orients g (Ortho.plane a b) = |
| 76 | ((if g.flip a then (-1:ℝ) else 1) * if g.flip b then (-1:ℝ) else 1) • Ortho.plane (g.perm a) (g.perm b) := by |
| 77 | apply Subtype.ext |
| 78 | let P := g.ortho.val |
| 79 | have he (a b : Axis) : P*Matrix.single a b 1*star P = |
| 80 | ((if g.flip a then (-1:ℝ) else 1) * if g.flip b then (-1:ℝ) else 1) • Matrix.single (g.perm a) (g.perm b) 1 := by |
| 81 | apply Matrix.ext; intro i j |
| 82 | have hp : (P*Matrix.single a b 1*star P : M4) i j = P i a * P j b := by |
| 83 | rw [Matrix.mul_apply] |
| 84 | have ht k : (P * Matrix.single a b 1 : M4) i k = if k=b then P i a else 0 := by |
| 85 | rw [Matrix.mul_apply]; by_cases h : k=b <;> simp_all [Matrix.single_apply,mul_ite,Ne.symm] |
| 86 | simp only [ht,ite_mul, zero_mul]; rw [Finset.sum_ite_eq',if_pos (Finset.mem_univ _)]; rfl |
| 87 | rw [hp]; simp only [P,Signed.ortho, Signed.matrix_at, Matrix.smul_apply, smul_eq_mul, Matrix.single_apply] |
| 88 | by_cases h1 : g.perm a=i <;> by_cases h2 : g.perm b=j <;> simp_all [Ne.symm] |
| 89 | change P*(_-_)*star P=_ |
| 90 | rw [mul_sub,sub_mul,he,he,mul_comm (if g.flip b then (-1:ℝ) else 1),← smul_sub]; rfl |
| 91 | |
| 92 | private lemma commute_inv_apply {M : Type*} [AddCommGroup M] [Module ℝ M] |
| 93 | (T : Ortho.Skew →ₗ[ℝ] Ortho.Skew →ₗ[ℝ] M) (hp : ∀ a b (u v : Ortho.Skew), a≠b → |
| 94 | T (orients (quarter a b) u) (orients (quarter a b) v) = T u v) |
| 95 | (p q : Axis) (he : p≠q) (a b i l : Axis) : |
| 96 | T (orients (quarter p q * quarter p q) (Ortho.plane a b)) |
| 97 | (orients (quarter p q * quarter p q) (Ortho.plane i l))= |
| 98 | T (Ortho.plane a b) (Ortho.plane i l) := by |
| 99 | have hm (g k : Signed) (K : Ortho.Skew) : orients (g*k) K=orients g (orients k K) := by |
| 100 | have he : (g*k).ortho=g.ortho*k.ortho := map_mul Signed.inclusionO .. |
| 101 | apply Subtype.ext; change (g*k).ortho.val*K.val*star (g*k).ortho.val= |
| 102 | g.ortho.val*(k.ortho.val*K.val*star k.ortho.val)*star g.ortho.val |
| 103 | rw [he]; |
| 104 | change (g.matrix*k.matrix)*K.val*star (g.matrix*k.matrix)=_ |
| 105 | simp only [star_mul,mul_assoc]; congr |
| 106 | rw [hm,hm,hp _ _ _ _ he,hp _ _ _ _ he] |
| 107 | |
| 108 | theorem none {M : Type*} [AddCommGroup M] [Module ℝ M] |
| 109 | (T : Ortho.Skew →ₗ[ℝ] Ortho.Skew →ₗ[ℝ] M) (h : ∀ u,T u u=0) (hp : ∀ a b (u v : Ortho.Skew), a≠b → |
| 110 | T (orients (quarter a b) u) (orients (quarter a b) v)=T u v) : T=0 := by |
| 111 | have halt (u v) : T v u= - T u v := by |
| 112 | have he := h (u+v); simp only [map_add, LinearMap.add_apply, h, add_zero,zero_add] at he |
| 113 | exact eq_neg_of_add_eq_zero_left he |
| 114 | have hz {x : M} (hx : x= -x) : x=0 := by |
| 115 | apply (smul_right_injective M (by norm_num : (2:ℝ)≠0)); |
| 116 | change (2:ℝ) • x = (2:ℝ) • 0; rw [two_smul,smul_zero]; nth_rw 1 [hx]; simp |
| 117 | have ht (a b c : Axis) (ha : a≠b) (hb : a≠c) : T (Ortho.plane a b) (Ortho.plane a c)=0 := by |
| 118 | by_cases hk : b=c |
| 119 | · subst c; exact h _ |
| 120 | obtain ⟨d, hd, hv, hi⟩ : ∃ d : Axis,d≠a ∧ d≠b ∧ d≠c := by |
| 121 | exact (show ∀ i j k : Fin 4, ∃ l : Fin 4, l≠i ∧ l≠j ∧ l≠k from by decide) a b c |
| 122 | let s := quarter c d * quarter c d |
| 123 | have hs (i j) : orients s (Ortho.plane i j) = _ := bracket_orient s i j |
| 124 | apply hz |
| 125 | conv_lhs => rw [← show T (orients s (Ortho.plane a b)) (orients s (Ortho.plane a c)) = _ from commute_inv_apply T hp c d hi.symm a b a c] |
| 126 | simp only [hs] |
| 127 | simp [s, quarter,Equiv.swap_apply_def,hb,hd,hv,hi,hk,Ne.symm] |
| 128 | have hd (a b i l : Axis) (hab : a ≠ b) (hai : a≠i) (hal : a≠l) (hbi : b≠i) (hbl : b≠l) (hil : i≠l) : |
| 129 | T (Ortho.plane a b) (Ortho.plane i l)=0 := by |
| 130 | apply hz |
| 131 | conv_lhs => rw [← hp a i _ _ hai] |
| 132 | have heta : orients (quarter a i) (Ortho.plane a b)= -Ortho.plane i b := by rw [bracket_orient]; simp [quarter,Equiv.swap_apply_def,hab,hbi,Ne.symm]; exact neg_one_smul ℝ (Ortho.plane i b) |
| 133 | have heib : orients (quarter a i) (Ortho.plane i l)= Ortho.plane a l := by rw [bracket_orient]; simp [quarter,Equiv.swap_apply_def,hai,hal,hil,Ne.symm] |
| 134 | rw [heta,heib,map_neg,LinearMap.neg_apply]; congr 1 |
| 135 | conv_lhs => rw [← hp b l _ _ hbl] |
| 136 | have Hta : orients (quarter b l) (Ortho.plane i b)= -Ortho.plane i l := by rw [bracket_orient]; simp [quarter,Equiv.swap_apply_def,hbi,hil,Ne.symm]; exact neg_one_smul ℝ (Ortho.plane i l) |
| 137 | have Htz : orients (quarter b l) (Ortho.plane a l)= Ortho.plane a b := by rw [bracket_orient]; simp [quarter,Equiv.swap_apply_def,hab,hal,hbl,Ne.symm] |
| 138 | rw [Hta,Htz,map_neg,LinearMap.neg_apply,halt (Ortho.plane a b), neg_neg] |
| 139 | have hh (a b : Axis) : Ortho.plane b a = -Ortho.plane a b := Subtype.ext (neg_sub _ _).symm |
| 140 | have hk (a b i l : Axis) : T (Ortho.plane a b) (Ortho.plane i l)=0 := by |
| 141 | have hu (a) : Ortho.plane a a=0 := Subtype.ext (sub_self _) |
| 142 | rcases eq_or_ne a b with he|he |
| 143 | · subst b; simp [hu] |
| 144 | rcases eq_or_ne i l with h1|h1 |
| 145 | · subst l; simp [hu] |
| 146 | by_cases h' : a=i |
| 147 | · subst i; exact ht a b l he h1 |
| 148 | by_cases h'' : a=l |
| 149 | · subst l; rw [hh a i]; simp only [map_neg,ht a b i he h1.symm,neg_zero] |
| 150 | by_cases hb : b=i |
| 151 | · subst i; rw [hh b a]; simp only [map_neg,LinearMap.neg_apply,ht b a l he.symm h1, neg_zero] |
| 152 | by_cases hl : b=l |
| 153 | · subst l; rw [hh b a,hh b i]; simp only [map_neg,LinearMap.neg_apply,ht b a i he.symm h1.symm,neg_zero] |
| 154 | exact hd a b i l he h' h'' hb hl h1 |
| 155 | apply LinearMap.ext_on Spin.spans; rintro x ⟨p,rfl⟩; apply LinearMap.ext_on Spin.spans; rintro y ⟨q,rfl⟩; exact hk .. |
| 156 | end YM.Maxwell.Free.Corners |