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.RG.Masks |
| 2 | import Mathlib.Analysis.SpecialFunctions.Log.Summable |
| 3 | |
| 4 | /-! |
| 5 | # Regular and forced density activity format |
| 6 | |
| 7 | Denotational representation . Not a quotient by `eval`. Countably |
| 8 | many addresses indexed by Nat with zero padding; all indexed data fixed in the |
| 9 | history. `supp` is the actual support used for compatibility. Final flag reads |
| 10 | can test all flags in `supp`; they force the enlarged `inspected` support for |
| 11 | payload dependence. `inventory` and `eligible` stay fixed for *both* vacuum and |
| 12 | source coefficients when that address is used; include any extra tests in `eligible` |
| 13 | or use separate labels with zero vacuum coefficient. (In constructions with more |
| 14 | internal data or workspace queries ensure that these footprints include them; |
| 15 | this API doesn't constrain how one cooks up admissible addresses or how much to |
| 16 | pad outside their footprint.) |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.RG |
| 22 | |
| 23 | open Lattice Wilson MeasureTheory Filter |
| 24 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 25 | |
| 26 | variable {n : Side} {G : Gauge} |
| 27 | |
| 28 | /-- Affine directions set in canonical lift. Curl tests only imposed with |
| 29 | nonwrapping supports. -/ |
| 30 | def IsAffineDirection (o : Site n) (u : Directions G n) : Prop := |
| 31 | ∃ (a : Axis → G.Color) (d : Axis → Axis → G.Color), |
| 32 | ∀ e : Edge (Site n), u e = a e.2 + ∑ i : Axis, lift (e.1 - o) i • d e.2 i |
| 33 | |
| 34 | def logHessian (F : Config G n → ℝ) (x y : Directions G n) : ℝ := |
| 35 | iteratedFDeriv ℝ 2 (fun A : Directions G n => F (increment 1 A)) 0 ![x,y] |
| 36 | |
| 37 | structure RegularAddress (n : Side) where |
| 38 | site : Site n |
| 39 | support : Support n |
| 40 | anchor : site ∈ support |
| 41 | |
| 42 | structure ForcedAddress (G : Gauge) (n : Side) where |
| 43 | support : Support n |
| 44 | inventory : Support n |
| 45 | inventory_ne : inventory.Nonempty |
| 46 | inventory_sup : inventory ⊆ support |
| 47 | extraTest : Config G n → Prop |
| 48 | |
| 49 | namespace ForcedAddress |
| 50 | |
| 51 | variable (a : ForcedAddress G n) |
| 52 | |
| 53 | /-- Internal eligibility. Vacuum terms outside this predicate are zero. -/ |
| 54 | def eligible (t : ℝ) (U : Config G n) := |
| 55 | a.support ∩ flags t U = a.inventory ∧ a.extraTest U |
| 56 | end ForcedAddress |
| 57 | |
| 58 | /-- Absolute mass certificate; not a comparison of a bare `tsum`. -/ |
| 59 | def SumBudget {ι : Type*} (f : ι → ℝ) (c : ℝ) : Prop := |
| 60 | (∀ i, 0 ≤ f i) ∧ Summable f ∧ ∑' i, f i ≤ c |
| 61 | |
| 62 | structure Activities (G : Gauge) (n : Side) where |
| 63 | reg : ℕ → RegularAddress n |
| 64 | forced : ℕ → ForcedAddress G n |
| 65 | E : ℕ → Config G n → ℝ |
| 66 | K : ℕ → Config G n → ℝ |
| 67 | namespace Activities |
| 68 | variable (A : Activities G n) (p : BudgetPoint) |
| 69 | |
| 70 | structure RegularFamily : Prop where |
| 71 | smooth : ∀ i, p.Regular (A.reg i).support (A.E i) |
| 72 | at_flat : ∀ i, A.E i 1 = 0 |
| 73 | vanish : ∀ i, Nonwrapping (A.reg i).support (A.reg i).site → |
| 74 | ∀ x y, IsAffineDirection (A.reg i).site x → IsAffineDirection (A.reg i).site y → |
| 75 | logHessian (A.E i) x y = 0 |
| 76 | |
| 77 | structure ForcedFamily : Prop where |
| 78 | sym : ∀ i, GaugeInvariant (A.K i) |
| 79 | symtest : ∀ i k U, (A.forced i).extraTest (gauge k U) ↔ (A.forced i).extraTest U |
| 80 | meas : ∀ i, Measurable (A.K i) |
| 81 | meas_test : ∀ i, MeasurableSet {U | (A.forced i).extraTest U} |
| 82 | reads : ∀ i, UsesFinal p.threshold (A.forced i).support (A.K i) |
| 83 | reads_test : ∀ i, UsesFinal p.threshold (A.forced i).support (A.forced i).extraTest |
| 84 | permit : ∀ i U, A.K i U ≠ 0 → (A.forced i).eligible p.threshold U |
| 85 | |
| 86 | /-- Transports of **whole** labels (point here is in the translated signed convention). -/ |
| 87 | structure Moves (s : Signed) (b : Site n) where |
| 88 | ep : Equiv.Perm ℕ |
| 89 | kp : Equiv.Perm ℕ |
| 90 | reg_site (i : ℕ) : (A.reg (ep i)).site = affine s b (A.reg i).site |
| 91 | reg_support (i : ℕ) : (A.reg (ep i)).support = (A.reg i).support.image (affine s b) |
| 92 | forced_support (i : ℕ) : (A.forced (kp i)).support = (A.forced i).support.image (affine s b) |
| 93 | forced_inventory (i : ℕ) : (A.forced (kp i)).inventory = (A.forced i).inventory.image (affine s b) |
| 94 | forced_tests (i : ℕ) (U : Config G n) : (A.forced (kp i)).extraTest U ↔ (A.forced i).extraTest (pull s b U) |
| 95 | valuesE (i : ℕ) (U : Config G n) : A.E (ep i) U = A.E i (pull s b U) |
| 96 | valuesK (i : ℕ) (U : Config G n) : A.K (kp i) U = A.K i (pull s b U) |
| 97 | |
| 98 | def EBound (budget : ℝ) := ∃ b : ℕ → ℝ, |
| 99 | (∀ i, p.supBounds (A.reg i).site (A.reg i).support (A.E i) (b i)) ∧ |
| 100 | ∀ x : Site n, SumBudget (fun i => if (A.reg i).site = x then p.mass (A.reg i).support (b i) else 0) budget |
| 101 | |
| 102 | def KBound (budget : ℝ) := ∃ b : ℕ → ℝ, |
| 103 | (∀ i, (0 ≤ b i) ∧ ∀ U, ‖A.K i U‖ ≤ b i) ∧ |
| 104 | ∀ x : Site n, SumBudget (fun i => if x ∈ (A.forced i).support then p.mass (A.forced i).support (b i) else 0) budget |
| 105 | |
| 106 | structure Valid (δ w : ℝ) : Prop where |
| 107 | regular : A.RegularFamily p |
| 108 | forced : A.ForcedFamily p |
| 109 | moves : ∀ s b, Nonempty (A.Moves s b) |
| 110 | boundE : A.EBound p δ |
| 111 | boundK : A.KBound p w |
| 112 | |
| 113 | /-- Disjoint, exact coverage. Further predicates are internal, multiply by zero. -/ |
| 114 | def admissible (U : Config G n) (b : Finset ℕ) := |
| 115 | (b : Set ℕ).Pairwise (fun i j => Disjoint (A.forced i).support (A.forced j).support) ∧ |
| 116 | b.biUnion (fun i => (A.forced i).inventory) = flags p.threshold U |
| 117 | |
| 118 | theorem admissible_borel (b : Finset ℕ) : MeasurableSet {U | A.admissible p U b} := by |
| 119 | unfold admissible |
| 120 | by_cases hb : (b : Set ℕ).Pairwise (fun i j => Disjoint (A.forced i).support (A.forced j).support) |
| 121 | · simp only [hb, true_and, eq_comm] |
| 122 | exact flags_measurable_eq .. |
| 123 | simp [hb] |
| 124 | |
| 125 | def gasOccurrence (b : Finset ℕ) (U : Config G n) : ℝ := by |
| 126 | classical |
| 127 | exact if A.admissible p U b then ∏ i ∈ b, A.K i U else 0 |
| 128 | |
| 129 | def gas (U : Config G n) := ∑' b : Finset ℕ, A.gasOccurrence p b U |
| 130 | |
| 131 | def regularOccurrence (i : ℕ) : Config G n → ℝ := masked p.threshold (A.reg i).support (A.E i) |
| 132 | def additive (U : Config G n) := ∑' i : ℕ, A.regularOccurrence p i U |
| 133 | |
| 134 | /-- Local sanity check: in all-good no fake payloads. -/ |
| 135 | theorem gas_one {U : Config G n} (he : flags p.threshold U = ∅) : A.gas p U = 1 := by |
| 136 | unfold gas |
| 137 | rw [tsum_eq_single ∅] |
| 138 | · have h : A.admissible p U ∅ := by simp [admissible,he] |
| 139 | simp [gasOccurrence,h] |
| 140 | intro b hb |
| 141 | have h : ¬ A.admissible p U b := by |
| 142 | intro had |
| 143 | obtain ⟨i, hi⟩ := Finset.nonempty_iff_ne_empty.mpr hb |
| 144 | obtain ⟨x, hx⟩ := (A.forced i).inventory_ne |
| 145 | have hv : x ∈ flags p.threshold U := by rw [← had.2]; exact Finset.mem_biUnion.mpr ⟨i,hi,hx⟩ |
| 146 | simp [he] at hv |
| 147 | simp [gasOccurrence,h] |
| 148 | end Activities |
| 149 | end YM.RG |