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.Line.Pine |
| 2 | |
| 3 | /-! |
| 4 | # A funded stencil by tests at cell origins |
| 5 | -/ |
| 6 | noncomputable section |
| 7 | namespace YM.RG08.Line |
| 8 | open Stationary Function Matrix Lattice Exterior Precision RG Tree Wilson Laurent Bloch Finset RG08.Rows |
| 9 | open scoped Matrix BigOperators Topology Classical |
| 10 | set_option autoImplicit false |
| 11 | variable {α β γ : Type} [Fintype α] [Fintype β] |
| 12 | |
| 13 | lemma onePrice (W : α→β)(u:α→Cover)(A:∀ n:Side,Matrix (Co n α) (Co n β) ℝ) (q:α→ℝ) |
| 14 | (h:∀ n v x,(A n*ᵥ v) x=q x.2 * v (x.1+wrap n (u x.2),W x.2)):Fund A := by |
| 15 | refine Fund.rout Unit (fun _=> Matrix.of fun a b=> if b=W a then q a else 0) (fun _ a _=> u a) A (fun n v x=>?_) |
| 16 | rw [h]; simp [ite_mul] |
| 17 | |
| 18 | /-- Each output orientation sees a finite list of translated input sites/orientations. |
| 19 | Weights real, no positivity assumption. Test translations are from the *coarse-cell* origin. |
| 20 | No hypothesis yet on moment/rank scaling so this is strictly post-block (length costs may see J). |
| 21 | -/ |
| 22 | abbrev stencil (α β : Type) := α→List (Cover × β × ℝ) |
| 23 | |
| 24 | def stint (V : stencil α β) (n : Side)(v:Corn (Co n β))(x : Co n α) := ((V x.2).map fun w=> w.2.2 * v (x.1+wrap n w.1,w.2.1)).sum |
| 25 | |
| 26 | lemma readsPrice (V : stencil α β)(A:∀ n:Side,Matrix (Co n α) (Co n β) ℝ) |
| 27 | (h:∀ n v x,(A n*ᵥ v) x=stint V n v x): Fund A := by |
| 28 | let K := univ.sup (fun i : α=> (V i).length) |
| 29 | let pick (t:Fin K) (i:α)(k:β) : Cover × β × ℝ := ((V i)[t.val]?).getD (0,k,0) |
| 30 | let X (t:Fin K): Matrix α β ℝ := Matrix.of fun i k=> if k=(pick t i k).2.1 then (pick t i k).2.2 else 0 |
| 31 | refine Fund.rout _ X (fun t i k=> (pick t i k).1) A fun n v x=>?_ |
| 32 | rw [h] |
| 33 | let f (a: Cover × β × ℝ) := a.2.2 * v (x.1+wrap n a.1,a.2.1) |
| 34 | have ht (s:List (Cover × β × ℝ)) : (s.map f).sum = ∑ i:Fin s.length,f (s.get i):=by |
| 35 | induction s with |
| 36 | | nil => simp |
| 37 | | cons a s ih => |
| 38 | change _=∑ i:Fin (s.length+1),_ |
| 39 | rw [Fin.sum_univ_succ]; simpa only [List.get_eq_getElem, Fin.val_zero,Fin.val_succ,List.getElem_cons_succ,List.getElem_cons_zero,List.map,List.sum_cons] using congr_arg (f a + ·) ih |
| 40 | rw [stint] |
| 41 | calc |
| 42 | _ = ∑ i:Fin (V x.2).length,f ((V x.2).get i):= ht _ |
| 43 | _ = ∑ t:Fin K,∑ j:β,X t x.2 j*v (x.1+wrap n (pick t x.2 j).1,j) := by |
| 44 | let g := fun t:Fin K=>∑ j:β,X t x.2 j*v (x.1+wrap n (pick t x.2 j).1,j) |
| 45 | let hk : (V x.2).length ≤ K := Finset.le_sup (f:=fun i=> (V i).length) (b:=x.2) (mem_univ _) |
| 46 | let E : Fin (V x.2).length ↪ Fin K := ⟨Fin.castLE hk,(fun _ _ h=> Fin.ext (congr_arg (fun t:Fin K=>t.val) h))⟩ |
| 47 | have he (t:Fin (V x.2).length)(j:β): pick (E t) x.2 j=(V x.2).get t:=by simp [pick,E,List.get_eq_getElem] |
| 48 | have hg (t:Fin (V x.2).length): f ((V x.2).get t)=g (E t):=by |
| 49 | unfold g f X; simp only [of_apply,he,ite_mul]; simp |
| 50 | simp_rw [hg] |
| 51 | change (∑ t,g (E t))=∑ t,g t |
| 52 | rw [← Finset.sum_map] |
| 53 | apply Finset.sum_subset (Finset.subset_univ _) |
| 54 | intro i _ hI |
| 55 | have hy:(V x.2).length ≤ i.val:= by |
| 56 | by_contra! hh |
| 57 | have ht: i=E ⟨i.val,hh⟩ := Fin.ext rfl |
| 58 | exact hI (Finset.mem_map.mpr ⟨_,mem_univ _,ht.symm⟩) |
| 59 | have hy' (j:β):pick i x.2 j=(0,j,0):=by simp [pick,List.getElem?_eq_none hy] |
| 60 | unfold g X; simp [hy'] |
| 61 | |
| 62 | -- transferring a test from a repacked fine index |
| 63 | omit [Fintype α] [Fintype β] in |
| 64 | lemma repack_test [Fintype β] [Fintype γ] {δ:Type}(e:α ≃ δ)(k:β≃γ)(A:Matrix α β ℝ)(v:Corn γ)(x:δ): |
| 65 | (repackM e k A *ᵥ v) x=(A *ᵥ (v ∘ k)) (e.symm x):= by |
| 66 | classical |
| 67 | unfold repackM Matrix.mulVec dotProduct |
| 68 | simpa [Matrix.submatrix] using Equiv.sum_comp k.symm (fun i=> A (e.symm x) i*(v ∘ k) i) |
| 69 | end YM.RG08.Line |