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.Next.FOUNDATIONS.JetReads |
| 2 | import YM.Push.CUTOFF_PROJECTORS.Frame |
| 3 | import YM.Work.C25 |
| 4 | |
| 5 | /-! |
| 6 | # Equation coordinates and cutoff presentation |
| 7 | |
| 8 | Specify here the missing finite input. |
| 9 | |
| 10 | There is *not* currently a producer of the Wilson equation transfers on the |
| 11 | family in the Lean library. |
| 12 | |
| 13 | This interface works from actual link vector |
| 14 | fields and their equation-cylinder `Coefficient` chains (on the *same* |
| 15 | Family; transfer to `C.ref d`). |
| 16 | |
| 17 | Choice of their stencils/filtered-gradients, |
| 18 | representation and bounds is for RDuets, NOT dictated uniquely by physical |
| 19 | measures nor by label vectors. |
| 20 | |
| 21 | In particular neither `C.Makes` nor the |
| 22 | accepted G09 alone gives the chain for an equation cylinder. |
| 23 | |
| 24 | Take these as |
| 25 | inputs, not the projections, projector bounds, tested rank, etc. |
| 26 | |
| 27 | `ComesFrom` below gives exact requirements for using this data as equation |
| 28 | coordinates, all of them *finite regulator* (including actual unnormalized |
| 29 | density equality, no change of RG kernel). This file doesn't need spectral |
| 30 | assumptions; also no claim that these inputs already say the maps are |
| 31 | injective, or that these equations are all the relations. Additional |
| 32 | (noncollapse) estimates used for rank & inverse use of the columns are |
| 33 | separate. A degenerate equation family, though still having a perfectly |
| 34 | good orthogonal projection, won't serve via those estimates! |
| 35 | |
| 36 | The cylinder itself elsewhere uses literal |
| 37 | translation; *further* transfers for other offsets, Woke and array bounds, |
| 38 | etc. as needed down the road belong to other producers. State locality |
| 39 | here as actual dependence on the fixed endpoint stencil, not a bound on |
| 40 | reader/algorithm costs or choices of masks when setting up a Duet. No IBP or |
| 41 | all-copy `close` estimate is assumed or proved by the projection procedure. |
| 42 | -/ |
| 43 | |
| 44 | set_option autoImplicit false |
| 45 | noncomputable section |
| 46 | namespace YM.Push.CutoffProjectors |
| 47 | open Function Filter Labels Lattice RG Wilson Source MeasureTheory Next.Extract Extraction |
| 48 | open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius |
| 49 | |
| 50 | variable {G : Gauge} {d N p : ℕ} (F : Labels.Frame G d) |
| 51 | |
| 52 | /-- The actual Maxwell equation parameter space, in the family's |
| 53 | coordinate frame. -/ |
| 54 | def equationSpace : Submodule ℂ F.Coeff := |
| 55 | (Maxwell.equationIdeal G d).map F.coords.toLinearMap |
| 56 | |
| 57 | def parameterEquiv : (Maxwell.equationIdeal G d) ≃ₗ[ℂ] equationSpace F := |
| 58 | LinearEquiv.submoduleMap _ _ |
| 59 | |
| 60 | theorem equation_dim : Module.finrank ℂ (equationSpace F) = Module.finrank ℂ (Maxwell.equationIdeal G d) := |
| 61 | (parameterEquiv F).finrank_eq.symm |
| 62 | |
| 63 | /-- Compute the input space by the genuine free linear constraints. No |
| 64 | assumption that this gives all free or interacting separated nulls. -/ |
| 65 | theorem equation_iff {v : F.Coeff} : v ∈ equationSpace F ↔ ∀ X : Maxwell.TaylorTower G, |
| 66 | Labels.read (fun i => Maxwell.gaugeJet (X i)) (F.coords.symm v).val = 0 := by |
| 67 | rw [← Maxwell.ideal_meaning] |
| 68 | constructor |
| 69 | · intro hv |
| 70 | obtain ⟨w,hw,rfl⟩ := Submodule.mem_map.mp hv |
| 71 | simpa using hw |
| 72 | exact fun h => Submodule.mem_map.mpr ⟨_,h,F.coords.apply_symm_apply _⟩ |
| 73 | |
| 74 | lemma scaled_mem (t : ℝ) {x : F.Coeff} (h : x ∈ equationSpace F) : F.scaled t x ∈ equationSpace F := by |
| 75 | rw [equation_iff] at h ⊢ |
| 76 | intro X |
| 77 | rw [Next.Foundations.read_frame_scaled] |
| 78 | convert h (t • X) using 2 |
| 79 | ext1 i; simp; rfl |
| 80 | |
| 81 | def scaledEquations (t : ℝ) : equationSpace F →ₗ[ℂ] equationSpace F := |
| 82 | ((F.scaled t).comp (equationSpace F).subtype).codRestrict _ fun x => scaled_mem F t x.2 |
| 83 | |
| 84 | variable {n : Side} {C : Family G} |
| 85 | |
| 86 | /-- A link vector field (complexified in the physical color frame; coordinates |
| 87 | for the LEFT increments, positive links). -/ |
| 88 | abbrev Vectors (G : Gauge) (n : Side) := Config G n → Edge (Site n) → G.ColorIndex → ℂ |
| 89 | |
| 90 | /-- The finite data used to compute the map. `m` is level in the chain; |
| 91 | allow any values where not using a chain (pad linearly for the `.x`). -/ |
| 92 | structure Packet (C : Family G) (d N p : ℕ) where |
| 93 | weights : equationSpace (C.labels.level d) →ₗ[ℂ] Vectors G (C.side N p) |
| 94 | chain (m : ℕ) : equationSpace (C.labels.level d) → Coefficient (C.labels.level d) (C.side m p) |
| 95 | linear_x (m : ℕ) : IsLinearMap ℂ fun v => (chain m v).x |
| 96 | |
| 97 | namespace Packet |
| 98 | variable (E : Packet C d N p) |
| 99 | |
| 100 | /-- Includes the `t_N^{-l}` factor of (l = slot degree of that |
| 101 | component). No extra G adjoint, color trace factors or conjugations across |
| 102 | the two entries of this formula. -/ |
| 103 | def X := E.weights.comp (scaledEquations (C.labels.level d) (C.path.levels.clock.threshold N)⁻¹) |
| 104 | |
| 105 | def forward (e : Edge (Site n)) (j : G.ColorIndex) : RG.Directions G n := |
| 106 | Pi.single e ((EuclideanSpace.basisFun G.ColorIndex ℝ) j) |
| 107 | |
| 108 | variable (v : equationSpace (C.labels.level d)) |
| 109 | |
| 110 | def derivative {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] (f : Config G n → Y) |
| 111 | (e : Edge (Site n)) (j : G.ColorIndex) (U : Config G n) := leftDerivs f [forward e j] U |
| 112 | |
| 113 | /-- `energy` counts positive plaquettes exactly once, with the |
| 114 | normalized trace price. `RG.increment` exponentiates in `G.Color`'s |
| 115 | normalization. The minus sign is for `bare β = exp (-β * energy)`; |
| 116 | divergence differentiates the **whole** component. This definition is to |
| 117 | be used with genuine derivative hypotheses and β>0. -/ |
| 118 | def Jorigin : Config G (C.side N p) → ℂ := |
| 119 | fun U => ((C.S.a N : ℂ)^d)⁻¹ * ∑ (e : Edge (Site (C.side N p))), ∑ j : G.ColorIndex, |
| 120 | (E.X v U e j * (derivative energy e j U : ℝ) - |
| 121 | ((C.beta N p : ℂ))⁻¹ * derivative (fun V => E.X v V e j) e j U) |
| 122 | |
| 123 | def J (o : Site (C.side N p)) (U : Config G (C.side N p)) := E.Jorigin v (translate o U) |
| 124 | |
| 125 | -- This need NOT be the factory's transfer of the equation |
| 126 | -- cylinder's top x coordinate: that would forget its remainder. |
| 127 | def matrixAt (m : ℕ) : equationSpace (C.labels.level d) →L[ℂ] C.label d := |
| 128 | (IsLinearMap.mk' _ (E.linear_x m)).toContinuousLinearMap |
| 129 | |
| 130 | def reference := E.matrixAt (C.ref d) |
| 131 | |
| 132 | def topEquation := E.matrixAt N |
| 133 | |
| 134 | /-- Top coordinates of the PRIMARY matched to J at the *reference*. -/ |
| 135 | def costMatrix : equationSpace (C.labels.level d) →L[ℂ] C.label d := |
| 136 | (C.factory d N p).terminal.symm.toLinearMap.toContinuousLinearMap.comp E.reference |
| 137 | |
| 138 | abbrev subspace : Submodule ℂ (C.label d) := LinearMap.range E.reference.toLinearMap |
| 139 | |
| 140 | /-- Constraint-row form of the matrix. Use the same H-invariant Hermitian |
| 141 | form (conj only on column, linear in x). Its kernel is the **retained** |
| 142 | space, not the kernel of step. Even use only finrank many rows. -/ |
| 143 | def row (w : equationSpace (C.labels.level d)) : C.label d →L[ℂ] ℂ := |
| 144 | ((innerSL ℂ) (chart (C.labels.level d) (E.reference w))).comp (chart (C.labels.level d)) |
| 145 | |
| 146 | def finiteRows := |
| 147 | let b := Module.finBasis ℂ (equationSpace (C.labels.level d)) |
| 148 | (LinearMap.pi fun i => (E.row (b i)).toLinearMap).toContinuousLinearMap |
| 149 | |
| 150 | set_option maxRecDepth 4000 in |
| 151 | theorem rows_kernel : LinearMap.ker E.finiteRows.toLinearMap = normal (C.labels.level d) E.subspace := by |
| 152 | let F := C.labels.level d |
| 153 | let b := Module.finBasis ℂ (equationSpace F) |
| 154 | ext x |
| 155 | rw [normal_iff, LinearMap.mem_ker] |
| 156 | change E.finiteRows x = 0 ↔ _ |
| 157 | have app (i) : E.finiteRows x i = pair F (E.reference (b i)) x := by |
| 158 | dsimp only [finiteRows] |
| 159 | rfl |
| 160 | constructor |
| 161 | · intro h y hy |
| 162 | obtain ⟨z,rfl⟩ := LinearMap.mem_range.mp hy |
| 163 | have hu (i) : inner ℂ (chart F (E.reference (b i))) (chart F x) = 0 := by |
| 164 | change pair F _ _ = 0 |
| 165 | rw [← app, h]; rfl |
| 166 | change inner ℂ (chart F (E.reference z)) (chart F x) = 0 |
| 167 | rw [← b.sum_repr z, map_sum, map_sum, sum_inner] |
| 168 | simp only [map_smul, inner_smul_left, hu, mul_zero, Finset.sum_const_zero] |
| 169 | intro h |
| 170 | ext1 i |
| 171 | rw [app, h (E.reference (b i)) (LinearMap.mem_range.mpr ⟨b i,rfl⟩)]; rfl |
| 172 | |
| 173 | /-- All formulas interpreted on the same cutoff family. These premises for |
| 174 | *physical* use of the finite matrix are intentionally not postulated as |
| 175 | always available. `Stencil` is in microscopic sites. `cap` takes the |
| 176 | literal remBound, allowing a regulator-dependent bound; does *not* enforce |
| 177 | the WEbud pre-L payments. -/ |
| 178 | def sites (n : Side) (S : Finset Cover) : Support n := S.image (wrap n) |
| 179 | |
| 180 | /-- C¹ in each of the used left directions (just enough here to use |
| 181 | `derivative` with a genuine continuous value). -/ |
| 182 | structure Along {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] (f : Config G n → Y) : Prop where |
| 183 | continuous : Continuous f |
| 184 | exact (e : Edge (Site n)) (j : G.ColorIndex) (U : Config G n) : |
| 185 | HasDerivAt (fun t : ℝ => f (increment U (t • forward e j))) (derivative f e j U) 0 |
| 186 | rate (e : Edge (Site n)) (j : G.ColorIndex) : Continuous (derivative f e j) |
| 187 | |
| 188 | structure ComesFrom (S : Finset Cover) : Prop where |
| 189 | fit : C.ref d ≤ N |
| 190 | spatial : 0 ∈ S |
| 191 | fits : ∀ x ∈ S, ∀ i : Axis, 20*((x i).natAbs + 1) ≤ (C.side N p).val |
| 192 | coupling : 0 < C.beta N p |
| 193 | action : Along (energy (G:=G) (n:=C.side N p)) |
| 194 | coefficients (w : equationSpace (C.labels.level d)) (e : Edge (Site (C.side N p))) (j) : |
| 195 | Along fun U => E.X w U e j |
| 196 | depends w : LocalOn (sites (C.side N p) S) (E.X w) |
| 197 | moves w U e j : E.X w U e j ≠ 0 → e.1 ∈ sites (C.side N p) S ∧ |
| 198 | e.1 + step e.2 ∈ sites (C.side N p) S |
| 199 | reads w : LocalOn (sites (C.side N p) S) (E.Jorigin w) |
| 200 | gauge w : GaugeInvariant (E.Jorigin w) |
| 201 | format (m : ℕ) : C.ref d ≤ m → m ≤ N → ∀ w, |
| 202 | (E.chain m w).Format 0 C.params (C.path.rep N p m) |
| 203 | cap (m : ℕ) : C.ref d ≤ m → m ≤ N → ∀ w, ∃ b : ℝ, |
| 204 | (E.chain m w).remBound 0 (C.path.rep N p m) (Real.sqrt (C.path.levels.clock.forcedAllowance m)) b |
| 205 | encode w U : (E.chain N w).density 0 (C.localSection d) (C.path.rep N p N) U = |
| 206 | ((C.S.a N : ℂ)^d) * ((C.path.rep N p N).eval U : ℂ) * E.Jorigin w U |
| 207 | transfer m : C.ref d ≤ m → m < N → ∀ w, |
| 208 | (E.chain m w).density 0 (C.localSection d) (C.path.rep N p m) = |
| 209 | ((C.S.block m).val : ℂ)^d • (C.path.levels.clock.op m p).push (C.path.β N p (m+1)) |
| 210 | ((E.chain (m+1) w).density 0 (C.localSection d) (C.path.rep N p (m+1))) |
| 211 | |
| 212 | variable {E} {S : Finset Cover} |
| 213 | |
| 214 | theorem ComesFrom.continuous (h : E.ComesFrom S) : Continuous (E.Jorigin v) := by |
| 215 | unfold Jorigin |
| 216 | refine continuous_const.mul (continuous_finsetSum _ fun i _ => continuous_finsetSum _ fun j _ => |
| 217 | Continuous.sub ?_ ?_) |
| 218 | · exact ((h.coefficients v i j).continuous).mul (Complex.continuous_ofReal.comp (h.action.rate i j)) |
| 219 | exact continuous_const.mul ((h.coefficients v i j).rate i j) |
| 220 | |
| 221 | /-- Even though `deriv` uses junk values when not differentiable, here J |
| 222 | really extends linearly. -/ |
| 223 | theorem ComesFrom.linear (h : E.ComesFrom S) : IsLinearMap ℂ E.Jorigin := by |
| 224 | have hs (a b : equationSpace (C.labels.level d)) (U : Config G (C.side N p)) (e j) : |
| 225 | derivative (fun V => E.X (a+b) V e j) e j U = derivative (fun V => E.X a V e j) e j U + |
| 226 | derivative (fun V => E.X b V e j) e j U := by |
| 227 | simp only [map_add, Pi.add_apply] |
| 228 | exact (((h.coefficients a e j).exact e j U).add ((h.coefficients b e j).exact e j U)).deriv |
| 229 | have ht (c : ℂ) (w : equationSpace (C.labels.level d)) (U : Config G (C.side N p)) (e j) : |
| 230 | derivative (fun V => E.X (c • w) V e j) e j U = c * derivative (fun V => E.X w V e j) e j U := by |
| 231 | simp only [map_smul, Pi.smul_apply, smul_eq_mul] |
| 232 | exact (((h.coefficients w e j).exact e j U).const_mul c).deriv |
| 233 | constructor |
| 234 | · intro a b; ext1 U |
| 235 | unfold Jorigin |
| 236 | -- rewrite derivative first |
| 237 | simp_rw [hs] |
| 238 | simp only [map_add, Pi.add_apply, add_mul, mul_add, add_sub_add_comm, Finset.sum_add_distrib] |
| 239 | intro c a; ext1 U |
| 240 | unfold Jorigin |
| 241 | simp_rw [ht] |
| 242 | simp only [map_smul, Pi.smul_apply, smul_eq_mul, mul_assoc, mul_left_comm _ c, ← mul_sub, |
| 243 | ← Finset.mul_sum] |
| 244 | |
| 245 | /-- Check the reference readout really uses the family's transfer and full |
| 246 | normalization. Equality here is of reference coordinates, not of density |
| 247 | functions of J and its primary. -/ |
| 248 | theorem ComesFrom.matched (h : E.ComesFrom S) (hc : C.Makes) : |
| 249 | ((C.factory d N p).entries (C.ref d) (E.costMatrix v)).x = (E.chain (C.ref d) v).x := |
| 250 | C.normalized hc h.fit (E.reference v) |
| 251 | |
| 252 | theorem matched_field (E : Packet C d N p) : |
| 253 | C.O N p (d:=d) (E.reference v) = initial (C.localSection d) C.path N p (E.costMatrix v) := rfl |
| 254 | |
| 255 | theorem ComesFrom.density_int (h : E.ComesFrom S) (hc : C.Makes) (m : ℕ) (hr : C.ref d ≤ m) (hm : m ≤ N) : |
| 256 | Integrable ((E.chain m v).density 0 (C.localSection d) (C.path.rep N p m)) (prior G (C.side m p)) := by |
| 257 | obtain ⟨b,hb⟩ := h.cap m hr hm v |
| 258 | have he := Coefficient.envelope (C.localSection d) (hc.wilson.represents N p m hm).good hb (h.format m hr hm v) |
| 259 | obtain ⟨K,hk⟩ := he.cost |
| 260 | exact Integrable.of_bound he.meas.aestronglyMeasurable K (Eventually.of_forall hk) |
| 261 | |
| 262 | /-- A downstream normalization check on an authentic packet. Includes the |
| 263 | partition, nothing divided by a hypothetical new normalization. -/ |
| 264 | theorem ComesFrom.integral (h : E.ComesFrom S) (hc : C.Makes) (m : ℕ) (hr : C.ref d ≤ m) (hm : m ≤ N) : |
| 265 | (∫ U, (E.chain m v).density 0 (C.localSection d) (C.path.rep N p m) U ∂prior G (C.side m p)) = |
| 266 | (C.S.a m : ℂ)^d * (partition G (C.side N p) (C.beta N p) : ℂ) * |
| 267 | moment (C.beta N p) (E.Jorigin v) := by |
| 268 | induction hm using Nat.decreasingInduction with |
| 269 | | self => |
| 270 | have hi := continuous_integrable (C.beta N p) (h.continuous v) |
| 271 | rw [moment_formula _ _ hi] |
| 272 | have hz : (partition G (C.side N p) (C.beta N p) : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr (partition_pos _).ne' |
| 273 | simp_rw [h.encode, (hc.wilson.starts N p).2, mul_assoc] |
| 274 | rw [integral_const_mul]; simp [hz] |
| 275 | | of_succ k hk Hk => |
| 276 | simp_rw [h.transfer k hr hk] |
| 277 | simp only [Pi.smul_apply, smul_eq_mul] |
| 278 | rw [integral_const_mul, StepData.push_integral (C.path.levels.transition_mass ..) _ |
| 279 | (h.density_int v hc _ (hr.trans k.le_succ) hk), Hk (hr.trans k.le_succ), C.S.a_step] |
| 280 | have he := (C.S.block k).property.ne' |
| 281 | simp only [Complex.ofReal_div, Complex.ofReal_natCast] |
| 282 | rw [← mul_assoc, ← mul_assoc, ← mul_pow, mul_comm ((C.S.block k).val : ℂ), div_mul_cancel₀ _ (by exact_mod_cast he)] |
| 283 | |
| 284 | end Packet |
| 285 | |
| 286 | /-- One way to commission the finite inputs (which for physical use are |
| 287 | needed at sufficiently fine cutoffs). Even allow p dependence for start of |
| 288 | chain proofs. E proposes stronger eventual receipts. No spectral promises in |
| 289 | this structure. Ordinary data like oriented readout or budget promises if |
| 290 | needed will be separate inputs. Not an existence assertion for a campaign |
| 291 | serving the estimates. -/ |
| 292 | structure Campaign (C : Family G) where |
| 293 | cutoff : C.Makes |
| 294 | packet (d N p : ℕ) : Packet C d N p |
| 295 | box (d : ℕ) : Finset Cover |
| 296 | start (d p : ℕ) : ℕ |
| 297 | uses (d N p : ℕ) : start d p ≤ N → (packet d N p).ComesFrom (box d) |
| 298 | |
| 299 | namespace Campaign |
| 300 | variable (A : Campaign C) |
| 301 | |
| 302 | abbrev spaces : Subspaces C := fun d i => (A.packet d i.1 i.2).subspace |
| 303 | |
| 304 | def presentation : Presentation C := present A.spaces |
| 305 | |
| 306 | /-- Explicitly d, every pair (N,p). -/ |
| 307 | theorem cost (d N p : ℕ) : ‖A.presentation.step d (N,p)‖ ≤ fee (C.labels.level d) := retain_le_fee .. |
| 308 | |
| 309 | theorem costs (f : Extraction.Order) : Affordable A.presentation f := affordable A.spaces f |
| 310 | |
| 311 | theorem projected (x : C.label d) : |
| 312 | A.presentation.step d (N,p) (A.presentation.step d (N,p) x) = A.presentation.step d (N,p) x := |
| 313 | retain_retain .. |
| 314 | |
| 315 | /-- exact at the finite coordinates instead of already at any |
| 316 | limit. -/ |
| 317 | theorem ker (d N p : ℕ) : |
| 318 | LinearMap.ker (A.presentation.step d (N,p)).toLinearMap = (A.packet d N p).subspace := retain_ker .. |
| 319 | |
| 320 | theorem range (d N p : ℕ) : |
| 321 | LinearMap.range (A.presentation.step d (N,p)).toLinearMap = |
| 322 | LinearMap.ker (A.packet d N p).finiteRows.toLinearMap := |
| 323 | (retain_range _ _).trans (A.packet d N p).rows_kernel.symm |
| 324 | |
| 325 | theorem equation_iff_zero (x : C.label d) : A.presentation.step d (N,p) x = 0 ↔ |
| 326 | ∃ w : equationSpace (C.labels.level d), (A.packet d N p).reference w = x := by |
| 327 | change x ∈ LinearMap.ker _ ↔ _ |
| 328 | rw [A.ker] |
| 329 | exact LinearMap.mem_range |
| 330 | |
| 331 | theorem auth_rows (d p : ℕ) (f : Extraction.Order) : ∀ᶠ j : ℕ in atTop, |
| 332 | (A.packet d (f.mesh j) p).ComesFrom (A.box d) := by |
| 333 | filter_upwards [f.mesh.cofinal.eventually (eventually_ge_atTop (A.start d p))] with j hj |
| 334 | exact A.uses _ _ _ hj |
| 335 | |
| 336 | theorem auth_late (d : ℕ) (f : Extraction.Order) : f.late (fun N p => (A.packet d N p).ComesFrom (A.box d)) := |
| 337 | Eventually.of_forall fun _ => auth_rows .. |
| 338 | end Campaign |
| 339 | end YM.Push.CutoffProjectors |