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.Next.UV_STRESS.Focus |
| 2 | import YM.Next.UV_STRESS.Tensor |
| 3 | |
| 4 | /-! |
| 5 | # Transfer of stress rank on the actual observable quotients |
| 6 | |
| 7 | Only the Maxwell case is assumed. Don't simply conjugate the center condition: |
| 8 | physical expectation is not the free functional in these bases! We pass |
| 9 | from one centered space to the other by recentering. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Next.UVStress |
| 15 | open Set Function Filter MeasureTheory Analysis Table Ward Climb Extraction |
| 16 | open scoped Topology ContDiff BigOperators |
| 17 | variable {G : Gauge} {L M : Register G} {S : Table L} {T : Table M} |
| 18 | section Recenter |
| 19 | |
| 20 | structure Coherent (H : S.RealSpin) (a : T.RealSpin) (d : ℕ) (U : S.Field d ≃ₗ[ℂ] T.Field d) : Prop where |
| 21 | stars v : U (S.conj H _ v)=T.conj a _ (U v) |
| 22 | signed i v : U (S.mirror H _ i v)=T.mirror a _ i (U v) |
| 23 | |
| 24 | lemma flips {H : S.RealSpin} {h : T.RealSpin} {d U} (hp : Coherent H h d U) : Coherent h H d U.symm := by |
| 25 | constructor |
| 26 | · intro v; obtain ⟨v,rfl⟩ := U.surjective v; simp [← hp.stars] |
| 27 | intro i v; obtain ⟨v,rfl⟩ := U.surjective v; simp [← hp.signed] |
| 28 | |
| 29 | def transformed (U : S.Field 4 ≃ₗ[ℂ] T.Field 4) : S.Stress →ₗ[ℝ] T.Stress where |
| 30 | toFun B i j := U (B i j) |
| 31 | map_add' _ _ := funext fun _ => funext fun _ => U.map_add .. |
| 32 | map_smul' _ _ := funext fun _ => funext fun _ => (U.toLinearMap.restrictScalars ℝ).map_smul .. |
| 33 | |
| 34 | lemma transformed_mem {U : S.Field 4 ≃ₗ[ℂ] T.Field 4} {H : S.RealSpin} {h : T.RealSpin} |
| 35 | (hp : Coherent H h 4 U) {v : S.Stress} (hv : v∈SymSpace H) : transformed U v∈SymSpace h := by |
| 36 | obtain ⟨A,B,P⟩ := sym_mem.mp hv |
| 37 | refine sym_mem.mpr ⟨fun i j => congr_arg U (A i j), fun i j => by |
| 38 | change T.conj _ _ (U _)=U _; rw [← hp.stars,B],?_⟩ |
| 39 | intro i t s |
| 40 | change T.mirror _ _ i (U _)=∑ b, ∑ j : Axis,_ • U (v b j) |
| 41 | rw [← hp.signed,P]; simp only [map_sum,map_smul] |
| 42 | |
| 43 | def reCenter (T : Table M) : T.Stress →ₗ[ℝ] T.Stress where |
| 44 | toFun B i j := centering T _ (B i j) |
| 45 | map_add' _ _ := funext fun _ => funext fun _ => (centering T _).map_add .. |
| 46 | map_smul' _ _ := funext fun _ => funext fun _ => ((centering T _).restrictScalars ℝ).map_smul .. |
| 47 | |
| 48 | lemma enters (H : S.Hierarchy) (v : S.Stress) (h : v∈SymSpace H.spin) : reCenter S v ∈ KernelSpace H.spin := by |
| 49 | obtain ⟨A,B,P⟩ := sym_mem.mp h |
| 50 | refine kernel_mem.mpr ⟨sym_mem.mpr ⟨fun i j => congr_arg (centering S 4) (A i j),fun i j => ?_,?_⟩, |
| 51 | fun i j => centers_field H.laws _⟩ |
| 52 | · exact (conj_center H _).trans (congr_arg (centering S 4) (B i j)) |
| 53 | intro i t s |
| 54 | change S.mirror _ _ i (centering S _ (v t s))=∑ b, ∑ j : Axis,_ • centering S _ (v b j) |
| 55 | rw [mirror_center H,P]; simp only [map_sum,map_smul] |
| 56 | |
| 57 | lemma locks {H : S.RealSpin} {B : S.Stress} (h : B∈KernelSpace H) : reCenter S B=B := by |
| 58 | funext i j |
| 59 | change centering S _ _ = _ |
| 60 | rw [value_center,(kernel_mem.mp h).2]; simp |
| 61 | |
| 62 | variable (H : S.Hierarchy) (a : T.Hierarchy) |
| 63 | |
| 64 | def sending {U : S.Field 4 ≃ₗ[ℂ] T.Field 4} (h : Coherent H.spin a.spin 4 U) : |
| 65 | ↑(KernelSpace H.spin)→ₗ[ℝ] ↑(KernelSpace a.spin) := |
| 66 | ((reCenter T).comp ((transformed U).comp (KernelSpace _).subtype)).codRestrict _ (fun v => |
| 67 | enters a _ (transformed_mem h (kernel_mem.mp v.property).1)) |
| 68 | |
| 69 | lemma embrace {U : S.Field 4 ≃ₗ[ℂ] T.Field 4} (h : Coherent H.spin a.spin 4 U) (hu : U (S.unit 4)=T.unit 4) |
| 70 | (v : KernelSpace H.spin) : sending a H (flips h) (sending H a h v)=v := by |
| 71 | apply Subtype.ext; funext i j |
| 72 | change centering S _ (U.symm (centering T _ (U _))) = _ |
| 73 | rw [value_center (U _), map_sub, U.symm_apply_apply, map_sub, map_smul, ← hu, U.symm_apply_apply, |
| 74 | map_smul,const_out H.laws, smul_zero,sub_zero] |
| 75 | exact congr_fun (congr_fun (locks v.property) i) j |
| 76 | |
| 77 | def centerEquiv {U : S.Field 4 ≃ₗ[ℂ] T.Field 4} (h : Coherent H.spin a.spin 4 U) (hu : U (S.unit 4)=T.unit 4) : |
| 78 | ↑(KernelSpace H.spin) ≃ₗ[ℝ] ↑(KernelSpace a.spin) := |
| 79 | { sending H a h with |
| 80 | invFun := sending a H (flips h) |
| 81 | left_inv := embrace H a h hu |
| 82 | right_inv := embrace a H (flips h) (hu ▸ U.symm_apply_apply (S.unit 4)) } |
| 83 | |
| 84 | def rolling {H : S.RealSpin} {a : T.RealSpin} {U : S.Field 5 ≃ₗ[ℂ] T.Field 5} (h : Coherent H a 5 U) : |
| 85 | ↑(Vectors H) →ₗ[ℝ] ↑(Vectors a) where |
| 86 | toFun B := by |
| 87 | refine ⟨fun i => U (B.val i),?_⟩ |
| 88 | obtain ⟨p,q⟩ := B.property |
| 89 | constructor |
| 90 | · exact fun i => (h.stars _).symm.trans (congr_arg U (p i)) |
| 91 | intro i j; rw [← h.signed,q]; simp only [map_sum,map_smul] |
| 92 | map_add' _ _ := Subtype.ext (funext fun _ => U.map_add ..) |
| 93 | map_smul' _ _ := Subtype.ext (funext fun _ => ((U.toLinearMap).restrictScalars ℝ).map_smul ..) |
| 94 | |
| 95 | def moves {H : S.RealSpin} {a : T.RealSpin} {U : S.Field 5 ≃ₗ[ℂ] T.Field 5} (h : Coherent H a 5 U) : |
| 96 | ↑(Vectors H) ≃ₗ[ℝ] ↑(Vectors a) := |
| 97 | { rolling h with |
| 98 | invFun := rolling (flips h) |
| 99 | left_inv := fun v => Subtype.ext (funext fun i => U.symm_apply_apply (v.val i)) |
| 100 | right_inv := fun v => Subtype.ext (funext fun i => U.apply_symm_apply (v.val i)) } |
| 101 | end Recenter |
| 102 | |
| 103 | section ThroughFour |
| 104 | variable {C : Family G} {S : Table C.book} {W : DiffPlan S} {V : DiffPlan (Bel C.book)} {X : Scaling S} |
| 105 | variable (H : S.Hierarchy) (a : (Bel C.book).Hierarchy) (ho : W.Orientation H.spin) |
| 106 | |
| 107 | private def chart (k : ℕ) (h : Coherent a.spin H.spin 4 (X.U k 4)) (h' : Coherent a.spin H.spin 5 (X.U k 5)) |
| 108 | (hh : X.U k 4 ((Bel C.book).unit 4)=S.unit 4) : |
| 109 | ↑(KernelSpace a.spin) →ₗ[ℝ] ↑(Vectors a.spin) := |
| 110 | (moves h').symm.toLinearMap.comp |
| 111 | ((X.r k • currentDiv W H.spin ho).comp (centerEquiv a H h hh).toLinearMap) |
| 112 | |
| 113 | private lemma chart_reads (k : ℕ) (h : Coherent a.spin H.spin 4 (X.U k 4)) (h' : Coherent a.spin H.spin 5 (X.U k 5)) |
| 114 | (hh : X.U k 4 ((Bel C.book).unit 4)=S.unit 4) (hw : W.Derivatives S) (v : KernelSpace a.spin) (i : Axis) : |
| 115 | (chart H a ho k h h' hh v).val i= ∑ j, tiltScale X W k 4 j (v.val j i) := by |
| 116 | apply (X.U k 5).injective |
| 117 | change X.U k 5 ((X.U k 5).symm (X.r k • (∑ j, W.deriv 4 j (centering S _ (X.U k 4 (v.val j i))))))=_ |
| 118 | rw [LinearEquiv.apply_symm_apply, map_sum,Finset.smul_sum] |
| 119 | apply Finset.sum_congr rfl |
| 120 | intro j _; rw [value_center,map_sub,map_smul,W.unit_drop H.laws hw H.smooth]; simp only [smul_zero,sub_zero] |
| 121 | change _=X.U k 5 (X.r k • (X.carry k (leaves W.deriv 4 j) (v.val j i))) |
| 122 | have he (t : (Bel C.book).Field 5) : X.U k 5 (X.r k • t)= X.r k • X.U k 5 t := |
| 123 | ((X.U k 5).toLinearMap.restrictScalars ℝ).map_smul .. |
| 124 | rw [he,X.carries_f]; rfl |
| 125 | |
| 126 | private theorem stays_onto {E Y : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 127 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] [FiniteDimensional ℝ Y] |
| 128 | (f : ℕ → E→ₗ[ℝ] Y) (F : E→ₗ[ℝ] Y) (he : Surjective F) (h : ∀ x, Tendsto (fun k => f k x) atTop (𝓝 (F x))) : |
| 129 | ∀ᶠ k in atTop, Surjective (f k) := by |
| 130 | classical |
| 131 | obtain ⟨g,hg⟩ := F.exists_rightInverse_of_surjective (LinearMap.range_eq_top.mpr he) |
| 132 | let B k := (f k).comp g |
| 133 | have hv (v : Y) : Tendsto (fun i => B i v) atTop (𝓝 v) := by |
| 134 | have ht := h (g v); rw [show F (g v)=v from LinearMap.congr_fun hg v] at ht; exact ht |
| 135 | let b := Module.finBasis ℝ Y |
| 136 | let I := Fin (Module.finrank ℝ Y) |
| 137 | let L : (I → Y) →ₗ[ℝ] Y→L[ℝ] Y := LinearMap.toContinuousLinearMap.toLinearMap.comp (b.constr ℝ).toLinearMap |
| 138 | have hR (f : Y→ₗ[ℝ] Y) : L (fun i => f (b i)) = LinearMap.toContinuousLinearMap f := by |
| 139 | apply ContinuousLinearMap.coe_injective; exact b.ext fun i => b.constr_basis .. |
| 140 | let W0 := LinearMap.toContinuousLinearMap (LinearMap.id : Y→ₗ[ℝ] Y) |
| 141 | have ht : Tendsto (fun k => LinearMap.toContinuousLinearMap (B k)) atTop (𝓝 W0) := by |
| 142 | dsimp only [W0] |
| 143 | simp_rw [← hR] |
| 144 | exact L.continuous_of_finiteDimensional.continuousAt.tendsto.comp |
| 145 | (tendsto_pi_nhds.mpr (show ∀ i : I, Tendsto (fun k => (fun j : I => B k (b j)) i) atTop |
| 146 | (𝓝 ((fun j : I => b j) i)) from fun i => hv _)) |
| 147 | filter_upwards [ht.eventually (ContinuousLinearMap.isOpen_injective.mem_nhds (show Injective W0 from injective_id))] with k hk |
| 148 | intro y; obtain ⟨x,hx⟩ := (LinearMap.injective_iff_surjective.mp (show Injective (B k) from hk)) y; exact ⟨g x,hx⟩ |
| 149 | |
| 150 | /-- Free prerequisite. Producer Maxwell must realize it with T.J in the |
| 151 | chosen normalization (both signs allowed *there*, not varying later). |
| 152 | On the actual `Bel` fields: no dimensions in an unconstrained jet API. -/ |
| 153 | structure FreeDiv (T : Lighthouse C.book) (h : (Bel C.book).Hierarchy) (p : T.W.Orientation h.spin) : Prop where |
| 154 | onto : Surjective (currentDiv T.W h.spin p) |
| 155 | one : Module.finrank ℝ (LinearMap.ker (currentDiv T.W h.spin p)) = 1 |
| 156 | enters : T.J ∈ KernelSpace h.spin |
| 157 | origin : Conserved T.W h.spin T.J |
| 158 | sign : T.J ≠ 0 |
| 159 | |
| 160 | lemma vector_coherence {d : ℕ} (ht : Stable H.spin a.spin W V X) : |
| 161 | ∀ᶠ k in atTop, Coherent a.spin H.spin d (X.U k d) := |
| 162 | (ht.hsym d).mono fun _ hk => ⟨hk.2,hk.1⟩ |
| 163 | |
| 164 | /-- Actual physical full rank (onto) and one-dimensional stress line. -/ |
| 165 | theorem differential_rank (T : Lighthouse C.book) (p : T.W.Orientation a.spin) |
| 166 | (hf : FreeDiv T a p) (hw : W.Derivatives S) (hh : T.W.Derivatives (Bel C.book)) |
| 167 | (X : Scaling S) (hz : Approaches (path X) (isoPanel X)) (ht : Stable H.spin a.spin W T.W X) : |
| 168 | Surjective (currentDiv W H.spin ho) ∧ Module.finrank ℝ (LinearMap.ker (currentDiv W H.spin ho))=1 := by |
| 169 | classical |
| 170 | let T₀ := currentDiv T.W a.spin p |
| 171 | have ha : ∀ᶠ k in atTop, Coherent a.spin H.spin 4 (X.U k 4) ∧ Coherent a.spin H.spin 5 (X.U k 5) ∧ |
| 172 | X.U k 4 ((Bel C.book).unit 4)=S.unit 4 := (vector_coherence H a ht).and ((vector_coherence H a ht).and (ht.units 4)) |
| 173 | let Z (k : ℕ) : ↑(KernelSpace a.spin)→ₗ[ℝ] ↑(Vectors a.spin) := |
| 174 | if Hk : Coherent a.spin H.spin 4 (X.U k 4) ∧ Coherent a.spin H.spin 5 (X.U k 5) ∧ |
| 175 | X.U k 4 ((Bel C.book).unit 4)=S.unit 4 then chart H a ho k Hk.1 Hk.2.1 Hk.2.2 else 0 |
| 176 | have he (v : KernelSpace a.spin) (i : Axis) : Tendsto (fun k => (Z k v).val i) atTop (𝓝 ((T₀ v).val i)) := by |
| 177 | have he (j : Axis) := Dash.arcing (bend_limit H hw a hh X 4 j hz) (tendsto_const_nhds (x:=v.val j i)) |
| 178 | refine Tendsto.congr' (f₁:=fun k => ∑ j, tiltScale X W k 4 j (v.val j i)) ?_ (tendsto_finsetSum _ (fun j _ => he j)) |
| 179 | filter_upwards [ha] with k hk; unfold Z; rw [dif_pos hk,chart_reads H a ho k _ _ _ hw] |
| 180 | have hs := stays_onto (E:=KernelSpace a.spin) (Y:=Vectors a.spin) Z T₀ hf.onto (fun x => tendsto_subtype_rng.mpr (tendsto_pi_nhds.mpr (he x))) |
| 181 | obtain ⟨k,hk,hz⟩ := (ha.and hs).exists |
| 182 | unfold Z at hz; rw [dif_pos hk] at hz |
| 183 | let Y := centerEquiv a H hk.1 hk.2.2; let Q := moves hk.2.1 |
| 184 | have hp : 0<X.r k := X.positive k |
| 185 | have hr : Surjective (currentDiv W H.spin ho) := by |
| 186 | intro y |
| 187 | obtain ⟨i,hi⟩ := hz (Q.symm (X.r k • y)) |
| 188 | change Q.symm (X.r k • currentDiv W H.spin ho (Y i))=Q.symm _ at hi |
| 189 | exact ⟨Y i,smul_right_injective _ hp.ne' (Q.symm.injective hi)⟩ |
| 190 | refine ⟨hr,?_⟩ |
| 191 | have hb := LinearMap.finrank_range_add_finrank_ker T₀ |
| 192 | have hl := LinearMap.finrank_range_add_finrank_ker (currentDiv W H.spin ho) |
| 193 | rw [LinearMap.range_eq_top.mpr hf.onto,finrank_top,hf.one,Y.finrank_eq,Q.finrank_eq] at hb |
| 194 | rw [LinearMap.range_eq_top.mpr hr,finrank_top] at hl |
| 195 | omega |
| 196 | end ThroughFour |
| 197 | end YM.Next.UVStress |