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.Extraction.Patch |
| 2 | import Mathlib.MeasureTheory.Measure.Lebesgue.Basic |
| 3 | import Mathlib.MeasureTheory.Function.Floor |
| 4 | |
| 5 | /-! |
| 6 | # Cyclic step-function Riemann cells with ceil rounding |
| 7 | |
| 8 | Offsets in *right*-closed convention. Includes volume check, crucial for |
| 9 | local weak limits and true-Wilson assembly. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Extraction |
| 14 | open Function Set Filter MeasureTheory Lattice |
| 15 | open scoped Topology ContDiff BigOperators |
| 16 | variable {S : Schedule} {n : ℕ} |
| 17 | |
| 18 | def address (t : ℝ) (x : Points n) : Fin n → Cover := fun i a => ⌈x i a / t⌉ |
| 19 | |
| 20 | def tile (t : ℝ) (a : ℤ) := Ioc (t*(a-1 : ℝ)) (t*(a:ℝ)) |
| 21 | |
| 22 | lemma tile_bounds {t : ℝ} (ht : 0 < t) (a : ℝ) (i : ℤ) : ⌈a/t⌉ = i ↔ a ∈ tile t i := by |
| 23 | rw [Int.ceil_eq_iff, lt_div_iff₀ ht, div_le_iff₀ ht, tile]; simp [mul_comm] |
| 24 | |
| 25 | def segment (t : ℝ) (p : Fin n → Cover) : Set (Points n) := {x | address t x = p} |
| 26 | |
| 27 | def flat (n : ℕ) (x : Points n) := WithLp.ofLp (Points.flatten x) |
| 28 | |
| 29 | lemma preserves : MeasurePreserving (flat n) := (PiLp.volume_preserving_ofLp _).comp (Points.flatten.measurePreserving) |
| 30 | |
| 31 | lemma cart {t : ℝ} (ht : 0 < t) (p : Fin n → Cover) : segment t p = |
| 32 | flat n ⁻¹' Set.pi univ (fun w : Fin n × Axis => tile t (p w.1 w.2)) := by |
| 33 | ext x |
| 34 | constructor |
| 35 | · rintro (h : address t x = p) w _ |
| 36 | exact (tile_bounds ht _ _).mp (congr_fun (congr_fun h w.1) w.2) |
| 37 | intro h; refine funext fun i => funext fun a => ?_ |
| 38 | exact (tile_bounds ht _ _).mpr (h (i,a) (mem_univ _)) |
| 39 | |
| 40 | theorem measurable_segment {t : ℝ} (ht : 0 < t) (p : Fin n → Cover) : MeasurableSet (segment t p) := by |
| 41 | rw [cart ht]; exact (preserves (n := n)).measurable (MeasurableSet.pi countable_univ fun _ _ => measurableSet_Ioc) |
| 42 | |
| 43 | theorem cell_volume {t : ℝ} (ht : 0 < t) (p : Fin n → Cover) : |
| 44 | volume (segment t p) = ENNReal.ofReal (t^(4*n)) := by |
| 45 | rw [cart ht, (preserves (n := n)).measure_preimage] |
| 46 | · change (Measure.pi fun _ : Fin n × Axis => volume) _ = _ |
| 47 | rw [Measure.pi_pi] |
| 48 | have he (i : Fin n × Axis) : volume (tile t (p i.1 i.2)) = ENNReal.ofReal t := by |
| 49 | unfold tile; rw [Real.volume_Ioc]; congr 1; ring |
| 50 | simp_rw [he]; rw [Finset.prod_const, Finset.card_univ,Fintype.card_prod, |
| 51 | Fintype.card_fin,Fintype.card_fin, ← ENNReal.ofReal_pow (by positivity), Nat.mul_comm] |
| 52 | exact (MeasurableSet.pi countable_univ fun _ _ => measurableSet_Ioc).nullMeasurableSet |
| 53 | |
| 54 | /-- Right-closed fundamental domain. -/ |
| 55 | def Fund (S : Schedule) (p n : ℕ) := {x : Points n | ∀ i a, - S.radius p < x i a ∧ x i a ≤ S.radius p} |
| 56 | |
| 57 | def tag (t : ℝ) (p : Fin n → Cover) : Points n := points fun i => WithLp.toLp 2 fun a => t * p i a |
| 58 | |
| 59 | theorem coord_grid_bound {t : ℝ} (ht : 0 < t) (x : Points n) (i a) : |tag t (address t x) i a - x i a| ≤ t := by |
| 60 | have he := (tile_bounds ht (x i a) (address t x i a)).mp rfl |
| 61 | unfold tile at he |
| 62 | have ha := he.1; have hb := he.2 |
| 63 | change |t * ((address t x i a : ℤ) : ℝ) - x i a| ≤ _; rw [abs_le] |
| 64 | constructor <;> linarith |
| 65 | |
| 66 | theorem approximate {t : ℝ} (ht : 0 < t) (x : Points n) : dist (tag t (address t x)) x ≤ (4*n : ℝ)*t := by |
| 67 | let E := tag t (address t x) - x |
| 68 | rw [dist_eq_norm] |
| 69 | change ‖E‖ ≤ (4*n : ℝ)*t |
| 70 | rw [← sq_le_sq₀ (norm_nonneg _) (by positivity), ← (Points.flatten.norm_map E), EuclideanSpace.real_norm_sq_eq] |
| 71 | calc |
| 72 | _ ≤ ∑ _k : Fin n × Axis, t^2 := Finset.sum_le_sum fun i _ => sq_le_sq.mpr |
| 73 | (by rw [abs_of_pos ht]; exact coord_grid_bound ht x i.1 i.2) |
| 74 | _ ≤ _ := by |
| 75 | simp only [Finset.sum_const, Finset.card_univ,Fintype.card_prod,Fintype.card_fin,nsmul_eq_mul, |
| 76 | Nat.cast_mul,Nat.cast_ofNat] |
| 77 | rcases Nat.eq_zero_or_pos n with h|h |
| 78 | · rw [h]; simp |
| 79 | rw [mul_pow] |
| 80 | apply mul_le_mul_of_nonneg_right _ (by positivity) |
| 81 | have hf : (1:ℝ) ≤ n := by exact_mod_cast h |
| 82 | nlinarith |
| 83 | |
| 84 | lemma chosen (x : Points n) : Tendsto (fun N => tag (S.a N) (address (S.a N) x)) atTop (𝓝 x) := by |
| 85 | rw [tendsto_iff_dist_tendsto_zero] |
| 86 | refine squeeze_zero (fun _ => dist_nonneg) (fun i => approximate (S.a_pos i) _) ?_ |
| 87 | convert (S.shrinks.const_mul (4*n : ℝ)) using 1; simp |
| 88 | |
| 89 | /-- Partition of fundamental cell; right-closed seams. -/ |
| 90 | theorem tile_in {N p : ℕ} (r : Fin n → Site (S.side N p)) : |
| 91 | segment (S.a N) (fun i => lift (r i)) ⊆ Fund S p n := by |
| 92 | intro x hx i a |
| 93 | let y := lift (r i) a |
| 94 | set t := S.a N |
| 95 | obtain ⟨hp,hP⟩ := (tile_bounds (S.a_pos N) _ y).mp (congr_fun (congr_fun (show address t x = _ from hx) i) a) |
| 96 | have he := S.places_period (r i) a |
| 97 | obtain ⟨c, hc⟩ := (S.side_four N p) |
| 98 | have hz : -(c*2 : ℤ) < y := by |
| 99 | have hy := (lift_centers (r i) a).1 |
| 100 | rw [hc] at hy; change -(((4*c : ℕ)) : ℤ) < 2*y at hy; omega |
| 101 | have hu : (- (c:ℝ)*2 + 1) ≤ y := by |
| 102 | exact_mod_cast (show (-(c:ℤ)*2+1) ≤ y by omega) |
| 103 | constructor |
| 104 | · apply lt_of_le_of_lt _ hp |
| 105 | rw [Schedule.radius,← S.span_side N p, hc, Nat.cast_mul, Nat.cast_ofNat] |
| 106 | nlinarith [mul_le_mul_of_nonneg_left hu (S.a_pos N).le] |
| 107 | exact hP.trans he.2 |
| 108 | |
| 109 | theorem corners {p N} {x : Points n} (h : x ∈ Fund S p n) : |
| 110 | ∃! r : Fin n → Site (S.side N p), x ∈ segment (S.a N) (fun i => lift (r i)) := by |
| 111 | let u := address (S.a N) x |
| 112 | let r (i) : Site (S.side N p) := wrap _ (u i) |
| 113 | have he (i) : lift (r i) = u i := by |
| 114 | rw [lift_eq_iff] |
| 115 | refine ⟨rfl,fun a => ?_⟩ |
| 116 | have hw := h i a |
| 117 | rw [Schedule.radius, ← S.span_side N p] at hw |
| 118 | have hv := (tile_bounds (S.a_pos N) _ (u i a)).mp (show _ from (@rfl ℤ (u i a))) |
| 119 | obtain ⟨c,hc⟩ := S.side_four N p |
| 120 | constructor |
| 121 | · apply (show ((-(S.side N p).val : ℤ) : ℝ) < ((2*u i a : ℤ) : ℝ) → _ from |
| 122 | fun w => by exact_mod_cast w) |
| 123 | push_cast |
| 124 | nlinarith [hw.1,hv.2,S.a_pos N] |
| 125 | rw [hc]; suffices hs : u i a ≤ (c:ℤ)*2 by omega |
| 126 | by_contra! hk |
| 127 | rw [hc,Nat.cast_mul,Nat.cast_ofNat] at hw |
| 128 | have he' : (c : ℝ) * 2 + 1 ≤ u i a := by exact_mod_cast (show (c:ℤ)*2+1 ≤ u i a by omega) |
| 129 | nlinarith [mul_le_mul_of_nonneg_left he' (S.a_pos N).le,hv.1,hw.2] |
| 130 | refine ⟨r,(show u = _ from funext fun i => (he i).symm),?_⟩ |
| 131 | rintro v (h : u = _) |
| 132 | exact funext fun i => (wrap_lift (v i)).symm.trans (congr_arg (wrap _) (congr_fun h i).symm) |
| 133 | end YM.Extraction |