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.Space.Index |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace |
| 3 | |
| 4 | /-! |
| 5 | # Positions, separated configurations and integrations |
| 6 | |
| 7 | Common `E4` coordinates for Euclidean and Minkowski arguments (use `Proper`, |
| 8 | Lorentz etc. later for non-Euclidean operations). Euclidean `ℓ²` everywhere on |
| 9 | these *real vector spaces*. Distinguish sup/max metric `cubedist`. We keep the |
| 10 | full arity variables, not working on equal times by default. |
| 11 | |
| 12 | Positions `Points n` also use the Euclidean norm; volume is Lebesgue volume |
| 13 | (`μ(dx₁...dxₙ)=∏ᵢ Lebesgue d⁴xᵢ`). We prove the adapters to ordinary tuples |
| 14 | for the ordered limits/spectral branches. Time last. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM |
| 20 | |
| 21 | open MeasureTheory Set WithLp Filter |
| 22 | open scoped Topology InnerProductSpace |
| 23 | |
| 24 | abbrev E4 := EuclideanSpace ℝ Axis |
| 25 | abbrev Space3 := EuclideanSpace ℝ SpaceAxis |
| 26 | |
| 27 | def time (x : E4) := x timeAxis |
| 28 | def spatial (x : E4) : Space3 := toLp 2 fun i => x i.castSucc |
| 29 | def position (x : Space3) (t : ℝ) : E4 := toLp 2 (Fin.snoc x.ofLp t) |
| 30 | |
| 31 | @[simp] theorem time_position (x : Space3) (t : ℝ) : time (position x t) = t := by |
| 32 | simp [time, position] |
| 33 | @[simp] theorem spatial_position (x : Space3) (t : ℝ) : spatial (position x t) = x := by |
| 34 | apply PiLp.ext; intro i; simp [spatial, position] |
| 35 | @[simp] theorem position_eta (x : E4) : position (spatial x) (time x) = x := by |
| 36 | apply PiLp.ext |
| 37 | intro i |
| 38 | refine Fin.lastCases ?_ (fun j ↦ ?_) i |
| 39 | · exact time_position _ _ |
| 40 | · simp [spatial, position, time] |
| 41 | |
| 42 | def basis (a : Axis) : E4 := EuclideanSpace.single a 1 |
| 43 | |
| 44 | @[simp] theorem basis_eq (i j : Axis) : basis i j = if j = i then 1 else 0 := by |
| 45 | simp [basis, PiLp.single_apply, eq_comm] |
| 46 | @[simp] theorem basis_inner (i : Axis) (x : E4) : ⟪basis i,x⟫_ℝ = x i := by |
| 47 | rw [basis, EuclideanSpace.inner_single_left]; simp |
| 48 | @[simp] theorem basis_norm (i : Axis) : ‖basis i‖ = 1 := by rw [basis]; simp |
| 49 | |
| 50 | /-- The `L^∞` distance used in the cell bounds (includes time). -/ |
| 51 | def cubedist (x y : E4) : ℝ := dist (ofLp x) (ofLp y) |
| 52 | |
| 53 | @[fun_prop] theorem continuous_cubedist : Continuous fun p : E4 × E4 => cubedist p.1 p.2 := by |
| 54 | unfold cubedist; fun_prop |
| 55 | |
| 56 | abbrev Points (n : ℕ) := PiLp 2 (fun _ : Fin n => E4) |
| 57 | |
| 58 | /-- Wrap a tuple. -/ |
| 59 | def points {n : ℕ} (p : Fin n → E4) : Points n := toLp 2 p |
| 60 | @[simp] theorem points_apply {n : ℕ} (p : Fin n → E4) (i) : points p i = p i := rfl |
| 61 | @[simp] theorem points_eta {n : ℕ} (p : Points n) : points (ofLp p) = p := rfl |
| 62 | |
| 63 | def conf (n : ℕ) : Set (Points n) := {x | Function.Injective x.ofLp} |
| 64 | |
| 65 | /-- All coordinate projections separate. Do not confuse with `conf`. -/ |
| 66 | def generic (n : ℕ) : Set (Points n) := {x | ∀ a : Axis, Function.Injective fun i => x i a} |
| 67 | |
| 68 | /-- Stated as a predicate avoiding an `n ≥ 2` condition. Use with |
| 69 | `0 < r` for separated positions; with `r ≤ 1` for the capped bounds. -/ |
| 70 | def spaced {n : ℕ} (r : ℝ) (x : Points n) : Prop := ∀ i j, i ≠ j → r ≤ cubedist (x i) (x j) |
| 71 | |
| 72 | theorem generic_conf (n : ℕ) : generic n ⊆ conf n := by |
| 73 | intro x h i j H |
| 74 | exact h timeAxis (congr_arg (fun (u : E4) => u timeAxis) H) |
| 75 | |
| 76 | theorem spaced_conf {n : ℕ} {r : ℝ} {x : Points n} (hr : 0 < r) (H : spaced r x) : |
| 77 | x ∈ conf n := by |
| 78 | intro i j h |
| 79 | by_contra w |
| 80 | have e : cubedist (x i) (x j) = 0 := by unfold cubedist; rw [h]; exact dist_self _ |
| 81 | exact hr.not_ge (e ▸ H i j w) |
| 82 | |
| 83 | theorem conf_open (n : ℕ) : IsOpen (conf n) := by |
| 84 | have he : conf n = ⋂ i : Fin n, ⋂ j : Fin n, |
| 85 | ⋂ _ : i ≠ j, {x : Points n | x i ≠ x j} := by |
| 86 | ext x |
| 87 | simp only [mem_iInter, mem_setOf, conf] |
| 88 | exact ⟨fun h i j hij ↦ h.ne hij, fun h i j hij ↦ by_contra fun w ↦ h i j w hij⟩ |
| 89 | rw [he]; refine isOpen_iInter_of_finite fun i ↦ isOpen_iInter_of_finite fun j ↦ |
| 90 | isOpen_iInter_of_finite fun _ ↦ isOpen_ne_fun ?_ ?_ <;> fun_prop |
| 91 | |
| 92 | namespace Points |
| 93 | |
| 94 | variable {n : ℕ} |
| 95 | |
| 96 | def head (p : Points (n+1)) : E4 := p 0 |
| 97 | def tail (p : Points (n+1)) : Points n := points fun i => p i.succ |
| 98 | def cons (x : E4) (p : Points n) := points (Fin.cons x (ofLp p)) |
| 99 | |
| 100 | def peel : Points (n+1) ≃ₗᵢ[ℝ] WithLp 2 (E4 × Points n) where |
| 101 | toFun p := toLp 2 (head p, tail p) |
| 102 | invFun p := cons p.fst p.snd |
| 103 | left_inv p := by apply PiLp.ext; intro i; refine Fin.cases ?_ (fun j ↦ ?_) i <;> simp [head,cons,tail] |
| 104 | right_inv p := by |
| 105 | change toLp 2 (head _, tail _) = _ |
| 106 | apply WithLp.ofLp_injective 2 |
| 107 | apply Prod.ext |
| 108 | · simp [head,cons] |
| 109 | · apply PiLp.ext |
| 110 | simp [tail,cons] |
| 111 | map_add' := by |
| 112 | intro x y; apply WithLp.ofLp_injective 2 |
| 113 | apply Prod.ext |
| 114 | · simp [head] |
| 115 | · exact PiLp.ext (fun _ => rfl) |
| 116 | map_smul' := by |
| 117 | intro c v; apply WithLp.ofLp_injective 2 |
| 118 | apply Prod.ext |
| 119 | · simp [head] |
| 120 | · exact PiLp.ext (fun _ => rfl) |
| 121 | norm_map' p := by |
| 122 | change ‖toLp 2 (head p, tail p)‖ = ‖p‖ |
| 123 | rw [← sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _), WithLp.prod_norm_sq_eq_of_L2] |
| 124 | change ‖head p‖^2 + ‖tail p‖^2 = _ |
| 125 | rw [PiLp.norm_sq_eq_of_L2 _ (tail p), PiLp.norm_sq_eq_of_L2 _ p, |
| 126 | Fin.sum_univ_succ] |
| 127 | rfl |
| 128 | |
| 129 | @[simp] theorem peel_fst (x : Points (n+1)) : (peel x).fst = x 0 := rfl |
| 130 | @[simp] theorem peel_snd (x : Points (n+1)) (i) : (peel x).snd i = x i.succ := rfl |
| 131 | |
| 132 | /-- Flatten spacetime vectors (including times) to Euclidean `4n` vectors. -/ |
| 133 | def flatten : Points n ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n × Axis) where |
| 134 | toFun p := toLp 2 fun i => p i.1 i.2 |
| 135 | invFun p := points fun i => toLp 2 fun a => p (i,a) |
| 136 | left_inv _ := rfl |
| 137 | right_inv _ := rfl |
| 138 | map_add' _ _ := rfl |
| 139 | map_smul' _ _ := rfl |
| 140 | norm_map' x := by |
| 141 | change ‖toLp 2 fun p : Fin n × Axis => x p.1 p.2‖ = ‖x‖ |
| 142 | rw [← sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)] |
| 143 | simp only [PiLp.norm_sq_eq_of_L2, ← Finset.univ_product_univ, Finset.sum_product] |
| 144 | |
| 145 | @[simp] theorem flatten_at (x : Points n) (i a) : flatten x (i,a) = x i a := rfl |
| 146 | |
| 147 | theorem volume_nil : (volume : Measure (Points 0)) = Measure.dirac 0 := by |
| 148 | have h := (flatten (n := 0)).symm.measurePreserving.map_eq |
| 149 | rw [volume_euclideanSpace_eq_dirac, Measure.map_dirac, map_zero] at h |
| 150 | exact h.symm |
| 151 | |
| 152 | /-- Defuse the PiLp vs Pi convention for spacetime Lebesgue volume. -/ |
| 153 | theorem volume_product (n : ℕ) : |
| 154 | MeasurePreserving (ofLp : Points n → Fin n → E4) volume volume := by |
| 155 | induction n with |
| 156 | | zero => |
| 157 | constructor |
| 158 | · exact (PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin 0 => E4)).continuous.measurable |
| 159 | · rw [volume_nil, Measure.map_dirac, ofLp_zero, MeasureTheory.Measure.volume_pi_eq_dirac] |
| 160 | apply congr_arg; exact Subsingleton.elim _ _ |
| 161 | | succ n ih => |
| 162 | let e := MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n+1) => E4) 0 |
| 163 | have hp : MeasurePreserving |
| 164 | (Prod.map id (ofLp : Points n → Fin n → E4)) volume volume := |
| 165 | (MeasurePreserving.id (volume : Measure E4)).prod ih |
| 166 | have h : MeasurePreserving e volume volume := volume_preserving_piFinSuccAbove _ 0 |
| 167 | have hw := (h.symm).comp (hp.comp ((WithLp.volume_preserving_ofLp _ _).comp |
| 168 | (LinearIsometryEquiv.measurePreserving (peel (n := n))))) |
| 169 | have he : (⇑e.symm ∘ Prod.map (id : E4 → E4) ofLp ∘ ofLp ∘ (peel (n := n))) = |
| 170 | (ofLp : Points (n+1) → Fin (n+1) → E4) := by |
| 171 | funext p |
| 172 | apply e.injective |
| 173 | simp only [Function.comp_def, MeasurableEquiv.apply_symm_apply] |
| 174 | apply Prod.ext |
| 175 | · rfl |
| 176 | · funext i |
| 177 | simp [e, MeasurableEquiv.piFinSuccAbove, Prod.map, peel] |
| 178 | rfl |
| 179 | rw [he] at hw |
| 180 | exact hw |
| 181 | end Points |
| 182 | end YM |