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.Loan |
| 2 | import YM.Bid.Station |
| 3 | import YM.Next.MAXWELL.System |
| 4 | import YM.Next.MAXWELL.Taxes |
| 5 | |
| 6 | /-! |
| 7 | # Framework for the finite-weight Ward tests |
| 8 | |
| 9 | At capacity d: ALL spectator words built from that cap. Don't confuse |
| 10 | this with the all-spectator tests in residual. Include the central |
| 11 | commutator identity from the normalized (or non-normalized) flux, before |
| 12 | returning to a detecting family. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Maxwell.Free |
| 17 | open Set Function Filter Tensor Analysis MeasureTheory Wick |
| 18 | open scoped ContDiff Topology BigOperators InnerProductSpace ComplexOrder |
| 19 | |
| 20 | variable {G : Gauge} {d k m n : ℕ} |
| 21 | |
| 22 | def wrap (F : Labels.Frames G) {d : ℕ} {p : WickPol G} (h : p∈shellSector G d) : (Model F).Field d := |
| 23 | (fields F d).symm ⟨p,h⟩ |
| 24 | @[simp] theorem shed (F : Labels.Frames G) {p : WickPol G} (h : p∈shellSector G d) : |
| 25 | address F d (wrap F h)=p := by rw [address_eval]; unfold wrap; rw [LinearEquiv.apply_symm_apply] |
| 26 | |
| 27 | def brand (F : Labels.Frames G) {d e : ℕ} (W : (Model F).Field d →ₗ[ℂ] (Model F).Field e) : Module.End ℂ (WickPol G) := |
| 28 | (address F e).comp (W.comp (address F d).leftInverse) |
| 29 | |
| 30 | lemma brand_eval (F : Labels.Frames G) {d e : ℕ} (W : (Model F).Field d →ₗ[ℂ] (Model F).Field e) |
| 31 | (x : (Model F).Field d) : brand F W (address F d x) = address F e (W x) := by |
| 32 | unfold brand; rw [LinearMap.comp_apply,LinearMap.comp_apply,LinearMap.leftInverse_apply_of_inj |
| 33 | (LinearMap.ker_eq_bot.mpr (address_inj F d))] |
| 34 | |
| 35 | lemma brand_fit (F : Labels.Frames G) {d e : ℕ} (W : (Model F).Field d →ₗ[ℂ] (Model F).Field e) |
| 36 | (x : WickPol G) : brand F W x∈shellSector G e := address_in F _ _ |
| 37 | |
| 38 | /-- E sum. Polys are off quotient notation, T allowed on all with the |
| 39 | bound kept here. -/ |
| 40 | def silence (G : Gauge) (d : ℕ) (T : Module.End ℂ (WickPol G)) : Prop := |
| 41 | ∀ (n : ℕ) (v : Fin n→ WickPol G) (x : Points n), (∀ i,v i∈shellSector G d) → x∈conf _ → |
| 42 | (∑ i, moment G x (update v i (T (v i))))=0 |
| 43 | |
| 44 | lemma own (F : Labels.Frames G) {d e} (W : (Model F).Field d →ₗ[ℂ] (Model F).Field e) (u : Fin n → (Model F).Field d) |
| 45 | (x : Points n) (i : Fin n) : Ward.disc (update (Climb.column u) i (⟨_,W (u i)⟩ : (Model F).Tag)) x = |
| 46 | moment G x (update (address F d ∘ u) i (brand F W (address F d (u i)))) := by |
| 47 | unfold Ward.disc |
| 48 | rw [display,brand_eval]; congr 1 |
| 49 | ext1 j; by_cases h : j=i |
| 50 | · subst j; simp only [comp_apply,update_self]; rfl |
| 51 | simp only [comp_apply,Function.update_of_ne h]; rfl |
| 52 | |
| 53 | lemma branded (F : Labels.Frames G) {d e} (W : (Model F).Field d →ₗ[ℂ] (Model F).Field e) : |
| 54 | (∀ n (u : Fin n → (Model F).Field d) (x : Points n), x∈conf _ → |
| 55 | (∑ i, Ward.disc (update (Climb.column u) i (⟨_,W (u i)⟩ : (Model F).Tag)) x)=0) ↔ silence G d (brand F W) := by |
| 56 | constructor |
| 57 | · intro H n v x hv hx |
| 58 | let u := fun i => wrap F (hv i) |
| 59 | have h := H n u x hx; simp_rw [own F W u x, u, shed] at h |
| 60 | rw [show (address F d ∘ fun i ↦ wrap F (hv i))=v from funext fun i => shed F (hv i)] at h |
| 61 | exact h |
| 62 | intro H n u x hx; simp_rw [own F W u x]; exact H n _ x (fun i => address_in F _ (u i)) hx |
| 63 | |
| 64 | /-- The testing subspace at a finite exterior weight bound. -/ |
| 65 | def ghost (G : Gauge) (d : ℕ) : Submodule ℂ (WickPol G) where |
| 66 | carrier := {p| ∀ (n : ℕ) (v : Fin n → WickPol G) (x : Points (n+1)), (∀ i,v i∈shellSector G d) → x∈conf _ → |
| 67 | moment G x (Fin.cons p v)=0} |
| 68 | zero_mem' n v x _ _ := (moment G x).map_coord_zero 0 (Fin.cons_zero ..) |
| 69 | add_mem' {p q} H K n v x hv hx := by |
| 70 | let U z := Fin.cons (α:=fun _ : Fin (n+1) => WickPol G) z v |
| 71 | change moment G x (U (p+q))=0 |
| 72 | rw [show U (p+q) = update (U p) 0 (p+q) from (Fin.update_cons_zero ..).symm, MultilinearMap.map_update_add] |
| 73 | unfold U; rw [Fin.update_cons_zero, Fin.update_cons_zero, H n v x hv hx,K n v x hv hx,add_zero] |
| 74 | smul_mem' c p H n v x hv hx := by |
| 75 | rw [show Fin.cons (c • p) v=update (Fin.cons (α:=fun _ : Fin (n+1) => WickPol G) p v) 0 (c • p) from |
| 76 | (Fin.update_cons_zero ..).symm, MultilinearMap.map_update_smul, Fin.update_cons_zero,H n v x hv hx,smul_zero] |
| 77 | |
| 78 | lemma ghost_le (h : d≤m) : ghost G m ≤ ghost G d := fun _ H n v x hv hx => H n v x (fun i => chain h (hv i)) hx |
| 79 | |
| 80 | lemma ghosts_out {p : WickPol G} (hp : p∈shellSector G d) (h : p∈ghost G d) : p=0 := by |
| 81 | by_contra H |
| 82 | let t := points (fun _ : Fin 1 => basis timeAxis) |
| 83 | have hx : Table.Pairing.single t timeAxis := ⟨injective_of_subsingleton _,fun _ => by simp [t,Axis]⟩ |
| 84 | have he := detects timeAxis (basis timeAxis) (by simp) p H |
| 85 | let s := Table.Pairing.closedUp timeAxis t t |
| 86 | let q := mirrorBar (Signed.reflect timeAxis) p |
| 87 | let r := Equiv.swap (0 : Fin 2) 1 |
| 88 | have hv := Table.Pairing.spans hx hx |
| 89 | change 0 < moment G s (Fin.append (fun _ => q) (fun _ => p)) at he |
| 90 | rw [exchangeSites r hv] at he |
| 91 | have heq : (Fin.append (fun _ : Fin 1 => q) (fun _ : Fin 1 => p) ∘ r)=Fin.cons p (fun _ => q) := by |
| 92 | ext1 i; fin_cases i <;> simp [r] <;> rfl |
| 93 | rw [heq] at he |
| 94 | change 0 < (moment G (Points.rearrange r (Table.Pairing.closedUp timeAxis t t))) (Fin.cons p fun _ => q) at he |
| 95 | rw [show moment G _ (Fin.cons (α:=fun _ : Fin 2 => WickPol G) p (fun _ => q))=0 from |
| 96 | h 1 _ _ (fun _ => ?_) (Points.rearrange_in r hv)] at he |
| 97 | · exact lt_irrefl _ he |
| 98 | obtain ⟨v,hv⟩ := hp |
| 99 | rw [show q = reflectPol _ (realForm p) from rfl,← hv,← real_eats,← pulls_label]; exact LinearMap.mem_range_self _ _ |
| 100 | |
| 101 | /-- Need the Ward sum at d, not larger. After feeding E p the Ward sum again |
| 102 | at d. Output commutator may still be in d+1, and one must *pay* for |
| 103 | `ghost` removal there. -/ |
| 104 | theorem commute_ghost {L : Engine G 0} {T : Module.End ℂ (WickPol G)} (hd : 4≤d) (H : silence G d T) |
| 105 | (ht : ∀ a b, T (polStress G a b)=0) |
| 106 | (HL : ∀ (n : ℕ) (x : Points (n+1)), x∈conf _ → ∃ χ v, Table.Window x χ ∧ Motion (x:=x 0) v L χ) |
| 107 | (p : WickPol G) (hp : p∈shellSector G d) (he : rewired L p∈shellSector G d) : |
| 108 | rewired L (T p) - T (rewired L p) ∈ ghost G d := by |
| 109 | intro n q x hq hx |
| 110 | classical |
| 111 | obtain ⟨χ,v,w,Hv⟩ := HL n x hx |
| 112 | let B (p : WickPol G) := Fin.cons (α:=fun _ : Fin (n+1) => WickPol G) p q |
| 113 | let f (i : Fin (n+1)) := update (B p) i (T (B p i)) |
| 114 | let R (i) := stressRead x v (f i) |
| 115 | have hh : exportFlux (fun a y => ∑ i, R i a y) χ=0 := by |
| 116 | rw [flux_invariant χ _ 0] |
| 117 | · simp [exportFlux] |
| 118 | intro a y hy |
| 119 | have hu := Work.A01.window_separated hx w hy |
| 120 | unfold R stressRead; rw [Finset.sum_comm]; |
| 121 | refine Finset.sum_eq_zero fun b _ => ?_ |
| 122 | rw [← Finset.smul_sum]; |
| 123 | suffices hr : (∑ i, bookend x y (f i) (polStress G a b))=0 by rw [hr, smul_zero] |
| 124 | have hm (i : Fin (n+1)) : B p i ∈ shellSector G d := Fin.cases hp hq i |
| 125 | have ha := H _ (Fin.cons (α:=fun _ => WickPol G) (polStress G a b) (B p)) (Points.cons y x) |
| 126 | (fun i => Fin.cases (chain hd (stress_label G a b)) hm i) hu |
| 127 | conv at ha => lhs; rw [Fin.sum_univ_succ] |
| 128 | simp only [Fin.cons_zero, ht] at ha |
| 129 | rw [show moment G (Points.cons y x) (update (Fin.cons (α:=fun _ => WickPol G) (polStress G a b) (B p)) 0 0)=0 from |
| 130 | MultilinearMap.map_coord_zero _ 0 (Function.update_self _ _ _),zero_add] at ha; refine Eq.trans ?_ ha |
| 131 | apply Finset.sum_congr rfl; intro i _ |
| 132 | rw [book_eval,Fin.cons_succ]; congr 1 |
| 133 | exact Fin.cons_update .. |
| 134 | rw [flux_series w.1 w.2.1] at hh |
| 135 | · simp_rw [R,moment_force hx w Hv,Finset.sum_neg_distrib,neg_eq_zero] at hh |
| 136 | rw [Fin.sum_univ_succ] at hh |
| 137 | have ha := H (n+1) (B (rewired L p)) x (fun i => Fin.cases he hq i) hx |
| 138 | rw [Fin.sum_univ_succ] at ha |
| 139 | have hm (i : Fin n) : update (f i.succ) 0 (rewired L (f i.succ 0)) = update (B (rewired L p)) i.succ (T (B (rewired L p) i.succ)) := by |
| 140 | ext1 b; unfold f B; simp only [Fin.cons_succ]; refine Fin.cases ?_ (fun j => ?_) b <;> simp |
| 141 | · rw [Function.update_of_ne (Ne.symm (Fin.succ_ne_zero _)),Fin.cons_zero,Function.update_of_ne (Ne.symm (Fin.succ_ne_zero _)),Fin.cons_zero] |
| 142 | by_cases h : j=i <;> simp_all [Function.update] |
| 143 | simp_rw [hm] at hh |
| 144 | let F := ((moment G x).toLinearMap (B p) 0) |
| 145 | have hg v : moment G x (B v) = F v := by unfold F; rw [MultilinearMap.toLinearMap_apply]; unfold B; rw [Fin.update_cons_zero] |
| 146 | dsimp only [f,B] at hh ha |
| 147 | simp only [Fin.cons_zero,Fin.update_cons_zero] at hh ha |
| 148 | rw [show moment G x (Fin.cons (rewired L (T p)-T (rewired L p)) q)=_ from hg _, map_sub,sub_eq_zero,← hg,← hg]; |
| 149 | exact add_right_cancel (hh.trans ha.symm) |
| 150 | intro i a y hy; exact tendsto_finsetSum _ fun b _ => petal_cost hx w a b _ Hv.symm hy |
| 151 | end YM.Maxwell.Free |