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.Site |
| 2 | import Mathlib.Tactic.Ring |
| 3 | |
| 4 | /-! |
| 5 | # Subdividing the site torus |
| 6 | |
| 7 | Fine roots sit over coarse sites. |
| 8 | |
| 9 | Works also for even ratios, but the |
| 10 | **canonical block** uses the centered lift, and it commutes with reflections |
| 11 | for an odd ratio. |
| 12 | |
| 13 | Provides decompositions for the actual finite RG kernel |
| 14 | and later replica cell geometries. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Lattice |
| 20 | |
| 21 | /-- A subdivision of two tori of the same period. -/ |
| 22 | structure Ratio (c f : Side) where |
| 23 | count : Side |
| 24 | exact_size : f.val = c.val * count.val |
| 25 | |
| 26 | namespace Ratio |
| 27 | variable {c f : Side} (g : Ratio c f) |
| 28 | |
| 29 | def embed (x : Site c) : Site f := wrap f (g.count.val • lift x) |
| 30 | |
| 31 | theorem lift_embed (x : Site c) : lift (g.embed x) = g.count.val • lift x := by |
| 32 | rw [lift_eq_iff]; refine ⟨rfl, fun i ↦ ?_⟩ |
| 33 | have hp : 0 < (g.count.val : ℤ) := by exact_mod_cast g.count.property |
| 34 | have hc := lift_centers x i |
| 35 | simp only [Pi.smul_apply, nsmul_eq_mul, g.exact_size, Nat.cast_mul] |
| 36 | constructor |
| 37 | · calc |
| 38 | -(c.val * (g.count.val : ℤ)) = (g.count.val : ℤ) * -(c.val : ℤ) := by ring |
| 39 | _ < _ := (mul_lt_mul_of_pos_left hc.1 hp).trans_eq (by ring) |
| 40 | · calc |
| 41 | _ = (g.count.val : ℤ) * (2 * lift x i) := by ring |
| 42 | _ ≤ _ := (mul_le_mul_of_nonneg_left hc.2 hp.le).trans_eq (by ring) |
| 43 | |
| 44 | theorem embed_injective : Function.Injective g.embed := by |
| 45 | intro x y h |
| 46 | have ht : lift x = lift y := by |
| 47 | funext i |
| 48 | have e := congr_fun ((g.lift_embed x).symm.trans (h ▸ g.lift_embed y)) i |
| 49 | simp only [Pi.smul_apply, nsmul_eq_mul] at e |
| 50 | exact mul_left_cancel₀ (show (g.count.val : ℤ) ≠ 0 from by exact_mod_cast g.count.property.ne') e |
| 51 | calc x = wrap c (lift x) := (wrap_lift _).symm |
| 52 | _ = y := by rw [ht, wrap_lift] |
| 53 | |
| 54 | /-- Canonical embedding is multiplicative scaling even for off-window lifts. -/ |
| 55 | theorem embed_wrap (x : Cover) : g.embed (wrap c x) = wrap f (g.count.val • x) := by |
| 56 | let y := lift (wrap c x) |
| 57 | have hy : wrap c y = wrap c x := wrap_lift _ |
| 58 | funext i |
| 59 | have h : (c.val : ℤ) ∣ x i - (y i : ℤ) := |
| 60 | (ZMod.intCast_eq_intCast_iff_dvd_sub ..).mp (congr_fun hy i) |
| 61 | change (((g.count.val • y : Cover) i : ℤ) : Per f) = (((g.count.val • x : Cover) i : ℤ) : Per f) |
| 62 | apply (ZMod.intCast_eq_intCast_iff_dvd_sub _ _ _).mpr |
| 63 | simp only [Pi.smul_apply, nsmul_eq_mul, g.exact_size, Nat.cast_mul, ← mul_sub] |
| 64 | rw [mul_comm ((c.val : ℤ))] |
| 65 | exact mul_dvd_mul_left _ h |
| 66 | |
| 67 | def root : Site c →+ Site f where |
| 68 | toFun := embed g |
| 69 | map_zero' := by |
| 70 | calc g.embed 0 = g.embed (wrap c 0) := by rw [map_zero] |
| 71 | _ = _ := by rw [embed_wrap, smul_zero, map_zero] |
| 72 | map_add' x y := by |
| 73 | obtain ⟨x,rfl⟩ := (Function.surjective_iff_hasRightInverse.mpr ⟨lift, fun x => wrap_lift x⟩ : Function.Surjective (wrap c)) x |
| 74 | obtain ⟨y,rfl⟩ := (Function.surjective_iff_hasRightInverse.mpr ⟨lift, fun x => wrap_lift x⟩ : Function.Surjective (wrap c)) y |
| 75 | rw [← map_add, g.embed_wrap, g.embed_wrap, g.embed_wrap, smul_add, map_add] |
| 76 | |
| 77 | @[simp] theorem root_embed (x : Site c) : g.root x = g.embed x := rfl |
| 78 | @[simp] theorem signed (x : Site c) (s : Signed) : g.embed (s.act x) = s.act (g.embed x) := by |
| 79 | obtain ⟨x,rfl⟩ := (Function.surjective_iff_hasRightInverse.mpr ⟨lift, fun x => wrap_lift x⟩ : Function.Surjective (wrap c)) x |
| 80 | rw [wrap_signed, embed_wrap, embed_wrap, wrap_signed]; exact congr_arg _ |
| 81 | ((map_nsmul (s.actEquiv (R := ℤ)) g.count.val x).symm) |
| 82 | |
| 83 | private theorem count_dvd : g.count.val ∣ f.val := by simp [g.exact_size] |
| 84 | |
| 85 | def residue : Site f →+ Site g.count where |
| 86 | toFun x i := ZMod.castHom g.count_dvd (Per g.count) (x i) |
| 87 | map_zero' := by ext; simp |
| 88 | map_add' x y := by funext i; exact (ZMod.castHom g.count_dvd (Per g.count)).map_add _ _ |
| 89 | |
| 90 | @[simp] theorem residue_wrap (x : Cover) : g.residue (wrap f x) = wrap g.count x := by |
| 91 | funext i; exact map_intCast (ZMod.castHom g.count_dvd (Per g.count)) (x i) |
| 92 | |
| 93 | @[simp] theorem residue_embed (x : Site c) : g.residue (g.embed x) = 0 := by |
| 94 | rw [embed, residue_wrap]; funext i; change (((g.count.val • lift x : Cover) i : ℤ) : Per g.count) = 0 |
| 95 | simp [Per] |
| 96 | |
| 97 | /-- Every site is uniquely in one centered block. -/ |
| 98 | def assemble (p : Site c × Site g.count) : Site f := g.embed p.1 + wrap f (lift p.2) |
| 99 | |
| 100 | @[simp] theorem assemble_res (p : Site c × Site g.count) : g.residue (g.assemble p) = p.2 := by |
| 101 | simp [assemble] |
| 102 | |
| 103 | theorem assemble_bijective : Function.Bijective g.assemble := by |
| 104 | apply (Fintype.bijective_iff_injective_and_card _).mpr |
| 105 | constructor |
| 106 | · rintro ⟨x,i⟩ ⟨y,j⟩ h |
| 107 | have he : i=j := by simpa using congr_arg g.residue h |
| 108 | subst j |
| 109 | change g.embed x + _ = g.embed y + _ at h |
| 110 | rw [g.embed_injective (add_right_cancel h)] |
| 111 | rw [Fintype.card_prod, site_card, site_card, site_card, g.exact_size, mul_pow] |
| 112 | |
| 113 | def splitSites : Site f ≃ Site c × Site g.count := |
| 114 | (Equiv.ofBijective g.assemble g.assemble_bijective).symm |
| 115 | |
| 116 | /-- The projected ancestor of a fine site. -/ |
| 117 | def parent (x : Site f) : Site c := (g.splitSites x).1 |
| 118 | |
| 119 | theorem unpack (x : Site f) : (g.parent x, g.residue x) = g.splitSites x := by |
| 120 | let p := g.splitSites x |
| 121 | have e : g.assemble p = x := g.splitSites.symm_apply_apply x |
| 122 | refine Prod.ext rfl ?_ |
| 123 | exact congr_arg g.residue e.symm |>.trans (g.assemble_res p) |
| 124 | |
| 125 | @[simp] theorem assemble_parent (p : Site c × Site g.count) : g.parent (g.assemble p) = p.1 := |
| 126 | congr_arg Prod.fst (g.splitSites.apply_symm_apply p) |
| 127 | |
| 128 | theorem unpack_at (x : Site f) : g.embed (g.parent x) + wrap f (lift (g.residue x)) = x := by |
| 129 | change g.assemble (g.parent x, g.residue x) = x |
| 130 | rw [g.unpack]; exact g.splitSites.symm_apply_apply x |
| 131 | |
| 132 | theorem unambiguous {p : Side} (hp : Odd p.val) (x : Site p) (i) : |
| 133 | 2*(lift x i) < p.val := by |
| 134 | obtain ⟨k, he⟩ := hp |
| 135 | have := (lift_centers x i).2 |
| 136 | omega |
| 137 | |
| 138 | theorem lift_signed_of_odd {p : Side} (hp : Odd p.val) (x : Site p) (s : Signed) : |
| 139 | lift (s.act x) = s.act (lift x) := by |
| 140 | rw [lift_eq_iff]; refine ⟨?_, ?_⟩ |
| 141 | · rw [← wrap_signed, wrap_lift] |
| 142 | intro i |
| 143 | obtain ⟨a,rfl⟩ := s.perm.surjective i |
| 144 | rw [s.act_at]; split |
| 145 | · have h := lift_centers x a |
| 146 | have e := unambiguous hp x a |
| 147 | omega |
| 148 | exact lift_centers x a |
| 149 | |
| 150 | theorem assemble_signed (hp : Odd g.count.val) (x : Site c) (y : Site g.count) (s : Signed) : |
| 151 | g.assemble (s.act x,s.act y) = s.act (g.assemble (x,y)) := by |
| 152 | simp only [assemble, lift_signed_of_odd hp, g.signed, s.act_add, wrap_signed] |
| 153 | |
| 154 | @[simp] theorem parent_signed (hp : Odd g.count.val) (x : Site f) (s : Signed) : |
| 155 | g.parent (s.act x) = s.act (g.parent x) := by |
| 156 | obtain ⟨⟨x,y⟩,rfl⟩ := g.assemble_bijective.2 x |
| 157 | rw [← g.assemble_signed hp, g.assemble_parent, g.assemble_parent] |
| 158 | |
| 159 | end Ratio |
| 160 | end YM.Lattice |