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.Box |
| 2 | import Mathlib.Logic.Relation |
| 3 | |
| 4 | /-! |
| 5 | # The native support price |
| 6 | |
| 7 | We choose connectedness of unions in the grid graph with |
| 8 | max-distance edges. |
| 9 | |
| 10 | Winding paths will remember actual path length elsewhere. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Lattice |
| 15 | |
| 16 | abbrev Support (n : Side) := Finset (Site n) |
| 17 | |
| 18 | variable {n : Side} |
| 19 | |
| 20 | theorem pdist_step (i : Axis) : pdist (step i : Site n) ≤ 1 := by |
| 21 | apply Finset.sup_le; intro j _ |
| 22 | simp only [lift, step_apply]; split |
| 23 | · rw [ZMod.valMinAbs_natAbs_eq_min] |
| 24 | exact (min_le_left _ _).trans (by rw [ZMod.val_one_eq_one_mod]; exact Nat.mod_le ..) |
| 25 | · simp |
| 26 | |
| 27 | theorem walk_conn (x : Site n) (W : Walk) : |
| 28 | Relation.ReflTransGen (fun a b : Site n => separation a b ≤ 1) x (stop x W) := by |
| 29 | induction W generalizing x with |
| 30 | | nil => exact .refl |
| 31 | | cons d w ih => |
| 32 | apply Relation.ReflTransGen.head _ (ih (x + d.vec)) |
| 33 | rw [separation_comm, separation, add_comm, add_sub_cancel_right, Step.vec] |
| 34 | split |
| 35 | · rw [pdist_neg]; exact pdist_step _ |
| 36 | exact pdist_step _ |
| 37 | |
| 38 | theorem wrap_stop_cover (x : Cover) (W : Walk) : wrap n (stop x W) = stop (wrap n x) W := by |
| 39 | induction W generalizing x with |
| 40 | | nil => rfl |
| 41 | | cons d w ih => rw [stop, ih, map_add, wrap_vec, stop] |
| 42 | |
| 43 | def halo (M : ℕ) (X : Support n) : Support n := Finset.univ.filter fun y => |
| 44 | (X.filter fun x => separation x y ≤ M).Nonempty |
| 45 | |
| 46 | theorem halo_spec {M : ℕ} {X : Support n} {y} : y ∈ halo M X ↔ ∃ x ∈ X, separation x y ≤ M := by |
| 47 | simp [halo, Finset.Nonempty] |
| 48 | |
| 49 | theorem halo_subset (M : ℕ) (X : Support n) : X ⊆ halo M X := fun x hx => halo_spec.mpr ⟨x,hx,by simp⟩ |
| 50 | |
| 51 | /-- Full union of M-balls (not induced subgraph on the centers). -/ |
| 52 | def covers (M : ℕ) (X D : Support n) := |
| 53 | let A := halo M D |
| 54 | X ⊆ A ∧ ∀ x ∈ A, ∀ y ∈ A, Relation.ReflTransGen |
| 55 | (fun u v : Site n => u ∈ A ∧ v ∈ A ∧ separation u v ≤ 1) x y |
| 56 | |
| 57 | theorem covers_some (M : ℕ) (X : Support n) : ∃ k : ℕ, ∃ D, covers M X D ∧ D.card = k := by |
| 58 | refine ⟨_, Finset.univ, ⟨fun x _ => halo_subset M _ (Finset.mem_univ x), fun x _ y _ => ?_⟩, rfl⟩ |
| 59 | let w := route (lift x) (lift y) 1 |
| 60 | have he : stop x w = y := calc |
| 61 | _ = stop (wrap n (lift x)) w := by rw [wrap_lift] |
| 62 | _ = wrap n (stop (lift x) w) := (wrap_stop_cover ..).symm |
| 63 | _ = y := by unfold w; rw [route_end,wrap_lift] |
| 64 | rw [← he] |
| 65 | refine Relation.ReflTransGen.mono ?_ x _ (walk_conn x w) |
| 66 | intro a b h |
| 67 | exact ⟨halo_subset _ _ (Finset.mem_univ _), halo_subset _ _ (Finset.mem_univ _), h⟩ |
| 68 | |
| 69 | open scoped Classical in |
| 70 | /-- Minimum number of native `M`-balls with connected union covering X. -/ |
| 71 | def coverNumber (M : ℕ) (X : Support n) : ℕ := Nat.find (covers_some M X) |
| 72 | |
| 73 | theorem coverNumber_realized (M : ℕ) (X : Support n) : |
| 74 | ∃ D, covers M X D ∧ D.card = coverNumber M X := by |
| 75 | classical |
| 76 | exact Nat.find_spec (covers_some M X) |
| 77 | |
| 78 | /-- Strict anchored chart on the torus in native sites (about the tag, not |
| 79 | post hoc recentering). Within this box use `lift (x-o)`. -/ |
| 80 | def Nonwrapping (X : Support n) (o : Site n) := ∀ x ∈ X, 10 * separation x o < n.val |
| 81 | |
| 82 | /-- Endpoints need both vertices. -/ |
| 83 | theorem agrees_mono {M N : Set (Site n)} {K : Type*} {U V : Links (Per n) K} |
| 84 | (h : Agrees M U V) (he : N ⊆ M) : Agrees N U V := fun e a b => h e (he a) (he b) |
| 85 | end YM.Lattice |