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.UVNext.FREE_STRESS_CERTIFICATE.Couplings |
| 2 | |
| 3 | /-! |
| 4 | # Classification of actual gauge-invariant labels through weight five |
| 5 | |
| 6 | No equation ideal or detector antecedent. Use on all choices of `Frames`. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.UVNext.FreeStress |
| 11 | open Labels MvPolynomial Function |
| 12 | variable {G : Gauge} {j l d : ℕ} |
| 13 | |
| 14 | private abbrev oneKey (i : Key G) : Key G →₀ ℕ := Finsupp.single i 1 |
| 15 | private lemma peel (u : Key G →₀ ℕ) (hu : u ≠ 0) : |
| 16 | ∃ i : Key G, ∃ v : Key G →₀ ℕ, u=v+oneKey i := by |
| 17 | obtain ⟨i,hi⟩ : u.support.Nonempty := by simpa using hu |
| 18 | exact ⟨i,u-oneKey i,(tsub_add_cancel_of_le (Finsupp.single_le_iff.mpr |
| 19 | (Nat.pos_of_ne_zero (Finsupp.mem_support_iff.mp hi)))).symm⟩ |
| 20 | |
| 21 | private lemma height_step (u : Key G →₀ ℕ) (i : Key G) : height (u+oneKey i) = height u + i.1 + 2 := by |
| 22 | rw [height,map_add,Finsupp.weight_single,one_smul,generation,← add_assoc,height] |
| 23 | |
| 24 | private lemma heavy (u : Key G →₀ ℕ) (hu : u ≠ 0) : 2 ≤ height u := by |
| 25 | obtain ⟨i,v,rfl⟩ := peel u hu; rw [height_step]; omega |
| 26 | |
| 27 | private lemma tiny {u : Key G →₀ ℕ} (h : height u ≤ 5) : u = 0 ∨ (∃ i, u=oneKey i) ∨ |
| 28 | ∃ i k : Key G, u=oneKey i+oneKey k ∧ i.1 = 0 ∧ k.1 ≤ 1 := by |
| 29 | by_cases he : u=0 |
| 30 | · exact Or.inl he |
| 31 | right |
| 32 | obtain ⟨i,v,rfl⟩ := peel _ he |
| 33 | rw [height_step] at h |
| 34 | by_cases hv : v=0 |
| 35 | · subst v; exact Or.inl ⟨i,zero_add _⟩ |
| 36 | right |
| 37 | obtain ⟨k,w,rfl⟩ := peel v hv |
| 38 | rw [height_step] at h |
| 39 | have he : w=0 := by by_contra ht; have := heavy w ht; omega |
| 40 | subst w; rw [zero_add] |
| 41 | by_cases ht : k.1 = 0 |
| 42 | · exact ⟨k,i,rfl,ht,by omega⟩ |
| 43 | exact ⟨i,k,add_comm _ _,by omega,by omega⟩ |
| 44 | |
| 45 | abbrev Bi (G : Gauge) (j l : ℕ) := Taylor G j →ₗ[ℝ] Taylor G l →ₗ[ℝ] ℂ |
| 46 | |
| 47 | /-- Evaluation envelope for weighted monomials; use even and odd |
| 48 | parts to recover the invariances of the coefficient forms. -/ |
| 49 | private def Shelf (G : Gauge) (d : ℕ) : Submodule ℂ (Pol G) where |
| 50 | carrier := {p | ∃ (c : ℂ) (e : Jet G →ₗ[ℝ] ℂ) (B : Bi G 0 0) (D : Bi G 0 1), |
| 51 | (d < 5 → D=0) ∧ ∀ A, Labels.read A p = c+e A+B (A 0) (A 0)+D (A 0) (A 1)} |
| 52 | zero_mem' := ⟨0,0,0,0,fun _ => rfl,by simp⟩ |
| 53 | add_mem' := by |
| 54 | rintro p q ⟨c,e,B,D,h,H⟩ ⟨w,f,b,L,i,I⟩ |
| 55 | refine ⟨c+w,e+f,B+b,D+L,fun z => by rw [h z,i z,add_zero],?_⟩ |
| 56 | intro A; simp [H,I]; abel |
| 57 | smul_mem' := by |
| 58 | rintro t p ⟨c,e,B,D,h,H⟩ |
| 59 | exact ⟨t*c,t • e,t • B,t • D, fun z => by rw [h z,smul_zero],by |
| 60 | intro A; simp [H,mul_add]⟩ |
| 61 | |
| 62 | private def decoder (i : Fin (Labels.dim G j)) : Taylor G j →ₗ[ℝ] ℂ := |
| 63 | Complex.ofRealLI.toLinearMap.comp ((axes G j).coord i) |
| 64 | |
| 65 | private def productOf (a : Taylor G j →ₗ[ℝ] ℂ) (b : Taylor G l →ₗ[ℝ] ℂ) : Bi G j l := |
| 66 | (((LinearMap.mul ℝ ℂ).comp a).flip.comp b).flip |
| 67 | |
| 68 | private theorem prepared (P : Label G d) (h : d ≤ 5) : P.val ∈ Shelf G d := by |
| 69 | have he : P.val ∈ limited G d := P.property.1 |
| 70 | rw [limited, MvPolynomial.restrictSupport_eq_span] at he |
| 71 | refine (Submodule.span_le.mpr ?_ : Submodule.span ℂ _ ≤ Shelf G d) he |
| 72 | rintro _ ⟨u,hu,rfl⟩ |
| 73 | change height u ≤ d at hu |
| 74 | rcases tiny (hu.trans h) with rfl | ⟨i,rfl⟩ | ⟨⟨j,i⟩,⟨l,k⟩,rfl,hj,hk⟩ |
| 75 | · refine ⟨1,0,0,0,fun _ => rfl,fun A => ?_⟩ |
| 76 | simp |
| 77 | · obtain ⟨j,i⟩ := i |
| 78 | refine ⟨0,(decoder i).comp (LinearMap.proj j),0,0,fun _ => rfl,fun A => ?_⟩ |
| 79 | change Labels.read A (X ⟨j,i⟩) = _ |
| 80 | simp [Labels.read,decoder,Labels.coord] |
| 81 | · change j=0 at hj; subst j |
| 82 | change l≤1 at hk |
| 83 | have hQ {a b : Key G} (A : Jet G) : Labels.read A (monomial (oneKey a + oneKey b) 1) = |
| 84 | decoder a.2 (A a.1) * decoder b.2 (A b.1) := by |
| 85 | rw [monomial_add_single,pow_one,map_mul] |
| 86 | change Labels.read A (X _) * Labels.read A (X _) = _ |
| 87 | simp [Labels.read, decoder,Labels.coord] |
| 88 | interval_cases l |
| 89 | · refine ⟨0,0,productOf (decoder i) (decoder k),0,fun _ => rfl,fun A => ?_⟩ |
| 90 | simpa only [LinearMap.zero_apply, add_zero, zero_add] using! hQ (a:=⟨0,i⟩) (b:=⟨0,k⟩) A |
| 91 | · have hd : 5 ≤ d := by |
| 92 | rw [height_step,height,Finsupp.weight_single,one_smul,generation] at hu |
| 93 | exact hu |
| 94 | refine ⟨0,0,0,productOf (decoder i) (decoder k),fun ht => (ht.not_ge hd).elim,fun A => ?_⟩ |
| 95 | simpa only [LinearMap.zero_apply, add_zero,zero_add] using! hQ (a:=⟨0,i⟩) (b:=⟨1,k⟩) A |
| 96 | |
| 97 | private def paired (x : Taylor G 0) (y : Taylor G 1) : Jet G := Pi.single 0 x + Pi.single 1 y |
| 98 | |
| 99 | @[simp] private theorem paired_zero (x : Taylor G 0) (y : Taylor G 1) : paired x y 0=x := by simp [paired] |
| 100 | @[simp] private theorem paired_one (x : Taylor G 0) (y : Taylor G 1) : paired x y 1=y := by simp [paired] |
| 101 | |
| 102 | set_option maxHeartbeats 2000000 in |
| 103 | private lemma average_color (hG : G.Simple) (P : Label G d) (h : d ≤ 5) : |
| 104 | ∃ (c : ℂ) (B : Bi G 0 0) (D : Bi G 0 1), |
| 105 | (∀ u x y, B (Taylor.paint u x) (Taylor.paint u y) = B x y) ∧ |
| 106 | (∀ u x y, D (Taylor.paint u x) (Taylor.paint u y) = D x y) ∧ (d < 5 → D=0) ∧ |
| 107 | ∀ A, Labels.read A P.val = c+B (A 0) (A 0)+D (A 0) (A 1) := by |
| 108 | obtain ⟨c,e,M,D,hD,H⟩ := prepared P h |
| 109 | let B : Bi G 0 0 := (1/2:ℂ) • (M+M.flip) |
| 110 | have Hs (x) : B x x = M x x := by dsimp [B]; ring |
| 111 | have hb (x y) : B x y = B y x := by dsimp [B]; rw [add_comm] |
| 112 | have he (A : Jet G) (u : G.El) := P.property.2 A u |
| 113 | have hf : e=0 := by |
| 114 | apply no_jet_linear hG _ |
| 115 | intro u A |
| 116 | have h1 := he A u; have h2 := he (-A) u |
| 117 | simp_rw [H] at h1 h2 |
| 118 | rw [show colored u (-A) = - colored u A from funext fun i => (Taylor.paint u).map_neg _] at h2 |
| 119 | simp only [map_neg,Pi.neg_apply,LinearMap.neg_apply,neg_neg] at h2 |
| 120 | linear_combination (norm:=ring1) h1/2 - h2/2 |
| 121 | simp only [hf,LinearMap.zero_apply, add_zero, ← Hs] at H |
| 122 | have h0 (x : Taylor G 0) (y : Taylor G 1) (u : G.El) := he (paired x y) u |
| 123 | simp_rw [H, colored,paired_zero,paired_one] at h0 |
| 124 | have h1 (x : Taylor G 0) (u : G.El) := h0 x 0 u |
| 125 | simp_rw [map_zero, add_zero, add_right_inj] at h1 |
| 126 | refine ⟨c,B,D,fun u x y => ?_,fun u x y => add_left_cancel (by |
| 127 | have h2 := h0 x y u |
| 128 | rwa [h1] at h2),hD,H⟩ |
| 129 | have h2 := h1 (x+y) u |
| 130 | simp only [map_add, LinearMap.add_apply,h1, hb y x, hb (Taylor.paint u y) (Taylor.paint u x)] at h2 |
| 131 | linear_combination h2/2 |
| 132 | |
| 133 | lemma span_four (hG : G.Simple) (P : Label G 4) : |
| 134 | ∃ (c : ℂ) (f : Place 0 → Place 0 → ℂ), P = c • Labels.unit G 4 + ∑ i, ∑ k, f i k • bond i k (show 0+0+4 ≤ 4 from le_rfl) := by |
| 135 | obtain ⟨w,F,T,hF,-,ht,he⟩ := average_color hG P (by decide) |
| 136 | obtain ⟨a,ha⟩ := component_form hG F hF |
| 137 | refine ⟨w,a,?_⟩ |
| 138 | apply Subtype.ext; apply Labels.eval_ext; intro A |
| 139 | rw [he,ha,ht (by decide)] |
| 140 | simp only [AddSubmonoidClass.coe_finsetSum, SetLike.val_smul, Submodule.coe_add, bond, Labels.unit, map_add,map_sum,map_smul, map_one, |
| 141 | Complex.real_smul, eval_tape, smul_eq_mul, LinearMap.zero_apply,add_zero,mul_one] |
| 142 | congr 1 |
| 143 | exact Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun k _ => mul_comm _ _ |
| 144 | |
| 145 | lemma span_five (hG : G.Simple) (P : Label G 5) : |
| 146 | ∃ (c : ℂ) (f : Place 0 → Place 0 → ℂ) (r : Place 0 → Place 1 → ℂ), |
| 147 | P = c • Labels.unit G 5 + (∑ i, ∑ k, f i k • bond i k (show 0+0+4 ≤ 5 by decide)) + |
| 148 | ∑ i, ∑ k, r i k • bond i k (show 0+1+4 ≤ 5 from le_rfl) := by |
| 149 | obtain ⟨w,F,T,hF,hT,-,he⟩ := average_color hG P (by decide) |
| 150 | obtain ⟨a,ha⟩ := component_form hG F hF |
| 151 | obtain ⟨b,hb⟩ := component_form hG T hT |
| 152 | refine ⟨w,a,b,?_⟩ |
| 153 | apply Subtype.ext; apply Labels.eval_ext; intro A |
| 154 | rw [he,ha,hb] |
| 155 | simp only [AddSubmonoidClass.coe_finsetSum, SetLike.val_smul, Submodule.coe_add, bond, Labels.unit, map_add,map_sum,map_smul, map_one, |
| 156 | Complex.real_smul, eval_tape, smul_eq_mul,mul_one] |
| 157 | apply congr_arg₂ (·+·) |
| 158 | · congr 1; apply Finset.sum_congr rfl; intro i _; apply Finset.sum_congr rfl; intro k _; rw [mul_comm] |
| 159 | apply Finset.sum_congr rfl; intro i _; apply Finset.sum_congr rfl; intro k _; rw [mul_comm] |
| 160 | |
| 161 | end YM.UVNext.FreeStress |