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.Analysis.Polydisc |
| 2 | import YM.Bid.Corners |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Work.C02 |
| 7 | open Set Function OS OS.Ground OS.Semigroup Word Boundary Boundary.Small Bid |
| 8 | open scoped NNReal InnerProductSpace |
| 9 | |
| 10 | variable {G : Gauge} {L : Register G} {S T : Table L} {V : Chamber T timeAxis} |
| 11 | variable {A : Spread V} {P : DiffPlan S} {B : Small S V} {n : ℕ} |
| 12 | |
| 13 | private lemma basis_time (t : ℝ) : t • basis timeAxis = position 0 t := by |
| 14 | ext i |
| 15 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 16 | · rw [show position (0 : Space3) t (Fin.last 3) = t from time_position _ _] |
| 17 | change t * basis timeAxis timeAxis = t |
| 18 | simp |
| 19 | · rw [show position (0 : Space3) t j.castSucc = (0 : ℝ) from |
| 20 | congrArg (fun x : Space3 => x j) (spatial_position (0 : Space3) t)] |
| 21 | simp [show j.castSucc ≠ timeAxis from j.castSucc_ne_last] |
| 22 | |
| 23 | private lemma pos_add (x x' : Space3) (t t' : ℝ) : |
| 24 | position x t + position x' t' = position (x+x') (t+t') := by |
| 25 | ext i |
| 26 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 27 | · change time (position x t) + time (position x' t') = time (position (x+x') (t+t')) |
| 28 | simp |
| 29 | · simp [position] |
| 30 | |
| 31 | private lemma neg_pos (x : Space3) (t : ℝ) : -position x t = position (-x) (-t) := by |
| 32 | ext i |
| 33 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 34 | · change -time (position x t) = time (position (-x) (-t)) |
| 35 | simp |
| 36 | · simp [position] |
| 37 | |
| 38 | private def glyph (v : S.Tag) : L.Token := ⟨v.1, S.representative v.1 v.2⟩ |
| 39 | private def born (p : ℝ≥0) (v : S.Tag) : L.Word := [(position 0 p, glyph v)] |
| 40 | private lemma cradle {p : ℝ≥0} (hp : 0 < p) (v : S.Tag) : Slab timeAxis (p+p) (born p v) := by |
| 41 | refine ⟨add_pos hp hp, ⟨locations.mpr (by simp [born]), ?_⟩, ?_⟩ <;> |
| 42 | (intro x hx; rw [born, List.mem_singleton] at hx; subst x) |
| 43 | · change 0 < time (position 0 p) |
| 44 | simpa using (show 0 < (p:ℝ) from hp) |
| 45 | change time (position 0 p) < ((p+p:ℝ≥0):ℝ) |
| 46 | simpa using (show 0 < (p:ℝ) from hp) |
| 47 | |
| 48 | private def script (x : SpacePoints n) (y : Heights n) (v : Fin n → S.Tag) : L.Word := |
| 49 | realize (glyph ∘ v) (place x y) |
| 50 | private lemma script_cons (x : SpacePoints (n+1)) (y : Heights (n+1)) (v : Fin (n+1) → S.Tag) : |
| 51 | script x y v = (position (x 0) (y 0), glyph (v 0)) :: script (Fin.tail x) (Fin.tail y) (Fin.tail v) := |
| 52 | List.ofFn_succ |
| 53 | |
| 54 | private lemma enters {x : SpacePoints (n+1)} {y : Heights (n+1)} {v : Fin (n+1) → S.Tag} |
| 55 | {p : ℝ≥0} (hp : 0<p) {f : Future L timeAxis} |
| 56 | (hf : f.val = carry (script (Fin.tail x) (Fin.tail y) (Fin.tail v)) (-position (x 0) (y 0+p))) : |
| 57 | (entering (cradle hp (v 0)) f).val = carry (script x y v) (-position (x 0) (y 0-p)) := by |
| 58 | dsimp only [entering, linked, raised] |
| 59 | rw [hf, paths, script_cons] |
| 60 | simp only [born, carry, List.singleton_append, List.map_cons, basis_time, neg_pos, pos_add, |
| 61 | NNReal.coe_add] |
| 62 | rw [show -(y 0+(p:ℝ))+(p+p) = -(y 0-p) by ring, add_zero, add_neg_cancel, |
| 63 | show y 0+-(y 0-(p:ℝ)) = p by ring] |
| 64 | |
| 65 | private lemma enough_tail {p : ℝ≥0} {y : Heights (n+1)} (hy : enough y p) : enough (Fin.tail y) p := |
| 66 | ⟨hy.1, hy.2.1, fun i j hij => hy.2.2 i.succ j.succ (Fin.succ_lt_succ_iff.mpr hij)⟩ |
| 67 | |
| 68 | private lemma train_pure (hB : B.concretized A) {p : ℝ≥0} |
| 69 | (x : SpacePoints n) (y : Heights n) (v : Fin n → S.Tag) (X : Space3) (Y : ℝ) |
| 70 | (h : enough y p) (hp : ∀ i, 4*(p:ℝ)<y i-Y) : |
| 71 | ∃ f : Future L timeAxis, f.val = carry (script x y v) (-position X (Y+p)) ∧ |
| 72 | B.trainB p n (fun i => (y i:ℂ)*Complex.I) x (fun i => S.pin (v i).1 (v i).2) |
| 73 | ((Y:ℂ)*Complex.I) X = V.GNS.plant f := by |
| 74 | induction n generalizing X Y with |
| 75 | | zero => exact ⟨air timeAxis, rfl, rfl⟩ |
| 76 | | succ n ih => |
| 77 | obtain ⟨f,hf,ht⟩ := ih (Fin.tail x) (Fin.tail y) (Fin.tail v) (x 0) (y 0) |
| 78 | (enough_tail h) (fun j => h.2.2 0 j.succ j.succ_pos) |
| 79 | have hpos : 0 < y 0-Y-(p+p : ℝ≥0) := by push_cast; linarith [hp 0, p.coe_nonneg] |
| 80 | let t : ℝ≥0 := ⟨_, hpos.le⟩ |
| 81 | have he : interval ((y 0:ℂ)*Complex.I-(Y:ℂ)*Complex.I) (p+p) = duration t := by |
| 82 | apply Complex.ext <;> simp [interval,duration,t]; rfl |
| 83 | refine ⟨travel (over (entering (cradle h.1 (v 0)) f) (bufferF (x 0-X))) t, ?_, ?_⟩ |
| 84 | · change carry (carry _ _) _ = _ |
| 85 | rw [enters h.1 hf, paths, paths] |
| 86 | congr 1 |
| 87 | change -position (x 0) (y 0-p) + (position (x 0-X) 0 + (t:ℝ) • basis _) = _ |
| 88 | rw [basis_time, neg_pos, neg_pos, pos_add, pos_add] |
| 89 | congr 1 |
| 90 | · abel |
| 91 | rw [show (t:ℝ)=y 0-Y-((p:ℝ)+p) from rfl]; ring |
| 92 | rw [trainB] |
| 93 | change rip _ _ _ (B.bar p _ (B.trainB p n _ _ _ _ _)) = _ |
| 94 | erw [show B.trainB p n _ _ _ _ _=V.GNS.plant f from ht, |
| 95 | hB _ _ p h.1, A.reads (cradle h.1 (v 0)), V.atBirth, V.across, rip, he, |
| 96 | V.flow.roots_heat (show 0<t from hpos)] |
| 97 | rfl |
| 98 | |
| 99 | private lemma root (H : T.Hierarchy) (hB : B.concretized A) {p : ℝ≥0} |
| 100 | (x : SpacePoints n) (y : Heights n) (v : Fin n → S.Tag) (hy : y ∈ east n) (hp : enough y p) : |
| 101 | B.matrix p n (fun i => ↑(y i)*Complex.I) x (fun i => S.pin (v i).1 (v i).2) = S.useAt T (place x y) v := by |
| 102 | suffices B.matrix p n (fun i => ↑(y i)*Complex.I) x (fun i => S.pin (v i).1 (v i).2) = T.expect (script x y v) by |
| 103 | rw [script,T.readAt] at this |
| 104 | exact this |
| 105 | cases n with |
| 106 | | zero => exact V.GNS.measure (air _) (air _) |
| 107 | | succ n => |
| 108 | obtain ⟨f,hf,ht⟩ := train_pure hB (Fin.tail x) (Fin.tail y) (Fin.tail v) (x 0) (y 0) |
| 109 | (enough_tail hp) (fun j => hp.2.2 0 j.succ j.succ_pos) |
| 110 | rw [Small.matrix] |
| 111 | change inner ℂ V.omega (B.bar p _ (B.trainB p n _ _ _ _ _)) = _ |
| 112 | erw [show B.trainB p n _ _ _ _ _=V.GNS.plant f from ht, |
| 113 | hB _ _ p hp.1,A.reads (cradle hp.1 (v 0)),Chamber.omega,V.GNS.measure] |
| 114 | change T.expect (entering (cradle hp.1 (v 0)) f).val = _ |
| 115 | rw [enters hp.1 hf, invariance H.translations] |
| 116 | exact (realized ..).mpr (clear hy x) |
| 117 | |
| 118 | theorem pad_bar (H : Pantry S T V P A) (hB : Piece A B) {p : ℝ≥0} |
| 119 | (hp : 0 < p) (u : ℝ≥0) (v : S.Union) : |
| 120 | B.bar (p+u) v = ((V.flow.E u).comp (B.bar p v)).comp (V.flow.E u) := by |
| 121 | obtain ⟨d,s,rfl⟩ := P.covered H.head.laws.toSymmetric H.rises v |
| 122 | have hs := cradle hp (⟨d,s⟩ : S.Tag) |
| 123 | have hb : born (p+u) (⟨d,s⟩ : S.Tag) = raised timeAxis u (born p (⟨d,s⟩ : S.Tag)) := by |
| 124 | simp only [born, raised, carry, List.map_cons, List.map_nil, basis_time, pos_add, |
| 125 | add_zero, NNReal.coe_add] |
| 126 | have hr (k : ℝ≥0) (h : 0<k) : B.bar k (S.pin d s) = A.place (k+k) (born k ⟨d,s⟩) := hB.bits d s k h |
| 127 | rw [hr p hp, hr (p+u) (add_pos_of_pos_of_nonneg hp zero_le), hb, |
| 128 | show (p+u)+(p+u)=u+(p+p)+u by abel, stretches A (fills hs u), crossing A hs] |
| 129 | |
| 130 | theorem pad_rip (V : Chamber T timeAxis) {z : ℂ} {p u : ℝ≥0} (hu : 0<u) |
| 131 | (hz : 4*((p+u:ℝ≥0):ℝ) < z.im) (x : Space3) : |
| 132 | rip (C:=V) z (p+p) x = ((V.flow.E u).comp (rip z ((p+u)+(p+u)) x)).comp (V.flow.E u) := by |
| 133 | have ht := dur.mpr hu |
| 134 | let w := interval z ((p+u)+(p+u)) |
| 135 | have hw : w ∈ inside := (down ..).mpr (by push_cast at *; linarith [p.coe_nonneg, u.coe_nonneg]) |
| 136 | have hsum : duration u + w ∈ inside := show 0<(duration u).re+w.re from add_pos ht hw |
| 137 | have he : interval z (p+p) = duration u+w+duration u := by |
| 138 | simp only [interval, duration, w, NNReal.coe_add, Complex.ofReal_add]; ring |
| 139 | unfold rip |
| 140 | rw [he, V.flow.pairs hsum ht, |
| 141 | V.flow.pairs ht hw, V.flow.roots_heat hu, ContinuousLinearMap.comp_assoc, |
| 142 | V.flow.independent, ← ContinuousLinearMap.comp_assoc, ContinuousLinearMap.comp_assoc (V.flow.E u) (V.flow.F w)] |
| 143 | |
| 144 | private lemma train_pad (H : Pantry S T V P A) (hB : Piece A B) {p u : ℝ≥0} |
| 145 | (hp : 0<p) (hu : 0<u) (z : Times n) (x : SpacePoints n) (v : Fin n → S.Union) (Z : ℂ) (X : Space3) |
| 146 | (h : lit z (p+u)) (ht : ∀ i, 4*((p+u:ℝ≥0):ℝ)<(z i).im-Z.im) : |
| 147 | V.flow.E u (B.trainB (p+u) n z x v Z X) = B.trainB p n z x v Z X := by |
| 148 | induction n generalizing Z X with |
| 149 | | zero => exact (V.flow.fixed _).1 V.omega0.property u |
| 150 | | succ n ih => |
| 151 | rw [trainB, trainB, pad_bar H hB hp, pad_rip V (z:=z 0-Z) (p:=p) hu (ht 0)] |
| 152 | simp only [ContinuousLinearMap.comp_apply] |
| 153 | rw [ih (Fin.tail z) (Fin.tail x) (Fin.tail v) (z 0) (x 0) (enough_tail h) |
| 154 | (fun j => h.2.2 0 j.succ j.succ_pos)] |
| 155 | |
| 156 | private lemma matrix_pad (H : Pantry S T V P A) (hB : Piece A B) {p u : ℝ≥0} |
| 157 | (hp : 0<p) (hu : 0<u) (z : Times n) (x : SpacePoints n) (v : Fin n → S.Union) |
| 158 | (hz : lit z (p+u)) : B.matrix (p+u) n z x v = B.matrix p n z x v := by |
| 159 | cases n with |
| 160 | | zero => rfl |
| 161 | | succ n => |
| 162 | rw [Small.matrix, Small.matrix, pad_bar H hB hp] |
| 163 | simp only [ContinuousLinearMap.comp_apply] |
| 164 | rw [train_pad H hB hp hu _ _ _ _ _ (show lit (Fin.tail z) _ from enough_tail hz) |
| 165 | (fun j => hz.2.2 0 j.succ j.succ_pos), ← V.flow.swing, |
| 166 | show V.flow.E u V.omega=V.omega from (V.flow.fixed _).1 V.omega0.property u] |
| 167 | |
| 168 | theorem answer : YM.Bid.C02 := by |
| 169 | intro G L S T V P A B H hB |
| 170 | refine ⟨hB, fun p y x v hy hp => root H.adopted hB.bits x y v hy hp, ?_⟩ |
| 171 | intro n z x p q l _ hq hl |
| 172 | obtain h|h|h := lt_trichotomy q l |
| 173 | · obtain ⟨u,rfl⟩ := exists_add_of_le h.le |
| 174 | exact (matrix_pad H hB hq.1 (by simpa using h) z x p hl).symm |
| 175 | · rw [h] |
| 176 | obtain ⟨u,rfl⟩ := exists_add_of_le h.le |
| 177 | exact matrix_pad H hB hl.1 (by simpa using h) z x p hq |
| 178 | |
| 179 | end YM.Work.C02 |