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.Comparisons |
| 2 | |
| 3 | /-! |
| 4 | # Fixed-cap common comparison requests; free inclusion & derivative matrix limits |
| 5 | |
| 6 | Use finite detectors with support in the coordinate-generic part of Conf. |
| 7 | Such smears detect already in the free quotient, including the real-life |
| 8 | possibility of spectator weights above the input cap. No change of b/maps/ |
| 9 | physical scheme between the input and output cap tests. Read r*deriv by |
| 10 | actual IBP in rescaled positions; infer convergence of the fitted matrices |
| 11 | without assuming an inverse bound in the physical coordinate norm. This is |
| 12 | not yet exact alignment of inclusions. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Extra.WeakScaling |
| 17 | open Set Function Filter MeasureTheory Extraction Climb Ward Table Spec |
| 18 | open scoped Topology ContDiff Matrix.Norms.Frobenius |
| 19 | variable {G : Gauge} {C : Family G} {L : Register G} {S : Table L} {n d e : ℕ} |
| 20 | |
| 21 | lemma Follows.smear (t : Test n) {O : Set (Points n)} (he : tsupport t ⊆ O) {F : ℕ → Points n → ℂ} |
| 22 | (hc : ∀ k, ContinuousOn (F k) (conf n)) {g : Points n → ℂ} (hg : ContinuousOn g (conf n)) (h : Follows O F g) : |
| 23 | Tendsto (fun k => t.applyTo (F k)) atTop (𝓝 (t.applyTo g)) := by |
| 24 | have ht := t.hasCompactSupport |
| 25 | have hgc := hg.mono t.tsupport_subset |
| 26 | obtain ⟨B,hB⟩ := ht.exists_bound_of_continuousOn hgc |
| 27 | apply tendsto_integral_filter_of_dominated_convergence (fun x => ‖t x‖*(B+1)) |
| 28 | (Eventually.of_forall (fun k => (t.smearing (hc k)).aestronglyMeasurable)) |
| 29 | · filter_upwards [h.onCompact ht he hgc one_pos] with i hi |
| 30 | filter_upwards with x |
| 31 | rw [norm_mul] |
| 32 | by_cases hx : x ∈ tsupport t |
| 33 | · gcongr |
| 34 | linarith [hi x hx,hB x hx,norm_sub_norm_le (F i x) (g x)] |
| 35 | rw [image_eq_zero_of_notMem_tsupport hx,norm_zero,zero_mul,zero_mul] |
| 36 | · exact (t.continuous.integrable_of_hasCompactSupport ht).norm.mul_const _ |
| 37 | filter_upwards with x |
| 38 | by_cases hx : x ∈ tsupport t |
| 39 | · exact tendsto_const_nhds.mul (h id tendsto_id x (he hx) (fun _ => x) tendsto_const_nhds) |
| 40 | simp [image_eq_zero_of_notMem_tsupport hx] |
| 41 | |
| 42 | lemma null_on_generic {K : Points n → ℂ} (h : ContinuousOn K (conf n)) |
| 43 | (he : ∀ t : Test n, tsupport t ⊆ generic n → t.applyTo K = 0) : EqOn K 0 (conf n) := by |
| 44 | have ho := genericOpen n |
| 45 | have hc := h.mono (generic_conf n) |
| 46 | have ht := ho.ae_eq_zero_of_integral_contDiff_smul_eq_zero (μ:=volume) (hc.locallyIntegrableOn ho.measurableSet) |
| 47 | apply Order.equal h continuousOn_const |
| 48 | apply Measure.eqOn_open_of_ae_eq (μ:=volume) _ ho hc continuousOn_const |
| 49 | refine (ae_restrict_iff' ho.measurableSet).mpr (ht ?_) |
| 50 | intro f hf hf' H |
| 51 | let g := Complex.ofRealCLM ∘ f |
| 52 | have hu : tsupport g ⊆ tsupport f := tsupport_comp_subset (map_zero Complex.ofRealCLM) f |
| 53 | have hg := hu.trans H |
| 54 | let t : Test n := ⟨g, Complex.ofRealCLM.contDiff.comp hf, hf'.comp_left (map_zero Complex.ofRealCLM), |
| 55 | hg.trans (generic_conf n)⟩ |
| 56 | rw [← he t hg]; exact integral_congr_ae (Eventually.of_forall fun x => Complex.real_smul) |
| 57 | |
| 58 | /-- Evaluate smears in separated *rescaled* positions. No contact terms. -/ |
| 59 | def rescale (r : ℝ) (w : Fin n → S.Tag) (B : S.Field d) (x : Points (n+1)) := |
| 60 | disc (Fin.cons ⟨d,B⟩ w) (r • x) |
| 61 | |
| 62 | lemma rescale_smooth (H : S.Hierarchy) {r : ℝ} (hr : 0 < r) (w : Fin n → S.Tag) (B : S.Field d) : |
| 63 | ContDiffOn ℝ ∞ (rescale r w B) (conf (n+1)) := fun x hx => |
| 64 | ((cont_disc H _ (Work.A04.scale_conf r hr hx)).comp x |
| 65 | (show ContDiffAt ℝ ∞ (fun x : Points (n+1) => r • x) x by fun_prop)).contDiffWithinAt |
| 66 | |
| 67 | def heard (H : S.Hierarchy) {r : ℝ} (hr : 0 < r) (w : Fin n → S.Tag) (t : Test (n+1)) (d : ℕ) : S.Field d →ₗ[ℂ] ℂ := by |
| 68 | have hF (B : S.Field d) : Integrable (fun x => t x * (Work.A15.front (r • x) w d) B) := by |
| 69 | simp_rw [Work.A15.front_apply]; exact t.smearing (rescale_smooth H hr w B).continuousOn |
| 70 | refine { toFun := fun B => ∫ x, t x * (Work.A15.front (r • x) w d) B |
| 71 | map_add' := fun u v => ?_ |
| 72 | map_smul' := fun c u => ?_ } |
| 73 | · simp_rw [map_add,mul_add]; exact integral_add (hF _) (hF _) |
| 74 | change _ = c * (∫ x, _) |
| 75 | simp_rw [map_smul,smul_eq_mul,mul_left_comm (t _) c]; exact integral_const_mul .. |
| 76 | |
| 77 | lemma heard_apply (H : S.Hierarchy) {r : ℝ} (hr : 0 < r) (w : Fin n → S.Tag) (t : Test (n+1)) (B : S.Field d) : |
| 78 | heard H hr w t d B = t.applyTo (rescale r w B) := by |
| 79 | dsimp only [heard,LinearMap.coe_mk,AddHom.coe_mk,Test.applyTo,rescale,disc] |
| 80 | simp_rw [Work.A15.front_apply] |
| 81 | |
| 82 | lemma heard_one (H : S.Hierarchy) (w : Fin n → S.Tag) (t : Test (n+1)) (B : S.Field d) : |
| 83 | heard H one_pos w t d B = t.applyTo (disc (Fin.cons ⟨d,B⟩ w)) := by |
| 84 | rw [heard_apply]; exact congrArg t.applyTo (by funext x; simp [rescale]) |
| 85 | |
| 86 | lemma read_inclusion (H : S.Hierarchy) {V : DiffPlan S} (h : V.Inclusions S) {r : ℝ} (hr : 0 < r) |
| 87 | (w : Fin n → S.Tag) (t : Test (n+1)) (u : d ≤ e) (B : S.Field d) : |
| 88 | heard H hr w t e (V.rise u B) = heard H hr w t d B := by |
| 89 | rw [heard_apply,heard_apply]; exact t.apply_eq fun _ hx => h.kernels u B (Work.A04.scale_conf r hr hx) w |
| 90 | |
| 91 | lemma read_derivative (H : S.Hierarchy) {V : DiffPlan S} (h : V.Derivatives S) {r : ℝ} (hr : 0 < r) |
| 92 | (w : Fin n → S.Tag) (t : Test (n+1)) (B : S.Field d) (a : Axis) : |
| 93 | heard H hr w t (d+1) (r • V.deriv d a B) = -heard H hr w (Dash.down t 0 a) d B := by |
| 94 | rw [heard_apply,heard_apply, ← Dash.compactTest (rescale_smooth H hr w B)] |
| 95 | apply t.apply_eq |
| 96 | intro x hx |
| 97 | have hw := Work.A04.scale_conf r hr hx |
| 98 | change _ = Points.gradient 0 a (fun y => disc _ (r • y)) x |
| 99 | rw [Work.A04.gradient_scaled r _ x ((cont_disc H _ hw).differentiableAt (by simp))] |
| 100 | unfold rescale disc |
| 101 | rw [← Work.A15.front_apply, ← h.kernels _ a B hw] |
| 102 | exact ((Work.A15.front _ w (d+1)).restrictScalars ℝ).map_smul r _ |>.trans |
| 103 | (congrArg (fun z => r • z) (Work.A15.front_apply ..)) |
| 104 | |
| 105 | section free |
| 106 | variable {S : Table C.book} |
| 107 | |
| 108 | structure Probe (C : Family G) where |
| 109 | n : ℕ |
| 110 | w : Fin n → (Free C).Tag |
| 111 | t : Test (n+1) |
| 112 | clear : tsupport t ⊆ generic (n+1) |
| 113 | |
| 114 | variable (H : (Free C).Hierarchy) |
| 115 | |
| 116 | def rows (E : Probe C) (d : ℕ) : (Free C).Field d →ₗ[ℂ] ℂ := heard H one_pos E.w E.t d |
| 117 | lemma detected (d : ℕ) : Injective (LinearMap.pi (fun e => rows H e d)) := by |
| 118 | apply LinearMap.ker_eq_bot.mp (LinearMap.ker_eq_bot'.mpr ?_) |
| 119 | intro v hv |
| 120 | apply (Free C).field_ext H.laws.toSymmetric |
| 121 | intro n q x hx; rw [← Work.A15.front_apply (B:=0),map_zero] |
| 122 | apply null_on_generic ((Free C).class_smooth (Free C) H.smooth (Fin.cons ⟨d,v⟩ q)).continuousOn ?_ hx |
| 123 | intro t ht; change t.applyTo (disc _) = 0; rw [← heard_one H] |
| 124 | exact congrFun hv (⟨n,q,t,ht⟩ : Probe C) |
| 125 | |
| 126 | /-- Need room for reading at each receiving cap separately, not claiming |
| 127 | spectator weights ≤ that same cap. -/ |
| 128 | def Equipped (e M D : ℕ) (Q : ℝ) : Prop := ∃ s : Finset (Probe C), |
| 129 | Injective (LinearMap.pi fun i : s => rows H i.val e) ∧ ∀ i ∈ s, |
| 130 | i.n+1 ≤ M ∧ capped D i.w ∧ tsupport i.t ⊆ clearance Q (i.n+1) |
| 131 | |
| 132 | lemma equipment (E m : ℕ) (R : ℝ) : ∃ (M D : ℕ) (Q : ℝ), m ≤ M ∧ E ≤ D ∧ R < Q ∧ 0 < Q ∧ |
| 133 | ∀ d ≤ E, Equipped H d M D Q := by |
| 134 | choose s hs using fun d => Work.A04.finite_faithful _ (detected H d) |
| 135 | have hm (d) := (eventually_all_finset (s d)).mpr (fun i _ => eventually_ge_atTop (i.n+1)) |
| 136 | have hd d := (eventually_all_finset (s d)).mpr (fun i _ => eventually_all.mpr (fun j => eventually_ge_atTop (i.w j).1)) |
| 137 | have hQ d := (eventually_all_finset (s d)).mpr (fun i _ => eventually_clear i.t.hasCompactSupport i.clear) |
| 138 | obtain ⟨M,hM,hM'⟩ := ((eventually_ge_atTop m).and ((eventually_all_finset (Finset.Iic E)).mpr fun d _ => hm d)).exists |
| 139 | obtain ⟨D,hD,hD'⟩ := ((eventually_ge_atTop E).and ((eventually_all_finset (Finset.Iic E)).mpr fun d _ => hd d)).exists |
| 140 | obtain ⟨Q,⟨hq,hq'⟩,hQ'⟩ := (((eventually_gt_atTop R).and (eventually_gt_atTop 0)).and |
| 141 | ((eventually_all_finset (Finset.Iic E)).mpr fun d _ => hQ d)).exists |
| 142 | exact ⟨M,D,Q,hM,hD,hq,hq',fun d hd => ⟨s d,hs d,fun i hi => |
| 143 | ⟨hM' d (by simpa) i hi,hD' d (by simpa) i hi,hQ' d (by simpa) i hi⟩⟩⟩ |
| 144 | |
| 145 | /-- Only an arity/weight/window-specific weak coordinate survey. -/ |
| 146 | structure Survey (S : Table C.book) (hs : S.RealSpin) (h : (Free C).RealSpin) (M D : ℕ) (Q : ℝ) where |
| 147 | r : ℕ → ℝ |
| 148 | pos k : 0 < r k |
| 149 | shrinks : Tendsto r atTop (𝓝 0) |
| 150 | delta : ℕ → ℝ |
| 151 | positive k : 0 < delta k |
| 152 | fine : Tendsto delta atTop (𝓝 0) |
| 153 | U : Maps S |
| 154 | mirror k d : d ≤ D → ∀ g v, U k d ((Free C).mirror h d g v) = S.mirror hs d g (U k d v) |
| 155 | conj k d : d ≤ D → ∀ v, U k d ((Free C).conj h d v) = S.conj hs d (U k d v) |
| 156 | unit k d : d ≤ D → U k d ((Free C).unit d) = S.unit d |
| 157 | sampled n : n ≤ M → ∀ v : Fin n → (Free C).Tag, capped D v → Sampled (apart Q n) delta (readMap U r v) (disc v) |
| 158 | growth n : n ≤ M → ∀ v : Fin n → (Free C).Tag, capped D v → Follows (apart Q n) (fun k x => delta k • readMap U r v k x) 0 |
| 159 | observes n : n ≤ M → ∀ v : Fin n → (Free C).Tag, capped D v → Follows (clearance Q n) (readMap U r v) (disc v) |
| 160 | |
| 161 | variable {f : Order} {hs : S.Hierarchy} {M D : ℕ} {Q : ℝ} {H} |
| 162 | |
| 163 | def Retained.survey {b : Stations C} (Z : Retained b f) (s : Seed C f S) {h} (hq : 0 < Q) (hC : FiniteCosts b f h M D Q) : |
| 164 | Survey S s.kernel.spin h M D Q := |
| 165 | ⟨b.r, b.positive,b.shrinks,b.delta,fun _ => div_pos (C.S.a_pos _) (b.positive _),b.fine,Z.maps S, |
| 166 | fun k d hd => (Z.marks hC s.kernel.spin k d hd).1, |
| 167 | fun k d hd => (Z.marks hC s.kernel.spin k d hd).2.1, |
| 168 | fun k d hd => (Z.marks hC s.kernel.spin k d hd).2.2, |
| 169 | fun _ hn _ hv => Z.on_grid s hC.aligned hq hn hv, fun _ hn _ hv => Z.growth s hC.center hq hn hv, |
| 170 | fun _ hn _ hv => Z.on_clearance s hC.center hC.aligned hq hn hv⟩ |
| 171 | |
| 172 | lemma dimension_le (h : Seed C f S) (d : ℕ) : Module.finrank ℂ (S.Field d) ≤ Module.finrank ℂ ((Free C).Field d) := by |
| 173 | classical |
| 174 | obtain ⟨X,Z,hZ⟩ := h.corrected d |
| 175 | obtain ⟨k,hk⟩ := hZ.span.exists |
| 176 | let x := S.project d ∘ Z.later k |
| 177 | change Submodule.span ℂ (range x) = ⊤ at hk |
| 178 | rw [← finrank_top,← hk,Module.finrank_eq_card_basis X.basis] |
| 179 | exact (finrank_span_le_card (R:=ℂ) (range x)).trans (by rw [toFinset_range]; exact Finset.card_image_le.trans_eq (Finset.card_univ)) |
| 180 | |
| 181 | namespace Survey |
| 182 | variable (hs : S.Hierarchy) {hS : S.RealSpin} {h : (Free C).RealSpin} (b : Survey S hS h M D Q) |
| 183 | |
| 184 | def watchers (E : Probe C) (t : Test (E.n+1)) (d k : ℕ) : (Free C).Field d →ₗ[ℂ] ℂ := |
| 185 | (heard hs (b.pos k) (routed b.U k ∘ E.w) t d).comp (b.U k d) |
| 186 | |
| 187 | lemma watched (H : (Free C).Hierarchy) (E : Probe C) (t : Test (E.n+1)) (d : ℕ) (hd : d≤D) (hn : E.n+1 ≤ M) (hw : capped D E.w) |
| 188 | (hc : tsupport t ⊆ clearance Q (E.n+1)) (x : (Free C).Field d) : |
| 189 | Tendsto (fun k => b.watchers hs E t d k x) atTop (𝓝 (heard H one_pos E.w t d x)) := by |
| 190 | let v : Fin (E.n+1) → (Free C).Tag := Fin.cons (⟨d,x⟩ : (Free C).Tag) E.w |
| 191 | have he (k : ℕ) : b.watchers hs E t d k x = t.applyTo (readMap b.U b.r v k) := by |
| 192 | rw [watchers, LinearMap.comp_apply, heard_apply]; congr 1; funext y |
| 193 | rw [rescale, readMap]; simp only [v, Fin.comp_cons]; rfl |
| 194 | simp_rw [he,heard_one] |
| 195 | exact (b.observes _ hn v (Fin.cases hd hw)).smear _ hc |
| 196 | (fun k y hy => (readMap_smooth hs (b.pos k) hy).continuousAt.continuousWithinAt) |
| 197 | ((Free C).class_smooth (Free C) H.smooth v).continuousOn |
| 198 | |
| 199 | lemma eventually_bijective (s : Seed C f S) (hd : d ≤ D) (h : Equipped H d M D Q) : |
| 200 | ∀ᶠ k : ℕ in atTop, Bijective (b.U k d) := by |
| 201 | classical |
| 202 | obtain ⟨T,hT,hw⟩ := h |
| 203 | let F (k : ℕ) := LinearMap.pi fun i : T => b.watchers s.kernel i.val i.val.t d k |
| 204 | have hf x : Tendsto (fun k => F k x) atTop (𝓝 ((LinearMap.pi (fun i : T => rows H i.val d)) x)) := tendsto_pi_nhds.mpr (fun i : T => b.watched s.kernel H i.val i.val.t d hd (hw _ i.property).1 |
| 205 | (hw _ i.property).2.1 (hw _ i.property).2.2 x) |
| 206 | have he := Dash.fit_plane F (LinearMap.pi fun i : T => rows H i.val d) hf |
| 207 | filter_upwards [he.eventually (ContinuousLinearMap.isOpen_injective.mem_nhds (show _ from hT))] with k hk |
| 208 | have hu : Injective (b.U k d) := fun i j hij => hk (funext fun t => congrArg (heard s.kernel (b.pos k) _ _ _) hij) |
| 209 | exact ⟨hu,(LinearMap.injective_iff_surjective_of_finrank_eq_finrank (le_antisymm |
| 210 | (LinearMap.finrank_le_finrank_of_injective hu) (dimension_le s d))).1 hu⟩ |
| 211 | |
| 212 | open scoped Classical in |
| 213 | def charts (hF : ∀ d, Nonempty (YM.Spin.change S d)) (k d : ℕ) : YM.Spin.change S d := |
| 214 | if h : Bijective (b.U k d) then LinearEquiv.ofBijective _ h else Classical.choice (hF d) |
| 215 | lemma equals {k d : ℕ} (hF : ∀ d, Nonempty (YM.Spin.change S d)) (h : Bijective (b.U k d)) (v) : |
| 216 | b.charts hF k d v = b.U k d v := by rw [charts,dif_pos h]; rfl |
| 217 | |
| 218 | variable (s : Seed C f S) (hF : ∀ d, Nonempty (YM.Spin.change S d)) |
| 219 | include s |
| 220 | |
| 221 | lemma inc_limit (V : DiffPlan S) (W : DiffPlan (Free C)) (hV : V.Inclusions S) (hW : W.Inclusions (Free C)) |
| 222 | (e : d ≤ d+1) (hd : d+1 ≤ D) (h : Equipped H (d+1) M D Q) (h' : Equipped H d M D Q) (v : (Free C).Field d) : |
| 223 | Tendsto (fun k => (b.charts hF k (d+1)).symm (V.rise e (b.charts hF k d v))) atTop (𝓝 (W.rise e v)) := by |
| 224 | classical |
| 225 | obtain ⟨T,hT,hw⟩ := h |
| 226 | apply Work.A04.tendsto_of_fitted (fun k => LinearMap.pi fun i : T => b.watchers s.kernel i.val i.val.t (d+1) k) _ hT |
| 227 | (fun x => tendsto_pi_nhds.mpr fun i : T => b.watched s.kernel H i.val i.val.t (d+1) hd (hw _ i.property).1 |
| 228 | (hw _ i.property).2.1 (hw _ i.property).2.2 x) |
| 229 | refine tendsto_pi_nhds.mpr fun i => ?_ |
| 230 | obtain ⟨hn,hv,he⟩ := hw _ i.property |
| 231 | change Tendsto _ _ (𝓝 (heard H one_pos _ _ _ _)); rw [read_inclusion H hW one_pos] |
| 232 | apply (b.watched s.kernel H i.val i.val.t d (by omega) hn hv he v).congr' |
| 233 | filter_upwards [b.eventually_bijective s (by omega : d≤D) h',b.eventually_bijective (H:=H) s hd ⟨T,hT,hw⟩] with k h₁ h₂ |
| 234 | change _ = b.watchers s.kernel i.val i.val.t _ _ _ |
| 235 | rw [watchers,LinearMap.comp_apply,watchers,LinearMap.comp_apply,← b.equals hF h₂, LinearEquiv.apply_symm_apply, |
| 236 | b.equals hF h₁,read_inclusion s.kernel hV] |
| 237 | |
| 238 | lemma deriv_limit (V : DiffPlan S) (W : DiffPlan (Free C)) (hV : V.Derivatives S) (hW : W.Derivatives (Free C)) |
| 239 | (hd : d+1 ≤ D) (h : Equipped H (d+1) M D Q) (h' : Equipped H d M D Q) (v : (Free C).Field d) (a : Axis) : |
| 240 | Tendsto (fun k => (b.charts hF k (d+1)).symm (b.r k • V.deriv d a (b.charts hF k d v))) atTop (𝓝 (W.deriv d a v)) := by |
| 241 | classical |
| 242 | obtain ⟨T,hT,hw⟩ := h |
| 243 | apply Work.A04.tendsto_of_fitted (fun k => LinearMap.pi fun i : T => b.watchers s.kernel i.val i.val.t (d+1) k) _ hT |
| 244 | (fun x => tendsto_pi_nhds.mpr fun i : T => b.watched s.kernel H i.val i.val.t (d+1) hd (hw _ i.property).1 |
| 245 | (hw _ i.property).2.1 (hw _ i.property).2.2 x) |
| 246 | refine tendsto_pi_nhds.mpr fun i => ?_ |
| 247 | obtain ⟨hn,hv,he⟩ := hw _ i.property |
| 248 | have hd' := read_derivative H hW one_pos i.val.w i.val.t v a |
| 249 | rw [one_smul] at hd' |
| 250 | change Tendsto _ _ (𝓝 (heard H one_pos _ _ _ _)); rw [hd'] |
| 251 | apply ((b.watched s.kernel H i.val (Dash.down i.val.t 0 a) d (by omega) hn hv ((tsupport_fderiv_apply_subset ℝ _).trans he) v).neg).congr' |
| 252 | filter_upwards [b.eventually_bijective s (by omega : d≤D) h',b.eventually_bijective (H:=H) s hd ⟨T,hT,hw⟩] with k h₁ h₂ |
| 253 | change _ = b.watchers s.kernel i.val i.val.t _ _ _ |
| 254 | rw [watchers,LinearMap.comp_apply,watchers,LinearMap.comp_apply,← b.equals hF h₂,LinearEquiv.apply_symm_apply, |
| 255 | b.equals hF h₁,read_derivative s.kernel hV] |
| 256 | end Survey |
| 257 | end free |
| 258 | end YM.Extra.WeakScaling |