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.Bid.Station |
| 2 | import YM.Push.STRESS_FLUX.Matching |
| 3 | import YM.Work.A01.Conserve |
| 4 | import YM.Work.A01.Mirror |
| 5 | import YM.Work.A15.Shell |
| 6 | |
| 7 | /-! |
| 8 | Pure interface consequences: transform a stress already giving the two flux |
| 9 | laws (for use on the free comparator only). Compensated compact rotation |
| 10 | average is from Work.A15, then take real part and remove a scalar *identity* |
| 11 | tensor (not the total curvature square). -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.StressFlux.Tune |
| 15 | open Table Work.A01 Work.A15 Function Set Filter MeasureTheory Analysis |
| 16 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 17 | variable {G : Gauge} {L : Register G} {S : Table L} {n d : ℕ} {W : DiffPlan S} {H : S.RealSpin} {X : S.Rotation} {J : S.Stress} |
| 18 | {P : Climb.Parts S} {A : Ward.SpinRows S} {x : Points (n+1)} {χ : E4 → ℝ} |
| 19 | |
| 20 | lemma laws_smul (hs : S.Smooth) (h : StressLaws S J P A) (t : ℝ) : StressLaws S (t • J) (t • P) (t • A) where |
| 21 | translation {n x} hx q {_χ} hw b d B := by |
| 22 | rw [← translationFlux_apply hx hw hs, RCLike.real_smul_eq_coe_smul (K:=ℂ) t J,map_smul,translationFlux_apply,h.translation hx q hw, ← front_eval, ← map_smul] |
| 23 | rw [RCLike.real_smul_eq_coe_smul (K:=ℂ) t P]; exact front_eval .. |
| 24 | rotation {n x} hx q {_χ} hw b d B := by |
| 25 | change _ = S.useAt S x (Fin.cons ⟨d,t • A d b B⟩ q) |
| 26 | rw [← angularFlux_apply hx hw hs, RCLike.real_smul_eq_coe_smul (K:=ℂ) t J,map_smul,angularFlux_apply,h.rotation hx q hw, ← front_eval, ← map_smul] |
| 27 | rw [RCLike.real_smul_eq_coe_smul (K:=ℂ) t (A d b B)]; exact front_eval .. |
| 28 | |
| 29 | lemma lie_real (h : X.Laws W H) (d : ℕ) (u : Ortho.Skew) (x : S.Field d) : |
| 30 | S.conj H d (X.lie d u x) = X.lie d u (S.conj H d x) := by |
| 31 | let m : S.Field d →L[ℝ] S.Field d := { |
| 32 | toFun := S.conj H d |
| 33 | map_add' := map_add _ |
| 34 | map_smul' r v := by change S.conj H d (r • v) = r • S.conj H d v; simp only [RCLike.real_smul_eq_coe_smul (K:=ℂ), map_smulₛₗ]; simp |
| 35 | cont := Spin.cont_conj H d } |
| 36 | have he : HasDerivAt (fun t => S.conj H d (X.act d (Ortho.oneParameter u t) x)) (S.conj H d (X.lie d u x)) (0:ℝ) := |
| 37 | m.hasFDerivAt.comp_hasDerivAt 0 (h.infinitesimal d u x) |
| 38 | simp_rw [h.real] at he |
| 39 | exact he.unique (h.infinitesimal d u _) |
| 40 | |
| 41 | def conjugate (H : S.RealSpin) (J : S.Stress) : S.Stress := fun a b => S.conj H 4 (J a b) |
| 42 | |
| 43 | def re (H : S.RealSpin) (J : S.Stress) := (2:ℝ)⁻¹ • (J + conjugate H J) |
| 44 | |
| 45 | lemma torque_real (h : S.Symmetric) (H : S.RealSpin) (J : S.Stress) (q : Fin n → S.Tag) (B : S.Field d) |
| 46 | (V : E4 → E4) (hx : x∈conf _) (hw : Window x χ) : |
| 47 | star (flux J χ V x (realTag H ∘ q) (S.conj H d B)) = flux (conjugate H J) χ V x q B := by |
| 48 | have hq : realTag H ∘ (realTag H ∘ q) = q := funext fun i => by change Sigma.mk (q i).1 (S.conj H _ (S.conj H _ _)) = _; rw [reflect_star] |
| 49 | have he a b y : term (conjugate H J) χ V x q B a b y = star (term J χ V x (realTag H ∘ q) (S.conj H d B) a b y) := by |
| 50 | by_cases he : D (basis a) χ y = 0 |
| 51 | · simp [term,he] |
| 52 | rw [term,term,star_mul',← real_eval h H (separated_of_D hx hw he),comp_cons,comp_cons,hq,conjugate] |
| 53 | congr 1 |
| 54 | · simp |
| 55 | congr 2 |
| 56 | exact congr_arg₂ _ ((congr_arg (Sigma.mk d) (S.reflect_star H d B)).symm) rfl |
| 57 | simp_rw [flux,he,star_neg,star_sum,Complex.star_def,integral_conj] |
| 58 | |
| 59 | lemma re_laws (hs : S.Hierarchy) (hW : W.Orientation hs.spin) (hX : X.Laws W hs.spin) (hp : StressLaws S J W.deriv X.lie) : |
| 60 | StressLaws S (re hs.spin J) W.deriv X.lie := by |
| 61 | have he (F : S.Stress →ₗ[ℂ] ℂ) : F J = F (conjugate hs.spin J) → F (re hs.spin J) = F J := by |
| 62 | intro hh |
| 63 | change F.restrictScalars ℝ ((2:ℝ)⁻¹ • (J + conjugate hs.spin J)) = _ |
| 64 | rw [map_smul] |
| 65 | change (2:ℝ)⁻¹ • F (J + conjugate hs.spin J) = _ |
| 66 | rw [map_add,← hh,Complex.real_smul]; push_cast; ring |
| 67 | have hr {d n : ℕ} (v : S.Field d) (q : Fin n → S.Tag) {x : Points (n+1)} (hx : x ∈ conf _) : |
| 68 | S.useAt S x (Fin.cons ⟨d,v⟩ q) = star (S.useAt S x (Fin.cons ⟨d,S.conj hs.spin d v⟩ (realTag hs.spin ∘ q))) := by |
| 69 | rw [show Fin.cons (α:=fun _ => S.Tag) ⟨d,S.conj hs.spin d v⟩ (realTag hs.spin ∘ q) = _ from (comp_cons (realTag hs.spin) (⟨d,v⟩ : S.Tag) q).symm, |
| 70 | real_eval hs.laws.toSymmetric hs.spin hx,star_star] |
| 71 | constructor |
| 72 | · intro n x hx q χ hw b d B |
| 73 | rw [← hp.translation hx q hw, ← translationFlux_apply hx hw hs.smooth,← translationFlux_apply hx hw hs.smooth] |
| 74 | apply he |
| 75 | rw [translationFlux_apply,translationFlux_apply, ← flux_translation (conjugate hs.spin J), |
| 76 | ← torque_real hs.laws.toSymmetric hs.spin J q B _ hx hw,flux_translation, hp.translation hx q hw, hp.translation hx _ hw,← hW.realDer]; exact hr _ _ hx |
| 77 | intro n x hx q χ hw g d B |
| 78 | rw [← hp.rotation hx q hw, ← angularFlux_apply hx hw hs.smooth,← angularFlux_apply hx hw hs.smooth] |
| 79 | apply he |
| 80 | rw [angularFlux_apply,angularFlux_apply, ← flux_spin, ← flux_spin, ← torque_real hs.laws.toSymmetric hs.spin J q B _ hx hw,flux_spin,flux_spin,hp.rotation hx q hw,hp.rotation hx _ hw,← lie_real hX]; exact hr _ _ hx |
| 81 | |
| 82 | lemma re_tensor (hs : S.Hierarchy) (hX : X.Laws W hs.spin) (hJ : Tensorial X J) : Tensorial X (re hs.spin J) := by |
| 83 | intro K a b |
| 84 | unfold re |
| 85 | change X.act _ _ ((2:ℝ)⁻¹ • (J a b + S.conj hs.spin 4 (J a b))) = ∑ i : Axis, ∑ j : Axis, (↑(_ : ℝ):ℂ) • ((2:ℝ)⁻¹ • (J i j + S.conj hs.spin 4 (J i j))) |
| 86 | rw [show X.act _ _ ((2:ℝ)⁻¹ • _) = (2:ℝ)⁻¹ • X.act 4 K (J a b + S.conj hs.spin 4 (J a b)) from ((X.act 4 K).toLinearMap.restrictScalars ℝ).map_smul _ _,map_add,← hX.real,hJ,map_sum] |
| 87 | simp [map_sum,map_smulₛₗ,smul_add,Finset.sum_add_distrib,smul_comm (_:ℂ) ((2:ℝ)⁻¹), Finset.smul_sum] |
| 88 | |
| 89 | lemma re_conj (H : S.RealSpin) (J : S.Stress) a b : S.conj H 4 (re H J a b) = re H J a b := by |
| 90 | unfold re |
| 91 | rw [RCLike.real_smul_eq_coe_smul (K:=ℂ)] |
| 92 | simp [conjugate,map_smulₛₗ, reflect_star, add_comm,map_ofNat] |
| 93 | |
| 94 | def vac (S : Table L) (t : ℝ) : S.Stress := fun a b => if a=b then t • S.unit 4 else 0 |
| 95 | lemma vac_flux (hs : S.Hierarchy) (q : Fin n → S.Tag) (B : S.Field d) (hx : x∈conf _) (hw : Window x χ) (r : ℝ) |
| 96 | (V : E4 → E4) (hv : ∀ b : Axis, ContDiff ℝ ∞ (fun y => V y b)) (hk : killing V) : flux (vac S r) χ V x q B = 0 := by |
| 97 | let q' := Fin.cons (α:=fun _ => S.Tag) ⟨d,B⟩ q |
| 98 | have he a b y : term (vac S r) χ V x q B a b y = if a=b then ((r*S.useAt S x q') * ↑(D (basis a) χ y * V y a)) else 0 := by |
| 99 | unfold term |
| 100 | by_cases hh : D (basis a) χ y=0 |
| 101 | · simp [hh] |
| 102 | have hy := separated_of_D hx hw hh |
| 103 | rw [← front_eval, vac] |
| 104 | split_ifs with ht |
| 105 | · subst b |
| 106 | rw [RCLike.real_smul_eq_coe_smul (K:=ℂ),map_smul,front_eval, S.at_unit hs.laws hy q',show Points.tail (Points.cons y x) = x from rfl,smul_eq_mul]; change _ * (↑r * S.useAt S x q') = _; ring |
| 107 | rw [map_zero, mul_zero] |
| 108 | have h0 (a : Axis) : (∫ y : E4, (↑(D (basis a) χ y * V y a):ℂ)) = 0 := by |
| 109 | let F (y : E4) := (V y a : ℂ) |
| 110 | have hF : ContDiff ℝ ∞ F := Complex.ofRealCLM.contDiff.comp (hv a) |
| 111 | have hd y : D (basis a) F y = 0 := by |
| 112 | change fderiv ℝ (Complex.ofRealCLM ∘ (fun y => V y a)) y (basis a) = _ |
| 113 | rw [fderiv_comp y Complex.ofRealCLM.differentiableAt ((hv a).differentiable (by simp) _), Complex.ofRealCLM.fderiv, ContinuousLinearMap.comp_apply] |
| 114 | exact congr_arg Complex.ofReal (show D (basis a) (fun y => V y a) y = 0 by linarith [hk a a y]) |>.trans Complex.ofReal_zero |
| 115 | have ht : -(∫ y : E4, D (basis a) χ y • F y) = ∫ y : E4, χ y • D (basis a) F y := Eq.symm (integral_smul_fderiv_eq_neg_fderiv_smul_of_integrable |
| 116 | (cutoff_integrable (hw.2.1.fderiv_apply ℝ (basis a)) ((hw.1.continuous_fderiv (by simp)).clm_apply continuous_const) (fun _ _ => hF.continuous.continuousAt)) |
| 117 | (cutoff_integrable hw.2.1 hw.1.continuous (fun _ _ => ((hF.continuous_fderiv (by simp)).clm_apply continuous_const).continuousAt)) |
| 118 | (cutoff_integrable hw.2.1 hw.1.continuous (fun _ _ => hF.continuous.continuousAt)) (fun y _ => hw.1.differentiable (by simp) y) (fun y _ => hF.differentiable (by simp) y)) |
| 119 | simpa only [F, hd,smul_zero,integral_zero, neg_eq_zero,Complex.real_smul, ← Complex.ofReal_mul] using ht |
| 120 | simp only [flux,neg_eq_zero] |
| 121 | refine Finset.sum_eq_zero fun a _ => ?_ |
| 122 | rw [Finset.sum_eq_single_of_mem a (Finset.mem_univ _) (fun b _ hb => ?_)] |
| 123 | · simp only [he,ite_true,integral_const_mul,h0,mul_zero] |
| 124 | · simp [he,hb.symm] |
| 125 | |
| 126 | lemma vac_laws (hs : S.Hierarchy) (h : StressLaws S J P A) (r : ℝ) : StressLaws S (J - vac S r) P A := by |
| 127 | constructor |
| 128 | · intro n x hx q χ hw b d B |
| 129 | rw [← translationFlux_apply hx hw hs.smooth,map_sub,translationFlux_apply,translationFlux_apply, ← flux_translation (vac S r), |
| 130 | vac_flux hs _ _ hx hw r _ (fun _ => contDiff_const) (killing_const _),sub_zero,h.translation hx q hw] |
| 131 | intro n x hx q χ hw g d B |
| 132 | rw [← angularFlux_apply hx hw hs.smooth,map_sub,angularFlux_apply,angularFlux_apply, ← flux_spin (vac S r), |
| 133 | show flux _ _ (fun y => M4.move g.val (y - x 0)) x q B=0 from vac_flux hs _ _ hx hw r _ (smooth_orbital g (x 0)) (killing_orbital _ _),sub_zero,h.rotation hx q hw] |
| 134 | end YM.StressFlux.Tune |