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.AnalyticNext.CUBIC_MATCH.Lift.Cubic |
| 2 | import YM.AnalyticNext.CUBIC_MATCH.Lift.Descend |
| 3 | import YM.AnalyticNext.CUBIC_MATCH.Ward |
| 4 | import YM.Next.FREE_KERNELS.Amend |
| 5 | import YM.Progress.STATIONARY_SCENES.Frames |
| 6 | |
| 7 | |
| 8 | set_option warningAsError false |
| 9 | |
| 10 | /-! |
| 11 | # Reading the period coefficient tensor |
| 12 | |
| 13 | Unnormalized translation sums. Test all inputs, on the real unmasked |
| 14 | fields; periods need not divide one another. The color action is on the |
| 15 | *whole* tensor. Equality of the trilinear readouts at these periods, not |
| 16 | imaginary momentum comparison, now suffices to earn an invariant lift at |
| 17 | accountable costs. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.CubicMatch |
| 22 | open Filter Function Lattice Laurent Bloch Exterior Lift RG Precision Wilson Tree Bid |
| 23 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 24 | |
| 25 | variable {G : Gauge} {r s t : ℕ} {n : Side} {η C : ℝ} |
| 26 | |
| 27 | /-- Color coefficient per column. Not necessarily symmetric. -/ |
| 28 | abbrev Shades (G : Gauge) := Tensor.T G.Color ℝ 3 |
| 29 | |
| 30 | namespace Shades |
| 31 | variable (T : Shades G) |
| 32 | |
| 33 | def start (y z : G.Color) := T.toContinuousLinearMap (![0,y,z]) 0 |
| 34 | |
| 35 | def mid (x z : G.Color) := T.toContinuousLinearMap (![x,0,z]) 1 |
| 36 | |
| 37 | def last (x y : G.Color) := T.toContinuousLinearMap (![x,y,0]) 2 |
| 38 | |
| 39 | lemma starts (x y z : G.Color) : T ![x,y,z]=T.start y z x := by |
| 40 | unfold start |
| 41 | change _=T _; congr 1; ext1 i; fin_cases i <;> simp |
| 42 | lemma mids (x y z : G.Color) : T ![x,y,z]=T.mid x z y := by |
| 43 | unfold mid |
| 44 | change _=T _; congr 1; ext1 i; fin_cases i <;> simp |
| 45 | lemma lasts (x y z : G.Color) : T ![x,y,z]=T.last x y z := by |
| 46 | unfold last |
| 47 | change _=T _; congr 1; ext1 i; fin_cases i <;> simp |
| 48 | |
| 49 | end Shades |
| 50 | |
| 51 | lemma d_step (x : fieldDir G n r) (i) : dColor G n r x i=∑ j, d r n i j • x j := by |
| 52 | let L (k : G.ColorIndex) := PiLp.proj (𝕜:=ℝ) 2 (fun _ => ℝ) k |
| 53 | ext u; change _=L u _ |
| 54 | rw [map_sum]; simp_rw [map_smul]; rfl |
| 55 | |
| 56 | /-- Real trilinear periodic read. -/ |
| 57 | def pair3 (K : Three (Shades G) r s t) (x : fieldDir G n r) (y : fieldDir G n s) |
| 58 | (z : fieldDir G n t) := ∑ i, ∑ j, ∑ a, acts n K i j a ![x i,y j,z a] |
| 59 | |
| 60 | lemma againstX {K : Three (Shades G) (r+1) s t} (h : Pace η C K) (he : 0<η) (x : fieldDir G n r) (y z) : |
| 61 | pair3 K (dColor G n r x) y z=pair3 (δx K) x y z := by |
| 62 | unfold pair3; simp_rw [downX h he] |
| 63 | simp only [sum_apply,smul_apply] |
| 64 | conv_lhs => simp only [Shades.starts,d_step,map_sum,map_smul] |
| 65 | conv_rhs => simp only [Shades.starts] |
| 66 | conv_lhs => arg 2; intro a; arg 2; intro b; rw [Finset.sum_comm] |
| 67 | conv_lhs => arg 2; intro a; rw [Finset.sum_comm] |
| 68 | conv_rhs => arg 2; intro a; arg 2; intro b; rw [Finset.sum_comm] |
| 69 | conv_rhs => arg 2; intro a; rw [Finset.sum_comm] |
| 70 | rw [Finset.sum_comm] |
| 71 | lemma againstY {K : Three (Shades G) r (s+1) t} (h : Pace η C K) (he : 0<η) (x) (y : fieldDir G n s) (z) : |
| 72 | pair3 K x (dColor G n s y) z=pair3 (δy K) x y z := by |
| 73 | unfold pair3; simp_rw [downY h he] |
| 74 | simp only [sum_apply,smul_apply]; conv_lhs => simp only [Shades.mids,d_step,map_sum,map_smul] |
| 75 | conv_rhs => simp only [Shades.mids] |
| 76 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 77 | conv_lhs => arg 2; intro a; rw [Finset.sum_comm] |
| 78 | conv_rhs => arg 2; intro a; rw [Finset.sum_comm] |
| 79 | rw [Finset.sum_comm] |
| 80 | lemma againstZ {K : Three (Shades G) r s (t+1)} (h : Pace η C K) (he : 0<η) (x y) (z : fieldDir G n t) : |
| 81 | pair3 K x y (dColor G n t z)=pair3 (δz K) x y z := by |
| 82 | unfold pair3; simp_rw [downZ h he] |
| 83 | simp only [sum_apply,smul_apply] |
| 84 | conv_lhs => simp only [Shades.lasts,d_step,map_sum,map_smul] |
| 85 | conv_rhs => simp only [Shades.lasts] |
| 86 | refine Finset.sum_congr rfl fun _ _ => Finset.sum_congr rfl fun _ _ => Finset.sum_comm |
| 87 | lemma against_three {K : Three (Shades G) 2 2 2} (h : Pace η C K) (he : 0<η) (x y z : Dir G n) : |
| 88 | pair3 K (dColor G n 1 x) (dColor G n 1 y) (dColor G n 1 z)=pair3 (completely K) x y z := by |
| 89 | rw [againstX h he,againstY (h.x he.le) he,againstZ ((h.x he.le).y he.le) he] |
| 90 | |
| 91 | lemma pair_read (K : Three (Shades G) r s t) (x y z : G.Color) (i j k : _) : |
| 92 | pair3 (n:=n) K (Pi.single i x) (Pi.single j y) (Pi.single k z) = acts n K i j k ![x,y,z] := by |
| 93 | unfold pair3; rw [Finset.sum_eq_single i]; swap |
| 94 | · intro b _ hb; apply Finset.sum_eq_zero; intro a _; apply Finset.sum_eq_zero; intro c _ |
| 95 | rw [Pi.single_eq_of_ne hb]; exact (acts n K _ _ _).map_coord_zero 0 rfl |
| 96 | swap; · simp |
| 97 | rw [Finset.sum_eq_single j]; swap |
| 98 | · intro b _ hb; apply Finset.sum_eq_zero; intro c _ |
| 99 | rw [Pi.single_eq_of_ne hb]; exact (acts n K _ _ _).map_coord_zero 1 rfl |
| 100 | swap; · simp |
| 101 | rw [Finset.sum_eq_single k]; swap |
| 102 | · intro b _ hb; rw [Pi.single_eq_of_ne hb]; exact (acts n K _ _ _).map_coord_zero 2 rfl |
| 103 | swap; · simp |
| 104 | rw [Pi.single_eq_same,Pi.single_eq_same,Pi.single_eq_same] |
| 105 | |
| 106 | lemma eta_three {E : Type*} (v : Fin 3 → E) : v=![v 0,v 1,v 2] := funext fun i => by fin_cases i <;> rfl |
| 107 | |
| 108 | lemma literal {K : Three (Shades G) r s t} (h : Pace η C K) (he : 0<η) (z : ℕ → Side) |
| 109 | (hz : Tendsto (fun i => (z i).val) atTop atTop) (i j a : _) (x : Couple) : |
| 110 | Tendsto (fun p => acts (z p) K (wrap (z p) x.1,i) (wrap (z p) x.2,j) (0,a)) atTop |
| 111 | (𝓝 (K i j a x)) := by |
| 112 | simp_rw [acts,sub_zero]; exact entry_value ((h i j a).summable_norm (summable_two he)) z hz x |
| 113 | |
| 114 | lemma extinct {K : Three (Shades G) r s t} (h : Pace η C K) (he : 0<η) {z : ℕ → Side} |
| 115 | (hz : Tendsto (fun i => (z i).val) atTop atTop) (H : ∀ p, ∀ a b c, pair3 (n:=z p) K a b c=0) : K=0 := by |
| 116 | funext i j a x |
| 117 | refine tendsto_nhds_unique (literal h he z hz i j a x) ((show Tendsto (fun _ : ℕ => (0 : Shades G)) atTop (𝓝 0) from tendsto_const_nhds).congr' ?_) |
| 118 | filter_upwards with p |
| 119 | apply ContinuousMultilinearMap.ext |
| 120 | intro v |
| 121 | rw [eta_three v] |
| 122 | change 0=acts _ K _ _ _ _ |
| 123 | rw [← pair_read,H] |
| 124 | |
| 125 | lemma kernel_x {K : Three (Shades G) (r+1) s t} (h : Pace η C K) (he : 0<η) {z : ℕ → Side} |
| 126 | (hz : Tendsto (fun i => (z i).val) atTop atTop) (H : ∀ p a b c,pair3 K (dColor G (z p) r a) b c=0) : δx K=0 := |
| 127 | extinct (h.x he.le) he hz fun p a b c => (againstX h he a b c).symm.trans (H p a b c) |
| 128 | lemma kernel_y {K : Three (Shades G) r (s+1) t} (h : Pace η C K) (he : 0<η) {z : ℕ → Side} |
| 129 | (hz : Tendsto (fun i => (z i).val) atTop atTop) (H : ∀ p a b c,pair3 K a (dColor G (z p) s b) c=0) : δy K=0 := |
| 130 | extinct (h.y he.le) he hz fun p a b c => (againstY h he a b c).symm.trans (H p a b c) |
| 131 | lemma kernel_z {K : Three (Shades G) r s (t+1)} (h : Pace η C K) (he : 0<η) {z : ℕ → Side} |
| 132 | (hz : Tendsto (fun i => (z i).val) atTop atTop) (H : ∀ p a b c,pair3 K a b (dColor G (z p) t c)=0) : δz K=0 := |
| 133 | extinct (h.z he.le) he hz fun p a b c => (againstZ h he a b c).symm.trans (H p a b c) |
| 134 | |
| 135 | /-- For correspondence with a PathData correction, order the indices with |
| 136 | an external anchor first, and unroll the entire coefficient. -/ |
| 137 | lemma translation {K : Three (Shades G) r s t} (h : Pace η C K) (he : 0<η) |
| 138 | (x y) (z : fieldDir G n t) : pair3 K x y z= |
| 139 | ∑ p : Site n, ∑ i : TypeFace r, ∑ j : TypeFace s, ∑ a : TypeFace t, |
| 140 | ∑' m : Couple,K i j a m ![x (wrap n m.1+p,i),y (wrap n m.2+p,j),z (p,a)] := by |
| 141 | unfold pair3 |
| 142 | conv_lhs => arg 2; intro i; rw [Finset.sum_comm] |
| 143 | rw [Finset.sum_comm] |
| 144 | rw [Fintype.sum_prod_type]; refine Finset.sum_congr rfl fun p _ => ?_ |
| 145 | conv_lhs => |
| 146 | arg 2; intro a |
| 147 | simp only [Fintype.sum_prod_type] |
| 148 | rw [Finset.sum_comm] |
| 149 | rw [Finset.sum_comm]; refine Finset.sum_congr rfl fun i _ => ?_ |
| 150 | conv_lhs => |
| 151 | arg 2; intro a |
| 152 | arg 2; intro q |
| 153 | rw [Finset.sum_comm] |
| 154 | conv_lhs => arg 2; intro a; rw [Finset.sum_comm] |
| 155 | rw [Finset.sum_comm]; refine Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun a _ => ?_ |
| 156 | let f (t : Site n × Site n) := ContinuousMultilinearMap.apply ℝ |
| 157 | (fun _ : Fin 3 => G.Color) ℝ (![x (t.1+p,i),y (t.2+p,j),z (p,a)]) |
| 158 | have hh := unroll_sum_apply (K i j a) ((h i j a).summable_norm (summable_two he)) f |
| 159 | refine Eq.trans ?_ hh |
| 160 | rw [← Fintype.sum_prod_type (f:=fun t : Site n × Site n => acts n K (t.1,i) (t.2,j) (p,a) |
| 161 | ![x (t.1,i),y (t.2,j),z (p,a)])] |
| 162 | rw [← Equiv.sum_comp (Equiv.addRight (p,p))] |
| 163 | refine Finset.sum_congr rfl fun w _ => ?_; rcases w with ⟨d,b⟩ |
| 164 | change unroll (K i j a) (d+p-p,b+p-p) ![x (d+p,i),y (b+p,j),z (p,a)]=_ |
| 165 | rw [add_sub_cancel_right,add_sub_cancel_right]; rfl |
| 166 | |
| 167 | def Shades.invariant (G : Gauge) : Submodule ℝ (Shades G) where |
| 168 | carrier := {U | ∀ u : G.El, ∀ v, U (fun i => G.adjoint u (v i))=U v} |
| 169 | zero_mem' := fun _ _ => rfl |
| 170 | add_mem' := fun {A B} h g u v => by |
| 171 | simp only [add_apply]; exact congr_arg₂ _ (h u v) (g u v) |
| 172 | smul_mem' := fun x A h u v => by |
| 173 | simp only [smul_apply]; exact congr_arg _ (h u v) |
| 174 | |
| 175 | lemma colored_single (i : Body r n) (u : G.El) (x : G.Color) : |
| 176 | recolor u r (n:=n) (Pi.single i x)=Pi.single i (G.adjoint u x) := by |
| 177 | funext j; change G.adjoint u _=_; by_cases h : i=j |
| 178 | · subst j; rw [Pi.single_eq_same,Pi.single_eq_same] |
| 179 | rw [Pi.single_eq_of_ne (Ne.symm h),Pi.single_eq_of_ne (Ne.symm h),map_zero] |
| 180 | |
| 181 | lemma acquire {K : Three (Shades G) r s t} (h : Pace η C K) (he : 0<η) {z : ℕ → Side} |
| 182 | (hz : Tendsto (fun i => (z i).val) atTop atTop) |
| 183 | (H : ∀ p u a b c, pair3 K (recolor u r (n:=z p) a) (recolor u s b) (recolor u t c)=pair3 K a b c) |
| 184 | (i j a : _) (x : Couple) : K i j a x ∈ Shades.invariant G := by |
| 185 | have hh p (i : Body r (z p)) j k u (y : Fin 3 → G.Color) : acts (z p) K i j k (fun d => G.adjoint u (y d))= |
| 186 | acts (z p) K i j k y := by |
| 187 | rw [show (fun d => G.adjoint u (y d))=![G.adjoint u (y 0),G.adjoint u (y 1),G.adjoint u (y 2)] from eta_three _] |
| 188 | conv_rhs => arg 2; rw [eta_three y] |
| 189 | rw [← pair_read,← pair_read,← colored_single,← colored_single,← colored_single,H] |
| 190 | have ht := literal h he z hz i j a x |
| 191 | intro u y |
| 192 | let f (w : Fin 3 → G.Color) := ContinuousMultilinearMap.apply ℝ (fun _ => G.Color) ℝ w |
| 193 | have ha := (f (fun d => G.adjoint u (y d))).continuous.tendsto (K i j a x) |
| 194 | apply tendsto_nhds_unique_of_eventuallyEq (ha.comp ht) (((f y).continuous.tendsto _).comp ht) |
| 195 | exact Eventually.of_forall fun p => hh p _ _ _ u y |
| 196 | |
| 197 | private theorem palette {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (U : Submodule ℝ E) |
| 198 | [FiniteDimensional ℝ E] (hη : 0<η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ C : ℝ, 0 ≤ C → |
| 199 | ∀ A : Three E 1 1 1, Pace η C A → (∀ i j a p, A i j a p∈ U) → |
| 200 | δx A=0 → δy A=0 → δz A=0 → ∃ B : Three E 2 2 2, |
| 201 | Pace θ (F*C) B ∧ (∀ i j a p,B i j a p∈U) ∧ completely B=A := by |
| 202 | obtain ⟨θ,F,hθ,hF,H⟩ := colors U hη |
| 203 | refine ⟨θ,F,hθ,hF,fun C hc A hA h hx hy hz => ?_⟩ |
| 204 | let B : Three U 1 1 1 := fun i j a p => ⟨_,h i j a p⟩ |
| 205 | have hb : Pace η C B := fun i j a x => hA i j a x |
| 206 | have he : apply3 U.subtype B=A := rfl |
| 207 | have hh {r s t} (R : Three U r s t) (hr : apply3 U.subtype R=0) : R=0 := by |
| 208 | funext i j a x; exact Subtype.ext (congr_fun (congr_fun (congr_fun (congr_fun hr i) j) a) x) |
| 209 | obtain ⟨R,pr,qr⟩ := H _ hc B hb (hh _ (by rw [apply3_x,he,hx])) (hh _ (by rw [apply3_y,he,hy])) (hh _ (by rw [apply3_z,he,hz])) |
| 210 | refine ⟨apply3 U.subtype R,fun i j a x => pr i j a x, fun i j a p => (R i j a p).property,?_⟩ |
| 211 | unfold completely; rw [← apply3_x,← apply3_y,← apply3_z,show δz _=_ from qr,he] |
| 212 | |
| 213 | /-- Lift *invariant* kernels, preserving invariance per actual tensor (before |
| 214 | channels and markers). Closes in the `Tensor.T`, not quotiented by color |
| 215 | relations. The uniform prices here are at fixed G. -/ |
| 216 | theorem paid_lift (G : Gauge) (hη : 0<η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ C : ℝ, 0 ≤ C → |
| 217 | ∀ A : Three (Shades G) 1 1 1, Pace η C A → (∀ i j a p, A i j a p∈ Shades.invariant G) → |
| 218 | δx A=0 → δy A=0 → δz A=0 → ∃ B : Three (Shades G) 2 2 2, |
| 219 | Pace θ (F*C) B ∧ (∀ i j a p,B i j a p∈ Shades.invariant G) ∧ completely B=A := by |
| 220 | apply palette (U:=Shades.invariant G) hη |
| 221 | |
| 222 | /-- All periods of the represented scalar kernel. Ward identities field by |
| 223 | field really give the cover cycle, also with zero/matching placements. -/ |
| 224 | theorem shadows {z : ℕ → Side} {A : ∀ i, Dir G (z i) → ℝ} {K : Three (Shades G) 1 1 1} |
| 225 | (h : Pace η C K) (he : 0<η) (hz : Tendsto (fun i => (z i).val) atTop atTop) |
| 226 | (hp : ∀ p, Checks (z p) (A p)) (h₁ : ∀ p,fderiv ℝ (A p) 0=0) (h₂ : ∀ p, iteratedFDeriv ℝ 2 (A p) 0=0) |
| 227 | (hk : ∀ p, ∀ x y b, pair3 (n:=z p) K x y b=Tensor.coeff (A p) 3 0 ![x,y,b]) : |
| 228 | (∀ i j a p,K i j a p∈ Shades.invariant G) ∧ δx K=0 ∧ δy K=0 ∧ δz K=0 := by |
| 229 | have hf p u := Checks.horizontal_tensor (hp p) (h₁ p) (h₂ p) u |
| 230 | have hu p : Tensor.Sym (Tensor.coeff (A p) 3 0) := Tensor.coeff_symm ((hp p).analytic.of_le le_top) |
| 231 | have hx (p x y w) : Tensor.coeff (A p) 3 0 ![dColor G (z p) 0 x,y,w]=0 := |
| 232 | DFunLike.congr_fun (hf p x) ![y,w] |
| 233 | refine ⟨acquire h he hz (fun p u x y b => ?_), kernel_x h he hz fun p x y b => (hk ..).trans (hx p x y b), |
| 234 | kernel_y h he hz fun p x y b => ?_, kernel_z h he hz fun p x y b => ?_⟩ |
| 235 | · rw [hk,hk] |
| 236 | have ht := (hp p).colored_tensor u ![x,y,b] |
| 237 | exact Eq.trans (congr_arg ((Tensor.coeff (A p) 3 0) : _ → ℝ) (funext fun i => by fin_cases i <;> rfl)) ht |
| 238 | · rw [hk]; rw [← hu p ![_,_,_] (Equiv.swap 0 1)] |
| 239 | have ht (x y z : Dir G (z p)) : ![x,y,z] ∘ Equiv.swap (0:Fin 3) 1=![y,x,z] := funext fun i => by fin_cases i <;> rfl |
| 240 | rw [ht,hx] |
| 241 | rw [hk, ← hu p ![_,_,_] (Equiv.swap 0 2)] |
| 242 | have ht (x y z : Dir G (z p)) : ![x,y,z] ∘ Equiv.swap (0:Fin 3) 2=![z,y,x] := funext fun i => by fin_cases i <;> rfl |
| 243 | rw [ht,hx] |
| 244 | end YM.CubicMatch |