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.Lattice.Scale |
| 2 | import YM.Euclid.Test |
| 3 | |
| 4 | /-! |
| 5 | # Period comparison and compact room |
| 6 | |
| 7 | Centered fundamental reps as in Lattice. Tests eventually supported in strict |
| 8 | interior. At fixed period, collisions exclude all periodic images. `Cyclic` |
| 9 | excludes coordinate projection ties (used in point-limit hypothesis but |
| 10 | not assumed smooth limits everywhere at fixed period). |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Extraction |
| 15 | open Function Set Filter Metric MeasureTheory Lattice |
| 16 | open scoped BigOperators Topology |
| 17 | variable (S : Schedule) {n : ℕ} |
| 18 | |
| 19 | def Inside (p n : ℕ) : Set (Points n) := {x | ∀ i a, -(S.radius p) < x i a ∧ x i a < S.radius p} |
| 20 | |
| 21 | abbrev length (p : ℕ) : ℝ := (S.period p).val |
| 22 | |
| 23 | def periodic (p : ℕ) (x y : ℝ) := ∃ j : ℤ, x-y=j * length S p |
| 24 | |
| 25 | def NoHit (p n : ℕ) : Set (Points n) := |
| 26 | {x | ∀ i j, i ≠ j → ∃ a : Axis, ¬ periodic S p (x i a) (x j a)} |
| 27 | |
| 28 | def Cyclic (p n : ℕ) : Set (Points n) := |
| 29 | {x | ∀ i j, i ≠ j → ∀ a : Axis, ¬ periodic S p (x i a) (x j a)} |
| 30 | |
| 31 | def suitable (p : ℕ) (f : Test n) := tsupport f ⊆ Inside S p n |
| 32 | |
| 33 | theorem scalar_periodic (p : ℕ) (x y : ℝ) (H : -(S.radius p) < x) (G : -(S.radius p) < y) |
| 34 | (h : x < S.radius p) (g : y < S.radius p) : periodic S p x y ↔ x=y := by |
| 35 | constructor |
| 36 | · rintro ⟨j,hj⟩ |
| 37 | have hx : 0 ≤ length S p := by unfold length; positivity |
| 38 | have he : length S p = (S.radius p)*2 := by unfold length Schedule.radius; ring |
| 39 | rcases lt_trichotomy j 0 with hp|hp|hp |
| 40 | · have hi : (j : ℝ) ≤ -1 := by exact_mod_cast (show j ≤ -1 by omega) |
| 41 | nlinarith |
| 42 | · subst j; simp_all; linarith |
| 43 | have hi : (1:ℝ) ≤ j := by exact_mod_cast (show 1 ≤ j by omega) |
| 44 | nlinarith |
| 45 | rintro rfl; exact ⟨0,by simp⟩ |
| 46 | |
| 47 | theorem no_wrap_hit {p : ℕ} {x} (h : x ∈ Inside S p n) : x ∈ NoHit S p n ↔ x ∈ conf n := by |
| 48 | constructor |
| 49 | · intro H i j he |
| 50 | by_contra hh |
| 51 | obtain ⟨a,ha⟩ := H i j hh |
| 52 | exact ha ((scalar_periodic S p _ _ (h i a).1 (h j a).1 (h i a).2 (h j a).2).2 |
| 53 | (congr_arg (fun w : E4 => w a) he)) |
| 54 | intro H i j hij |
| 55 | by_contra! he |
| 56 | exact hij ((show Injective x.ofLp from H) (PiLp.ext fun a => |
| 57 | (scalar_periodic S p _ _ (h i a).1 (h j a).1 (h i a).2 (h j a).2).1 (he a))) |
| 58 | |
| 59 | theorem no_wrap_tie {p : ℕ} {x} (h : x ∈ Inside S p n) : x ∈ Cyclic S p n ↔ x ∈ generic n := by |
| 60 | constructor |
| 61 | · intro H i a b hab |
| 62 | by_contra hh |
| 63 | exact H a b hh i ((scalar_periodic S p _ _ (h a i).1 (h b i).1 (h a i).2 (h b i).2).2 hab) |
| 64 | intro H i j hij a he |
| 65 | exact hij (H a ((scalar_periodic S p _ _ (h i a).1 (h j a).1 (h i a).2 (h j a).2).1 he)) |
| 66 | |
| 67 | theorem room {K : Set (Points n)} (H : IsCompact K) : ∀ᶠ p : ℕ in atTop, K ⊆ Inside S p n := by |
| 68 | have hi (i : Fin n) (a : Axis) : ∀ᶠ p : ℕ in atTop, ∀ x ∈ K, |
| 69 | -(S.radius p) < x i a ∧ x i a < S.radius p := by |
| 70 | obtain ⟨R,hR⟩ := (H.image (show Continuous fun x : Points n => |x i a| from by fun_prop)).bddAbove |
| 71 | filter_upwards [S.radius_diverges.eventually (eventually_gt_atTop R)] with p hp |
| 72 | intro x hx |
| 73 | exact abs_lt.mp (lt_of_le_of_lt (hR ⟨x,hx,rfl⟩) hp) |
| 74 | filter_upwards [eventually_all.mpr (fun i => eventually_all.mpr (hi i))] with p hp |
| 75 | exact fun x h i a => hp i a x h |
| 76 | |
| 77 | theorem reading (f : Test n) : ∀ᶠ p : ℕ in atTop, suitable S p f := room S f.hasCompactSupport |
| 78 | |
| 79 | theorem readable (p : ℕ) (f : Test n) (h : suitable S p f) : tsupport f ⊆ NoHit S p n := |
| 80 | fun _ hx => (no_wrap_hit S (h hx)).mpr (f.tsupport_subset hx) |
| 81 | |
| 82 | /-- Projection ties use *any* integer image. -/ |
| 83 | lemma periodicClosed (p : ℕ) : IsClosed (Set.range fun j : ℤ => (j : ℝ) * length S p) := by |
| 84 | -- scale closed discrete |
| 85 | have hl : length S p ≠ 0 := by unfold length; positivity |
| 86 | let H := Homeomorph.mulRight₀ (length S p) hl |
| 87 | have he : (fun j : ℤ => (j : ℝ) * length S p) = H ∘ ((↑) : ℤ → ℝ) := rfl |
| 88 | rw [he, range_comp] |
| 89 | exact H.isClosedEmbedding.isClosedMap _ Int.isClosedEmbedding_coe_real.isClosed_range |
| 90 | |
| 91 | lemma not_tie_open (p : ℕ) (i j : Fin n) (a : Axis) : |
| 92 | IsOpen {x : Points n | ¬ periodic S p (x i a) (x j a)} := by |
| 93 | rw [show {x : Points n | ¬ periodic S p (x i a) (x j a)} = (fun x => x i a - x j a) ⁻¹' |
| 94 | (Set.range fun j : ℤ => (j : ℝ) * length S p)ᶜ from by ext; simp [periodic, eq_comm]] |
| 95 | exact (periodicClosed S p).isOpen_compl.preimage (by fun_prop) |
| 96 | |
| 97 | lemma cyclicOpen (p n : ℕ) : IsOpen (Cyclic S p n) := by |
| 98 | rw [show Cyclic S p n = ⋂ i : Fin n, ⋂ j : Fin n, ⋂ _ : i ≠ j, ⋂ a : Axis, |
| 99 | {x : Points n | ¬ periodic S p (x i a) (x j a)} by ext; simp [Cyclic]] |
| 100 | exact isOpen_iInter_of_finite fun _ => isOpen_iInter_of_finite fun _ => |
| 101 | isOpen_iInter_of_finite fun _ => isOpen_iInter_of_finite fun _ => not_tie_open _ _ _ _ _ |
| 102 | end YM.Extraction |