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.Cells.Margins |
| 2 | |
| 3 | /-! |
| 4 | One common tiling with margins M for all. Avoid coincidence points by separation |
| 5 | & shrinking physical cube width. Native coordinates only. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Cells.Tiling |
| 9 | open Lattice Function Set Filter Finset |
| 10 | open scoped Topology |
| 11 | variable {n : Side} (T : Tiling n) |
| 12 | |
| 13 | def newly (o : Site n) : Tiling n := { T with base := o } |
| 14 | |
| 15 | def hom : Per n →+* Per T.side := ZMod.castHom (show T.side.val ∣ n.val from by rw [T.units.exact_size]; simp) _ |
| 16 | |
| 17 | lemma succeeds {m : ℕ} (i : Axis) (x : Fin m → Site n) (K : ℕ) (h : m*(2*K)<T.side.val) : |
| 18 | ∃ v : Per n, ∀ s, let r := (x s i-v).val % T.side.val |
| 19 | K ≤ r ∧ r+K < T.side.val := by |
| 20 | classical |
| 21 | let A (s : Fin m) := T.hom (x s i) |
| 22 | let B : Per T.side → Prop := fun v => K ≤ v.val ∧ v.val+K < T.side.val |
| 23 | suffices he : ∃ y : Per T.side, ∀ s, B (A s-y) by |
| 24 | obtain ⟨y,h⟩ := he |
| 25 | refine ⟨↑y.val,fun s => ?_⟩ |
| 26 | have hx := h s |
| 27 | unfold B at hx |
| 28 | have hz (t : Per n) : T.hom t = ↑t.val := calc |
| 29 | _ = T.hom (↑t.val) := by rw [ZMod.natCast_zmod_val] |
| 30 | _ = _ := map_natCast .. |
| 31 | have hv : A s-y = T.hom ((x s i)-(y.val:Per n)) := by rw [map_sub,map_natCast, ZMod.natCast_zmod_val] |
| 32 | rw [hv,hz (x s i-_), ZMod.val_natCast] at hx; exact hx |
| 33 | let bad := ((range K).image ((↑) : ℕ→Per T.side)) ∪ ((range K).image fun i : ℕ => (↑(T.side.val-(i+1)):Per T.side)) |
| 34 | have he {y} (ht : y∉bad) : B y := by |
| 35 | rcases lt_or_ge y.val K with g|g |
| 36 | · exact (ht (mem_union_left _ (mem_image.mpr ⟨y.val,mem_range.mpr g,ZMod.natCast_zmod_val _⟩))).elim |
| 37 | refine ⟨g,?_⟩; by_contra! hq |
| 38 | have hm := y.val_lt |
| 39 | exact ht (mem_union_right _ (mem_image.mpr ⟨T.side.val - (y.val+1), mem_range.mpr (by omega),by simp [show T.side.val-(T.side.val-(y.val+1)+1) = y.val by omega,Per]⟩)) |
| 40 | let W := Finset.univ.biUnion fun i : Fin m => bad.image fun b => A i-b |
| 41 | have hx : W.card < Finset.univ.card := calc |
| 42 | _ ≤ ∑ i : Fin m,(bad.image fun b => A i-b).card := Finset.card_biUnion_le |
| 43 | _ ≤ ∑ _i : Fin m, 2*K := Finset.sum_le_sum fun i _ => Finset.card_image_le.trans (show bad.card ≤ 2*K by |
| 44 | unfold bad; apply (Finset.card_union_le ..).trans |
| 45 | rw [two_mul] |
| 46 | apply add_le_add _ _ <;> exact Finset.card_image_le.trans (card_range K |>.le)) |
| 47 | _ = m*(2*K) := by simp |
| 48 | _ < (Finset.univ (α := Per T.side)).card := by simpa [Per] using h |
| 49 | obtain ⟨y,-,hy⟩ := Finset.exists_mem_notMem_of_card_lt_card hx |
| 50 | refine ⟨y,fun i => he fun H => hy ?_⟩ |
| 51 | exact mem_biUnion.mpr ⟨i,mem_univ _,mem_image.mpr ⟨_,H,sub_sub_cancel ..⟩⟩ |
| 52 | |
| 53 | lemma fits_together {m : ℕ} (x : Fin m → Site n) (K : ℕ) (hk : 0 < K) (h : m*(2*K)<T.side.val) : |
| 54 | ∃ o : Site n, ∀ s, x s∈(T.newly o).margin ((T.newly o).which (x s)) K := by |
| 55 | choose o ho using fun (i : Axis) => T.succeeds i x K h |
| 56 | refine ⟨o,fun v => ?_⟩ |
| 57 | let B := T.newly o |
| 58 | change x v∈B.margin (B.which (x v)) K |
| 59 | have he (i : Axis) : K ≤ B.coordinated (B.which (x v)) (x v) i ∧ B.coordinated (B.which (x v)) (x v) i+K < B.side.val := by rw [Tiling.residual]; exact ho i v |
| 60 | refine ⟨fun i => ?_,fun i => ⟨(he i).1,?_⟩⟩ |
| 61 | · have hh := he i |
| 62 | change B.kind.Strict B.side.val (B.coordinated _ _ _) |
| 63 | cases B.kind <;> unfold Kind.Strict <;> omega |
| 64 | have hh := he i |
| 65 | have ht : B.kind.shift ≤ 1 := by cases B.kind <;> unfold Kind.shift <;> decide |
| 66 | omega |
| 67 | |
| 68 | /-- Periodic site separation on this common cube. -/ |
| 69 | lemma extent {v : T.Cell} {x y : Site n} (hx : x∈T.chamber v) (hy : y∈T.chamber v) : |
| 70 | separation x y ≤ T.side.val := by |
| 71 | unfold separation pdist; apply Finset.sup_le |
| 72 | intro i _ |
| 73 | have he {x y} (hx : x∈T.chamber v) (hy : y∈T.chamber v) (hv : T.coordinated v y i ≤ T.coordinated v x i) : |
| 74 | (ZMod.valMinAbs (x i-y i)).natAbs ≤ T.side.val := by |
| 75 | rw [ZMod.valMinAbs_natAbs_eq_min] |
| 76 | apply (min_le_left ..).trans |
| 77 | rw [show x i-y i=(x i-T.starts v i)-(y i-T.starts v i) by abel, ZMod.val_sub hv] |
| 78 | exact (Nat.sub_le ..).trans (small T hx _).le |
| 79 | change (ZMod.valMinAbs (x i-y i)).natAbs ≤ _ |
| 80 | rcases le_total (T.coordinated v y i) (T.coordinated v x i) with h|h |
| 81 | · exact he hx hy h |
| 82 | rw [show x i-y i = -(y i-x i) by abel, ZMod.natAbs_valMinAbs_neg] |
| 83 | exact he hy hx h |
| 84 | |
| 85 | /-- Moving by less than k from any margin-k site still fits. Require k positive; no winding comparison. -/ |
| 86 | lemma fits_stencil {x : Site n} {v : T.Cell} {k} (hx : x∈T.margin v k) {z : Cover} |
| 87 | (hz : ∀ a, (z a).natAbs < k) : wrap n z+x ∈ T.chamber v := by |
| 88 | intro i |
| 89 | have he := hz i |
| 90 | obtain ⟨hr,h⟩ := (show _∧_ from hx.2 i) |
| 91 | let a := T.coordinated v x i |
| 92 | let b : ℤ := ↑a + z i |
| 93 | change k ≤ a at hr; change a+k+_ ≤ _ at h |
| 94 | have hp : 0 < b := by dsimp [b];omega |
| 95 | have ht : b.toNat < T.side.val := by dsimp [b]; omega |
| 96 | have hs : T.coordinated v (wrap n z+x) i = b.toNat := by |
| 97 | unfold coordinated |
| 98 | rw [show (wrap n z+x) i-T.starts v i = ((b.toNat:ℕ):Per n) from ?_, ZMod.val_natCast_of_lt (ht.trans T.narrow)] |
| 99 | rw [← Int.cast_natCast, Int.toNat_of_nonneg hp.le]; unfold b a; push_cast |
| 100 | change (z i:Per n)+x i-T.starts v i=_ |
| 101 | simp [coordinated, Per]; abel |
| 102 | change Kind.Strict _ _ (T.coordinated v _ _); rw [hs] |
| 103 | cases T.kind <;> unfold Kind.Strict <;> omega |
| 104 | end YM.Cells.Tiling |