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.Euclid.Window |
| 2 | import YM.Org.Input |
| 3 | |
| 4 | /-! |
| 5 | Shell geometry: one compact shell (in variables of the weak test), |
| 6 | also used at its physical scale; Jacobian in four dimensions. Fit the |
| 7 | whole testing set including moving stress point into a Track window. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Work.A05 |
| 12 | open Set Function Filter Analysis MeasureTheory Table Ward Climb |
| 13 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 14 | variable {n : ℕ} |
| 15 | |
| 16 | lemma has_window (x : Points (n+1)) (hx : x ∈ conf (n+1)) : ∃ χ, Table.Window x χ := by |
| 17 | let A := Set.range fun i : Fin n => x i.succ |
| 18 | have ho : IsOpen Aᶜ := (Set.finite_range _).isClosed.isOpen_compl |
| 19 | have hz : x 0 ∈ Aᶜ := by |
| 20 | rintro ⟨i,hi⟩ |
| 21 | exact Fin.succ_ne_zero _ (hx hi) |
| 22 | obtain ⟨r,hr,hb⟩ := Metric.mem_nhds_iff.mp (ho.mem_nhds hz) |
| 23 | let B : ContDiffBump (x 0) := ⟨r/4,r/2,by positivity,by linarith⟩ |
| 24 | refine ⟨B,B.contDiff,B.hasCompactSupport,B.eventuallyEq_one,?_⟩ |
| 25 | intro i hh |
| 26 | rw [B.tsupport_eq] at hh |
| 27 | exact hb (Metric.closedBall_subset_ball (show B.rOut < r from half_lt_self hr) hh) ⟨i,rfl⟩ |
| 28 | |
| 29 | lemma smul_cons (r : ℝ) (x : Points n) (y : E4) : |
| 30 | r • Points.cons y x = Points.cons (r • y) (r • x) := by |
| 31 | apply PiLp.ext; intro i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [Points.cons] |
| 32 | |
| 33 | lemma smul_conf {r : ℝ} (hr : 0 < r) {x : Points n} (hx : x ∈ conf n) : r • x ∈ conf n := by |
| 34 | intro i j hij |
| 35 | exact hx (smul_right_injective E4 hr.ne' hij) |
| 36 | |
| 37 | /-- Topological support of the shell derivative avoids all insertion points. -/ |
| 38 | lemma window_avoids (x : Points (n+1)) {χ : E4 → ℝ} (hw : Window x χ) : |
| 39 | ∀ i, x i ∉ tsupport (fderiv ℝ χ) := by |
| 40 | intro i |
| 41 | apply notMem_tsupport_iff_eventuallyEq.mpr |
| 42 | refine Fin.cases ?_ (fun j => ?_) i |
| 43 | · have ht := hw.2.2.1.fderiv (𝕜 := ℝ) |
| 44 | change fderiv ℝ χ =ᶠ[𝓝 (x 0)] fderiv ℝ (Function.const E4 (1:ℝ)) at ht |
| 45 | simpa only [fderiv_const] using ht |
| 46 | · have hj := notMem_tsupport_iff_eventuallyEq.mp (hw.2.2.2 j) |
| 47 | have ht := hj.fderiv (𝕜 := ℝ) |
| 48 | simpa using ht |
| 49 | |
| 50 | lemma window_cons_conf {x : Points (n+1)} (hx : x ∈ conf (n+1)) {χ : E4 → ℝ} (hw : Window x χ) |
| 51 | {y} (hy : y ∈ tsupport (fderiv ℝ χ)) : Points.cons y x ∈ conf _ := by |
| 52 | have he (i) : y ≠ x i := fun h => window_avoids x hw i (h ▸ hy) |
| 53 | intro i j |
| 54 | refine Fin.cases ?_ (fun i => ?_) i |
| 55 | · refine Fin.cases (fun _ => rfl) (fun j => ?_) j |
| 56 | simp [Points.cons,he] |
| 57 | refine Fin.cases ?_ (fun j => ?_) j |
| 58 | · simp [Points.cons,Ne.symm (he i)] |
| 59 | simp only [Points.cons, points_apply, Fin.cons_succ] |
| 60 | exact fun hi => congr_arg Fin.succ ((show Injective x.ofLp from hx) hi) |
| 61 | |
| 62 | /-- Every compact separated test eventually fits these windows (no |
| 63 | condition `2 ≤ n`). -/ |
| 64 | lemma compact_fits {K : Set (Points n)} (hK : IsCompact K) (hk : K ⊆ conf n) : |
| 65 | ∀ᶠ R : ℝ in atTop, K ⊆ Scaling.window R n := by |
| 66 | have hp (i j : Fin n) : ∀ᶠ R : ℝ in atTop, ∀ x ∈ K, i ≠ j → R⁻¹ ≤ cubedist (x i) (x j) := by |
| 67 | by_cases e : i = j |
| 68 | · subst j; simp |
| 69 | let f := fun x : Points n => cubedist (x i) (x j) |
| 70 | have hf : Continuous f := by |
| 71 | exact continuous_cubedist.comp (show Continuous (fun x : Points n => (x i,x j)) by fun_prop) |
| 72 | have hx (x) (h : x ∈ K) : 0 < f x := |
| 73 | dist_pos.mpr (fun he => e ((hk h) ((WithLp.ofLp_injective 2) he))) |
| 74 | obtain ⟨A,hA⟩ := (hK.image_of_continuousOn (hf.continuousOn.inv₀ (fun x h => (hx x h).ne'))).bddAbove |
| 75 | filter_upwards [eventually_ge_atTop A] with r hr x hx' _ |
| 76 | exact inv_le_of_inv_le₀ (hx x hx') ((hA (mem_image_of_mem _ hx')).trans hr) |
| 77 | obtain ⟨A,hA⟩ := (hK.image continuous_norm).bddAbove |
| 78 | have hh : ∀ᶠ R : ℝ in atTop, ∀ (i j : Fin n), ∀ x ∈ K, i ≠ j → R⁻¹ ≤ cubedist (x i) (x j) := |
| 79 | eventually_all.mpr fun i => eventually_all.mpr fun j => hp i j |
| 80 | filter_upwards [hh,eventually_ge_atTop A] with r hs hv x hx |
| 81 | exact ⟨fun i j => hs i j x hx,(hA (mem_image_of_mem _ hx)).trans hv⟩ |
| 82 | |
| 83 | lemma shell_fits {x : Points (n+1)} (hx : x ∈ conf (n+1)) {χ : E4 → ℝ} (hw : Window x χ) : |
| 84 | ∀ᶠ R : ℝ in atTop, ∀ y ∈ tsupport (fderiv ℝ χ), Points.cons y x ∈ Scaling.window R _ := by |
| 85 | let f (y : E4) := Points.cons y x |
| 86 | have hf : Continuous f := by |
| 87 | have hp : Continuous (fun w : E4 => Fin.cons (α := fun _ : Fin (n+2) => E4) w x.ofLp) := |
| 88 | continuous_pi fun k => Fin.cases (by simp; exact continuous_id) (fun j => by simp; exact continuous_const) k |
| 89 | exact (PiLp.continuousLinearEquiv 2 ℝ _).symm.continuous.comp hp |
| 90 | let E := tsupport (fderiv ℝ χ) |
| 91 | have hc : IsCompact E := hw.2.1.fderiv ℝ |
| 92 | have ht : f '' E ⊆ conf _ := by |
| 93 | rintro _ ⟨y,hy,rfl⟩; exact window_cons_conf hx hw hy |
| 94 | filter_upwards [compact_fits (hc.image hf) ht] with r he y hy |
| 95 | exact he ⟨y,hy,rfl⟩ |
| 96 | |
| 97 | /-- Send χ on weak-coordinate space to physical space. -/ |
| 98 | def stretch (r : ℝ) (χ : E4 → ℝ) (y : E4) := χ (r⁻¹ • y) |
| 99 | |
| 100 | lemma window_stretch {r : ℝ} (hr : 0 < r) {x : Points (n+1)} {χ : E4 → ℝ} (hw : Window x χ) : |
| 101 | Window (r • x) (stretch r χ) := by |
| 102 | let l (y : E4) := r⁻¹ • y |
| 103 | have hl : ContDiff ℝ ∞ l := by |
| 104 | unfold l; fun_prop |
| 105 | have ht (i : Fin (n+1)) : Tendsto l (𝓝 ((r • x) i)) (𝓝 (x i)) := by |
| 106 | have he : l ((r • x) i) = x i := inv_smul_smul₀ hr.ne' _ |
| 107 | exact he ▸ hl.continuous.continuousAt.tendsto |
| 108 | refine ⟨hw.1.comp hl, hw.2.1.comp_smul (inv_ne_zero hr.ne'), hw.2.2.1.comp_tendsto (ht 0),?_⟩ |
| 109 | intro i |
| 110 | exact notMem_tsupport_iff_eventuallyEq.mpr |
| 111 | ((notMem_tsupport_iff_eventuallyEq.mp (hw.2.2.2 i)).comp_tendsto (ht i.succ)) |
| 112 | |
| 113 | lemma D_stretch {r : ℝ} (hr : 0 < r) {χ : E4 → ℝ} (hc : ContDiff ℝ ∞ χ) (a : Axis) (y : E4) : |
| 114 | Analysis.D (basis a) (stretch r χ) (r • y) = r⁻¹ * Analysis.D (basis a) χ y := by |
| 115 | let l : E4 →L[ℝ] E4 := r⁻¹ • ContinuousLinearMap.id ℝ E4 |
| 116 | change fderiv ℝ (χ ∘ l) (r • y) (basis a) = _ |
| 117 | rw [fderiv_comp (r • y) (hc.differentiable (by simp) _) l.differentiableAt, l.fderiv] |
| 118 | change fderiv ℝ χ (r⁻¹ • (r • y)) (r⁻¹ • basis a) = _ |
| 119 | rw [inv_smul_smul₀ hr.ne',map_smul]; rfl |
| 120 | |
| 121 | def weight (χ : E4 → ℝ) (a : Axis) (W : E4 → ℝ) (y : E4) : ℂ := |
| 122 | (Analysis.D (basis a) χ y * W y : ℝ) |
| 123 | |
| 124 | lemma integrable_weight {χ W : E4 → ℝ} (hc : ContDiff ℝ ∞ χ) (hx : HasCompactSupport χ) |
| 125 | (a : Axis) (hW : Continuous W) : Integrable (weight χ a W) := by |
| 126 | let f := Analysis.D (basis a) χ |
| 127 | have hf : Continuous f := (hc.continuous_fderiv (by simp)).clm_apply continuous_const |
| 128 | have hF : HasCompactSupport f := hx.fderiv_apply ℝ (basis a) |
| 129 | exact (Complex.continuous_ofReal.comp (hf.mul hW)).integrable_of_hasCompactSupport |
| 130 | ((hF.mul_right (f' := W)).comp_left (show Complex.ofReal 0 = 0 by simp)) |
| 131 | |
| 132 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 133 | |
| 134 | def sheet (r : ℝ) (χ : E4 → ℝ) (a : Axis) (W : E4 → ℝ) (x : Points (n+1)) (q : Fin (n+2) → S.Tag) |
| 135 | (y : E4) : ℂ := weight χ a W y * disc q (r • Points.cons y x) |
| 136 | |
| 137 | lemma sheet_scaled {r : ℝ} (hr : 0 < r) (x : Points (n+1)) (q : Fin (n+2) → S.Tag) {χ : E4 → ℝ} |
| 138 | (hc : ContDiff ℝ ∞ χ) (a : Axis) (W : E4 → ℝ) (y : E4) : |
| 139 | sheet 1 (stretch r χ) a (stretch r W) (r • x) q (r • y) = |
| 140 | (r : ℂ)⁻¹ * sheet r χ a W x q y := by |
| 141 | simp only [sheet, one_smul, weight, ← smul_cons, D_stretch hr hc, stretch, inv_smul_smul₀ hr.ne', |
| 142 | Complex.ofReal_mul, Complex.ofReal_inv, mul_assoc] |
| 143 | |
| 144 | lemma integrable_sheet {r : ℝ} (hr : 0 < r) (x : Points (n+1)) (hx : x ∈ conf _) |
| 145 | (H : S.Smooth) (q : Fin (n+2) → S.Tag) {χ W : E4 → ℝ} (hw : Window x χ) (a : Axis) (hW : Continuous W) : |
| 146 | Integrable (sheet r χ a W x q) := by |
| 147 | let P := sheet 1 (stretch r χ) a (stretch r W) (r • x) q |
| 148 | have hp : Continuous (stretch r W) := hW.comp (show Continuous (fun x : E4 => r⁻¹ • x) by fun_prop) |
| 149 | have hP : Integrable P := by |
| 150 | have hu := integrableShell (smul_conf hr hx) (window_stretch hr hw) H q a |
| 151 | (Complex.ofReal ∘ stretch r W) (Complex.continuous_ofReal.comp hp) |
| 152 | change Integrable (fun y => sheet 1 (stretch r χ) a (stretch r W) (r • x) q y) |
| 153 | simpa only [sheet,one_smul,weight, Complex.ofReal_mul,comp_apply,disc] using hu |
| 154 | have he : sheet r χ a W x q = fun y => (r : ℂ) * P (r • y) := by |
| 155 | funext y; dsimp only [P]; rw [sheet_scaled hr _ q hw.1,mul_inv_cancel_left₀ (by exact_mod_cast hr.ne')] |
| 156 | rw [he]; exact (hP.comp_smul hr.ne').const_mul (r : ℂ) |
| 157 | |
| 158 | lemma integrate_sheet_scale {r : ℝ} (hr : 0 < r) (x : Points (n+1)) (q : Fin (n+2) → S.Tag) |
| 159 | {χ : E4 → ℝ} (hc : ContDiff ℝ ∞ χ) (a : Axis) (W : E4 → ℝ) : |
| 160 | ∫ z, sheet 1 (stretch r χ) a (stretch r W) (r • x) q z = |
| 161 | (r : ℂ)^3 * ∫ y, sheet r χ a W x q y := by |
| 162 | let P := sheet 1 (stretch r χ) a (stretch r W) (r • x) q |
| 163 | have hp (y : E4) : P (r • y) = (r : ℂ)⁻¹ * sheet r χ a W x q y := sheet_scaled hr x q hc a W y |
| 164 | have ht := Measure.integral_comp_smul_of_nonneg volume P r (hR := hr.le) |
| 165 | simp_rw [hp] at ht |
| 166 | rw [integral_const_mul,show Module.finrank ℝ E4 = 4 from finrank_euclideanSpace_fin, |
| 167 | Complex.real_smul, Complex.ofReal_inv, Complex.ofReal_pow] at ht |
| 168 | have hn : (r : ℂ) ≠ 0 := by exact_mod_cast hr.ne' |
| 169 | change (∫ z, P z) = _ |
| 170 | calc |
| 171 | _ = (r : ℂ)^4 * (((r : ℂ)^4)⁻¹ * ∫ z, P z) := (mul_inv_cancel_left₀ (pow_ne_zero _ hn) _).symm |
| 172 | _ = _ := by rw [← ht]; field_simp |
| 173 | |
| 174 | def arm (x : Points (n+1)) (g : Ortho.Skew) (b : Axis) (z : E4) := M4.move g.val (z - x 0) b |
| 175 | |
| 176 | lemma arm_continuous (x : Points (n+1)) (g : Ortho.Skew) (b : Axis) : Continuous (arm x g b) := by |
| 177 | change Continuous (fun z => arm x g b z) |
| 178 | simp only [arm, M4.at_coord]; fun_prop |
| 179 | |
| 180 | lemma arm_scaled {r : ℝ} (hr : 0 < r) (x : Points (n+1)) (g : Ortho.Skew) (b : Axis) (z : E4) : |
| 181 | arm (r • x) g b z = r * stretch r (arm x g b) z := by |
| 182 | have he : z - (r • x) 0 = r • (r⁻¹ • z - x 0) := by |
| 183 | rw [smul_sub, smul_inv_smul₀ hr.ne']; rfl |
| 184 | unfold stretch arm |
| 185 | rw [he]; unfold M4.move; rw [map_smul]; rfl |
| 186 | end YM.Work.A05 |