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.Ac.Table |
| 2 | import YM.Bid.Drops |
| 3 | import YM.Next.BOUNDARY.Derived |
| 4 | |
| 5 | /-! |
| 6 | # Curves of Euclidean rotations |
| 7 | |
| 8 | Not assuming differentiability of the whole representation from the producer. |
| 9 | Infinitesimal ports are on one-parameter groups and individual vectors. To pull |
| 10 | back along a general rotation factor k(t), work locally relative to k(t₀), |
| 11 | using the matrix exp chart in the *ambient* space and proving that the local |
| 12 | log lies in the right subspace. No choices of Euler angles. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Next.BOUNDARY.Descent |
| 17 | open Set Filter Function NormedSpace Table |
| 18 | open scoped Topology Matrix.Norms.Frobenius ContDiff |
| 19 | |
| 20 | private lemma at_parameter_zero (u : Ortho.Skew) : Ortho.oneParameter u 0=1 := |
| 21 | Work.A13.oneParameter_zero u |
| 22 | |
| 23 | private lemma at_parameter_add (u : Ortho.Skew) (s t : ℝ) : |
| 24 | Ortho.oneParameter u (s+t)= Ortho.oneParameter u s * Ortho.oneParameter u t := by |
| 25 | apply Subtype.ext |
| 26 | letI : NormedAlgebra ℚ M4 := .restrictScalars ℚ ℝ _ |
| 27 | change exp ((s+t) • u.val)=exp (s • u.val)*exp (t • u.val) |
| 28 | rw [add_smul]; exact exp_add_of_commute (((Commute.refl u.val).smul_left s).smul_right t) |
| 29 | |
| 30 | /-- IFT use isolated from paths. -/ |
| 31 | private lemma chart_at_one : ∃ f : M4→ Ortho.Skew, f 1=0 ∧ DifferentiableAt ℝ f 1 ∧ |
| 32 | ∀ᶠ k : Ortho in 𝓝 1, k=Ortho.oneParameter (f k.val) 1 := by |
| 33 | let J := ContinuousLinearEquiv.refl ℝ M4 |
| 34 | have he : HasStrictFDerivAt exp (J : M4 →L[ℝ] M4) 0 := hasStrictFDerivAt_exp_zero |
| 35 | let g := he.localInverse exp J 0 |
| 36 | have hg : g 1=0 := by |
| 37 | rw [show (1 : M4)=exp (0 : M4) by simp]; exact he.localInverse_apply_image |
| 38 | have hG := he.to_localInverse |
| 39 | rw [show exp (0:M4)=1 by simp] at hG |
| 40 | have ht : DifferentiableAt ℝ g 1 := hG.hasFDerivAt.differentiableAt |
| 41 | refine ⟨(fun x => skP (g x)),by simp only [hg,map_zero], skP.differentiableAt.comp 1 ht, ?_⟩ |
| 42 | have hw : ∀ᶠ x in 𝓝 (0:M4), g (exp x)=x := he.eventually_left_inverse |
| 43 | have hy : ∀ᶠ x in 𝓝 (1:M4), exp (g x)=x := by |
| 44 | rw [show (1:M4)=exp (0 : M4) by simp] -- only the filter |
| 45 | exact he.eventually_right_inverse |
| 46 | have hq : Tendsto (fun k : Ortho => k.val) (𝓝 1) (𝓝 (1:M4)) := continuous_subtype_val.tendsto (1:Ortho) |
| 47 | have hp : Tendsto (fun k : Ortho => g k.val) (𝓝 1) (𝓝 0) := |
| 48 | hg ▸ ht.continuousAt.tendsto.comp hq |
| 49 | have ha : Tendsto (fun k : Ortho => star (g k.val)) (𝓝 1) (𝓝 0) := by simpa using hp.star |
| 50 | have hn : Tendsto (fun k : Ortho => -(g k.val)) (𝓝 1) (𝓝 0) := by simpa using hp.neg |
| 51 | filter_upwards [ha.eventually hw, hn.eventually hw, hq.eventually hy] with k HS HN HK |
| 52 | change g (exp _) = star _ at HS |
| 53 | change g (exp _) = -_ at HN |
| 54 | change exp (g _) = _ at HK |
| 55 | have hi : exp (-(g k.val)) = star k.val := by |
| 56 | letI : NormedAlgebra ℚ M4 := .restrictScalars ℚ ℝ _ |
| 57 | have he : exp (g k.val) * exp (- (g k.val))=1 := by |
| 58 | have ha : exp (g k.val + -(g k.val)) = exp (g k.val) * exp (-(g k.val)) := exp_add_of_commute ((Commute.refl _).neg_right) |
| 59 | rw [← ha]; simp |
| 60 | rw [HK] at he |
| 61 | calc _ = (star k.val*k.val)*_ := by rw [k.property.1,one_mul] |
| 62 | _ = star k.val := by rw [mul_assoc,he,mul_one] |
| 63 | have hm : star (g k.val)= -(g k.val) := by |
| 64 | rw [hi] at HN |
| 65 | rw [← star_exp,HK] at HS |
| 66 | exact HS.symm.trans HN |
| 67 | apply Subtype.ext |
| 68 | change k.val= exp ((1:ℝ) • (skP (g k.val)).val) |
| 69 | rw [one_smul,skP_eval,sk_eq hm,HK] |
| 70 | |
| 71 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 72 | |
| 73 | -- No change of norm. Expose standard norm consequences as propositional |
| 74 | -- instances locally (rid diamonds between operator and TVS structures). |
| 75 | private lemma cont_general (T : Type*) [NormedAddCommGroup T] [NormedSpace ℝ T] : ContinuousSMul ℝ T := inferInstance |
| 76 | private lemma ring_general (T : Type*) [NormedRing T] : IsTopologicalRing T := inferInstance |
| 77 | lemma fieldOp_smul (d : ℕ) : ContinuousSMul ℝ (FieldOp S d) := cont_general (FieldOp S d) |
| 78 | lemma fieldOp_top (d : ℕ) : IsTopologicalRing (FieldOp S d) := ring_general (FieldOp S d) |
| 79 | attribute [local instance] fieldOp_smul fieldOp_top |
| 80 | |
| 81 | /-- Helper for reading the derivative of an End-valued function on given vectors. -/ |
| 82 | lemma on_field {d : ℕ} {A : ℝ → FieldOp S d} {Z : FieldOp S d} {r : ℝ} |
| 83 | (h : HasDerivAt A Z r) (x : S.Field d) : HasDerivAt (fun t => A t x) (Z x) r := by |
| 84 | let J := (ContinuousLinearMap.apply ℂ (S.Field d) x).restrictScalars ℝ |
| 85 | exact HasFDerivAt.comp_hasDerivAt (f := A) (f' := Z) r (J.hasFDerivAt (x := A r)) h |
| 86 | |
| 87 | /-- Exponential identifies a one-parameter action given even vector derivatives just at zero. -/ |
| 88 | lemma one_parameter_field {d : ℕ} {A : ℝ → FieldOp S d} {Z : FieldOp S d} |
| 89 | (ha : A 0=1) (hg : ∀ s t : ℝ, A (s+t)=A s*A t) |
| 90 | (hz : ∀ x : S.Field d, HasDerivAt (fun t => A t x) (Z x) 0) |
| 91 | (u : ℝ) : A u=exp (u • Z) := by |
| 92 | haveI : CompleteSpace (S.Field d) := FiniteDimensional.complete ℂ _ |
| 93 | ext x |
| 94 | let P := Z.restrictScalars ℝ |
| 95 | let X := fun t : ℝ => exp (t • Z) x |
| 96 | let Y := fun t : ℝ => A t x |
| 97 | have hX (t) : HasDerivAt X (P (X t)) t := on_field (hasDerivAt_exp_smul_const' Z t) x |
| 98 | have hY (t) : HasDerivAt Y (P (Y t)) t := by |
| 99 | have he := (hz (A t x)).scomp_of_eq t ((hasDerivAt_id' t).sub_const t) (by simp) |
| 100 | rw [one_smul] at he |
| 101 | rw [show (fun r => A r (A t x)) ∘ (fun r => r-t) = Y from funext fun r => by |
| 102 | change (A (r-t)*A t) x=A r x; rw [← hg,sub_add_cancel]] at he |
| 103 | exact he |
| 104 | have h0 : Y 0=X 0 := by |
| 105 | rw [show Y 0=(1 : FieldOp S d) x by simp [Y,ha]] |
| 106 | have he : (0:ℝ) • Z=0 := by ext y; simp |
| 107 | simp only [X,he,exp_zero] |
| 108 | exact congr_fun (ODE_solution_unique_univ (s := fun _ => Set.univ) |
| 109 | (fun (_ : ℝ) => P.lipschitz.lipschitzOnWith) |
| 110 | (fun t => ⟨hY t,mem_univ _⟩) (fun t => ⟨hX t,mem_univ _⟩) h0) u |
| 111 | |
| 112 | lemma er_exp (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) (d : ℕ) (u : Ortho.Skew) (t : ℝ) : |
| 113 | er R d (Ortho.oneParameter u t) = exp (t • lie R d u) := by |
| 114 | let A := fun t => er R d (Ortho.oneParameter u t) |
| 115 | refine one_parameter_field (A := A) (Z := lie R d u) ?_ ?_ (fun x => h.spinAt d u x) t |
| 116 | · unfold A; rw [at_parameter_zero,er_one R h] |
| 117 | intro s t; unfold A; rw [at_parameter_add, er_mul R h] |
| 118 | |
| 119 | lemma linear_path {E T : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 120 | [NormedAddCommGroup T] [NormedSpace ℝ T] (P : E →L[ℝ] T) (f : ℝ → E) (p : E) (r : ℝ) |
| 121 | (h : HasDerivAt f p r) : HasDerivAt (fun t => P (f t)) (P p) r := |
| 122 | P.hasFDerivAt.comp_hasDerivAt r h |
| 123 | |
| 124 | lemma er_id_path (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) {k : ℝ → Ortho} {r : ℝ} |
| 125 | (ha : k r=1) (ht : DifferentiableAt ℝ (fun t => (k t).val) r) (d : ℕ) : |
| 126 | ∃ V : Ortho.Skew, HasDerivAt (fun t => (k t).val) V.val r ∧ HasDerivAt (fun t => er R d (k t)) (lie R d V) r := by |
| 127 | obtain ⟨f,hf,hp,hb⟩ := chart_at_one |
| 128 | have hk : ContinuousAt k r := by |
| 129 | apply tendsto_subtype_rng.mpr |
| 130 | exact ht.continuousAt.tendsto |
| 131 | have he : Tendsto k (𝓝 r) (𝓝 1) := ha ▸ hk.tendsto |
| 132 | let p (t : ℝ) := f (k t).val |
| 133 | have h0 : p r=0 := by unfold p; rw [ha]; exact hf |
| 134 | have Hf : DifferentiableAt ℝ p r := by |
| 135 | have he : DifferentiableAt ℝ f (k r).val := by rw [ha]; exact hp |
| 136 | exact he.comp r ht |
| 137 | let V := deriv p r |
| 138 | have HV : HasDerivAt p V r := Hf.hasDerivAt |
| 139 | have hu : ∀ᶠ t in 𝓝 r, k t = Ortho.oneParameter (p t) 1 := he.eventually hb |
| 140 | refine ⟨V,?_,?_⟩ |
| 141 | · let a : ℝ → M4 := fun t => (p t).val |
| 142 | have hx : HasDerivAt a V.val r := HasFDerivAt.comp_hasDerivAt (f := p) (f':= V) r Ortho.skewSpace.subtypeL.hasFDerivAt HV |
| 143 | have hw : HasFDerivAt exp (1:M4→L[ℝ] M4) (a r) := (show a r=0 by simp [a,h0]) ▸ hasFDerivAt_exp_zero |
| 144 | have hy : HasDerivAt (fun t => exp (a t)) V.val r := HasFDerivAt.comp_hasDerivAt (f := a) (f' := V.val) r hw hx |
| 145 | refine hy.congr_of_eventuallyEq ?_ |
| 146 | filter_upwards [hu] with t ht |
| 147 | change (k t).val = _ |
| 148 | rw [ht] |
| 149 | change exp ((1:ℝ) • _) = _ |
| 150 | rw [one_smul] |
| 151 | haveI : CompleteSpace (S.Field d) := FiniteDimensional.complete ℂ _ |
| 152 | let a : ℝ → FieldOp S d := fun t => lie R d (p t) |
| 153 | have hx : HasDerivAt a (lie R d V) r := by |
| 154 | exact linear_path (E:=Ortho.Skew) (T:=FieldOp S d) (by exact lie R d) p V r HV |
| 155 | have hz : a r=0 := by rw [show a r=lie R d (p r) from rfl,h0,map_zero] |
| 156 | have hw : HasFDerivAt exp (1: FieldOp S d→L[ℝ] FieldOp S d) (a r) := by |
| 157 | rw [hz] |
| 158 | exact hasFDerivAt_exp_zero (𝔸 := FieldOp S d) (𝕂 := ℝ) |
| 159 | have hy : HasDerivAt (fun t => exp (a t)) (lie R d V) r := HasFDerivAt.comp_hasDerivAt |
| 160 | (E := FieldOp S d) (𝕜 := ℝ) (F := FieldOp S d) (l' := 1) (l := exp) (f := a) (f' := lie R d V) r hw hx |
| 161 | refine HasDerivAt.congr_of_eventuallyEq (F:=FieldOp S d) (𝕜:=ℝ) (x:=r) |
| 162 | (f := fun t => exp (a t)) (f' := lie R d V) (f₁ := fun t => er R d (k t)) hy ?_ |
| 163 | filter_upwards [hu] with t ht' |
| 164 | rw [ht',er_exp R h] |
| 165 | exact congr_arg exp (show (1:ℝ) • lie R d (p t)=a t by ext x; simp [a]) |
| 166 | |
| 167 | /-- Simultaneous right-factor velocities. -/ |
| 168 | lemma er_path (R : Rotation S) {H : S.RealSpin} (h : Spin.Port R H) {k : ℝ → Ortho} {r : ℝ} |
| 169 | (ht : DifferentiableAt ℝ (fun t => (k t).val) r) (d : ℕ) : ∃ V : Ortho.Skew, |
| 170 | HasDerivAt (fun t => (k t).val) ((k r).val*V.val) r ∧ HasDerivAt (fun t => er R d (k t)) (er R d (k r)*lie R d V) r := by |
| 171 | let u (t : ℝ) := (k r)⁻¹*k t |
| 172 | have hx : DifferentiableAt ℝ (fun t => (u t).val) r := |
| 173 | ht.const_mul ((k r)⁻¹.val) |
| 174 | obtain ⟨X,hX,he⟩ := er_id_path R h (k:=u) (r:=r) (by simp [u]) hx d |
| 175 | refine ⟨X,?_,?_⟩ |
| 176 | · have hw := hX.const_mul (k r).val |
| 177 | have hm : (fun t => (k r).val * (u t).val)=fun t => (k t).val := by |
| 178 | funext t; change (k r*u t).val = _; simp only [u, mul_inv_cancel_left] |
| 179 | rw [hm] at hw; exact hw |
| 180 | have hv : HasDerivAt (fun t => er R d (k r)*er R d (u t)) (er R d (k r)*lie R d X) r := |
| 181 | HasDerivAt.const_mul (𝕜 := ℝ) (x := r) (d := fun t => er R d (u t)) (d' := lie R d X) (er R d (k r)) he |
| 182 | simp_rw [← er_mul R h, u, mul_inv_cancel_left] at hv |
| 183 | exact hv |
| 184 | |
| 185 | end YM.Next.BOUNDARY.Descent |