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.Phase.Mixture |
| 2 | import YM.Ward.Plants |
| 3 | |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # A common slab, and testing its operators |
| 8 | |
| 9 | For the inheritance step B09. Extend one character by Hahn--Banach just as a |
| 10 | continuous *linear* functional (no order or multiplicativity assumed outside |
| 11 | the algebra). Work at the level before compression; test dense word matrix |
| 12 | elements, keeping track of the extra external positions this introduces. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Work.B09 |
| 18 | open Set Filter Function Analysis OS Word |
| 19 | open scoped Topology ContDiff NNReal InnerProductSpace BigOperators |
| 20 | |
| 21 | variable {G : Gauge} {L : Register G} {S T : Table L} {V : Chamber S timeAxis} {A : Spread V} |
| 22 | variable {n : ℕ} {s : E4} {D : ℝ≥0} |
| 23 | |
| 24 | def InsideTimes (s : E4) (D : ℝ≥0) (y : E4) := |
| 25 | 0 < (y+s) timeAxis ∧ (y+s) timeAxis < (D:ℝ) |
| 26 | |
| 27 | def Padded (s : E4) (D : ℝ≥0) (x : Points n) := |
| 28 | 0 < D ∧ x ∈ conf n ∧ ∀ i, InsideTimes s D (x i) |
| 29 | |
| 30 | theorem carry_realize (v : Fin n → L.Token) (x : Points n) : |
| 31 | carry (realize v x) s = realize v (Points.across s x) := by |
| 32 | unfold carry realize |
| 33 | rw [List.map_ofFn]; rfl |
| 34 | |
| 35 | lemma Padded.slab {x : Points n} (h : Padded s D x) (v : Fin n → L.Token) : |
| 36 | Slab timeAxis D (carry (realize v x) s) := by |
| 37 | rw [carry_realize] |
| 38 | refine ⟨h.1, ⟨(realized ..).2 (Points.across_in s h.2.1), ?_⟩, ?_⟩ <;> |
| 39 | (intro p hp; obtain ⟨i, rfl⟩ := List.mem_ofFn.mp hp) |
| 40 | exact (h.2.2 i).1 |
| 41 | exact (h.2.2 i).2 |
| 42 | |
| 43 | /-- Can pack any given compact (will use the *whole window*) in addition |
| 44 | to any finite configuration. -/ |
| 45 | lemma exists_padded {x : Points n} (h : x ∈ conf n) {K : Set E4} (hK : IsCompact K) : |
| 46 | ∃ (s : E4) (D : ℝ≥0), Padded s D x ∧ ∀ y ∈ K, InsideTimes s D y := by |
| 47 | let J := K ∪ range x.ofLp |
| 48 | let f := fun y : E4 => y timeAxis |
| 49 | have hi : IsCompact (f '' J) := |
| 50 | (hK.union (finite_range x.ofLp).isCompact).image (show Continuous f by unfold f; fun_prop) |
| 51 | obtain ⟨a, ha⟩ := hi.bddBelow |
| 52 | obtain ⟨b, hb⟩ := hi.bddAbove |
| 53 | let d := max 0 (b+1-a) + 1 |
| 54 | have hd : 0 < d := add_pos_of_nonneg_of_pos (le_max_left ..) zero_lt_one |
| 55 | let D : ℝ≥0 := ⟨d, hd.le⟩ |
| 56 | let s := (1-a) • basis timeAxis |
| 57 | have inside (y) (hy : y∈J) : InsideTimes s D y := by |
| 58 | have hl : a ≤ y timeAxis := ha ⟨y, hy, rfl⟩ |
| 59 | have hr : y timeAxis ≤ b := hb ⟨y, hy, rfl⟩ |
| 60 | have hh := le_max_right 0 (b+1-a) |
| 61 | simp only [InsideTimes, D, s, PiLp.add_apply, PiLp.smul_apply, basis_eq, if_true, |
| 62 | smul_eq_mul, mul_one, d] |
| 63 | constructor |
| 64 | · linarith |
| 65 | · change y timeAxis + (1-a) < max 0 (b+1-a) + 1 |
| 66 | linarith |
| 67 | exact ⟨s, D, ⟨show 0 < D from hd, h, fun i => inside _ (Or.inr (mem_range_self i))⟩, |
| 68 | fun y hy => inside y (Or.inl hy)⟩ |
| 69 | |
| 70 | lemma Padded.near {x : Points n} (h : Padded s D x) : ∀ᶠ y in 𝓝 x, Padded s D y := by |
| 71 | have ht : ∀ᶠ y : Points n in 𝓝 x, ∀ i, InsideTimes s D (y i) := by |
| 72 | refine eventually_all.mpr fun i => ?_ |
| 73 | have hc : Continuous (fun y : Points n => (y i+s) timeAxis) := by fun_prop |
| 74 | exact hc.continuousAt (isOpen_Ioo.mem_nhds (show _ ∈ Ioo 0 (D:ℝ) from h.2.2 i)) |
| 75 | filter_upwards [ht, (conf_open _).mem_nhds h.2.1] with y hy hz |
| 76 | exact ⟨h.1, hz, hy⟩ |
| 77 | |
| 78 | lemma slab_near (v : Fin n → L.Token) {x : Points n} (h : Slab timeAxis D (realize v x)) : |
| 79 | ∀ᶠ y : Points n in 𝓝 x, Slab timeAxis D (realize v y) := by |
| 80 | have hp : Padded 0 D x := by |
| 81 | refine ⟨h.1, (realized ..).1 h.2.1.1, fun i => ?_⟩ |
| 82 | have hi : (x i,v i) ∈ realize v x := List.mem_ofFn.mpr ⟨i,rfl⟩ |
| 83 | rw [InsideTimes, add_zero] |
| 84 | exact ⟨h.2.1.2 _ hi, h.2.2 _ hi⟩ |
| 85 | exact hp.near.mono fun y hy => by simpa using hy.slab v |
| 86 | |
| 87 | /-- Raw insertion; evaluate only on padded configurations. -/ |
| 88 | def middle (A : Spread V) (s : E4) (D : ℝ≥0) (v : Fin n → S.Tag) (x : Points n) : V.H.Op := |
| 89 | A.place D (carry (realize (Ward.expose ∘ v) x) s) |
| 90 | |
| 91 | lemma middle_eq_comp (s : E4) (D : ℝ≥0) (v : Fin n → S.Tag) : |
| 92 | middle A s D v = (fun y => A.place D (realize (Ward.expose ∘ v) y)) ∘ Points.across s := by |
| 93 | funext y |
| 94 | rw [middle, carry_realize]; rfl |
| 95 | |
| 96 | lemma across_derivative (s : E4) (x : Points n) : |
| 97 | HasFDerivAt (Points.across s) (ContinuousLinearMap.id ℝ _) x := |
| 98 | (hasFDerivAt_id x).add_const (points fun _ => s) |
| 99 | |
| 100 | lemma middle_diff {x : Points n} (h : Padded s D x) (v : Fin n → S.Tag) {P : DiffPlan S} |
| 101 | (hp : A.Laws P) : DifferentiableAt ℝ (middle A s D v) x := by |
| 102 | rw [middle_eq_comp] |
| 103 | let u := Ward.expose ∘ v |
| 104 | have hk : Slab timeAxis D (realize u (Points.across s x)) := carry_realize u x ▸ h.slab u |
| 105 | exact (((hp.regular D n u _ hk).contDiffAt (slab_near u hk)).differentiableAt (by simp)).comp x |
| 106 | (across_derivative s x).differentiableAt |
| 107 | |
| 108 | /-- Continuous evaluator already on the raw operator space. Agrees at all |
| 109 | valid insertions with evaluating the class kernels in this character. -/ |
| 110 | def Evaluates (T : Table L) (A : Spread V) (φ : V.H.Op →L[ℂ] ℂ) := |
| 111 | ∀ {s D n} {x : Points n}, Padded s D x → ∀ v : Fin n → S.Tag, |
| 112 | S.useAt T x v = φ (middle A s D v x) |
| 113 | |
| 114 | lemma has_evaluator {P : A.Resolution} {i : P.X} (hp : P.Out) (he : P.receives T i) : |
| 115 | ∃ φ, Evaluates T A φ := by |
| 116 | let B := A.algebra.toSubalgebra.toSubmodule |
| 117 | let f : StrongDual ℂ B := { (P.character i).toAlgHom.toLinearMap with cont := hp.values i } |
| 118 | obtain ⟨g, hg, -⟩ := exists_extension_norm_eq (𝕜 := ℂ) (E := V.VacuumOp) B f |
| 119 | let c : V.H.Op →L[ℂ] V.VacuumOp := |
| 120 | ((ContinuousLinearMap.compL ℂ V.D V.H V.D) V.D.orthogonalProjectionOnto).comp |
| 121 | ((ContinuousLinearMap.compL ℂ V.D V.H V.H).flip V.D.subtypeL) |
| 122 | refine ⟨g.comp c, ?_⟩ |
| 123 | intro s D n x hx v |
| 124 | let w := realize (Ward.expose ∘ v) x |
| 125 | have hs := hx.slab (Ward.expose ∘ v) |
| 126 | calc |
| 127 | S.useAt T x v = T.expect w := (T.readAt (Ward.expose ∘ v) x).symm |
| 128 | _ = P.character i (A.slot _ _ hs) := he _ ((realized ..).2 hx.2.1) _ _ hs |
| 129 | _ = _ := (hg (A.slot _ _ hs)).symm |
| 130 | |
| 131 | /-- The linearly testing word-pair matrix element (note the op acts on |
| 132 | the right ket). -/ |
| 133 | def tester (V : Chamber S timeAxis) (l r : Future L timeAxis) : V.H.Op →L[ℂ] ℂ := |
| 134 | (innerSL ℂ (V.GNS.plant l)).comp (ContinuousLinearMap.apply ℂ V.H (V.GNS.plant r)) |
| 135 | |
| 136 | lemma tester_ext {X Y : V.H.Op} (he : ∀ l r, tester V l r X = tester V l r Y) : X = Y := by |
| 137 | refine V.GNS.by_bud fun r => ?_ |
| 138 | refine V.GNS.whole.eq_of_inner_right ℂ fun f => ?_ |
| 139 | induction f using Finsupp.induction_linear with |
| 140 | | zero => simp |
| 141 | | add i j hi hj => simp only [map_add, inner_add_left, hi, hj] |
| 142 | | single i a => |
| 143 | simp only [Kernel.Gram.stems, Finsupp.linearCombination_single, inner_smul_left] |
| 144 | exact congr_arg _ (show inner ℂ (V.GNS.plant i) (X (V.GNS.plant r)) = |
| 145 | inner ℂ (V.GNS.plant i) (Y (V.GNS.plant r)) from he i r) |
| 146 | |
| 147 | def exterior (s : E4) (D : ℝ≥0) (l r : Future L timeAxis) : L.Word := |
| 148 | carry (reflect l.val timeAxis ++ raised timeAxis D r.val) (-s) |
| 149 | |
| 150 | /-- The extra test points from comparing operators sit strictly outside |
| 151 | our entire slab (not just disjoint from the particular insertion). -/ |
| 152 | lemma exterior_not_inside (l r : Future L timeAxis) {p} (h : p ∈ exterior s D l r) : |
| 153 | ¬ InsideTimes s D p.1 := by |
| 154 | obtain ⟨z, hz, rfl⟩ := List.mem_map.mp h |
| 155 | change ¬ InsideTimes s D (z.1 + -s) |
| 156 | simp only [InsideTimes, neg_add_cancel_right] |
| 157 | rcases List.mem_append.mp hz with hz|hz |
| 158 | · exact fun w => (strictly l.property hz).not_gt w.1 |
| 159 | obtain ⟨t, ht, rfl⟩ := List.mem_map.mp hz |
| 160 | intro H |
| 161 | have hw := H.2 |
| 162 | have hy := r.property.2 t ht |
| 163 | simp at hw; linarith |
| 164 | |
| 165 | lemma matrix_of_placed (A : Spread V) (H : S.Hierarchy) {w : L.Word} |
| 166 | (h : Slab timeAxis D (carry w s)) (l r : Future L timeAxis) : |
| 167 | distinct (w ++ exterior s D l r) ∧ |
| 168 | tester V l r (A.place D (carry w s)) = S.expect (w ++ exterior s D l r) := by |
| 169 | let z := reflect l.val timeAxis ++ (entering h r).val |
| 170 | have hz : distinct z := twoSides l.property (entering h r).property |
| 171 | have hp : List.Perm z (carry (w ++ exterior s D l r) s) := by |
| 172 | dsimp only [z] |
| 173 | rw [distribute, exterior, paths, neg_add_cancel, rest] |
| 174 | change List.Perm (_ ++ (_ ++ _)) (_ ++ (_ ++ _)) |
| 175 | rw [← List.append_assoc, ← List.append_assoc] |
| 176 | exact List.Perm.append_right _ List.perm_append_comm |
| 177 | have hd : distinct (w ++ exterior s D l r) := by |
| 178 | have h' := locations.mpr ((hp.map Prod.fst).nodup (locations.mp hz)) |
| 179 | simpa using still h' (-s) |
| 180 | refine ⟨hd, ?_⟩ |
| 181 | change inner ℂ _ (A.place _ _ _) = _ |
| 182 | rw [A.reads h, V.GNS.measure] |
| 183 | change S.expect z = _ |
| 184 | rw [← Table.order S H.laws.toSymmetric hz hp, invariance H.translations hd] |
| 185 | |
| 186 | /-- Tail of the word in a matrix-element test, expressed in unshifted |
| 187 | coordinates, with the distinguished head removed. -/ |
| 188 | def spectators (s : E4) (D : ℝ≥0) (x : Points (n+1)) (q : Fin n → S.Tag) |
| 189 | (l r : Future L timeAxis) : L.Word := |
| 190 | realize (Ward.expose ∘ q) (Points.tail x) ++ exterior s D l r |
| 191 | |
| 192 | lemma realize_head (x : Points (n+1)) (q : Fin n → S.Tag) (t : S.Tag) : |
| 193 | realize (Ward.expose ∘ Fin.cons t q) x = |
| 194 | (x 0, Ward.expose t) :: realize (Ward.expose ∘ q) (Points.tail x) := by |
| 195 | simp only [realize, List.ofFn_succ, comp_apply, Fin.cons_zero, Fin.cons_succ]; rfl |
| 196 | |
| 197 | lemma matrix_at_center (H : S.Hierarchy) {x : Points (n+1)} (hx : Padded s D x) |
| 198 | (q : Fin n → S.Tag) (l r : Future L timeAxis) (t : S.Tag) : |
| 199 | let v := spectators s D x q l r |
| 200 | Points.cons (x 0) (positions v) ∈ conf (v.length+1) ∧ |
| 201 | tester V l r (middle A s D (Fin.cons t q) x) = |
| 202 | S.useAt S (Points.cons (x 0) (positions v)) (Fin.cons t (S.classTokens ∘ tokens v)) := by |
| 203 | dsimp only |
| 204 | let v := spectators s D x q l r |
| 205 | have hw := matrix_of_placed A H (hx.slab (Ward.expose ∘ Fin.cons t q)) l r |
| 206 | change distinct _ ∧ tester _ _ _ (middle _ _ _ _ _) = S.expect _ at hw |
| 207 | rw [realize_head] at hw |
| 208 | have hv : distinct ((x 0, Ward.expose t)::v) := hw.1 |
| 209 | refine ⟨Ward.disjoint_table hv, hw.2.trans ?_⟩ |
| 210 | change S.expect ((x 0, Ward.expose t)::v) = _ |
| 211 | rw [Ward.exact_table hv H] |
| 212 | simp only [Ward.sends_back]; rfl |
| 213 | |
| 214 | end YM.Work.B09 |