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.OS.Core |
| 2 | import YM.Euclid.Differential |
| 3 | |
| 4 | /-! |
| 5 | # Actual slab operators between separated clusters |
| 6 | |
| 7 | Raw `place` op with *NNReal width*; masking to strict valid positions |
| 8 | required. Read on any quotient via lifts later. Continuity and all-arity multiplet |
| 9 | bound port at all widths, not one-slot estimates. . |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.OS |
| 14 | open Function Set Filter Analysis Word |
| 15 | open scoped Topology NNReal BigOperators ContDiff InnerProductSpace ComplexOrder |
| 16 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 17 | variable (a : Axis) |
| 18 | |
| 19 | def Slab (d : ℝ≥0) (w : L.Word) := 0<d ∧ Positive w a ∧ ∀ p ∈ w, p.1 a < (d:ℝ) |
| 20 | |
| 21 | def buffer (r : ℝ) (d : ℝ≥0) (w : L.Word) := spaced r (positions w) ∧ |
| 22 | ∀ p ∈ w, r ≤ p.1 a ∧ p.1 a ≤ (d:ℝ)-r |
| 23 | |
| 24 | def raised (d : ℝ≥0) (v : L.Word) := carry v ((d:ℝ) • basis a) |
| 25 | |
| 26 | def linked (d : ℝ≥0) (v w : L.Word) : L.Word := v ++ raised a d w |
| 27 | |
| 28 | def opposite (d : ℝ≥0) (v : L.Word) := raised a d (reflect v a) |
| 29 | |
| 30 | /-- Bounded raw multiplets. (`d` integer degree, not width.) -/ |
| 31 | def constrained (d : ℕ) (R : ℝ) (v : L.Word) : Prop := ∀ i ∈ v, i.2.1 ≤ d ∧ ‖i.2.2‖ ≤ R |
| 32 | |
| 33 | variable {a} |
| 34 | |
| 35 | lemma appendsFuture {v w : L.Word} {d} (h : Slab a d v) (hp : Positive w a) : Positive (linked a d v w) a := by |
| 36 | have he := (travel (⟨w,hp⟩ : Future L a) d).property |
| 37 | let F := raised a d w |
| 38 | have ht : Positive F a := he |
| 39 | refine ⟨?_, ?_⟩ |
| 40 | · unfold linked |
| 41 | rw [locations,List.map_append,List.nodup_append] |
| 42 | refine ⟨locations.mp h.2.1.1,locations.mp ht.1,?_⟩ |
| 43 | intro _ hx y hy; obtain ⟨p,hp',rfl⟩ := List.mem_map.mp hx |
| 44 | obtain ⟨q,hq,rfl⟩ := List.mem_map.mp hy |
| 45 | obtain ⟨s, hs, rfl⟩ := List.mem_map.mp hq |
| 46 | intro he; change p.1=s.1+_ at he |
| 47 | have hv := h.2.2 p hp' |
| 48 | rw [he] at hv; simp at hv |
| 49 | exact hv.not_ge (hp.2 s hs).le |
| 50 | intro p hu; exact (List.mem_append.mp hu).elim (fun hp => h.2.1.2 p hp) (fun hp => ht.2 p hp) |
| 51 | |
| 52 | lemma mirrorsSlab {v : L.Word} {d} (hx : Slab a d v) : Slab a d (opposite a d v) := by |
| 53 | have he p (hp : p∈opposite a d v) : 0<p.1 a ∧ p.1 a < (d:ℝ) := by |
| 54 | obtain ⟨u,hu,rfl⟩ := List.mem_map.mp hp |
| 55 | rw [reflectedPoint,List.mem_map] at hu |
| 56 | obtain ⟨w,hw,rfl⟩ := hu |
| 57 | have hv := List.mem_reverse.mp hw |
| 58 | have ht := hx.2.1.2 w hv |
| 59 | have hh := hx.2.2 w hv |
| 60 | simp [Signed.mirrored]; constructor <;> linarith |
| 61 | exact ⟨hx.1,⟨still (reflects a hx.2.1.1) _, fun p hp => (he p hp).1⟩, fun p hp => (he p hp).2⟩ |
| 62 | |
| 63 | lemma connects {v w : L.Word} {d e} (h : Slab a d v) (hh : Slab a e w) : Slab a (d+e) (linked a d v w) := by |
| 64 | refine ⟨add_pos h.1 hh.1,appendsFuture h hh.2.1,?_⟩ |
| 65 | intro i hI; cases List.mem_append.mp hI with |
| 66 | | inl hv => exact (h.2.2 i hv).trans_le (by simp) |
| 67 | | inr hw => |
| 68 | obtain ⟨x,hx,rfl⟩ := List.mem_map.mp hw |
| 69 | have hp := hh.2.2 x hx; simp; linarith |
| 70 | |
| 71 | lemma vacuum_width {d : ℝ≥0} (h : 0<d) : Slab (L := L) a d [] := ⟨h,(air (L := L) a).property,by simp⟩ |
| 72 | |
| 73 | @[simp] lemma invol (a) (u) (v : L.Word) : opposite a u (opposite a u v) = v := by |
| 74 | unfold opposite raised |
| 75 | rw [refl_over, reflect_twice, paths] |
| 76 | rw [show Ortho.move (Signed.reflect a) ((u:ℝ) • basis a) = - ((u:ℝ) • basis a) by |
| 77 | ext i; by_cases h : i=a <;> simp [Signed.mirrored,h], neg_add_cancel, rest] |
| 78 | |
| 79 | def entering {d} {u : L.Word} (hx : Slab a d u) (v : Future L a) : Future L a := |
| 80 | ⟨linked a d u v.val, appendsFuture hx v.property⟩ |
| 81 | |
| 82 | @[simp] lemma when_empty {d} (h : Slab (L := L) a d []) (v : Future L a) : entering h v = travel v d := rfl |
| 83 | |
| 84 | lemma connected {d e} {u v : L.Word} (hp : Slab a d u) (he : Slab a e v) (z : Future L a) : |
| 85 | entering (connects hp he) z=entering hp (entering he z) := by |
| 86 | apply Subtype.ext; simp [entering,linked,raised, add_smul,add_comm] |
| 87 | |
| 88 | lemma realignment {u : L.Word} {d} (w : Slab a d u) (h : S.Homogeneous) (x y : Future L a) : |
| 89 | S.gram a (entering w x).val y.val = S.gram a x.val (entering (mirrorsSlab w) y).val := by |
| 90 | let t : E4 := (d:ℝ) • basis a |
| 91 | unfold Table.gram |
| 92 | rw [← invariance h (twoSides (entering w x).property y.property) t] |
| 93 | congr 1 |
| 94 | have he (u v : L.Word) : reflect (u++v) a = reflect v a ++ reflect u a := by simp [reflectedPoint] |
| 95 | change carry (reflect (u ++ carry x.val t) a ++ y.val) t = _ |
| 96 | rw [he,distribute,distribute,refl_over, paths, show Ortho.move (Signed.reflect a) t = -t by |
| 97 | ext i; by_cases h : i=a <;> simp [Signed.mirrored,t,h], neg_add_cancel, rest,listEq] |
| 98 | rfl |
| 99 | where listEq (u v z : L.Word) : (u++v)++z = u++(v++z) := List.append_assoc .. |
| 100 | |
| 101 | structure Spread (V : Chamber S a) where |
| 102 | place (d : ℝ≥0) (w : L.Word) : V.GNS.H.Op |
| 103 | reads {d : ℝ≥0} {w : L.Word} (h : Slab a d w) (p : Future L a) : |
| 104 | place d w (V.GNS.plant p) = V.GNS.plant (entering h p) |
| 105 | |
| 106 | namespace Spread |
| 107 | variable {V : Chamber S a} (P : Spread V) |
| 108 | |
| 109 | def radius (C : ℝ) (A : ℕ) (v : L.Word) (r : ℝ) := C^v.length * ((v.length:ℝ)/r)^(A*v.length) |
| 110 | |
| 111 | def AllCopy := ∀ (D : ℕ) (R : ℝ), ∃ C : ℝ, ∃ A : ℕ, 0 < C ∧ |
| 112 | ∀ (w : L.Word) (d : ℝ≥0), constrained D R w → Slab a d w → ∀ r : ℝ, |
| 113 | 0 < r → r ≤ 1 → buffer a r d w → ‖P.place d w‖ ≤ radius C A w r |
| 114 | |
| 115 | lemma blank {d} (h : 0 < d) : P.place d []=V.flow.E d := |
| 116 | V.GNS.by_bud fun i => (P.reads (vacuum_width h) _).trans (V.atBirth d i) |
| 117 | |
| 118 | lemma concatenate {d e} {u v : L.Word} (h : Slab a d u) (he : Slab a e v) : |
| 119 | P.place (d+e) (linked a d u v) = (P.place d u).comp (P.place e v) := by |
| 120 | apply V.GNS.by_bud; intro i |
| 121 | rw [ContinuousLinearMap.comp_apply,P.reads he,P.reads h, P.reads (connects h he),connected h he] |
| 122 | |
| 123 | lemma adjoints {d} {u : L.Word} (h : Slab a d u) (hv : S.Homogeneous) : |
| 124 | (P.place d u).adjoint = P.place d (opposite a d u) := by |
| 125 | apply V.GNS.by_bud; intro x |
| 126 | refine V.GNS.whole.eq_of_inner_left ℂ fun f => ?_ |
| 127 | rw [ContinuousLinearMap.adjoint_inner_left] |
| 128 | induction f using Finsupp.induction_linear with |
| 129 | | zero => simp |
| 130 | | add i j hi hj => simp only [map_add,inner_add_right,hi,hj] |
| 131 | | single i c => |
| 132 | simp only [Kernel.Gram.stems,Finsupp.linearCombination_single,map_smul, |
| 133 | inner_smul_right,P.reads h _,P.reads (mirrorsSlab h) _,V.GNS.measure] |
| 134 | congr 1 |
| 135 | -- lhs input intermediate earlier than counterpart; use reflect twice |
| 136 | rw [realignment (mirrorsSlab h) hv]; exact congr_arg (S.gram a _) (show _ from by simp [entering,linked]) |
| 137 | |
| 138 | lemma over_word (s : Cross a) {d} {u : L.Word} (h : Slab a d u) : |
| 139 | Slab a d (carry u s.val) := by |
| 140 | refine ⟨h.1,(over (⟨u,h.2.1⟩ : Future L a) s).property,?_⟩ |
| 141 | intro i hi; obtain ⟨w,hw,rfl⟩ := List.mem_map.mp hi |
| 142 | simpa [show s.val a=0 from s.property] using h.2.2 _ hw |
| 143 | |
| 144 | lemma perpendicular {d} {u : L.Word} (h : Slab a d u) (s : Cross a) : |
| 145 | (V.flow.U s).comp (P.place d u) = (P.place d (carry u s.val)).comp (V.flow.U s) := by |
| 146 | apply V.GNS.by_bud; intro v |
| 147 | simp only [ContinuousLinearMap.comp_apply,P.reads h _,← V.across s _, P.reads (over_word s h) _] |
| 148 | apply congr_arg; apply Subtype.ext |
| 149 | simp [over,entering,linked,raised, add_comm] |
| 150 | |
| 151 | /-- Derivatives on any raw representative compatible with T quotient data. |
| 152 | Separate from `Reads` and requires same-C respect. -/ |
| 153 | structure Laws {B : Table L} (R : DiffPlan B) : Prop where |
| 154 | cap : P.AllCopy |
| 155 | regular (d : ℝ≥0) (n : ℕ) (v : Fin n → L.Token) : |
| 156 | ContDiffOn ℝ ∞ (fun x => P.place d (realize v x)) {x | Slab a d (realize v x)} |
| 157 | positional (d : ℝ≥0) (n : ℕ) (v : Fin n → L.Token) (x : Points n) (p : Fin n) |
| 158 | (h : Slab a d (realize v x)) (j : Axis) : |
| 159 | let i := (v p).1 |
| 160 | Analysis.D (Points.direction p j) (fun y => P.place d (realize v y)) x = |
| 161 | P.place d (realize (Function.update v p ⟨i+1,B.representative _ |
| 162 | (R.deriv i j (B.project i (v p).2))⟩) x) |
| 163 | end Spread |
| 164 | end YM.OS |