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.Contacts.Score.Scripts |
| 2 | /-! |
| 3 | # Binomial regrouping with finite subpartitions in the different frames |
| 4 | |
| 5 | Permute only the subpartitions on disjoint groups. Works on score products where the optical terms |
| 6 | carry their prescribed order inside. Sum over **all** refinements, not any particular maximal tree. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | set_option maxHeartbeats 600000 |
| 10 | noncomputable section |
| 11 | namespace YM.Contacts.Normal |
| 12 | open Function Filter Set Metric MeasureTheory Submodule Ordered |
| 13 | open scoped Topology BigOperators Classical ContDiff TensorProduct InnerProductSpace |
| 14 | variable {k : ℕ} {E F : Type*} {g : Group k}[Ring F] |
| 15 | def options (P : Pieces g)(C : choices P) (i : Group k) : Pieces i := if h:i∈P.parts then C ⟨i,h⟩ else ⊤ |
| 16 | @[simp] lemma selected (P : Pieces g) (C : choices P) (i : P.parts) : options P C i.val=C i:= dif_pos i.property |
| 17 | lemma contents (P : Pieces g)(C : choices P): (stitch P C).parts=P.parts.biUnion (fun a=> (options P C a).parts):= by |
| 18 | ext x; rw [stitches,Finset.mem_biUnion]; exact ⟨fun ⟨a,ha⟩=> ⟨_,a.property,by rw [selected]; exact ha⟩, fun ⟨a, ha, h⟩=> ⟨⟨a,ha⟩,(dif_pos ha : options P C a=_ ) ▸ h⟩⟩ |
| 19 | |
| 20 | def permitted (p : Group k→ F) := ∀ a b : Group k, Disjoint a b → Commute (p a) (p b) -- empty commutes too or tweak |
| 21 | lemma permitted.stands {p : Group k→ F} (h : permitted p) (P : Pieces g) : (P.parts:Set (Group k)).Pairwise fun i j=>Commute (p i) (p j) := fun _ hi _ hj he=> h _ _ (P.disjoint hi hj he) |
| 22 | def parcel (p : Group k → F) (P : Pieces g) := Ordered.product P.parts p |
| 23 | lemma sewn (P : Pieces g)(C : choices P)(p : Group k→ F)(h : permitted p) : parcel p (stitch P C)=assembly F P.parts (fun i:P.parts=> parcel p (C i)):= by |
| 24 | have hp := h.stands (stitch P C); have hh : (P.parts:Set (Group k)).Pairwise fun i j=> Disjoint (options P C i).parts (options P C j).parts := by |
| 25 | intro i hi j hj he; refine Finset.disjoint_left.mpr (fun a ha hb=>?_) |
| 26 | have hA:= (options P C i).subset ha; have hB:=(options P C j).subset hb |
| 27 | obtain ⟨x,hx⟩:= (options P C i).nonempty_of_mem_parts ha; exact Finset.disjoint_left.mp (P.disjoint hi hj he) (hA hx) (hB hx) |
| 28 | rw [contents] at hp; rw [parcel,contents, Ordered.gather_product _ _ hh hp]; unfold Ordered.product |
| 29 | apply congr_arg (assembly ..); funext i; change parcel p _ = _; rw [selected P C i] |
| 30 | |
| 31 | /-- Sum over proper sub-strata of one block using its punctured partition expansions. -/ |
| 32 | def totalForm (p : Group k → F) (g : Group k) := ∑ P:Pieces g, parcel p P |
| 33 | def receding (p : Group k → F)(g : Group k) := ∑ P∈(Finset.univ.erase (⊤:Pieces g)), parcel p P |
| 34 | lemma partition_cases {p : Group k→ F} (h : g.Nonempty) : totalForm p g = receding p g + p g := by unfold totalForm; rw [← Finset.sum_erase_add (a:=⊤) _ _ (Finset.mem_univ _)]; change receding _ _ + parcel p (⊤:Pieces g)=_; rw [parcel,one_set _ rfl h,product_one] |
| 35 | lemma over_refinements (p : Group k → F) (Q : Pieces g) (h : permitted p) : |
| 36 | ∑ P : ↑(Set.Iic Q), parcel p P.val = parcel (totalForm p) Q := by |
| 37 | let e : choices Q≃ ↑(Set.Iic Q):= Equiv.ofBijective _ (stitch_bijection Q) |
| 38 | rw [← Equiv.sum_comp e (fun P=>parcel p P.val)]; unfold parcel Ordered.product totalForm; -- use map_sum with subtype. change names |
| 39 | rw [(assembly F Q.parts).map_sum (α:=fun i=>Pieces i.val) (g:=fun i y=> parcel p y)] |
| 40 | exact Finset.sum_congr rfl fun x _=> sewn Q x p h |
| 41 | lemma full_expands (p : Group k → F) (Q : Pieces g) (h : permitted p) : |
| 42 | ∑ P∈ (Finset.univ.filter fun v=>v≤ Q),parcel p P=parcel (totalForm p) Q:= by |
| 43 | rw [← over_refinements p Q h]; exact (Finset.sum_subtype _ (fun _=>by simp) (parcel p)) -- check name |
| 44 | end YM.Contacts.Normal |