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 YM.Lattice.Scale |
| 3 | import YM.Wilson.Law |
| 4 | |
| 5 | /-! |
| 6 | Kernel frame and finite tags on a patch. |
| 7 | |
| 8 | `mass` is relative to finite **counting** measure in this presentation. |
| 9 | |
| 10 | Existence of a common branch cutoff for which minimizing branches have UNIQUE |
| 11 | minimizers and fallback is nonempty is a proof obligation, not assumed |
| 12 | of any Gauge. |
| 13 | |
| 14 | In these uses the classical choices on minimizing branches |
| 15 | select those actual points. |
| 16 | |
| 17 | Frames in neighboring patches use ONE choice per |
| 18 | physical coarse-site. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.RG |
| 24 | |
| 25 | open Lattice Wilson |
| 26 | open scoped Topology Matrix.Norms.Frobenius |
| 27 | |
| 28 | /-- One shape, used also in pre-block-ratio analytic contracts. -/ |
| 29 | structure Patch where |
| 30 | L : Side |
| 31 | J : ℕ |
| 32 | order_cut : 4 ≤ J |
| 33 | coarse : 3 ≤ L.val |
| 34 | odd_side : Odd L.val |
| 35 | |
| 36 | /-- Chosen once. No sampling/measurability is implicit in these choices. -/ |
| 37 | structure KernelChoices where |
| 38 | penalty : ℝ |
| 39 | frame_cut : ℝ |
| 40 | predictor_cut : ℝ |
| 41 | axial_factor : ℝ |
| 42 | penalty_pos : 0 < penalty |
| 43 | frame_cut_pos : 0 < frame_cut |
| 44 | predictor_cut_pos : 0 < predictor_cut |
| 45 | axial_factor_pos : 0 < axial_factor |
| 46 | |
| 47 | namespace Patch |
| 48 | variable (P : Patch) {G : Gauge} |
| 49 | |
| 50 | /-- rounded up: side `(2J+6)L+1`. -/ |
| 51 | def radius := (P.J + 3) * P.L.val |
| 52 | |
| 53 | def sites := box P.radius |
| 54 | abbrev Points := ↥P.sites |
| 55 | abbrev Small := ↥(box (P.L.val/2)) |
| 56 | |
| 57 | def center : P.Points := ⟨0,center_box _⟩ |
| 58 | instance : Nonempty P.Points := ⟨P.center⟩ |
| 59 | instance : Nonempty P.Small := ⟨⟨0,center_box _⟩⟩ |
| 60 | |
| 61 | abbrev Rolls := Fin P.J → P.Small |
| 62 | |
| 63 | theorem roll_sites (z : P.Rolls) : ∑ i, (z i).val ∈ P.sites := by |
| 64 | have hs (i : Fin P.J) : (z i).val ∈ box (P.L.val / 2) := (z i).property |
| 65 | have hr : P.J * (P.L.val / 2) ≤ P.radius := Nat.mul_le_mul (by omega) (Nat.div_le_self ..) |
| 66 | unfold sites |
| 67 | rw [box_test] |
| 68 | constructor |
| 69 | · intro i |
| 70 | rw [Finset.sum_apply] |
| 71 | calc |
| 72 | _ ≤ -((P.J * (P.L.val/2) : ℕ) : ℤ) := by exact neg_le_neg (by exact_mod_cast hr) |
| 73 | _ = ∑ _ : Fin P.J, -((P.L.val/2 : ℕ) : ℤ) := by simp |
| 74 | _ ≤ _ := Finset.sum_le_sum fun j _ ↦ ((box_test.mp (hs j)).1 i) |
| 75 | · intro i |
| 76 | rw [Finset.sum_apply] |
| 77 | calc |
| 78 | _ ≤ ∑ _ : Fin P.J, ((P.L.val/2 : ℕ) : ℤ) := |
| 79 | Finset.sum_le_sum fun j _ ↦ ((box_test.mp (hs j)).2 i) |
| 80 | _ = ((P.J * (P.L.val/2) : ℕ) : ℤ) := by simp |
| 81 | _ ≤ _ := by exact_mod_cast hr |
| 82 | |
| 83 | def addRoll (z : P.Rolls) : P.Points := ⟨_, P.roll_sites z⟩ |
| 84 | |
| 85 | /-- J-fold convolution of the uniform weight on one centered fine L-block. |
| 86 | Domain is patch at scale L. -/ |
| 87 | def weight (x : P.Points) : ℝ := |
| 88 | ∑ i : P.Rolls, if P.addRoll i = x then (Fintype.card P.Rolls : ℝ)⁻¹ else 0 |
| 89 | |
| 90 | theorem weight_sum : ∑ x, P.weight x = 1 := by |
| 91 | have he : 0 < (Fintype.card P.Rolls : ℝ) := by exact_mod_cast Fintype.card_pos |
| 92 | unfold weight; rw [Finset.sum_comm] |
| 93 | simp only [Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte, Finset.sum_const, |
| 94 | Finset.card_univ, nsmul_eq_mul, mul_inv_cancel₀ he.ne'] |
| 95 | |
| 96 | theorem weight_nonneg (x : P.Points) : 0 ≤ P.weight x := by |
| 97 | apply Finset.sum_nonneg; intro _ _; split <;> positivity |
| 98 | |
| 99 | abbrev Frame (G : Gauge) := P.Points → G.El |
| 100 | abbrev FrameTag := P.Points × Lattice.Order |
| 101 | |
| 102 | def axial (U : CoverConfig G) (r : P.FrameTag) (x : P.Points) := |
| 103 | travel U r.1.val (route r.1.val x.val r.2) |
| 104 | |
| 105 | def via (h : P.Frame G) (U : CoverConfig G) (x y : P.Points) (l : Lattice.Order) := |
| 106 | h x * travel U x.val (route x.val y.val l) * (h y)⁻¹ |
| 107 | |
| 108 | /-- open branch. -/ |
| 109 | def usesMin (C : KernelChoices) (U : CoverConfig G) : Prop := |
| 110 | ∀ l k x y, G.chord (P.via (P.axial U (P.center,l)) U x y k) < C.frame_cut |
| 111 | |
| 112 | def average {n : Type*} [Fintype n] (f : n → ℝ) : ℝ := (Fintype.card n : ℝ)⁻¹ * ∑ i, f i |
| 113 | |
| 114 | def score (U : CoverConfig G) (h : P.Frame G) : ℝ := |
| 115 | average fun x => average fun y => average fun l => G.price (P.via h U x y l) |
| 116 | |
| 117 | @[fun_prop] theorem score_cont : Continuous fun v : CoverConfig G × P.Frame G => P.score v.1 v.2 := by |
| 118 | unfold score average via; fun_prop |
| 119 | |
| 120 | |
| 121 | def minimizing (U : CoverConfig G) (h : P.Frame G) := |
| 122 | h P.center = 1 ∧ ∀ h' : P.Frame G, h' P.center = 1 → P.score U h ≤ P.score U h' |
| 123 | |
| 124 | theorem min_exists (U : CoverConfig G) : ∃ h : P.Frame G, P.minimizing U h := by |
| 125 | have hs : Nonempty P.Points := inferInstance |
| 126 | have he : IsClosed { h : P.Frame G | h P.center = 1 } := isClosed_eq (continuous_apply _) continuous_const |
| 127 | exact he.isCompact.exists_isMinOn ⟨1, rfl⟩ ((P.score_cont.comp (continuous_const.prodMk continuous_id)).continuousOn) |
| 128 | |
| 129 | def selected (U : CoverConfig G) : P.Frame G := (P.min_exists U).choose |
| 130 | |
| 131 | def facesum (U : CoverConfig G) : ℝ := |
| 132 | ∑ x : P.Points, ∑ p : PlaqAxes, |
| 133 | if (∀ y ∈ visits x.val (square p.val.1 p.val.2), y ∈ P.sites) |
| 134 | then G.chord (faceValue U (x.val,p)) else 0 |
| 135 | |
| 136 | /-- Sum over internal positive links. -/ |
| 137 | def axialCost (U : CoverConfig G) (t : P.FrameTag) := |
| 138 | ∑ x : P.Points, ∑ i : Axis, |
| 139 | if h : x.val + step i ∈ P.sites then |
| 140 | G.chord (P.axial U t x * U (x.val,i) * (P.axial U t ⟨x.val + step i,h⟩)⁻¹) |
| 141 | else 0 |
| 142 | |
| 143 | def eligible (C : KernelChoices) (U : CoverConfig G) : Finset P.FrameTag := by |
| 144 | classical |
| 145 | exact Finset.univ.filter fun t => |
| 146 | P.axialCost U t ≤ C.axial_factor * (2*P.radius+1) * P.facesum U |
| 147 | |
| 148 | def frameMass (C : KernelChoices) (U : CoverConfig G) (t : P.FrameTag) : ℝ := by |
| 149 | classical |
| 150 | exact if P.usesMin C U then (Fintype.card P.FrameTag : ℝ)⁻¹ else |
| 151 | if t ∈ P.eligible C U then ((P.eligible C U).card : ℝ)⁻¹ else 0 |
| 152 | |
| 153 | def frame (C : KernelChoices) (U : CoverConfig G) (t : P.FrameTag) : P.Frame G := by |
| 154 | classical |
| 155 | exact if P.usesMin C U then P.selected U else fun x => (P.axial U t P.center)⁻¹ * P.axial U t x |
| 156 | |
| 157 | abbrev Connector (G : Gauge) := P.Points → G.El |
| 158 | |
| 159 | def bondCost (Y : P.Connector G) (u : G.El) : ℝ := ∑ x, P.weight x * G.price (Y x * u⁻¹) |
| 160 | |
| 161 | @[fun_prop] theorem bondCost_cont : Continuous fun v : P.Connector G × G.El => P.bondCost v.1 v.2 := by |
| 162 | unfold bondCost; fun_prop |
| 163 | |
| 164 | theorem bond_min (Y : P.Connector G) : ∃ u, ∀ v, P.bondCost Y u ≤ P.bondCost Y v := by |
| 165 | have h : Continuous fun u => P.bondCost Y u := by fun_prop |
| 166 | obtain ⟨u,-,hu⟩ := isCompact_univ.exists_isMinOn Set.univ_nonempty h.continuousOn |
| 167 | exact ⟨u, fun v => hu (Set.mem_univ v)⟩ |
| 168 | |
| 169 | def best (Y : P.Connector G) := (P.bond_min Y).choose |
| 170 | |
| 171 | def usesBest (C : KernelChoices) (Y : P.Connector G) : Prop := P.bondCost Y (P.best Y) < C.predictor_cut |
| 172 | |
| 173 | def predict (C : KernelChoices) (Y : P.Connector G) (r : P.Points) : G.El := by |
| 174 | classical |
| 175 | exact if P.usesBest C Y then P.best Y else Y r |
| 176 | |
| 177 | def predictorMass (C : KernelChoices) (Y : P.Connector G) (r : P.Points) : ℝ := by |
| 178 | classical |
| 179 | exact if P.usesBest C Y then (Fintype.card P.Points : ℝ)⁻¹ else P.weight r |
| 180 | |
| 181 | /-- These hypotheses need proofs for this patch/kernel. -/ |
| 182 | structure Branches (C : KernelChoices) (G : Gauge) : Prop where |
| 183 | frame_unique : ∀ U : CoverConfig G, P.usesMin C U → ∃! h, P.minimizing U h |
| 184 | predictor_unique : ∀ Y : P.Connector G, P.usesBest C Y → ∃! u, ∀ v, P.bondCost Y u ≤ P.bondCost Y v |
| 185 | axial_exists : ∀ U : CoverConfig G, (P.eligible C U).Nonempty |
| 186 | end Patch |
| 187 | end YM.RG |