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.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 9 | import Mathlib.Analysis.Normed.Group.Tannery |
| 10 | import Mathlib.Analysis.ODE.ExistUnique |
| 11 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 12 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 13 | import YM.Ac.Table |
| 14 | import YM.Analysis.Polydisc |
| 15 | import YM.AnalyticNext.QUARTIC_MATCH.Cells.Boundary |
| 16 | import YM.Bid.Drops |
| 17 | import YM.Bid.Fuels |
| 18 | import YM.Pressure.Seeds |
| 19 | import YM.Work.A05.Read |
| 20 | import YM.Work.A07 |
| 21 | import YM.Work.B04 |
| 22 | |
| 23 | |
| 24 | /-! |
| 25 | # Finite closure and periods on actual curvature cochains |
| 26 | |
| 27 | Ungraded tensor-test helpers. Cost and adjoint are for ordinary physical |
| 28 | oriented counting. No orthonorm claim of Cover bundles. Color invariance |
| 29 | carried as a coefficient-module restriction. |
| 30 | -/ |
| 31 | set_option autoImplicit false |
| 32 | noncomputable section |
| 33 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 34 | open Lattice Exterior Matrix Precision RG Function Filter Topology Finset Bid Tensor |
| 35 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 36 | variable {G : Gauge} |
| 37 | |
| 38 | /-- No Lie connectedness required. -/ |
| 39 | def eligible (G : Gauge) (n : ℕ) : Submodule ℝ (Tensor.T G.Color ℝ n) where |
| 40 | carrier := {x | ∀ (u : G.El) (F : Fin n → G.Color), x (fun i => G.adjoint u (F i)) = x F} |
| 41 | add_mem' {_x _y} hx hy u F := congr_arg₂ (·+·) (hx u F) (hy u F) |
| 42 | zero_mem' _ _ := rfl |
| 43 | smul_mem' s _x hx u F := congr_arg (s • ·) (hx u F) |
| 44 | |
| 45 | abbrev ColorPart (G : Gauge) (n : ℕ) := ↥(eligible G n) |
| 46 | variable {n : ℕ} {c : Side} |
| 47 | |
| 48 | abbrev Ink (G : Gauge) (c : Side) := Cell (Per c) → G.Color |
| 49 | |
| 50 | def diffDir (a : Axis) (F : Ink G c) (X : Cell (Per c)) : G.Color := if a∈X.2 then |
| 51 | sign X.2 a • (F (X.1+step a,X.2.erase a)-F (X.1,X.2.erase a)) else 0 |
| 52 | def track (F : Ink G c) : Ink G c := ∑ i, diffDir i F |
| 53 | |
| 54 | def post (A : ArrayC (Fin n) (Per c) (ColorPart G n)) (F : Fin n → Ink G c) : ℝ := |
| 55 | ∑ X, (A X).val (fun i => F i (X i)) |
| 56 | |
| 57 | private def toggle (a : Axis) : Equiv.Perm (Finset Axis) where |
| 58 | toFun S := if a∈S then S.erase a else insert a S |
| 59 | invFun S := if a∈S then S.erase a else insert a S |
| 60 | left_inv S := by by_cases h : a∈S <;> simp [h] |
| 61 | right_inv S := by by_cases h : a∈S <;> simp [h] |
| 62 | |
| 63 | private lemma one_payment (a : Axis) (L : Cell (Per c) → G.Color →L[ℝ] ℝ) (F : Ink G c) : |
| 64 | ∑ x : Cell (Per c), (sect a L x) (F x) = ∑ x : Cell (Per c), L x (diffDir a F x) := by |
| 65 | classical |
| 66 | rw [Fintype.sum_prod_type,Fintype.sum_prod_type, Finset.sum_comm] |
| 67 | conv_rhs => rw [Finset.sum_comm,← Equiv.sum_comp (toggle a)] |
| 68 | refine Finset.sum_congr rfl fun b _ => ?_ |
| 69 | by_cases h : a∈b |
| 70 | · simp [toggle, h,diffDir,sect_at] |
| 71 | have he : (toggle a) b=insert a b := if_neg h |
| 72 | simp_rw [he, sect_at, diffDir] |
| 73 | simp only [h,↓reduceIte,mem_insert_self,sign_insert b a h, erase_insert h, _root_.smul_apply,map_sub, |
| 74 | map_smul,_root_.sub_apply,← smul_sum,sum_sub_distrib] |
| 75 | congr 2 |
| 76 | let e := Equiv.subRight (step a : Site c) |
| 77 | have hx (x : Site c) : F (x,b)= F (e x+step a,b) := by rw [show e x+_=x from sub_add_cancel ..] |
| 78 | exact (sum_congr rfl fun x _ => congr_arg _ (hx x)).trans (Equiv.sum_comp e (fun x => L (x,insert a b) (F (x+step a,b)))) |
| 79 | |
| 80 | private lemma all_payment (L : Cell (Per c) → G.Color →L[ℝ] ℝ) (F : Ink G c) : |
| 81 | ∑ x : Cell (Per c), (rim L x) (F x) = ∑ x : Cell (Per c), L x (track F x) := by |
| 82 | simp_rw [rim_at, track, Finset.sum_apply,map_sum, _root_.sum_apply] |
| 83 | rw [Finset.sum_comm]; conv_rhs => rw [Finset.sum_comm] |
| 84 | refine Finset.sum_congr rfl fun _ _ => one_payment .. |
| 85 | |
| 86 | theorem scatter {ι V : Type*} [Fintype ι] [Fintype V] [DecidableEq ι] (l : ι) (f : (ι→V)→ℝ) : |
| 87 | ∑ X : ι→V, ∑ i, f (update X l i)= Fintype.card V • ∑ X,f X := by |
| 88 | let e : Equiv.Perm ((ι→V)×V) := { |
| 89 | toFun p := (update p.1 l p.2,p.1 l), invFun p := (update p.1 l p.2,p.1 l), |
| 90 | left_inv p := by simp, right_inv p := by simp } |
| 91 | have he := Equiv.sum_comp e fun q => f q.1 |
| 92 | simp_rw [Fintype.sum_prod_type] at he |
| 93 | simp only [Finset.sum_const,Finset.card_univ,← Finset.smul_sum] at he |
| 94 | exact he |
| 95 | |
| 96 | /-- Duality with the sign conventions of Lattice.d, finite counting. -/ |
| 97 | theorem transfers (j : Fin n) (A : ArrayC (Fin n) (Per c) (ColorPart G n)) (F : Fin n → Ink G c) : |
| 98 | post (lower j A) F=post A (update F j (track (F j))) := by |
| 99 | let L := update F j (track (F j)) |
| 100 | have hW (Z : ArrayC (Fin n) (Per c) (ColorPart G n)) (F : Fin n → Ink G c) := |
| 101 | scatter (V:=Cell (Per c)) j (fun X => (Z X).val (fun i => F i (X i))) |
| 102 | apply (smul_right_injective ℝ (Nat.cast_ne_zero.mpr (Fintype.card_pos (α:=Cell (Per c))).ne' : |
| 103 | (↑(Fintype.card (Cell (Per c))) : ℝ) ≠ 0)) |
| 104 | dsimp only; rw [Nat.cast_smul_eq_nsmul, Nat.cast_smul_eq_nsmul, post,post, ← hW,← hW] |
| 105 | refine Finset.sum_congr rfl fun X _ => ?_ |
| 106 | let B := peek j X A |
| 107 | let a (i) := F i (X i) |
| 108 | let D (y : Cell (Per c)) : G.Color →L[ℝ] ℝ := (B y).val.toContinuousLinearMap a j |
| 109 | have hh Q (y : Cell (Per c)) : (peek j X (lower j A) y).val (update a j Q)=rim D y Q := by |
| 110 | rw [peek_lower,rim_at,rim_at, _root_.sum_apply] |
| 111 | change ((eligible G n).subtype (∑ i : Axis,sect i (peek j X A) y)) (update a j Q) = _ |
| 112 | rw [map_sum,_root_.sum_apply]; refine Finset.sum_congr rfl fun i _ => ?_ |
| 113 | rw [sect_at,sect_at]; split; · rfl |
| 114 | simp only [map_smul,map_sub, _root_.smul_apply, _root_.sub_apply]; rfl |
| 115 | calc |
| 116 | _ = ∑ y : Cell (Per c), rim D y (F j y) := by |
| 117 | apply Finset.sum_congr rfl; intro y _ |
| 118 | change (peek j X (lower j A) y).val _=_ |
| 119 | rw [← hh]; congr 1; funext i; by_cases h : i=j <;> simp [h,a] |
| 120 | _ = ∑ y : Cell (Per c), D y (track (F j) y) := all_payment D (F j) |
| 121 | _ = _ := by |
| 122 | apply Finset.sum_congr rfl; intro y _ |
| 123 | change (A _).val (update _ _ _) = _ |
| 124 | congr 1; funext i; by_cases h : i=j <;> simp [h,a] |
| 125 | |
| 126 | lemma post_recovers (A : ArrayC (Fin n) (Per c) (ColorPart G n)) (F : Fin n → G.Color) (X) : |
| 127 | post A (fun i => Pi.single (X i) (F i))=(A X).val F := by |
| 128 | unfold post; rw [Finset.sum_eq_single X] |
| 129 | · congr; funext; simp |
| 130 | · intro i _ hi |
| 131 | obtain ⟨j,hj⟩ := Function.ne_iff.mp hi |
| 132 | exact (A i).val.map_coord_zero j (by simp [hj]) |
| 133 | simp |
| 134 | |
| 135 | /-- `liftField` for the finite duality, zeros in UNUSED degrees. -/ |
| 136 | def liftField (r : ℕ) (F : fieldDir G c r) : Ink G c := fun x => |
| 137 | if h : x.2.card=r then F (x.1,⟨x.2,h⟩) else 0 |
| 138 | |
| 139 | def shape (r : ℕ) (b : Body r c) : Cell (Per c) := (b.1,b.2.val) |
| 140 | |
| 141 | |
| 142 | |
| 143 | lemma lifted_shape (r : ℕ) (F : fieldDir G c r) (b : Body r c) : liftField r F (shape r b)=F b := by |
| 144 | unfold shape liftField; rw [dif_pos b.2.property] |
| 145 | |
| 146 | lemma track_shape (r : ℕ) (F : Ink G c) (b : Body (r+1) c) : track F (shape _ b) = |
| 147 | dColor G c r (F ∘ shape r) b := by |
| 148 | ext i |
| 149 | unfold track dColor parts d; simp only [discrete,Finset.sum_apply]; change (∑ x : Axis, diffDir x F (shape _ b)) i=_ |
| 150 | apply Eq.trans ?_ (Finset.sum_congr rfl (f:=fun x : Axis => diffDir x F (shape _ b) i) ?_) |
| 151 | · let P := (((WithLp.linearEquiv 2 ℝ (G.ColorIndex → ℝ))).toLinearMap : G.Color →ₗ[ℝ] G.ColorIndex → ℝ) |
| 152 | exact (map_sum ((LinearMap.proj (R:=ℝ) (φ:=fun _ => ℝ) i).comp P) (fun x => diffDir x F (shape _ b)) Finset.univ) |
| 153 | intro x _; unfold diffDir; split |
| 154 | · rename_i hi; rw [dif_pos (show x∈b.2.val from hi)]; rfl |
| 155 | rename_i hi; rw [dif_neg (show ¬ x∈b.2.val from hi)]; rfl |
| 156 | end YM.AnalyticNext.QuarticMatch.BoxChain |