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.EveryPhase.SurjectiveHelpers |
| 2 | import YM.EveryPhase.Hot |
| 3 | |
| 4 | /-! |
| 5 | # No missing directions in the boundary isometry |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace YM.EveryPhase |
| 11 | -- EUCLIDEAN READING OF `shot`. Reuse the argument from C22 |
| 12 | -- (`fromRef` through `euclideanRef`; `euclideanShot` and `ample_room`). |
| 13 | section pureShot |
| 14 | open Function Set Filter Complex |
| 15 | open Mink Boundary OS Word |
| 16 | open scoped Topology NNReal InnerProductSpace BigOperators ContDiff |
| 17 | |
| 18 | variable {G : Gauge} {L : Register G} {n m : ℕ} {S T : Table L} {V : Chamber T timeAxis} |
| 19 | |
| 20 | -- Shot or intermediate train with preceding reference Z,X of padding q |
| 21 | private def fromRef (B : Small S V) (p q : ℝ≥0) : |
| 22 | ∀ {n}, Times n → SpacePoints n → (Fin n → S.Union) → ℂ → Space3 → V.H |
| 23 | | 0,_,_,_,_,_ => V.omega |
| 24 | | n+1,z,x,v,Z,X => |
| 25 | Small.rip (z 0-Z) (q+p) (x 0-X) ((B.bar p (v 0)) (B.trainB p n (Fin.tail z) |
| 26 | (Fin.tail x) (Fin.tail v) (z 0) (x 0))) |
| 27 | |
| 28 | private lemma fromTrain (B : Small S V) (p : ℝ≥0) (z : Times n) (x : SpacePoints n) |
| 29 | (v : Fin n → S.Union) (Z : ℂ) (X : Space3) : |
| 30 | B.trainB p n z x v Z X = fromRef B p p z x v Z X := by |
| 31 | cases n <;> simp only [fromRef,Small.trainB] |
| 32 | |
| 33 | private lemma fromPoint (B : Small S V) (p : ℝ≥0) (v : Fin n → S.Union) (y : Heights n) (k : Points n) : |
| 34 | B.shot p n v y k = fromRef B p 0 (shift k y) (trace k) v 0 0 := by |
| 35 | cases n <;> simp only [Small.shot,fromRef,zero_add,sub_zero] |
| 36 | |
| 37 | private lemma nextRef (B : Small S V) (p q : ℝ≥0) (z : Times (n+1)) (x : SpacePoints (n+1)) |
| 38 | (v : Fin (n+1) → S.Union) (Z : ℂ) (X : Space3) : |
| 39 | fromRef B p q z x v Z X = Small.rip (z 0-Z) (q+p) (x 0-X) ((B.bar p (v 0)) |
| 40 | (fromRef B p p (Fin.tail z) (Fin.tail x) (Fin.tail v) (z 0) (x 0))) := by |
| 41 | rw [← fromTrain]; rfl |
| 42 | |
| 43 | -- Hypotheses actually needed on imaginary coordinates in fromRef. |
| 44 | private def Room (p q : ℝ≥0) (y : Heights n) (Y : ℝ) : Prop := |
| 45 | (∀ i, ↑(q+p) < y i - Y) ∧ (∀ i j : Fin n, i < j → ↑(p+p) < y j - y i) |
| 46 | |
| 47 | private lemma tailRoom {p q : ℝ≥0} {y : Heights (n+1)} {Y : ℝ} (h : Room p q y Y) : |
| 48 | Room p p (Fin.tail y) (y 0) := ⟨fun i => h.2 0 i.succ (Fin.succ_pos i), |
| 49 | fun i j hij => h.2 i.succ j.succ (Fin.succ_lt_succ_iff.mpr hij)⟩ |
| 50 | |
| 51 | private def pinned (e : S.Tag) := S.pin e.1 e.2 |
| 52 | private def raw (e : S.Tag) : L.Token := ⟨e.1,S.representative e.1 e.2⟩ |
| 53 | private def iz (y : ℝ) : ℂ := ↑y*I |
| 54 | |
| 55 | private lemma oneSlab (e : L.Token) {p : ℝ≥0} (hp : 0<p) : |
| 56 | Slab timeAxis (p+p) [(position 0 p,e)] := by |
| 57 | have hh : YM.time (position 0 p) = p := by simp |
| 58 | refine ⟨add_pos hp hp, ⟨locations.mpr (by simp),?_⟩,?_⟩ |
| 59 | · intro i hi; obtain rfl := List.mem_singleton.mp hi |
| 60 | rw [show (position _ _ : E4) timeAxis = _ from hh] |
| 61 | exact hp |
| 62 | intro i hi; obtain rfl := List.mem_singleton.mp hi |
| 63 | rw [show (position _ _ : E4) timeAxis = _ from hh]; simp [hp] |
| 64 | |
| 65 | private lemma euclideanRef {B : Small S V} {A : Spread V} |
| 66 | (link : B.concretized A) {p : ℝ≥0} (hp : 0<p) |
| 67 | (q : ℝ≥0) (y : Heights n) (x : SpacePoints n) (v : Fin n → S.Tag) (Y : ℝ) (X : Space3) |
| 68 | (h : Room p q y Y) : |
| 69 | ∃ b : Future L timeAxis, |
| 70 | b.val = List.ofFn (fun i => (position (x i-X) (y i-Y-(q:ℝ)),raw (v i))) ∧ |
| 71 | fromRef B p q (iz ∘ y) x (pinned ∘ v) (iz Y) X = V.GNS.plant b := by |
| 72 | induction n generalizing q Y X with |
| 73 | | zero => exact ⟨air timeAxis,List.ofFn_zero.symm,rfl⟩ |
| 74 | | succ n ih => |
| 75 | obtain ⟨b,hb,hplant⟩ := ih p (Fin.tail y) (Fin.tail x) (Fin.tail v) _ (x 0) (tailRoom h) |
| 76 | let r := (y 0 - Y - ↑(q+p)).toNNReal |
| 77 | have hg : 0 < y 0 - Y - ↑(q+p) := sub_pos.mpr (h.1 0) |
| 78 | have hr : 0<r := Real.toNNReal_pos.mpr hg |
| 79 | have hco : (r:ℝ) = y 0 - Y - ↑(q+p) := Real.coe_toNNReal _ hg.le |
| 80 | let w := entering (oneSlab (raw (v 0)) hp) b |
| 81 | let s := Small.bufferF (x 0-X) |
| 82 | refine ⟨travel (over w s) r, ?_, ?_⟩ |
| 83 | · dsimp only [travel,over,w,s,Small.bufferF,entering,linked,raised] |
| 84 | rw [hb]; simp only [carry,List.singleton_append,List.map_cons,List.map_ofFn] |
| 85 | rw [List.ofFn_succ] |
| 86 | congr 1 |
| 87 | · refine Prod.ext (ext_by ?_ ?_) rfl |
| 88 | · simp |
| 89 | simp [hco]; ring |
| 90 | apply congr_arg List.ofFn |
| 91 | funext i; refine Prod.ext (ext_by ?_ ?_) rfl |
| 92 | · simp [Fin.tail] |
| 93 | simp [Fin.tail,hco]; ring |
| 94 | rw [nextRef] |
| 95 | have hI : Small.interval (iz (y 0)-iz Y) (q+p) = OS.Semigroup.duration r := by |
| 96 | apply Complex.ext <;> simp [Small.interval,iz,hco,OS.Semigroup.duration] |
| 97 | have he : B.bar p (pinned (v 0)) = A.place (p+p) [(position 0 p,raw (v 0))] := |
| 98 | link (v 0).1 (v 0).2 p hp |
| 99 | change V.flow.F (Small.interval (iz (y 0) - iz Y) (q+p)) (V.flow.U s |
| 100 | ((B.bar p (pinned (v 0))) (fromRef B p p (iz ∘ Fin.tail y) (Fin.tail x) _ (iz (y 0)) (x 0)))) = _ |
| 101 | rw [show Fin.tail (pinned ∘ v) = pinned ∘ Fin.tail v from rfl, hplant,hI,V.flow.roots_heat hr,he] |
| 102 | rw [A.reads (oneSlab (raw (v 0)) hp) b,← V.across,← V.atBirth] |
| 103 | |
| 104 | private lemma euclideanShot {B : Small S V} {A : Spread V} |
| 105 | (link : B.concretized A) {p : ℝ≥0} (hp : 0<p) |
| 106 | (y : Heights n) (x : SpacePoints n) (v : Fin n → S.Tag) |
| 107 | (h : Room p 0 y 0) : |
| 108 | ∃ b : Future L timeAxis, |
| 109 | b.val = List.ofFn (fun i => (position (x i) (y i),raw (v i))) ∧ |
| 110 | fromRef B p 0 (iz ∘ y) x (pinned ∘ v) 0 0 = V.GNS.plant b := by |
| 111 | simpa only [iz,NNReal.coe_zero, Complex.ofReal_zero,zero_mul,sub_zero] using |
| 112 | euclideanRef link hp 0 y x v 0 0 h |
| 113 | |
| 114 | private lemma ample_room {p : ℝ≥0} {y : Heights n} (h : Small.ample p y) : Room p 0 y 0 := by |
| 115 | refine ⟨fun i => ?_, fun i j hij => ?_⟩ |
| 116 | · simp only [zero_add,sub_zero]; linarith [h.2 i,p.coe_nonneg] |
| 117 | rw [NNReal.coe_add]; linarith [h.1.2.2 i j hij,p.coe_nonneg] |
| 118 | |
| 119 | lemma bright_shot {B : Boundary.Small S V} {A : Spread V} (he : B.concretized A) {p : ℝ≥0} |
| 120 | (x : SpacePoints n) (v : Fin n → S.Tag) (y : Heights n) (hp : Boundary.Small.ample p y) : |
| 121 | ∃ b : Future L timeAxis, |
| 122 | b.val = Word.realize (fun i => ⟨(v i).1,S.representative _ (v i).2⟩) (place x y) ∧ |
| 123 | V.GNS.plant b=B.shot p n (fun i => S.pin (v i).1 (v i).2) y (place x 0) := by |
| 124 | obtain ⟨b,hb,H⟩ := euclideanShot he hp.1.1 y x v (ample_room hp) |
| 125 | refine ⟨b,hb,?_⟩ |
| 126 | rw [fromPoint, show shift (place x 0) y=iz ∘ y by funext; simp [iz,shift,place], |
| 127 | show Boundary.trace (place x 0)=x by funext; simp [Boundary.trace,place]] |
| 128 | exact H.symm |
| 129 | end pureShot |
| 130 | |
| 131 | open Function Set Filter MeasureTheory Spec Boundary OS Org Word Table.Pairing Next.BOUNDARY |
| 132 | open scoped Topology NNReal ContDiff InnerProductSpace |
| 133 | variable {G : Gauge} {C : Family G} {S T : Table C.book} {V : Chamber T timeAxis} |
| 134 | {A : Spread V} {Y : Show.Rhythm (C:=C) S V A} {X : Wightman S} |
| 135 | {J : X.operators.H →L[ℂ] V.H} {R : Algebra S} {W : Surface S} |
| 136 | {n : ℕ} |
| 137 | |
| 138 | private lemma plant_ext {b c : Future C.book timeAxis} (he : ∀ v : Future C.book timeAxis, |
| 139 | T.gram timeAxis v.val b.val=T.gram timeAxis v.val c.val) : V.GNS.plant b=V.GNS.plant c := by |
| 140 | apply V.GNS.whole.eq_of_inner_right ℂ |
| 141 | intro x |
| 142 | induction x using Finsupp.induction_linear with |
| 143 | | zero => simp |
| 144 | | add f g hf hg => simp only [map_add,inner_add_left,hf,hg] |
| 145 | | single i c => simp only [Kernel.Gram.stems,Finsupp.linearCombination_single,inner_smul_left, |
| 146 | V.GNS.measure, he] |
| 147 | |
| 148 | private lemma same_plant (ht : T.Symmetric) (hr : T.respects S) (x : Points n) (h : single x timeAxis) |
| 149 | (v w : Fin n → C.book.Token) (hv : S.classTokens ∘ v=S.classTokens ∘ w) : |
| 150 | V.GNS.plant ⟨Word.realize v x,living v h⟩=V.GNS.plant ⟨Word.realize w x,living w h⟩ := by |
| 151 | apply plant_ext; intro u |
| 152 | obtain ⟨m,d,⟨p,f⟩,rfl⟩ := Work.B14.addresses u |
| 153 | simp only [Work.B14.mkFuture, Table.Pairing.displacement T ht _ _ p.property h, |
| 154 | ← S.at_project T ht hr (spans p.property h)] |
| 155 | apply congrArg (S.useAt T _) |
| 156 | funext i; refine Fin.addCases ?_ ?_ i |
| 157 | · intro i; simp [tied] |
| 158 | intro i; simpa [tied] using congrFun hv i |
| 159 | |
| 160 | lemma ordered_covered (H : Attachment X V J) (h : Show.Reveals R X.spin X.J Y W) |
| 161 | (hs : T.Symmetric) (hr : T.respects S) (ht : Bid.Hull Y.bits Y.lift X.J) |
| 162 | (hi : Y.lift.NonTangentialFree W) (x : Points n) |
| 163 | (v : Fin n → C.book.Token) (hp : single x timeAxis) (he : StrictMono (fun i => YM.time (x i))) : |
| 164 | V.GNS.plant ⟨Word.realize v x,living v hp⟩ ∈ J.range := by |
| 165 | let y i := YM.time (x i) |
| 166 | let a := trace x |
| 167 | have hh : place a y=x := by ext1; simp [place,y,a,trace] |
| 168 | let w i := S.classTokens (v i) |
| 169 | let u (i : Fin n) : C.book.Token := ⟨(w i).1,S.representative _ (w i).2⟩ |
| 170 | have hA : S.classTokens ∘ v=S.classTokens ∘ u := by |
| 171 | funext i; change w i=⟨(w i).1,S.project _ (S.representative _ _)⟩; rw [S.rep] |
| 172 | obtain ⟨p, hP⟩ := margins_exists (show y∈positiveHeight n from ⟨he,hp.2⟩) |
| 173 | obtain ⟨b,hb,hB⟩ := bright_shot Y.linked a w y hP.2 |
| 174 | have heq : (⟨Word.realize u x,living u hp⟩ : Future C.book timeAxis)=b := Subtype.ext (by rw [hb,hh]) |
| 175 | rw [same_plant hs hr x hp _ _ hA, heq,hB] |
| 176 | exact shot_in H h ht hi _ (p,y) hP _ |
| 177 | |
| 178 | lemma onto (H : Attachment X V J) (h : Show.Reveals R X.spin X.J Y W) |
| 179 | (hs : T.Symmetric) (hp : T.Smooth) (hr : T.respects S) (ht : Bid.Hull Y.bits Y.lift X.J) |
| 180 | (hi : Y.lift.NonTangentialFree W) : Surjective J := by |
| 181 | have covered (b : Future C.book timeAxis) : V.GNS.plant b∈ J.range := by |
| 182 | obtain ⟨n,d,⟨p,f⟩,rfl⟩ := Work.B14.addresses b |
| 183 | let y (i : Fin n) := YM.time (p.val i) |
| 184 | let l : Equiv.Perm (Fin n) := Tuple.sort y |
| 185 | let k := Points.rearrange l p.val |
| 186 | let t : Work.B14.Address C.book timeAxis (d ∘ l) := |
| 187 | (⟨k,Points.rearrange_in l p.property.1,fun i => p.property.2 _⟩,fun i => f (l i)) |
| 188 | have he : List.Perm (Work.B14.mkFuture _ t).val (Work.B14.mkFuture d (p,f)).val := |
| 189 | l.ofFn_comp_perm fun i => ((p.val i), (⟨d i,f i⟩ : C.book.Token)) |
| 190 | have hh : V.GNS.plant (Work.B14.mkFuture d (p,f))=V.GNS.plant (Work.B14.mkFuture _ t) := |
| 191 | plant_ext fun q => Table.order T hs (twoSides q.property (Work.B14.mkFuture _ t).property) |
| 192 | (he.append_left _) |
| 193 | rw [hh] |
| 194 | let r i := YM.time (k i) |
| 195 | have hK : Monotone r := Tuple.monotone_sort y |
| 196 | let g (e : ℝ≥0) := place (trace k) (r+(e:ℝ) • rate n) |
| 197 | have hm u i : YM.time (g u i)=(r+(u:ℝ) • rate n) i := by simp only [g,place,points_apply,time_position] |
| 198 | have hG (u : ℝ≥0) (hx : 0<u) : StrictMono (fun i => YM.time (g u i)) := by |
| 199 | simp_rw [hm]; exact dawns (show r∈sunrise n from hK) (show 0<(u:ℝ) from hx) |
| 200 | have hg : g 0=k := by ext1; simp [g,place,trace,r] |
| 201 | have hl (u : ℝ≥0) : single (g u) timeAxis := by |
| 202 | rcases u.coe_nonneg.eq_or_lt with hu|hu |
| 203 | · have he : u=0 := Subtype.ext hu.symm |
| 204 | rw [he,hg]; exact t.1.2 |
| 205 | refine ⟨fun i j hq => (hG u hu).injective (congrArg YM.time hq), fun i => ?_⟩ |
| 206 | change 0 < YM.time (g u i) |
| 207 | rw [hm] |
| 208 | change 0 < r i+(u:ℝ)*(i.val:ℝ) |
| 209 | exact add_pos_of_pos_of_nonneg (p.property.2 _) (by positivity) |
| 210 | let F (u : ℝ≥0) : Work.B14.Address C.book timeAxis (d ∘ l) := (⟨g u, hl u⟩,t.2) |
| 211 | have hx : Continuous F := by |
| 212 | have he : Continuous g := by unfold g place points position; fun_prop |
| 213 | exact (he.subtype_mk _).prodMk continuous_const |
| 214 | have hf : F 0=t := Prod.ext (Subtype.ext hg) rfl |
| 215 | rw [← hf] |
| 216 | apply (rangeClosed H).mem_of_tendsto ((((Work.B14.plant_cont V.GNS hs hp (d ∘ l)).comp hx).tendsto (0:ℝ≥0)).mono_left (nhdsWithin_le_nhds (s:=Ioi 0))) |
| 217 | filter_upwards [self_mem_nhdsWithin] with i hI |
| 218 | exact ordered_covered H h hs hr ht hi _ (fun j => ⟨(d ∘ l) j,t.2 j⟩) (hl i) (hG i hI) |
| 219 | have he : Submodule.span ℂ (Set.range V.GNS.plant) ≤ J.range := |
| 220 | Submodule.span_le.mpr (by rintro _ ⟨y,rfl⟩; exact covered y) |
| 221 | intro v |
| 222 | have hp : Dense (J.range : Set V.H) := V.GNS.dense.mono he |
| 223 | exact closure_minimal (Subset.refl (J.range : Set V.H)) (rangeClosed H) (hp v) |
| 224 | end YM.EveryPhase |