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.Gauge.Curvature |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Basic |
| 3 | import YM.Wilson.Law |
| 4 | import YM.Lattice.Support |
| 5 | |
| 6 | /-! |
| 7 | A payload is computed from data within `supp`, with optional final flag queries |
| 8 | on `supp`. Do not use the shorter supports when integrating those flags. |
| 9 | Overlap/disjointness in the *evaluation* formula itself however is tested on the |
| 10 | original supports. |
| 11 | |
| 12 | Regular payloads are specified BEFORE masking: to fix the norm and readout, |
| 13 | use a representative, not `Lᵖ` classes. We spell out the required differentiations |
| 14 | also via ordered left increments. Require differentiability where used; no |
| 15 | relying on junk `deriv`. The unmasked germ is carried as a single Borel function |
| 16 | (required to have been extended gauge invariantly). Off-domain values play no |
| 17 | role outside the derivatives and determining the dependence stencil; see ledger. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.RG |
| 23 | open Lattice Wilson |
| 24 | open MeasureTheory Filter Set |
| 25 | open scoped Matrix.Norms.Frobenius Topology ContDiff |
| 26 | |
| 27 | variable {n : Side} {G : Gauge} |
| 28 | |
| 29 | def touched (p : Face (Per n)) : Finset (Site n) := |
| 30 | (visits p.1 (square p.2.val.1 p.2.val.2)).toFinset |
| 31 | |
| 32 | /-- Every incident site flags if the chord is strictly above threshold. |
| 33 | K payloads still use the measured flags. -/ |
| 34 | def flags (t : ℝ) (U : Config G n) : Support n := by |
| 35 | classical |
| 36 | exact Finset.univ.filter fun x => ∃ p, x ∈ touched p ∧ t < G.chord (faceValue U p) |
| 37 | |
| 38 | theorem flags_spec (t : ℝ) (U : Config G n) (x) : |
| 39 | x ∈ flags t U ↔ ∃ p, x ∈ touched p ∧ t < G.chord (faceValue U p) := by simp [flags] |
| 40 | |
| 41 | def Healthy (t : ℝ) (X : Support n) (U : Config G n) := Disjoint X (flags t U) |
| 42 | |
| 43 | @[simp] theorem gauge_flags (t : ℝ) (U : Config G n) (k : Site n → G.El) : |
| 44 | flags t (gauge k U) = flags t U := by |
| 45 | ext; simp only [flags_spec, face_gauge, Gauge.chord_conj] |
| 46 | |
| 47 | theorem flags_open (x : Site n) (t : ℝ) : IsOpen {U : Config G n | x ∈ flags t U} := by |
| 48 | simp only [flags_spec, setOf_exists]; apply isOpen_iUnion; intro p |
| 49 | by_cases h : x ∈ touched p |
| 50 | · simp only [h, true_and, faceValue]; exact isOpen_lt continuous_const (by fun_prop) |
| 51 | simp [h] |
| 52 | |
| 53 | theorem healthy_closed (t : ℝ) (X : Support n) : IsClosed {U : Config G n | Healthy t X U} := by |
| 54 | have e : {U : Config G n | Healthy t X U} = (⋃ x : X, {U | x.val ∈ flags t U})ᶜ := by |
| 55 | ext; simp [Healthy, Finset.disjoint_left] |
| 56 | rw [e]; exact (isOpen_iUnion fun _ => flags_open ..).isClosed_compl |
| 57 | |
| 58 | theorem flags_measurable_eq (t : ℝ) (X : Support n) : |
| 59 | MeasurableSet {U : Config G n | flags t U = X} := by |
| 60 | rw [show {U : Config G n | flags t U = X} = ⋂ x : Site n, |
| 61 | if x ∈ X then {U | x ∈ flags t U} else {U | x ∈ flags t U}ᶜ by |
| 62 | ext U |
| 63 | simp only [mem_setOf_eq, Finset.ext_iff, mem_iInter] |
| 64 | apply forall_congr'; intro i; split <;> simp [*]] |
| 65 | refine MeasurableSet.iInter fun i ↦ ?_ |
| 66 | split <;> first | apply MeasurableSet.compl; exact (flags_open ..).measurableSet | exact (flags_open ..).measurableSet |
| 67 | |
| 68 | variable {X : Type*} |
| 69 | |
| 70 | def masked [Zero X] (t : ℝ) (P : Support n) (F : Config G n → X) : Config G n → X := by |
| 71 | classical |
| 72 | exact Set.indicator {U | Healthy t P U} F |
| 73 | |
| 74 | @[simp] theorem masked_eq [Zero X] (t : ℝ) (P : Support n) (F : Config G n → X) (U : Config G n) |
| 75 | (h : Healthy t P U) : masked t P F U = F U := Set.indicator_of_mem h F |
| 76 | |
| 77 | @[simp] theorem masked_ne [Zero X] (t : ℝ) (P : Support n) (F : Config G n → X) (U : Config G n) |
| 78 | (h : ¬ Healthy t P U) : masked t P F U = 0 := Set.indicator_of_notMem h F |
| 79 | |
| 80 | @[fun_prop] theorem masked_measurable [MeasurableSpace X] [Zero X] (t : ℝ) (P : Support n) |
| 81 | (F : Config G n → X) (h : Measurable F) : Measurable (masked t P F) := |
| 82 | h.indicator (healthy_closed t P).measurableSet |
| 83 | |
| 84 | def UsesFinal {X : Sort*} (t : ℝ) (P : Support n) (F : Config G n → X) := |
| 85 | ∀ U V, Agrees P U V → P ∩ flags t U = P ∩ flags t V → F U = F V |
| 86 | |
| 87 | /-- Tested flags force one more layer of physical reads before pushing. -/ |
| 88 | def inspected (P : Support n) : Support n := P ∪ (Finset.univ.biUnion fun p : Face (Per n) => |
| 89 | if Disjoint P (touched p) then ∅ else touched p) |
| 90 | |
| 91 | theorem flags_agree (t : ℝ) (U V : Config G n) (P : Support n) (h : Agrees (inspected P) U V) : |
| 92 | P ∩ flags t U = P ∩ flags t V := by |
| 93 | have he (x : Site n) (hx : x ∈ P) (p : Face (Per n)) (hp : x ∈ touched p) : |
| 94 | faceValue U p = faceValue V p := by |
| 95 | apply travel_local _ _ U V |
| 96 | apply agrees_mono h |
| 97 | intro y hy |
| 98 | have hg : ¬ Disjoint P (touched p) := fun H => Finset.disjoint_left.mp H hx hp |
| 99 | refine Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨p,Finset.mem_univ p, ?_⟩) |
| 100 | rw [if_neg hg]; exact List.mem_toFinset.mpr hy |
| 101 | ext x; simp only [Finset.mem_inter, flags_spec] |
| 102 | by_cases hx : x ∈ P |
| 103 | · simp only [hx, true_and] |
| 104 | apply exists_congr; intro p |
| 105 | by_cases hp : x ∈ touched p <;> simp [*, he x hx p] |
| 106 | · simp [hx] |
| 107 | |
| 108 | theorem UsesFinal.allReads (t : ℝ) (P : Support n) {X : Type*} (F : Config G n → X) |
| 109 | (h : UsesFinal t P F) : LocalOn (inspected P) F := fun U V h' => |
| 110 | h _ _ (agrees_mono h' fun _ hx ↦ Finset.mem_union_left _ hx) (flags_agree t U V P h') |
| 111 | |
| 112 | /-- Real or complex regular value extensions use LEFT-link increments, |
| 113 | in normalized colors. For finite directions use the component norms; total |
| 114 | vector space topology is the default product. -/ |
| 115 | abbrev Directions (G : Gauge) (n : Side) := Edge (Site n) → G.Color |
| 116 | |
| 117 | def increment (U : Config G n) (A : Directions G n) : Config G n := |
| 118 | fun e => G.lieExp (A e) * U e |
| 119 | |
| 120 | def leftDerivs [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 121 | (F : Config G n → X) : List (Directions G n) → Config G n → X |
| 122 | | [], U => F U |
| 123 | | A::l, U => deriv (fun t : ℝ => leftDerivs F l (increment U (t • A))) 0 |
| 124 | |
| 125 | structure BudgetPoint where |
| 126 | power : ℕ |
| 127 | order : ℕ |
| 128 | supportExponent : ℝ |
| 129 | B : ℕ |
| 130 | threshold : ℝ |
| 131 | power_ge : 2 ≤ power |
| 132 | order_ge : 6 ≤ order |
| 133 | exponent_pos : 0 < supportExponent |
| 134 | B_pos : 0 < B |
| 135 | threshold_pos : 0 < threshold |
| 136 | threshold_le : threshold ≤ 1 |
| 137 | |
| 138 | namespace BudgetPoint |
| 139 | variable (p : BudgetPoint) |
| 140 | |
| 141 | def dirBound (o : Site n) (A : Directions G n) : Prop := ∀ e : Edge (Site n), |
| 142 | ‖A e‖ ≤ p.threshold * (1+(separation e.1 o : ℝ))^p.power |
| 143 | |
| 144 | def mass (P : Support n) (c : ℝ) : ℝ := Real.exp (p.supportExponent * coverNumber p.B P) * c |
| 145 | |
| 146 | theorem loMass (P : Support n) (c : ℝ) (hc : 0 ≤ c) : c ≤ p.mass P c := by |
| 147 | have he : 0 ≤ p.supportExponent * coverNumber p.B P := mul_nonneg p.exponent_pos.le (by positivity) |
| 148 | exact le_mul_of_one_le_left hc (Real.one_le_exp he) |
| 149 | |
| 150 | variable [NormedAddCommGroup X] [NormedSpace ℝ X] [MeasurableSpace X] |
| 151 | |
| 152 | /-- Germ carried by `F`; use that germ also at equality. Require global |
| 153 | cylindrical Borel and gauge-invariant representative. -/ |
| 154 | structure Regular (P : Support n) (F : Config G n → X) : Prop where |
| 155 | sites : LocalOn P F |
| 156 | borel : Measurable F |
| 157 | symmetry : GaugeInvariant F |
| 158 | smooth (U) : Healthy p.threshold P U → |
| 159 | ContDiffAt ℝ (p.order : ℕ∞) (fun v => F (increment U v)) 0 |
| 160 | hasDerivs (U) : Healthy p.threshold P U → ∀ A l, l.length < p.order → |
| 161 | HasDerivAt (fun t : ℝ => leftDerivs F l (increment U (t • A))) (leftDerivs F (A::l) U) 0 |
| 162 | |
| 163 | |
| 164 | def supBounds (o : Site n) (P : Support n) (F : Config G n → X) (c : ℝ) : Prop := |
| 165 | 0 ≤ c ∧ ∀ U, Healthy p.threshold P U → ∀ l, List.length l ≤ p.order → |
| 166 | (∀ A ∈ l, p.dirBound o A) → ‖leftDerivs F l U‖ ≤ c |
| 167 | end BudgetPoint |
| 168 | end YM.RG |