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.Wick |
| 2 | import YM.Work.A01.Conserve |
| 3 | |
| 4 | /-! |
| 5 | # Two stress-divergence tests on the normalized free comparator at four/five |
| 6 | |
| 7 | Spectator is itself an invariant pair square at zero; first insertion at a |
| 8 | unit coordinate point. Work with the stipulated r-independent `normal*|x|⁻²` |
| 9 | scalar covariance before curls, and the no-internal-pairings moment. The |
| 10 | calculation is an upper bound on the exact H-real mean-zero conserved tensor |
| 11 | space. It does not say that the local shell identities in a Lighthouse.Goes |
| 12 | receipt must already pick a member with scalar part removed. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Extra.WeakScaling.Color |
| 17 | open Function Set Filter Analysis Labels Maxwell Tensor Cube Climb |
| 18 | open scoped Topology ContDiff Matrix.Norms.Frobenius InnerProductSpace |
| 19 | variable {G : Gauge} {L : Register G} |
| 20 | |
| 21 | private def δ (i j : Axis) : ℝ := basis i j |
| 22 | private lemma away_basis (i : Axis) : basis i ∈ away := norm_pos_iff.mp (by simp) |
| 23 | |
| 24 | private def hess (i j : Axis) (y : E4) := -2*δ i j*(‖y‖^2)⁻¹^2 + 8*y i*y j*(‖y‖^2)⁻¹^3 |
| 25 | private def H0 (i j : Axis) := -2*δ i j + 8*δ 0 i*δ 0 j |
| 26 | private def H1 (a i j : Axis) := 8*(δ 0 a * δ i j + δ 0 i * δ a j + δ 0 j * δ a i) - 48*δ 0 a*δ 0 i*δ 0 j |
| 27 | |
| 28 | private lemma known (i j : Axis) : hess i j (basis 0) = H0 i j := by simp [hess,H0,δ] |
| 29 | private lemma hess_diff (i j : Axis) {y} (hy : y ∈ away) : DifferentiableAt ℝ (hess i j) y := |
| 30 | (((differentiableAt_const _).mul (((contDiff_norm_sq ℝ (n:=∞)).differentiable (by simp) y).inv (pow_ne_zero _ (norm_ne_zero_iff.mpr hy)) |>.pow 2)).add |
| 31 | ((((differentiableAt_const _).mul (compAxis i).differentiableAt).mul (compAxis j).differentiableAt).mul |
| 32 | (((contDiff_norm_sq ℝ (n:=∞)).differentiable (by simp) y).inv (pow_ne_zero _ (norm_ne_zero_iff.mpr hy)) |>.pow 3))) |
| 33 | private lemma gradient_hess (a i j : Axis) : D (basis a) (hess i j) (basis 0) = H1 a i j := by |
| 34 | have hr := (hasFDerivAt_inv (show ‖basis 0‖^2 ≠ 0 by simp)).comp (basis 0) (hasStrictFDerivAt_norm_sq (basis 0)).hasFDerivAt |
| 35 | have ht := ((hr.pow 2).const_mul (-2*δ i j)).add ((((compAxis i).hasFDerivAt.const_mul 8).mul (compAxis j).hasFDerivAt).mul (hr.pow 3)) |
| 36 | have hh := ht.fderiv; change fderiv ℝ (hess i j) (basis 0)=_ at hh |
| 37 | rw [D,hh]; simp [compAxis,H1,δ, two_smul, -basis_eq] |
| 38 | rw [show basis a 0=basis 0 a by simp [eq_comm]]; ring |
| 39 | |
| 40 | private def curlOf (X : Axis → Axis → ℝ) (i j a b : Axis) := |
| 41 | X i b * δ a j - X i a * δ b j - (X j b * δ a i - X j a * δ b i) |
| 42 | private def curl (i j a b : Axis) (y : E4) := curlOf (fun i j => hess i j y) i j a b |
| 43 | private lemma is_curl (i j a b : Axis) {y : E4} (h : y∈away) : bareCurl i j a b y = Maxwell.normal * curl i j a b y := by |
| 44 | simp only [bareCurl, Pi.sub_apply, Bare.opp_grad h,second_Green h,curl,curlOf,hess,δ] |
| 45 | simp only [basis_eq,eq_comm (a:=j), eq_comm (a:=i)] |
| 46 | split_ifs <;> ring |
| 47 | |
| 48 | private lemma curl_at (i j a b : Axis) : curl i j a b (basis 0) = curlOf H0 i j a b := by simp only [curl,curlOf,known] |
| 49 | private lemma curl_diff {i j a b} : DifferentiableAt ℝ (curl i j a b) (basis 0) := by |
| 50 | have hh i j (c : ℝ) := (hess_diff i j (away_basis 0)).mul_const c |
| 51 | exact DifferentiableAt.sub ((hh i b (δ a j)).sub (hh i a (δ b j))) ((hh j b (δ a i)).sub (hh j a (δ b i))) |
| 52 | private lemma curl_step (k i j a b : Axis) : D (basis k) (curl i j a b) (basis 0) = curlOf (H1 k) i j a b := by |
| 53 | have hh i j (c : ℝ) := (hess_diff i j (away_basis 0)).hasFDerivAt.mul_const c |
| 54 | have h := (((hh i b (δ a j)).sub (hh i a (δ b j))).sub ((hh j b (δ a i)).sub (hh j a (δ b i)))) |
| 55 | have he : fderiv ℝ (curl i j a b) (basis 0)=_ := h.fderiv |
| 56 | rw [D,he]; simp [curlOf, ← gradient_hess, D, mul_comm] |
| 57 | |
| 58 | private def row (s i j a b p q : Axis) := 2*(curlOf (H1 s) i j p q * curlOf H0 a b p q + curlOf H0 i j p q * curlOf (H1 s) a b p q) |
| 59 | private def cost (G : Gauge) := G.lieDim * Maxwell.normal ^ 2 |
| 60 | private lemma cost_pos (h : G.Simple) : 0 < cost G := by |
| 61 | haveI := h.nontrivial_color |
| 62 | have he : 0 < Module.finrank ℝ G.Color := Module.finrank_pos |
| 63 | rw [finrank_euclideanSpace_fin] at he |
| 64 | have hn := Maxwell.normal_pos; unfold cost; positivity |
| 65 | |
| 66 | private abbrev w (L : Register G) (i j p q : Axis) := (⟨4,pinned L i j p q⟩ : (Bel L).Tag) |
| 67 | private abbrev other (L : Register G) (p q : Axis) (_ : Fin 1) := w L p q p q |
| 68 | private def kernel (L : Register G) (i j a b p q : Axis) (y : E4) := Ward.disc (Fin.cons (w L i j a b) (other L p q)) (Points.cons y 0) |
| 69 | |
| 70 | private lemma clear {y : E4} (h : y ∈ away) : Points.cons (n:=1) y 0 ∈ conf _ := Work.A01.conf_cons (fun _ _ _ => Subsingleton.elim _ _) (fun _ => h) |
| 71 | private lemma agreement (i j a b p q : Axis) {y : E4} (hy : y∈away) : kernel L i j a b p q y = |
| 72 | (↑((cost G * 2) * (curl i j p q y * curl a b p q y)) : ℂ) := by |
| 73 | change Ward.disc _ _ = _; rw [show Fin.cons (w L i j a b) (other L p q) = ![w L i j a b,w L p q p q] by funext k; fin_cases k <;> rfl] |
| 74 | rw [show Ward.disc .. = _ from paired_eval L _ (clear hy) i j a b p q p q] |
| 75 | congr 1 |
| 76 | change (↑G.lieDim * (bareCurl _ _ _ _ (y-0)*bareCurl _ _ _ _ (y-0) + bareCurl _ _ _ _ (y-0)*bareCurl _ _ _ _ (y-0)) : ℝ) = _ |
| 77 | rw [sub_zero,is_curl i j p q hy,is_curl a b p q hy]; unfold cost; ring |
| 78 | |
| 79 | private def tester (W : DiffPlan (Bel L)) (s p q : Axis) := |
| 80 | ((Work.A15.front (Points.cons (basis 0) 0) (other L p q) 5).comp (W.deriv 4 s)).restrictScalars ℝ |
| 81 | private lemma test_value (W : DiffPlan (Bel L)) (hW : W.Derivatives (Bel L)) (s i j a b p q : Axis) : |
| 82 | tester W s p q (pinned L i j a b) = (↑(cost G * row s i j a b p q) : ℂ) := by |
| 83 | simp only [tester,LinearMap.restrictScalars_apply,LinearMap.comp_apply,Work.A15.front_apply] |
| 84 | rw [← Work.A01.D_cons (table_smooth _) W hW _ _ (clear (away_basis 0)) s] |
| 85 | let F := fun y => (cost G*2) * (curl i j p q y * curl a b p q y) |
| 86 | have he : kernel L i j a b p q =ᶠ[𝓝 (basis 0)] (Complex.ofRealCLM ∘ F) := by |
| 87 | filter_upwards [open_away.mem_nhds (away_basis 0)] with z hz using agreement _ _ _ _ _ _ hz |
| 88 | change D _ (kernel L i j a b p q) (basis 0) = _ |
| 89 | rw [GermD (basis s) he] |
| 90 | have h := (DifferentiableAt.hasFDerivAt (curl_diff (i:=i) (j:=j) (a:=p) (b:=q))).mul (curl_diff (i:=a) (j:=b) (a:=p) (b:=q)).hasFDerivAt |>.const_mul (cost G*2) |
| 91 | have hF : fderiv ℝ (Complex.ofRealCLM ∘ F) (basis 0) = _ := (Complex.ofRealCLM.hasFDerivAt.comp _ h).fderiv |
| 92 | rw [D,hF]; dsimp only [ContinuousLinearMap.comp_apply, Complex.ofRealCLM_apply,smul_apply,add_apply, smul_eq_mul] |
| 93 | congr 1 |
| 94 | change _ * (_ * (D (basis s) (_ : E4 → ℝ) (_ : E4)) + _ * (D (basis s) (_ : E4 → ℝ) (_ : E4))) = _ |
| 95 | simp only [curl_at,curl_step,row]; ring |
| 96 | |
| 97 | private def observed (W : DiffPlan (Bel L)) (p q : Axis) : (Bel L).Stress →ₗ[ℝ] ℂ := ∑ i : Axis, (tester W i p q).comp |
| 98 | ((LinearMap.proj (φ:=fun _ : Axis => (Bel L).Field 4) (0:Axis)).comp (LinearMap.proj i)) |
| 99 | private lemma observed_apply (W : DiffPlan (Bel L)) (p q : Axis) (J : (Bel L).Stress) : |
| 100 | observed W p q J = ∑ i : Axis, tester W i p q (J i 0) := by simp [observed] |
| 101 | private lemma vanishes (W : DiffPlan (Bel L)) {h : (Bel L).RealSpin} {J : (Bel L).Stress} (H : Table.Conserved W h J) (p q : Axis) : |
| 102 | observed W p q J = 0 := by simp_rw [observed_apply,tester,LinearMap.restrictScalars_apply,LinearMap.comp_apply,← map_sum,H.divergence,map_zero] |
| 103 | |
| 104 | set_option maxRecDepth 4096 in |
| 105 | set_option maxHeartbeats 2000000 in |
| 106 | private lemma calculations (W : DiffPlan (Bel L)) (hW : W.Derivatives (Bel L)) : |
| 107 | let A := Types.A (pinned L); let B := Types.B (pinned L); let C := Types.C (pinned L); let F := observed W |
| 108 | F 0 1 A = ↑(cost G * (-256)) ∧ F 1 2 A = 0 ∧ F 0 1 B = 0 ∧ F 1 2 B = ↑(cost G * (-256)) ∧ |
| 109 | F 0 1 C = ↑(cost G * 128) ∧ F 1 2 C = ↑(cost G * (-128)) := by |
| 110 | dsimp only |
| 111 | simp only [observed_apply,Fin.sum_univ_four,Types.A,Types.B,Types.C,Types.total,Types.contracted]; norm_num [Fin.ext_iff] |
| 112 | simp only [test_value W hW] |
| 113 | norm_num [row,curlOf, H0,H1,δ, Fin.ext_iff,Complex.real_smul] |
| 114 | exact ⟨by ring,by ring,by ring,by ring⟩ |
| 115 | |
| 116 | theorem calibrated_line (h : G.Simple) (L : Register G) (T : Lighthouse L) (H : (Bel L).Hierarchy) (hW : T.W.Derivatives (Bel L)) |
| 117 | {τ : ℝ} (ht : τ ≠ 0) (hJ : T.J = τ • Types.stress (pinned L)) : Line T H.spin := by |
| 118 | intro P ⟨hs,hr,hdiv⟩ hP hZ |
| 119 | obtain ⟨x,y,z,rfl⟩ := (pairing_types L h H).spans H hP hr hZ |
| 120 | let v := pinned L |
| 121 | let t := x • Types.A v + y • Types.B v + z • Types.C v |
| 122 | have hα : Table.Conserved T.W H.spin t := ⟨hs,hr,hdiv⟩ |
| 123 | obtain ⟨ha,ha',hb,hb',hc,hc'⟩ := calculations T.W hW |
| 124 | have h₁ := vanishes _ hα 0 1 |
| 125 | have h₂ := vanishes _ hα 1 2 |
| 126 | dsimp only [t,v] at h₁ h₂ |
| 127 | rw [map_add,map_add,map_smul,map_smul,map_smul,ha,hb,hc] at h₁ |
| 128 | rw [map_add,map_add,map_smul,map_smul,map_smul,ha',hb',hc'] at h₂ |
| 129 | have h₁ := congrArg Complex.re h₁ |
| 130 | have h₂ := congrArg Complex.re h₂ |
| 131 | simp only [Complex.add_re, Complex.real_smul, Complex.re_ofReal_mul, Complex.ofReal_re, Complex.zero_re] at h₁ h₂ |
| 132 | have h₃ : cost G ≠ 0 := (cost_pos h).ne' |
| 133 | have hx : z = 2*x := by apply mul_left_cancel₀ h₃; linarith |
| 134 | have hy : y = -x := by apply mul_left_cancel₀ h₃; linarith |
| 135 | refine ⟨(2*x)/τ,?_⟩ |
| 136 | rw [hx,hy,hJ,Types.stress_eq,smul_smul,smul_smul, div_mul_cancel₀ _ ht]; module |
| 137 | end YM.Extra.WeakScaling.Color |
| 138 | |
| 139 | namespace YM.Extra.WeakScaling.Color |
| 140 | open Function Set Filter Analysis Labels Maxwell Tensor Cube Climb |
| 141 | open scoped Topology ContDiff Matrix.Norms.Frobenius InnerProductSpace |
| 142 | variable {G : Gauge} |
| 143 | |
| 144 | def viewing (L : Register G) (p q c d : Axis) := (Work.A15.front (Points.cons (basis 0) 0) (fun _ : Fin 1 => w L p q c d) 4).restrictScalars ℝ |
| 145 | private lemma amount (L : Register G) (p q c d a b i j : Axis) : |
| 146 | viewing L p q c d (pinned L a b i j) = (↑(cost G * |
| 147 | (curlOf H0 a b p q * curlOf H0 i j c d + curlOf H0 a b c d * curlOf H0 i j p q)) : ℂ) := by |
| 148 | simp only [viewing, LinearMap.restrictScalars_apply, Work.A15.front_apply]; change Ward.disc _ _ = _ |
| 149 | rw [show Fin.cons (w L a b i j) (fun _ : Fin 1 => w L p q c d) = ![w L a b i j,w L p q c d] by funext k; fin_cases k <;> rfl] |
| 150 | rw [show Ward.disc .. = _ from paired_eval L _ (clear (away_basis 0)) a b i j p q c d] |
| 151 | congr 1 |
| 152 | unfold two cost |
| 153 | change ↑G.lieDim * (bareCurl _ _ _ _ (basis 0-0)*bareCurl _ _ _ _ (basis 0-0) + bareCurl _ _ _ _ (basis 0-0)*bareCurl _ _ _ _ (basis 0-0)) = _ |
| 154 | simp only [sub_zero,is_curl _ _ _ _ (away_basis 0), curl_at]; ring |
| 155 | |
| 156 | set_option maxHeartbeats 1000000 in |
| 157 | theorem tensor_detection (h : G.Simple) (L : Register G) (a b c : ℝ) |
| 158 | (he : a • Types.A (pinned L) + b • Types.B (pinned L) + c • Types.C (pinned L) = 0) : a=0 ∧ b=0 ∧ c=0 := by |
| 159 | have hd i j p q d e := congrArg (fun v : Table.Stress (Bel L) => viewing L p q d e (v i j)) he |
| 160 | have ha := hd 0 0 0 1 0 1; have hb := hd 0 0 1 2 1 2; have hc := hd 0 1 0 2 1 2 |
| 161 | have ht : ∀ z : ℝ, cost G*z=0 → z=0 := fun _ e => (mul_eq_zero.mp e).resolve_left (cost_pos h).ne' |
| 162 | simp only [Pi.add_apply, Pi.smul_apply, Pi.zero_apply,Types.A,Types.B,Types.C,Types.total, Types.contracted, |
| 163 | Fin.sum_univ_four, map_add, map_smul, map_zero] at ha hb hc |
| 164 | norm_num [map_sub,map_smul, amount,curlOf,H0,δ,Fin.ext_iff] at ha hb hc |
| 165 | replace ha := congrArg Complex.re ha |
| 166 | norm_num at ha |
| 167 | exact ⟨ht a (by linarith),hb.resolve_right (cost_pos h).ne',hc.resolve_right (cost_pos h).ne'⟩ |
| 168 | |
| 169 | lemma line_of_properties (h : G.Simple) {L : Register G} (T : Lighthouse L) (H : (Bel L).Hierarchy) (he : T.Goes L H.spin) |
| 170 | (hJ : Table.Conserved T.W H.spin T.J) (hR : Table.RawTensor H.spin T.J) (h₀ : Centered T.J) : Line T H.spin := by |
| 171 | let T' := { T with J := (1:ℝ) • Types.stress (pinned L) } |
| 172 | have ht := calibrated_line h L T' H he.pales (τ:=1) one_ne_zero rfl |
| 173 | obtain ⟨c,hc⟩ := ht T.J hJ hR h₀ |
| 174 | have hn : c≠0 := fun e => free_nonzero H he (hc.trans (by rw [e,zero_smul])) |
| 175 | exact calibrated_line h L T H he.pales hn (hc.trans (by simp [T'])) |
| 176 | end YM.Extra.WeakScaling.Color |