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.Bid.Phase |
| 2 | |
| 3 | /-! |
| 4 | # Flash pair: grid passage |
| 5 | |
| 6 | Keep the shift `D t j` outside the ordinary theta action (on the reflected |
| 7 | plants too). Expand into point moments on this same Wilson family; the point |
| 8 | passage is on the appended grid (eventually generic). First fix `i,j` and |
| 9 | sufficiently large `t`, *then* take ordered tails. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Work.B04 |
| 15 | open Set Filter Function MeasureTheory OS Table Word Extraction Lattice Wilson |
| 16 | open scoped Topology BigOperators |
| 17 | |
| 18 | private def D (t i : ℕ) : Cover := fun _ => (t : ℤ)*i |
| 19 | |
| 20 | variable {G : Gauge} {C : Family G} {S : Table C.book} {F : Extraction.Order} {n m : ℕ} {k : ℕ} |
| 21 | |
| 22 | private lemma gridPoint_add (s : Schedule) (k : ℕ) (x u : Cover) : |
| 23 | s.gridPoint k (x+u) = s.gridPoint k x + s.gridPoint k u := by |
| 24 | ext a |
| 25 | simp [Schedule.gridPoint, mul_add] |
| 26 | |
| 27 | private lemma grid_spin (x : Fin n → Cover) (s : Signed) : |
| 28 | Points.move s.ortho (Order.grid C k x) = Order.grid C k (s.act ∘ x) := by |
| 29 | ext1 i; ext a |
| 30 | obtain ⟨b,rfl⟩ := s.perm.surjective a |
| 31 | simp [Order.grid,Schedule.gridPoint,Signed.ortho_move] |
| 32 | |
| 33 | private lemma eventually_pair {x : Fin n → Cover} {y : Fin m → Cover} |
| 34 | (hx : Order.grid C k x ∈ generic n) (hy : Order.grid C k y ∈ generic m) |
| 35 | (i j : ℕ) (hij : i < j) : |
| 36 | ∀ᶠ t : ℕ in atTop, |
| 37 | Order.grid C k (Fin.append (fun b => x b + D t i) (fun c => y c + D t j)) ∈ generic (n+m) := by |
| 38 | have sep (a : Axis) (b : Fin n) (c : Fin m) : |
| 39 | ∀ᶠ t : ℕ in atTop, |
| 40 | C.S.gridPoint k (x b + D t i) a < C.S.gridPoint k (y c + D t j) a := by |
| 41 | let g := C.S.a k*((j:ℝ)-(i:ℝ)) |
| 42 | have h : Tendsto (fun t : ℕ => (t:ℝ)*g) atTop atTop := |
| 43 | Tendsto.atTop_mul_const |
| 44 | (mul_pos (C.S.a_pos k) (sub_pos.mpr (by exact_mod_cast hij))) tendsto_natCast_atTop_atTop |
| 45 | filter_upwards [h.eventually (eventually_gt_atTop (C.S.gridPoint k (x b) a - C.S.gridPoint k (y c) a))] with t ht |
| 46 | simp [Schedule.gridPoint,D,g] at ht ⊢ |
| 47 | linarith |
| 48 | filter_upwards [eventually_all.mpr fun a => eventually_all.mpr fun b => eventually_all.mpr (sep a b)] with t h |
| 49 | intro a b c he |
| 50 | revert he |
| 51 | refine Fin.addCases ?_ ?_ b |
| 52 | · intro b |
| 53 | refine Fin.addCases ?_ ?_ c |
| 54 | · intro c he |
| 55 | simp [Order.grid,gridPoint_add] at he |
| 56 | rw [hx a (show _ from he)] |
| 57 | intro c he |
| 58 | exfalso |
| 59 | exact (h a b c).ne (by simpa [Order.grid] using he) |
| 60 | intro b |
| 61 | refine Fin.addCases ?_ ?_ c |
| 62 | · intro c he |
| 63 | exfalso |
| 64 | exact (h a c b).ne' (by simpa [Order.grid] using he) |
| 65 | intro c he |
| 66 | simp [Order.grid,gridPoint_add] at he |
| 67 | rw [hy a (show _ from he)] |
| 68 | |
| 69 | private lemma anti_grid (v : Fin n → C.book.Token) (x : Fin n → Cover) : |
| 70 | Grid.anti (Grid.Tag k v x) = |
| 71 | Grid.Tag (C:=C) k (C.book.move (Signed.mirror timeAxis) ∘ v) |
| 72 | ((Signed.mirror timeAxis).act ∘ x) := by |
| 73 | unfold Grid.anti Word.act Grid.Tag Word.realize |
| 74 | rw [← grid_spin x, List.map_ofFn] |
| 75 | rfl |
| 76 | |
| 77 | private lemma tag_pair (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) |
| 78 | (x : Fin n → Cover) (y : Fin m → Cover) (i j t : ℕ) : |
| 79 | carry (Grid.Tag k v x) (Grid.force (C:=C) k t i) ++ |
| 80 | carry (Grid.Tag k w y) (Grid.force (C:=C) k t j) |
| 81 | = Grid.Tag (C:=C) k (Fin.append v w) |
| 82 | (Fin.append (fun b => x b + D t i) (fun c => y c + D t j)) := by |
| 83 | unfold carry Grid.Tag Word.realize |
| 84 | rw [List.map_ofFn,List.map_ofFn,← List.ofFn_fin_append] |
| 85 | congr 1 |
| 86 | funext b |
| 87 | refine Fin.addCases ?_ ?_ b |
| 88 | · intro b; simp [Order.grid,gridPoint_add,Grid.force]; rfl |
| 89 | intro b; simp [Order.grid,gridPoint_add,Grid.force]; rfl |
| 90 | |
| 91 | private def term (k : ℕ) (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) |
| 92 | (x : Fin n → Cover) (y : Fin m → Cover) (i j t N p : ℕ) := |
| 93 | ∫ U : Config G (C.side N p), |
| 94 | (Grid.tiny k v x N p (D t i) U * Grid.tiny k w y N p (D t j) U).re |
| 95 | ∂law G _ (C.beta N p) |
| 96 | |
| 97 | private lemma tiny_mul (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) |
| 98 | (x : Fin n → Cover) (y : Fin m → Cover) (u z : Cover) (N p : ℕ) : |
| 99 | (fun U => Grid.tiny k v x N p u U * Grid.tiny k w y N p z U) = |
| 100 | fun U => ∏ a : Fin (n+m), C.seen (Fin.append v w a) |
| 101 | (Cells.location C.S k N p (Fin.append (fun b => x b + u) (fun c => y c + z) a)) U := by |
| 102 | funext U |
| 103 | simp only [Grid.tiny, Fin.prod_univ_add, Fin.append_left, Fin.append_right] |
| 104 | |
| 105 | private lemma tiny_integrable (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) |
| 106 | (x : Fin n → Cover) (y : Fin m → Cover) (u z : Cover) (k N p : ℕ) : |
| 107 | Integrable (fun U => Grid.tiny k v x N p u U * Grid.tiny k w y N p z U) |
| 108 | (law G _ (C.beta N p)) := by |
| 109 | rw [tiny_mul] |
| 110 | apply Family.integrableR |
| 111 | |
| 112 | private lemma term_num (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) |
| 113 | (x : Fin n → Cover) (y : Fin m → Cover) (k i j t N p : ℕ) : |
| 114 | term k v w x y i j t N p = |
| 115 | (C.numeric N p (Fin.append v w) |
| 116 | (fun a => Cells.location C.S k N p |
| 117 | (Fin.append (fun b => x b + D t i) (fun c => y c + D t j) a))).re := by |
| 118 | calc |
| 119 | _ = (∫ U, Grid.tiny k v x N p (D t i) U * Grid.tiny k w y N p (D t j) U ∂law G _ (C.beta N p)).re := |
| 120 | integral_re (tiny_integrable v w x y _ _ k N p) |
| 121 | _ = _ := by rw [tiny_mul, C.num] |
| 122 | |
| 123 | private lemma term_limit (H : F.PointLimits C S) |
| 124 | (v : Fin n → C.book.Token) (w : Fin m → C.book.Token) (x : Fin n → Cover) (y : Fin m → Cover) |
| 125 | (hx : Order.grid C k x ∈ generic n) (hy : Order.grid C k y ∈ generic m) |
| 126 | (i j : ℕ) (hij : i < j) : |
| 127 | ∀ᶠ t : ℕ in atTop, |
| 128 | Tendsto (fun u : ℕ × ℕ => term k v w x y i j t u.1 u.2) F.fuse |
| 129 | (𝓝 (Grid.compareA (S:=S) k t i j (Grid.Tag k v x) (Grid.Tag k w y)).re) := by |
| 130 | filter_upwards [eventually_pair hx hy i j hij] with t ht |
| 131 | simp_rw [term_num] |
| 132 | unfold Grid.compareA |
| 133 | rw [tag_pair] |
| 134 | unfold Grid.Tag |
| 135 | rw [Table.readAt] |
| 136 | exact Complex.continuous_re.continuousAt.tendsto.comp |
| 137 | (Order.inPatch H k (Fin.append _ _) ht (Fin.append v w)) |
| 138 | |
| 139 | private lemma bill_terms (v : Fin n → C.book.Token) (x : Fin n → Cover) (k i j t N p : ℕ) : |
| 140 | let v' := C.book.move (Signed.mirror timeAxis) ∘ v |
| 141 | let x' : Fin n → Cover := (Signed.mirror timeAxis).act ∘ x |
| 142 | Grid.bill k v x i j N p t = |
| 143 | (term k v v x x i j t N p - term k v v' x x' i j t N p) - |
| 144 | (term k v' v x' x i j t N p - term k v' v' x' x' i j t N p) := by |
| 145 | intro v' x' |
| 146 | let A (i : ℕ) := Grid.tiny k v x N p (D t i) |
| 147 | let B (i : ℕ) := Grid.tiny k v' x' N p (D t i) |
| 148 | let μ := law G (C.side N p) (C.beta N p) |
| 149 | have haa : Integrable (fun U => (A i U * A j U).re) μ := |
| 150 | (tiny_integrable v v x x _ _ k N p).re |
| 151 | have hab : Integrable (fun U => (A i U * B j U).re) μ := |
| 152 | (tiny_integrable v v' x x' _ _ k N p).re |
| 153 | have hba : Integrable (fun U => (B i U * A j U).re) μ := |
| 154 | (tiny_integrable v' v x' x _ _ k N p).re |
| 155 | have hbb : Integrable (fun U => (B i U * B j U).re) μ := |
| 156 | (tiny_integrable v' v' x' x' _ _ k N p).re |
| 157 | have ha : Integrable (fun U => (A i U * A j U).re - (A i U * B j U).re) μ := haa.sub hab |
| 158 | have hb : Integrable (fun U => (B i U * A j U).re - (B i U * B j U).re) μ := hba.sub hbb |
| 159 | change |
| 160 | (∫ U, ((A i U - B i U) * (A j U - B j U)).re ∂μ) = |
| 161 | ((∫ U, (A i U * A j U).re ∂μ)-(∫ U, (A i U * B j U).re ∂μ)) - |
| 162 | ((∫ U, (B i U * A j U).re ∂μ)-(∫ U, (B i U * B j U).re ∂μ)) |
| 163 | simp_rw [sub_mul, mul_sub, Complex.sub_re] |
| 164 | rw [integral_sub ha hb, integral_sub haa hab, integral_sub hba hbb] |
| 165 | |
| 166 | |
| 167 | |
| 168 | theorem answer : YM.Bid.B04 := by |
| 169 | intro G C S F n v x k _ _ H _ hx i j hij |
| 170 | let s := Signed.mirror timeAxis |
| 171 | let v' := C.book.move s ∘ v |
| 172 | let x' : Fin n → Cover := s.act ∘ x |
| 173 | have hs : Order.grid C k x' ∈ generic n := grid_spin x s ▸ Order.mirrorG s hx |
| 174 | filter_upwards [term_limit H v v x x hx hx i j hij, term_limit H v v' x x' hx hs i j hij, |
| 175 | term_limit H v' v x' x hs hx i j hij, term_limit H v' v' x' x' hs hs i j hij] with t haa hab hba hbb |
| 176 | simp_rw [Grid.event, anti_grid, bill_terms] |
| 177 | exact (haa.sub hab).sub (hba.sub hbb) |
| 178 | |
| 179 | -- Edge check: no slots, no tail assumptions. |
| 180 | example (k : ℕ) (v : Fin 0 → C.book.Token) (x : Fin 0 → Cover) : |
| 181 | Grid.Expects (S:=S) (f:=F) k v x := by |
| 182 | intro i j _ |
| 183 | filter_upwards with t |
| 184 | simp [Grid.bill,Grid.flash,Grid.tiny,Grid.event,Grid.compareA,Grid.Tag, |
| 185 | Word.realize, Grid.anti, Word.act] |
| 186 | |
| 187 | end YM.Work.B04 |