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.Extra.ITERATION_NO_LOSS.Atoms |
| 2 | import YM.Work.F03.Transport |
| 3 | |
| 4 | /-! |
| 5 | # Linear curvature readings with slot differences, before channel averaging |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Extra.Iteration |
| 10 | open Lattice Wilson RG Exterior Precision Function |
| 11 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 12 | |
| 13 | variable {G : Gauge} {n : Side} {k : ℕ} |
| 14 | |
| 15 | /-- Components in the real counting color basis. -/ |
| 16 | abbrev Flux (G : Gauge) (n : Side) := PlaqAxes → G.ColorIndex → Site n → ℝ |
| 17 | |
| 18 | def flux (a : Bid.Dir G n) : Flux G n := fun b j x => Work.F03.faceCurl (x,b) a j |
| 19 | |
| 20 | def grad (i : Axis) (f : Site n → ℝ) (x : Site n) := f (x+step i) - f x |
| 21 | |
| 22 | def read (i : Option Axis) (f : Site n → ℝ) := i.elim f (fun a => grad a f) |
| 23 | |
| 24 | structure Pattern (G : Gauge) (k : ℕ) where |
| 25 | op : Fin k → Option Axis |
| 26 | atom : Atom G k |
| 27 | |
| 28 | def plain (a : Atom G k) : Pattern G k := ⟨fun _ => none,a⟩ |
| 29 | def both (a : Pattern G 2) := ∀ i, (a.op i).isSome |
| 30 | |
| 31 | def Pattern.sample (a : Pattern G k) (V : Flux G n) (x : Site n) := ∑ b, a.atom.coeff b * |
| 32 | ∏ i, read (a.op i) (V (a.atom.leg i).plaq (b i)) (x + wrap n (a.atom.leg i).offset) |
| 33 | |
| 34 | variable {ι : Type*} |
| 35 | def total (E : ι → Pattern G k) (V : Flux G n) := ∑' e, ∑ x, (E e).sample V x |
| 36 | |
| 37 | lemma sample_est {σ C : ℝ} (E : ι → Pattern G k) (V : Flux G n) (hs : 0 ≤ σ) (hE : Charged (fun i => (E i).atom) σ C) : |
| 38 | ∃ B : ℝ, 0 ≤ B ∧ ∀ x, SumBudget (fun i => |(E i).sample V x|) B := by |
| 39 | let D := ∑ j : PlaqAxes, ∑ b : G.ColorIndex, ∑ x : Site n, |V j b x| |
| 40 | have hv j b x : |V j b x| ≤ D := calc |
| 41 | _ ≤ ∑ x,|V j b x| := Finset.single_le_sum (fun _ _ => abs_nonneg _) (Finset.mem_univ x) |
| 42 | _ ≤ ∑ b,∑ x, |V j b x| := Finset.single_le_sum (f:=fun b => ∑ x : Site n, |V j b x|) (fun _ _ => Finset.sum_nonneg fun _ _ => abs_nonneg _) (Finset.mem_univ b) |
| 43 | _ ≤ _ := Finset.single_le_sum (f:=fun j => ∑ b : G.ColorIndex,∑ x : Site n, |V j b x|) (fun _ _ => Finset.sum_nonneg fun _ _ => Finset.sum_nonneg fun _ _ => abs_nonneg _) (Finset.mem_univ j) |
| 44 | have hd : 0 ≤ D := Finset.sum_nonneg fun _ _ => by positivity |
| 45 | have hw (i : Option Axis) j b x : |read i (V j b) x| ≤ D+D := by |
| 46 | cases i with |
| 47 | | none => exact (hv j b x).trans (le_add_of_nonneg_right hd) |
| 48 | | some c => exact (abs_sub _ _).trans (add_le_add (hv j b _) (hv j b x)) |
| 49 | have he (i x) : |(E i).sample V x| ≤ (E i).atom.magnitude * (D+D)^k := by |
| 50 | unfold Pattern.sample Atom.magnitude; rw [Finset.sum_mul]; apply le_trans (Finset.abs_sum_le_sum_abs ..) |
| 51 | refine Finset.sum_le_sum fun b _ => ?_ |
| 52 | rw [abs_mul, Finset.abs_prod]; apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) |
| 53 | simpa using Finset.prod_le_prod (fun _ _ => abs_nonneg _) (fun i (_ : i ∈ (Finset.univ : Finset (Fin k))) => hw _ _ (b i) _) |
| 54 | have hk : SumBudget (fun i => (E i).atom.magnitude) C := by simpa [Charged,Atom.budget] using hE.mono hs le_rfl |
| 55 | have ht := Cost.scale' hk ((D+D)^k) (by positivity) |
| 56 | exact ⟨_,Cost.nonneg ht,fun x => Cost.mono ht (fun i => abs_nonneg _) (fun i => he i x)⟩ |
| 57 | |
| 58 | lemma sample_summable {σ C : ℝ} (E : ι → Pattern G k) (V : Flux G n) (hs : 0 ≤ σ) |
| 59 | (hE : Charged (fun i => (E i).atom) σ C) (x : Site n) : Summable (fun i => (E i).sample V x) := |
| 60 | .of_abs ((sample_est E V hs hE).choose_spec.2 x).2.1 |
| 61 | lemma net_summable {σ C : ℝ} (E : ι → Pattern G k) (V : Flux G n) (hs : 0 ≤ σ) |
| 62 | (hE : Charged (fun i => (E i).atom) σ C) : Summable (fun i => ∑ x, (E i).sample V x) := |
| 63 | summable_sum fun x _ => sample_summable E V hs hE x |
| 64 | |
| 65 | lemma plain_flux (a : Atom G k) (v : Bid.Dir G n) (x : Site n) : (plain a).sample (flux v) x = |
| 66 | a.poly (fun j => Work.F03.faceCurl (Work.F03.slotFace (a.leg j) x) v) := by |
| 67 | simp_rw [Pattern.sample,Atom.poly,read,plain,Option.elim,flux,Work.F03.slotFace,add_comm x] |
| 68 | |
| 69 | lemma total_flux (a : ℕ → Atom G k) (v : Bid.Dir G n) {σ C : ℝ} (hs : 0 ≤ σ) (h : Charged a σ C) : |
| 70 | total (fun i => plain (a i)) (flux v) = ∑ x : Site n, ∑' i, (a i).poly |
| 71 | (fun j => Work.F03.faceCurl (Work.F03.slotFace ((a i).leg j) x) v) := by |
| 72 | unfold total |
| 73 | rw [Summable.tsum_finsetSum (fun x _ => sample_summable _ _ hs (show Charged (fun i => (plain (a i)).atom) σ C from h) x)] |
| 74 | simp only [plain_flux] |
| 75 | |
| 76 | |
| 77 | |
| 78 | /-- Always enumerable, even if there are no terms. Paths retained; extra addresses can still matter downstream. -/ |
| 79 | def padded [Countable ι] (a : ι → Atom G k) : ℕ → Atom G k := Sum.elim a (fun _ : ℕ => blank G k) ∘ numbering _ |
| 80 | lemma padded_cost [Countable ι] {a : ι → Atom G k} {σ C : ℝ} (h : Charged a σ C) : Charged (padded a) σ C := by |
| 81 | have he := Cost.equiv (numbering (ι ⊕ ℕ)) (Cost.sum (f:=fun i => ((Sum.elim a (fun _ => blank G k)) i).budget σ) |
| 82 | h (blank_cost σ)) |
| 83 | rw [add_zero] at he; exact he |
| 84 | lemma padded_silent [Countable ι] {a : ι → Atom G 2} (h : Silent a) : Silent (padded a) := by |
| 85 | intro i b |
| 86 | let f := Sum.elim a (fun _ : ℕ => blank G 2) |
| 87 | let e := numbering (ι ⊕ ℕ) |
| 88 | have h0 := HasSum.sum (f:=fun p => charge (f p) i b) (h i b).1 (blank_silent i b).1 |
| 89 | have h1 (l : Axis) := HasSum.sum (f:=fun p => charge (f p) i b * delta (f p) l) ((h i b).2 l) ((blank_silent i b).2 l) |
| 90 | simp only [zero_add] at h0 h1 |
| 91 | exact ⟨(e.hasSum_iff (f:=fun p => charge (f p) i b)).2 h0,fun l => |
| 92 | (e.hasSum_iff (f:=fun p => charge (f p) i b * delta (f p) l)).2 (h1 l)⟩ |
| 93 | lemma padded_sym [Countable ι] {a : ι → Atom G k} (ha : SymmetricAtoms a) : SymmetricAtoms (padded a) := by |
| 94 | intro i; unfold padded comp; cases numbering (ι ⊕ ℕ) i <;> [apply ha; exact blank_sym] |
| 95 | lemma total_padded [Countable ι] {a : ι → Atom G k} {σ C : ℝ} (h : Charged a σ C) (hs : 0 ≤ σ) (V : Flux G n) : |
| 96 | total (plain ∘ padded a) V = total (plain ∘ a) V := by |
| 97 | let f (i : ι ⊕ ℕ) := ∑ x, (plain (Sum.elim a (fun _ => blank G k) i)).sample V x |
| 98 | calc |
| 99 | _ = ∑' i, f i := (numbering _).tsum_eq f |
| 100 | _ = total (plain ∘ a) V + ∑' i : ℕ, f (.inr i) := Summable.tsum_sum (f:=f) (net_summable (plain ∘ a) _ hs h) |
| 101 | (net_summable (fun _ => plain (blank G k)) _ hs (blank_cost _)) |
| 102 | _ = _ := by simp [f,Pattern.sample,plain,blank] |
| 103 | end YM.Extra.Iteration |