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.RG08.Pivot.Clams |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.RG08.Pivot |
| 6 | open Function Filter Lattice Wilson RG Exterior Precision Next.Free |
| 7 | open Laurent Bloch Matrix Work.F08 Tree FreeResolvent Stationary Finset |
| 8 | open UVExt.Paths Drift Scores Loom Shade Quire Tall Vale Analysis |
| 9 | open scoped Topology BigOperators Classical |
| 10 | variable {A B Q I : Type}[Fintype A][DecidableEq A][Fintype B][DecidableEq B] |
| 11 | variable {r k n : ℕ} |
| 12 | private lemma slider (a b c d : A)(F:CupA A (r+4))(h:Tensor.Sym F)(v : Fin r→A→ℝ): |
| 13 | F (Fin.cons (zpk a) (Fin.cons (zpk b) (Fin.cons (zpk c) (Fin.cons (zpk d) v))))=F (Fin.cons (zpk c) (Fin.cons (zpk d) (Fin.cons (zpk a) (Fin.cons (zpk b) v)))) := by |
| 14 | let u:Fin (r+4) → A→ℝ := Fin.cons (zpk a) (Fin.cons (zpk b) (Fin.cons (zpk c) (Fin.cons (zpk d) v))) |
| 15 | let i:Fin (r+4):=0; let j:Fin (r+4):=Fin.succ (0:Fin (r+3)); let k:Fin (r+4):=(0:Fin (r+2)).succ.succ; let l:Fin (r+4):=(0:Fin (r+1)).succ.succ.succ |
| 16 | let σ: Equiv.Perm (Fin (r+4)):= (Equiv.swap i k).trans (Equiv.swap j l) |
| 17 | refine ((h u σ).symm).trans (congr_arg F (funext fun x=>?_)) |
| 18 | have he : j≠k:=by unfold j k; simp only [Fin.succ_inj, ne_eq]; exact Ne.symm (Fin.succ_ne_zero _) |
| 19 | have h1:l≠k:=by unfold l k; simp only [Fin.succ_inj, ne_eq, Fin.succ_ne_zero, not_false_eq_true] |
| 20 | cases x using Fin.cases with |
| 21 | | zero=> change u ((Equiv.swap j l) ((Equiv.swap i k) i))=zpk c; rw [Equiv.swap_apply_left,Equiv.swap_apply_of_ne_of_ne he.symm h1.symm]; rfl |
| 22 | | succ x=> cases x using Fin.cases with |
| 23 | | zero=> change u ((Equiv.swap j l) ((Equiv.swap i k) j))=zpk d; rw [Equiv.swap_apply_of_ne_of_ne (Fin.succ_ne_zero _) he, Equiv.swap_apply_left]; rfl |
| 24 | | succ x=> cases x using Fin.cases with |
| 25 | | zero=> change u ((Equiv.swap j l) ((Equiv.swap i k) k))=zpk a; rw [Equiv.swap_apply_right,Equiv.swap_apply_of_ne_of_ne (Fin.succ_ne_zero _|>.symm) (Fin.succ_ne_zero _|>.symm)]; rfl |
| 26 | | succ x=> cases x using Fin.cases with |
| 27 | | zero=> change u ((Equiv.swap j l) ((Equiv.swap i k) l))=zpk b; rw [Equiv.swap_apply_of_ne_of_ne (Fin.succ_ne_zero _) h1, Equiv.swap_apply_right]; rfl |
| 28 | | succ x=> |
| 29 | unfold Function.comp σ u i j k l |
| 30 | simp only [Equiv.trans_apply, Fin.succ_inj, Equiv.swap_apply_of_ne_of_ne, Fin.succ_ne_zero, ne_eq, not_false_eq_true, Fin.cons_succ] |
| 31 | lemma bur_comm (P Q:Matrix A A ℝ)(V:CupA A (r+4))(h:Tensor.Sym V): bur P (bur Q V)=bur Q (bur P V) := by |
| 32 | ext1 v; rw [bur_eval,bur_eval]; simp_rw [bur_eval, Finset.mul_sum] |
| 33 | let f (u v' : A×A) := batting r * (P u.1 u.2 * (batting (r+2) * (Q v'.1 v'.2 * V (Fin.cons (zpk v'.1) (Fin.cons (zpk v'.2) (Fin.cons (zpk u.1) (Fin.cons (zpk u.2) v))))))) |
| 34 | rw [show (∑ i,∑ j,∑ k,∑ l,batting r * (P i j * (batting (r+2) * (Q k l * V (Fin.cons (zpk k) (Fin.cons (zpk l) (Fin.cons (zpk i) (Fin.cons (zpk j) v))))))))=∑ u: A×A,∑ p:A×A,f u p from by simp_rw [Fintype.sum_prod_type]; rfl] |
| 35 | rw [Finset.sum_comm]; simp_rw [Fintype.sum_prod_type]; refine sum_congr rfl fun i _=>sum_congr rfl fun j _=> sum_congr rfl fun k _=> sum_congr rfl fun l _=>?_ |
| 36 | unfold f; rw [slider _ _ _ _ V h v]; ring |
| 37 | |
| 38 | -- Wick layers per ANCHORED symbol, before theory transfer |
| 39 | def terraces (P:Matrix A A ℝ)(V:Cupboard A)(u:ℕ) (r : ℕ) : CupA A r := match u with |
| 40 | | 0 => V r |
| 41 | | n+1 => (↑(n+1:ℕ):ℝ)⁻¹ • bur P (terraces P V n (r+2)) |
| 42 | def harvestL (P:Matrix A A ℝ)(V:Cupboard A)(L:ℕ)(r:ℕ): CupA A r:= ∑ i∈range (L+1), terraces P V i r |
| 43 | omit [DecidableEq A] in |
| 44 | def Ceils (V:Cupboard A)(L:ℕ) := ∀ i:ℕ,L < i→V i=0 |
| 45 | lemma stairs_zeros (P:Matrix A A ℝ)(V:Cupboard A){j r}(n:ℕ)(h:Ceils V j)(he:j< r + 2*n) : terraces P V n r=0:= by |
| 46 | induction n generalizing r with |
| 47 | | zero=> rw [terraces,h r (by omega)] |
| 48 | | succ i ih=> rw [terraces,ih (by omega),bur_home,smul_zero] |
| 49 | lemma stays_ceils (P:Matrix A A ℝ){V:Cupboard A}(h:Ceils V n)(L:ℕ) : Ceils (harvestL P V L) n:= fun i hi=> sum_eq_zero fun j _=> stairs_zeros P _ j h (by omega) |
| 50 | lemma terraces_sym (P:Matrix A A ℝ)(V:Cupboard A)(h:∀ i,Tensor.Sym (V i))(n r : ℕ): Tensor.Sym (terraces P V n r):= by |
| 51 | induction n generalizing r with |
| 52 | | zero=> rw [terraces]; exact h _ |
| 53 | | succ i ih=>rw [terraces]; exact fun x y=> congr_arg ((↑(i+1:ℕ):ℝ)⁻¹ • ·) (bur_sym P (ih _) x y) |
| 54 | lemma t_right (P Q:Matrix A A ℝ)(V:Cupboard A)(hv:∀ i,Tensor.Sym (V i)) (n r : ℕ): |
| 55 | terraces P (fun r=> bur Q (V (r+2))) n r=bur Q (terraces P V n (r+2)):= by |
| 56 | induction n generalizing r with |
| 57 | | zero=> simp_rw [terraces] |
| 58 | | succ n ih=> rw [terraces, ih, bur_comm P Q _ (terraces_sym P V hv n (r+4)),terraces,bur_cust] |
| 59 | lemma t_cost (P:Matrix A A ℝ)(c:ℝ)(V:Cupboard A)(n r): terraces P (c•V) n r=c•terraces P V n r:= by |
| 60 | induction n generalizing r with |
| 61 | | zero=> simp_rw [terraces]; rfl |
| 62 | | succ n ih=> rw [terraces,ih,bur_cust,terraces,smul_comm] |
| 63 | lemma t_collect (P:Matrix A A ℝ)(V:I→ Cupboard A) (S : Finset I)(n r) : terraces P (fun r => ∑ i∈S,V i r) n r=∑ i∈ S, terraces P (V i) n r := by |
| 64 | induction n generalizing r with |
| 65 | | zero=> simp_rw [terraces] |
| 66 | | succ n ih=>simp_rw [terraces]; rw [ih,burs_pledge,Finset.smul_sum] |
| 67 | lemma h_cost (P:Matrix A A ℝ)(c:ℝ)(V:Cupboard A)(n r): harvestL P (c•V) n r=c•harvestL P V n r:= by simp_rw [harvestL,t_cost,Finset.smul_sum] |
| 68 | lemma h_collect (P:Matrix A A ℝ)(V:I→ Cupboard A) (S : Finset I)(n r) : harvestL P (fun r => ∑ i∈S,V i r) n r=∑ i∈ S, harvestL P (V i) n r := by simp_rw [harvestL,t_collect]; exact Finset.sum_comm |
| 69 | lemma terraces_swap (P: Matrix B B ℝ)(M:Matrix A B ℝ)(V:Cupboard A)(n r): |
| 70 | terraces P (fun r=> twistV M (V r)) n r=twistV M (terraces (M*P*Mᵀ) V n r):= by |
| 71 | induction n generalizing r with |
| 72 | | zero=> simp_rw [terraces] |
| 73 | | succ n ih=> simp_rw [terraces]; rw [ih,bur_turns,twist_cost] |
| 74 | lemma harvest_swap (P: Matrix B B ℝ)(M:Matrix A B ℝ)(V:Cupboard A)(n r): |
| 75 | harvestL P (fun r=> twistV M (V r)) n r=twistV M (harvestL (M*P*Mᵀ) V n r):= by simp_rw [harvestL,terraces_swap,twist_for] |
| 76 | |
| 77 | end YM.RG08.Pivot |