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.Color |
| 2 | |
| 3 | /-! |
| 4 | # Weight ≤4 polynomial labels: reduction to real-order-zero curvature pairs |
| 5 | |
| 6 | For use before the two-step comparator quotient. Work directly on the |
| 7 | constrained radial Taylor jets of the given reference polynomials. There is |
| 8 | no assertion here about a general invariant algebra ideal being freely |
| 9 | presented. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Extra.WeakScaling.Color |
| 14 | open Function Set Tensor Labels |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius InnerProductSpace |
| 16 | variable {G : Gauge} |
| 17 | |
| 18 | /-- Repaint just one chosen real color coordinate into any color. -/ |
| 19 | def dye (A : Jet G) (i : G.ColorIndex) : G.Color →ₗ[ℝ] Jet G := by |
| 20 | let F (x : G.Color) := (EuclideanSpace.proj (𝕜:=ℝ) i).smulRight x |
| 21 | let B (x : G.Color) (j a) := (F x).compContinuousMultilinearMap ((A j).val a) |
| 22 | have hb x j : B x j ∈ radial G j := by |
| 23 | refine ⟨fun a v s => congrArg (F x) ((A j).property.1 a v s),fun z => ?_⟩ |
| 24 | change ∑ a, z a • F x ((A j).value a z) = 0 |
| 25 | simp_rw [← map_smul, ← _root_.map_sum, (A j).radial_value, map_zero] |
| 26 | refine ⟨⟨(fun x j => ⟨_,hb x j⟩),fun x y => ?_⟩,fun c x => ?_⟩ <;> |
| 27 | · funext j; apply Subtype.ext; funext a; ext1 u |
| 28 | first | exact smul_add (((A j).val a) u i) x y | exact smul_comm (((A j).val a) u i) c x |
| 29 | |
| 30 | |
| 31 | lemma dye_colored (A : Jet G) (i : G.ColorIndex) (u : G.El) (x : G.Color) : dye A i (G.adjoint u x) = colored u (dye A i x) := by |
| 32 | funext j; apply Taylor.value_ext; funext a z |
| 33 | exact (map_smul (G.adjoint u) _ _).symm |
| 34 | lemma dyed (A : Jet G) : ∑ i, dye A i (EuclideanSpace.single i 1) = A := by |
| 35 | funext j; rw [Finset.sum_apply]; apply Taylor.value_ext; funext a z; ext1 i |
| 36 | simp [Taylor.value,Tensor.diagonal,dye, Pi.single_apply] |
| 37 | lemma jet_invariant (h : G.Simple) (f : Jet G →ₗ[ℝ] ℂ) (he : ∀ u A, f (colored u A)=f A) (A : Jet G) : f A=0 := by |
| 38 | have ht i := linear_invariant h (f.comp (dye A i)) (fun g y => by simp only [LinearMap.comp_apply,dye_colored,he]) |
| 39 | nth_rw 1 [← dyed A]; rw [_root_.map_sum]; exact Finset.sum_eq_zero fun i _ => ht i _ |
| 40 | |
| 41 | private theorem layout (b : Key G →₀ ℕ) (h : height b ≤ 4) : |
| 42 | b=0 ∨ (∃ k, b=Finsupp.single k 1) ∨ ∃ k j, k.1=0 ∧ j.1=0 ∧ b=Finsupp.single k 1 + Finsupp.single j 1 := by |
| 43 | classical |
| 44 | induction b using Finsupp.induction with |
| 45 | | zero => exact Or.inl rfl |
| 46 | | single_add k n b _ hn ih => |
| 47 | unfold height at h |
| 48 | rw [map_add,Finsupp.weight_single, smul_eq_mul] at h |
| 49 | obtain rfl|⟨j,hj⟩|⟨j,l,hj,hl,hb⟩ := ih (by unfold height; omega) |
| 50 | · simp only [map_zero,add_zero,generation] at h |
| 51 | have hw := k.1.zero_le |
| 52 | rcases Nat.eq_or_lt_of_le (show 1 ≤ n by omega) with e|e |
| 53 | · exact Or.inr (Or.inl ⟨k,by simp [← e]⟩) |
| 54 | have he : n=2 := by nlinarith only [e,h,hw] |
| 55 | subst n |
| 56 | exact Or.inr (Or.inr ⟨k,k,by omega,by omega,by rw [add_zero,Finsupp.single_add k 1 1]⟩) |
| 57 | · subst b |
| 58 | rw [Finsupp.weight_single,one_smul] at h; unfold generation at h |
| 59 | have hw : 0 ≤ k.1 := Nat.zero_le _ |
| 60 | have he : n=1 := by nlinarith only [Nat.one_le_iff_ne_zero.mpr hn,h,hw,j.1.zero_le] |
| 61 | subst n |
| 62 | exact Or.inr (Or.inr ⟨k,j,by omega,by omega,rfl⟩) |
| 63 | · subst b; rw [map_add,Finsupp.weight_single,Finsupp.weight_single,one_smul,one_smul] at h; unfold generation at h |
| 64 | rw [hj,hl] at h; have := Nat.mul_pos (Nat.pos_of_ne_zero hn) (by omega : 0 < k.1 + 2); omega |
| 65 | |
| 66 | abbrev Quad (G : Gauge) := Taylor G 0 →ₗ[ℝ] Taylor G 0 →ₗ[ℝ] ℂ |
| 67 | private def Split (p : Pol G) := ∃ (z : ℂ) (f : Jet G →ₗ[ℝ] ℂ) (Q : Quad G), |
| 68 | ∀ A : Jet G, Labels.read A p = z + f A + Q (A 0) (A 0) |
| 69 | private def coordL (k : Key G) := Complex.ofRealCLM.toLinearMap.comp ((axes G k.1).coord k.2) |
| 70 | private lemma mon_split (b : Key G →₀ ℕ) (h : height b ≤ 4) : Split (MvPolynomial.monomial b (1:ℂ)) := by |
| 71 | rcases layout b h with e|⟨k,hk⟩|⟨⟨i,k⟩,⟨j,l⟩,hi,hj,rfl⟩ |
| 72 | · subst b; exact ⟨1,0,0,by simp⟩ |
| 73 | · subst b |
| 74 | exact ⟨0,(coordL k).comp (LinearMap.proj (φ:=Taylor G) k.1),0,fun A => by |
| 75 | rw [← MvPolynomial.X_pow_eq_monomial,pow_one]; simp [Labels.read,coordL,Labels.coord]⟩ |
| 76 | dsimp only at hi hj; subst i; subst j |
| 77 | exact ⟨0,0,(((LinearMap.mul ℝ ℂ).comp (coordL ⟨0,k⟩)).compl₂ (coordL ⟨0,l⟩)),fun A => by |
| 78 | rw [MvPolynomial.monomial_add_single,← MvPolynomial.X_pow_eq_monomial] |
| 79 | simp [Labels.read,coordL,Labels.coord]⟩ |
| 80 | |
| 81 | private lemma separated (p : Label G 4) : Split p.val := by |
| 82 | have ht := (show p.val∈limited G 4 from p.property.1) |
| 83 | rw [limited,MvPolynomial.restrictSupport_eq_span] at ht |
| 84 | refine Submodule.span_induction (p:=fun x _ => Split x) ?_ ⟨0,0,0,by simp⟩ ?_ ?_ ht |
| 85 | · rintro _ ⟨b,hb,rfl⟩; exact mon_split b hb |
| 86 | · rintro p q _ _ ⟨z,f,B,hB⟩ ⟨w,g,F,hF⟩ |
| 87 | exact ⟨z+w,f+g,B+F,fun A => by simp [map_add,hB,hF]; abel⟩ |
| 88 | · rintro c p _ ⟨z,f,B,hB⟩; exact ⟨c • z,c • f,c • B,by simp [hB, mul_add]⟩ |
| 89 | |
| 90 | lemma quadratic (h : G.Simple) (p : Label G 4) : ∃ (z : ℂ) (Q : Quad G), (∀ A, Labels.read A p.val=z+Q (A 0) (A 0)) ∧ |
| 91 | ∀ u : G.El, ∀ x y, Q (Taylor.paint u x) (Taylor.paint u y) = Q x y := by |
| 92 | obtain ⟨z,f,B,hB⟩ := separated p |
| 93 | have he u (x : Jet G) := p.property.2 x u |
| 94 | have hp u (x : Jet G) : f (colored u x) = f x := by |
| 95 | have ht := he u x; have ht' := he u (-x) |
| 96 | rw [show colored u (-x) = - colored u x from funext fun _ => map_neg ..,hB,hB,map_neg] at ht' |
| 97 | rw [hB,hB] at ht |
| 98 | simp only [Pi.neg_apply,map_neg,LinearMap.neg_apply, neg_neg] at ht' |
| 99 | apply smul_right_injective ℂ (two_ne_zero (α:=ℂ)) |
| 100 | change (2:ℂ) • _ = (2:ℂ) • _; simp only [two_smul] |
| 101 | linear_combination ht - ht' |
| 102 | have hd := jet_invariant h f hp |
| 103 | have ht (u : G.El) (x : Taylor G 0) : B (Taylor.paint u x) (Taylor.paint u x)=B x x := by |
| 104 | let A : Jet G := Function.update 0 0 x |
| 105 | have ht := he u A; simpa [hB,hd,colored,A] using ht |
| 106 | let Q : Quad G := (2:ℂ)⁻¹ • (B+B.flip) |
| 107 | refine ⟨z,Q,fun A => ?_, fun u x y => ?_⟩ |
| 108 | · rw [hB,hd]; simp [Q,← two_smul ℂ] |
| 109 | have hw := ht u (x+y); simp only [map_add,LinearMap.add_apply] at hw |
| 110 | rw [ht,ht] at hw |
| 111 | simp only [Q,LinearMap.smul_apply,LinearMap.add_apply,LinearMap.flip_apply] |
| 112 | congr 1 |
| 113 | linear_combination hw |
| 114 | |
| 115 | /-! At cap five also mixed pairs. No need a particular presentation by |
| 116 | invariant generators even on taking the equation quotient. -/ |
| 117 | private theorem extra (b : Key G →₀ ℕ) (h : height b ≤ 5) : height b ≤ 4 ∨ (∃ k, b=Finsupp.single k 1) ∨ |
| 118 | ∃ k j, k.1+j.1=1 ∧ b=Finsupp.single k 1 + Finsupp.single j 1 := by |
| 119 | classical |
| 120 | induction b using Finsupp.induction with |
| 121 | | zero => simp [height] |
| 122 | | single_add k n b _ hn ih => |
| 123 | unfold height at h |
| 124 | rw [map_add,Finsupp.weight_single, smul_eq_mul] at h |
| 125 | have hB : height b ≤ 4 := by |
| 126 | have hp := Nat.mul_le_mul_right (generation k) (show 1 ≤ n by omega) |
| 127 | unfold generation at hp h; unfold height generation; omega |
| 128 | rcases layout b hB with h0|⟨j,hj⟩|⟨i,j,hi,hj,hb⟩ |
| 129 | · subst b |
| 130 | simp [generation] at h |
| 131 | rcases Nat.eq_or_lt_of_le (show 1 ≤ n by omega) with e|e |
| 132 | · exact Or.inr (Or.inl ⟨k, by simp [e.symm]⟩) |
| 133 | have he : n=2 := by nlinarith only [e,h,k.1.zero_le] |
| 134 | subst n; left; simp [height,Finsupp.weight_single,generation]; omega |
| 135 | · subst b |
| 136 | rw [Finsupp.weight_single,one_smul] at h; unfold generation at h |
| 137 | have h1 : n=1 := by nlinarith only [Nat.one_le_iff_ne_zero.mpr hn,h,k.1.zero_le,j.1.zero_le] |
| 138 | subst n |
| 139 | rcases show k.1+j.1 ≤ 1 by omega |>.eq_or_lt with he|he |
| 140 | · exact Or.inr (Or.inr ⟨k,j,he,rfl⟩) |
| 141 | left; simp [height,Finsupp.weight_single,generation]; omega |
| 142 | · subst b; rw [map_add,Finsupp.weight_single,Finsupp.weight_single,one_smul,one_smul, generation,generation,generation,hi,hj] at h |
| 143 | nlinarith only [Nat.one_le_iff_ne_zero.mpr hn,h,k.1.zero_le] |
| 144 | |
| 145 | abbrev Mixed (G : Gauge) := Taylor G 0 →ₗ[ℝ] Taylor G 1 →ₗ[ℝ] ℂ |
| 146 | private def Split5 (p : Pol G) := ∃ (z : ℂ) (f : Jet G →ₗ[ℝ] ℂ) (Q : Quad G) (R : Mixed G), |
| 147 | ∀ A : Jet G, Labels.read A p = z + f A + Q (A 0) (A 0) + R (A 0) (A 1) |
| 148 | private lemma mon_five (b : Key G →₀ ℕ) (h : height b ≤ 5) : Split5 (MvPolynomial.monomial b (1:ℂ)) := by |
| 149 | rcases extra b h with h|⟨k,rfl⟩|⟨⟨i,k⟩,⟨j,l⟩,he,rfl⟩ |
| 150 | · obtain ⟨z,f,Q,hQ⟩ := mon_split b h |
| 151 | exact ⟨z,f,Q,0,by simpa⟩ |
| 152 | · exact ⟨0,(coordL k).comp (LinearMap.proj (φ:=Taylor G) k.1),0,0,fun A => by |
| 153 | rw [← MvPolynomial.X_pow_eq_monomial,pow_one]; simp [Labels.read,coordL,Labels.coord]⟩ |
| 154 | have aux (k : Fin (dim G 0)) (l : Fin (dim G 1)) : Split5 (MvPolynomial.monomial (Finsupp.single (⟨0,k⟩:Key G) 1 + Finsupp.single ⟨1,l⟩ 1) 1) := by |
| 155 | exact ⟨0,0,0,(((LinearMap.mul ℝ ℂ).comp (coordL ⟨0,k⟩)).compl₂ (coordL ⟨1,l⟩)),fun A => by |
| 156 | rw [MvPolynomial.monomial_add_single,← MvPolynomial.X_pow_eq_monomial] |
| 157 | simp [Labels.read,coordL,Labels.coord]⟩ |
| 158 | change i+j=1 at he |
| 159 | rcases Nat.eq_zero_or_pos i with h|h |
| 160 | · subst i; obtain rfl := show j=1 by omega |
| 161 | exact aux k l |
| 162 | obtain rfl := show i=1 by omega |
| 163 | obtain rfl := show j=0 by omega |
| 164 | rw [add_comm]; exact aux l k |
| 165 | |
| 166 | private lemma five_parts (p : Label G 5) : Split5 p.val := by |
| 167 | have ht := (show p.val∈limited G 5 from p.property.1) |
| 168 | rw [limited,MvPolynomial.restrictSupport_eq_span] at ht |
| 169 | refine Submodule.span_induction (p:=fun x _ => Split5 x) ?_ ⟨0,0,0,0,by simp⟩ ?_ ?_ ht |
| 170 | · rintro _ ⟨b,hb,rfl⟩; exact mon_five b hb |
| 171 | · rintro p q _ _ ⟨z,f,B,R,hB⟩ ⟨w,g,F,S,hF⟩; exact ⟨z+w,f+g,B+F,R+S,fun A => by simp [map_add,hB,hF]; abel⟩ |
| 172 | · rintro c p _ ⟨z,f,B,R,hB⟩; exact ⟨c • z,c • f,c • B,c • R,by simp [hB, mul_add]⟩ |
| 173 | |
| 174 | lemma throughFive (h : G.Simple) (p : Label G 5) : ∃ (z : ℂ) (Q : Quad G) (R : Mixed G), |
| 175 | (∀ A, Labels.read A p.val=z+Q (A 0) (A 0) + R (A 0) (A 1)) ∧ |
| 176 | ∀ u : G.El, ∀ x y, R (Taylor.paint u x) (Taylor.paint u y) = R x y := by |
| 177 | obtain ⟨z,f,Q,R,hB⟩ := five_parts p |
| 178 | have he u (x : Jet G) := p.property.2 x u |
| 179 | have hp u (x : Jet G) : f (colored u x) = f x := by |
| 180 | have ht := he u x; have ht' := he u (-x) |
| 181 | rw [show colored u (-x) = - colored u x from funext fun _ => map_neg ..,hB,hB,map_neg] at ht' |
| 182 | rw [hB,hB] at ht |
| 183 | simp only [Pi.neg_apply,map_neg,LinearMap.neg_apply, neg_neg] at ht' |
| 184 | apply smul_right_injective ℂ (two_ne_zero (α:=ℂ)) |
| 185 | change (2:ℂ) • _ = (2:ℂ) • _; simp only [two_smul] |
| 186 | linear_combination ht - ht' |
| 187 | have hd := jet_invariant h f hp |
| 188 | refine ⟨z,Q,R,by simpa [hd] using hB,fun g x y => ?_⟩ |
| 189 | let J : Jet G := Function.update 0 0 x |
| 190 | let K : Jet G := Function.update J 1 y |
| 191 | have hQ := he g J; have hR := he g K; simp_all [J,colored,K] |
| 192 | end YM.Extra.WeakScaling.Color |