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 Mathlib.LinearAlgebra.Multilinear.Pi |
| 2 | import YM.Bid.Phase |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Work.B05 |
| 7 | open Set Filter Function MeasureTheory OS OS.Ground Org Org.Phase Spec Table Word Analysis Extraction Bid |
| 8 | open scoped Topology NNReal InnerProductSpace BigOperators ContDiff ENNReal |
| 9 | |
| 10 | variable {G : Gauge} {C : Family G} {S : Table C.book} {V : Chamber S timeAxis} |
| 11 | {A : Spread V} {F : Order} {n : ℕ} |
| 12 | |
| 13 | private lemma ordinary (v : Fin n → C.book.Token) (hv : Grid.plain (C := C) v) (x : Points n) : |
| 14 | List.Perm (reflect (realize v x) timeAxis) (Grid.anti (C:=C) (realize v x)) := by |
| 15 | have he : conjugate (realize v x) = realize v x := by |
| 16 | unfold conjugate realize |
| 17 | rw [List.map_ofFn]; congr 1; ext1 i |
| 18 | exact Prod.ext rfl (show C.book.conjugate (v i)=v i from by simp [Register.conjugate,hv i]) |
| 19 | unfold reflect |
| 20 | rw [show conjugate (realize v x).reverse = (conjugate (realize v x)).reverse from List.map_reverse,he] |
| 21 | exact (List.reverse_perm _).map _ |
| 22 | |
| 23 | private lemma at_tag (t : Theme V A) (b : B04) (s : Seed C F S) (X : Spec.Algebra S) |
| 24 | (hc : Locals X s.kernel.spin) (hs : Steady V) |
| 25 | (v : Fin n → C.book.Token) (k : ℕ) (x : Fin n → Lattice.Cover) (hp : Grid.plain (C := C) v) |
| 26 | (hg : Order.grid C k x ∈ generic n) (p : Grid.Covering (C := C) k v x) |
| 27 | (he : p.Works k v x F) (hd : distinct (Grid.Tag k v x)) : |
| 28 | M A (Grid.Tag k v x) hd = M A (Grid.anti _) (Grid.apart hd) := by |
| 29 | let w := Grid.Tag (C:=C) k v x |
| 30 | let D := Grid.θ A w hd |
| 31 | have h := t.opposite w hd (Word.reflects _ hd) |>.trans |
| 32 | (t.changes (ordinary v hp (Order.grid C k x)) (Word.reflects _ hd) (Grid.apart hd)) |
| 33 | have ht : star D = -D := by |
| 34 | change star (M A w hd - _) = -(M A w hd - _) |
| 35 | rw [← h]; simp [star_sub] |
| 36 | have hd' : ContinuousLinearMap.adjoint D.val = - D.val := congr_arg Subtype.val ht |
| 37 | have hz := p.square A k v x hd he hs s.kernel (b v x k s.cutoff s.kernel s.generic hp hg) |
| 38 | have hy : 0 ≤ (inner ℂ V.omega0 (D.val (D.val V.omega0))).re := by |
| 39 | simp only [Grid.answer,pow_two] at hz; exact hz |
| 40 | have hx : (inner ℂ (D.val V.omega0) (D.val V.omega0)).re=‖D.val V.omega0‖^2 := inner_self_eq_norm_sq (𝕜 := ℂ) _ |
| 41 | rw [← ContinuousLinearMap.adjoint_inner_right, hd',neg_apply,inner_neg_right, Complex.neg_re] at hx |
| 42 | have h0 : ‖D.val V.omega0‖=0 := by nlinarith |
| 43 | exact sub_eq_zero.mp (show D=0 from attains A (adjunction A hs s.kernel X.turns hc.motion) hs D (norm_eq_zero.mp h0)) |
| 44 | |
| 45 | private abbrev mir := Signed.mirror timeAxis |
| 46 | private abbrev reflectX {n} := Points.move (n:=n) mir.ortho |
| 47 | |
| 48 | private lemma real_depot (t : Theme V A) (b : B04) (s : Seed C F S) (X : Spec.Algebra S) |
| 49 | (hc : Locals X s.kernel.spin) (hs : Steady V) (hY : Grill C F) |
| 50 | (p : Caps n) (v : C.book.Vector p) (hp : ∀ i, star (v i)=v i) : |
| 51 | EqOn (fun y => depot V A y p v) |
| 52 | (fun y => depot V A (reflectX y) p (fun i => C.book.mirrorGroup (p i) mir (v i))) (conf n) := by |
| 53 | classical |
| 54 | let u : Fin n → C.book.Token := fun i => ⟨p i,v i⟩ |
| 55 | let P (x : Points n) := (depot V A x p v).val |
| 56 | let Q (x : Points n) := (depot V A x p (fun i => C.book.mirrorGroup _ mir (v i))).val |
| 57 | have hP : ContinuousOn P (conf n) := (t.steep n u).continuousOn |
| 58 | have hQ : ContinuousOn (Q ∘ reflectX) (conf n) := by |
| 59 | apply (t.steep n (C.book.move mir ∘ u)).continuousOn.comp _ (fun _ h => Points.move_in _ h) |
| 60 | let L := PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin n => E4) |
| 61 | exact (L.symm.continuous.comp (show Continuous (fun y : Points n => fun i => mir.ortho.motion (y i)) from |
| 62 | continuous_pi fun i => (mir.ortho.motion.continuous.comp (show Continuous (fun y : Points n => y i) from by fun_prop)))).continuousOn |
| 63 | let d := Finset.univ.sup p |
| 64 | choose k hk hG using hY d |
| 65 | have ht : Tendsto k atTop atTop := tendsto_atTop_mono hk tendsto_id |
| 66 | have h : EqOn P (Q ∘ reflectX) (generic n) := by |
| 67 | intro x hx |
| 68 | let c (i) := address (C.S.a (k i)) x |
| 69 | let a (i) := Order.grid C (k i) (c i) |
| 70 | have hA : Tendsto a atTop (𝓝 x) := (chosen (S:=C.S) x).comp ht |
| 71 | have he : ∀ᶠ i in atTop, a i ∈ generic n := hA.eventually ((genericOpen _).mem_nhds hx) |
| 72 | have hf := tendsto_nhdsWithin_iff.mpr ⟨hA,he.mono fun _ h => generic_conf _ h⟩ |
| 73 | have hu := (hP x (generic_conf _ hx)).tendsto.comp hf |
| 74 | apply tendsto_nhds_unique (hu.congr' _) ((hQ x (generic_conf _ hx)).tendsto.comp hf) |
| 75 | filter_upwards [he] with i hi |
| 76 | obtain ⟨Y,hY'⟩ := hG i n u (fun j => Finset.le_sup (s:=Finset.univ) (f:=p) (Finset.mem_univ j)) hp (c i) hi |
| 77 | have h1 := generic_conf _ hi |
| 78 | have h2 := Points.move_in mir.ortho h1 |
| 79 | have hg := at_tag t b s X hc hs u (k i) (c i) hp hi Y hY' ((realized ..).mpr h1) |
| 80 | have ha : Grid.anti (Grid.Tag (C:=C) (k i) u (c i)) = realize (C.book.move mir ∘ u) (reflectX (a i)) := by |
| 81 | unfold Grid.anti act realize |
| 82 | exact List.map_ofFn |
| 83 | simp only [comp_apply,P,Q,depot,dif_pos h1,dif_pos h2] |
| 84 | have hh : ∀ (w : C.book.Word) (z : distinct w), Grid.anti (Grid.Tag (C:=C) (k i) u (c i)) = w → |
| 85 | M A (realize u (a i)) ((realized ..).2 h1) = M A w z := fun _ _ h => by subst_vars; exact hg |
| 86 | exact congr_arg Subtype.val (hh _ ((realized ..).mpr h2) ha) |
| 87 | have hm : P =ᵐ[volume.restrict (conf n)] Q ∘ reflectX := ae_restrict_of_ae ((almostGeneric n).mono fun x hx => h hx) |
| 88 | exact fun y hy => Subtype.ext (Measure.eqOn_of_ae_eq hm hP hQ (by rw [(conf_open n).interior_eq]; exact subset_closure) hy) |
| 89 | |
| 90 | theorem answer : Bid.B05 := by |
| 91 | intro b G C S F s hY X hc V A hs t w hw |
| 92 | let u := Word.tokens w |
| 93 | let p := fun i => (u i).1 |
| 94 | let v : C.book.Vector p := fun i => (u i).2 |
| 95 | let x := Word.positions w |
| 96 | obtain ⟨P,hP⟩ := t.array _ p x |
| 97 | obtain ⟨Q,hQ⟩ := t.array _ p (reflectX x) |
| 98 | have he : P = Q.compLinearMap (fun i => C.book.mirrorGroup (p i) mir) := by |
| 99 | apply MultilinearMap.pi_ext |
| 100 | intro j |
| 101 | apply MultilinearMap.ext_ring |
| 102 | simp only [MultilinearMap.compLinearMap_apply, hP, hQ] |
| 103 | refine real_depot t b s X hc hs hY p _ (fun i => ?_) hw |
| 104 | change star (Pi.single (j i) 1 : _ → ℂ) = Pi.single (j i) 1 |
| 105 | ext m |
| 106 | by_cases hm : m=j i <;> simp [hm] |
| 107 | have h1 : realize (fun i => ⟨p i,v i⟩) x = w := Word.rebuilt w |
| 108 | have h2 : realize (L:=C.book) (fun i => ⟨p i,C.book.mirrorGroup (p i) mir (v i)⟩) (reflectX x)=Grid.anti (C:=C) w := by |
| 109 | refine Eq.trans ?_ (congr_arg (Grid.anti (C:=C)) h1) |
| 110 | unfold Grid.anti act realize; rw [List.map_ofFn]; rfl |
| 111 | have hg := DFunLike.congr_fun he v |
| 112 | simp only [hP,MultilinearMap.compLinearMap_apply,hQ,depot,dif_pos (show x ∈ conf _ from hw),dif_pos (show reflectX x ∈ conf _ from Points.move_in _ hw)] at hg |
| 113 | exact (show ∀ y z : C.book.Word, ∀ (hy : distinct y) (hz : distinct z), realize (L:=C.book) (fun i => ⟨p i,v i⟩) x=y → |
| 114 | realize (L:=C.book) (fun i => ⟨p i,C.book.mirrorGroup (p i) mir (v i)⟩) (reflectX x)=z → M A y hy=M A z hz from |
| 115 | fun _ _ _ _ h h' => by subst_vars; exact hg) _ _ _ _ h1 h2 |
| 116 | end YM.Work.B05 |