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.Alive |
| 2 | import YM.Contacts.Normal.Rays |
| 3 | /-! |
| 4 | # Chosen alternatives and (when examining disjoint strata) shells |
| 5 | |
| 6 | Absoluteness for several clusters, several alternatives simult. needs control over the punctured |
| 7 | pairings when one or more root arms are fixed, shell slice or not. The normal test localization |
| 8 | is optically AFTER the Taylor difference mask, never used on the test to compute the difference. |
| 9 | Germ equations still apply to the `action` of these scores. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | set_option maxHeartbeats 600000 |
| 13 | noncomputable section |
| 14 | namespace YM.Contacts.Normal |
| 15 | open Function Filter Set Metric MeasureTheory Submodule Ordered MultipleContact MultipleContact.Panel MultipleContact.Script |
| 16 | open scoped Topology Classical BigOperators ContDiff TensorProduct InnerProductSpace |
| 17 | variable {I A B E : Type*} [NormedAddCommGroup E][InnerProductSpace ℝ E][FiniteDimensional ℝ E] |
| 18 | [CommRing A][Algebra ℂ A] |
| 19 | variable {k : ℕ} {p q : Optical E} {K L V T : Submodule ℝ E} |
| 20 | def Layered (K : Submodule ℝ E)(f : SmoothTests E) : Prop := ∀ x y,K.starProjection x= K.starProjection y → f.val x =f.val y |
| 21 | variable {f g : SmoothTests E} |
| 22 | lemma stillWindow (K : Submodule ℝ E) (r : ℝ) : Layered K (eclipse K r) := fun _ _ hx=> show (↑(cutoff _ _):ℂ)-(↑(cutoff _ _):ℂ)=(↑(cutoff _ _):ℂ)-(↑(cutoff _ _):ℂ) by rw [hx] |
| 23 | omit [FiniteDimensional ℝ E] in |
| 24 | lemma commute_direct (f g : SmoothTests E) : Commute (mask f) (mask g):= LinearMap.ext fun _=> Subtype.ext (funext fun x=>mul_left_comm (f.val x) (g.val x) _) |
| 25 | lemma free_slide (hf : Layered K f) (h : L ≤ Kᗮ)(t : ℝ)(x : E) : f.val (slide L t x)=f.val x:= hf _ _ (by change K.starProjection (x+(t-1) • L.starProjection x)=_; rw [map_add,map_smul,K.starProjection_apply_eq_zero_iff.mpr (h (L.starProjection_apply_mem x)),smul_zero,add_zero]) |
| 26 | lemma free_scale (hf : Layered K f) (h : L ≤ Kᗮ) (g : SmoothTests E) (n : ℕ) (x:E) : (piece L n (mask f g)).val x= f.val x*(piece L n g).val x:= by |
| 27 | have he:= atoms_equal L (mask f g) n 1 x; have he':=atoms_equal L g n 1 x; rw [slide_one] at he he'; rw [← he,← he',vat _ (onScale ..), vat _ (onScale ..)] |
| 28 | rw [show (fun y:ℝ=>scaledField L (mask f g) (x,y))=(fun y:ℝ=> f.val x • scaledField L g (x,y)) from funext fun y=> by change f.val (slide L y x) * _= _; rw [free_slide hf h]; rfl]; unfold coeff |
| 29 | have hk : ContDiff ℝ ∞ (fun y:ℝ=>scaledField L g (x,y)):= (onScale L g).comp (contDiff_const.prodMk contDiff_id) |
| 30 | rw [show (fun y:ℝ=> f.val x • scaledField L g (x,y))= f.val x • (fun y:ℝ=>scaledField L g (x,y)) from rfl,iteratedFDeriv_const_smul_apply (lowerSmooth hk _|>.contDiffAt)]; exact smul_comm _ _ _ |
| 31 | lemma free_taylor (hf : Layered K f)(h : L ≤ Kᗮ)(r : ℝ)(n : ℕ) : Commute (mask f) (taylor L r n) := by |
| 32 | refine Eq.symm (LinearMap.ext fun g=> Subtype.ext (funext fun x=>?_)) -- coercions Commute? |
| 33 | change (window _ _).val x * (jet L n (mask f g)).val x = f.val x*((window _ _).val x * (jet L n g).val x) |
| 34 | rw [← mul_left_comm ((window L r).val x) (f.val x) ((jet L n g).val x)] -- names? |
| 35 | apply congrArg ((window L r).val x*·); rw [jet_formula,jet_formula,Lens.atoms,Lens.atoms, Finset.mul_sum]; exact Finset.sum_congr rfl fun i _=> free_scale hf h g _ x |
| 36 | |
| 37 | inductive Attention (K : Submodule ℝ E) : Optical E → Prop |
| 38 | | thermal {p : Optical E} : Uses K p → Attention K p |
| 39 | | opt {L : Submodule ℝ E}{f : SmoothTests E} : L≤K → Layered L f → Attention K (mask f) |
| 40 | | times {p q : Optical E} : Attention K p→ Attention K q → Attention K (p*q) |
| 41 | |
| 42 | lemma Layered.independent (hf : Layered K f)(he : Uses L p)(h : L ≤ Kᗮ) : Commute (mask f) p:= by |
| 43 | induction he with |
| 44 | | taylor M he v i=> exact free_taylor hf (he.trans h) .. |
| 45 | | times _ _ hx hy=> exact hx.mul_right hy |
| 46 | | id => exact Commute.one_right _ |
| 47 | |
| 48 | omit [FiniteDimensional ℝ E] in |
| 49 | lemma skip (h : K ≤ Lᗮ) : L ≤ Kᗮ := (le_orthogonal_orthogonal _).trans (orthogonal_le h) |
| 50 | lemma Attention.ready (hx : Attention K p)(hy : Attention L q)(h : K≤ Lᗮ) : Commute p q:= by |
| 51 | induction hx with |
| 52 | | thermal hx=> |
| 53 | induction hy with |
| 54 | | thermal hy=> exact hx.independent hy h |
| 55 | | opt hy hm=> exact (hm.independent hx (h.trans (orthogonal_le hy))).symm |
| 56 | | times _ _ hx hy=> exact hx.mul_right hy |
| 57 | | opt hx hk=> |
| 58 | induction hy with |
| 59 | | thermal hy=> exact hk.independent hy (skip (hx.trans h)) |
| 60 | | opt hy hm=> exact commute_direct .. |
| 61 | | times _ _ hx hy=> exact hx.mul_right hy |
| 62 | | times _ _ hx hy=> exact hx.mul_left hy |
| 63 | lemma Attention.adhesive (h : Attention K p) {D : E→ₗ[ℝ] E4}(he : K≤D.ker) : Adhesive D p := by |
| 64 | induction h with |
| 65 | | thermal h=> exact Adhesive.from_use h he |
| 66 | | @opt L f h'=> exact ⟨id, fun x a b he=> he.mono fun x hx=> congr_arg (f.val x *·) hx, fun _=>rfl⟩ |
| 67 | | times _ _ ha hb=> exact ha.multiply hb |
| 68 | |
| 69 | variable {S U : Group k} (P : E →ₗᵢ[ℝ] Points k) |
| 70 | /-- none vote means keep all weights and residue. some vote an extended choice |
| 71 | (including residue). Horizon still determined by assigned grades. Slice for annular estimate. -/ |
| 72 | structure Ballot where |
| 73 | vote : Option (Option ℕ) |
| 74 | slice : Option ℕ |
| 75 | namespace Ballot |
| 76 | variable (x : Ballot) |
| 77 | def tally {n : ℕ}(a : Option (Fin n)) := x.vote=none ∨ x.vote= some (Option.map Fin.val a) |
| 78 | def whole : Ballot:= ⟨none,none⟩ |
| 79 | def adjust (v : Option (Option ℕ))(n : Option ℕ): Ballot:= ⟨v,n⟩ |
| 80 | def flip (n : ℕ) : Ballot:= ⟨x.vote,some n⟩ |
| 81 | end Ballot |
| 82 | abbrev Menu (k : ℕ) := Group k → Ballot |
| 83 | def widenMenu (q : Splittings S) (f : Menu k) : Menu k:= fun i=> if i∈ q.val.parts then Ballot.whole else f i |
| 84 | lemma menu_small (q : Splittings S)(f : Menu k)(h : U∈ q.val.parts): widenMenu q f U = Ballot.whole:= if_pos h |
| 85 | lemma menu_unchanged (q : Splittings S)(f : Menu k)(h : U ∉ q.val.parts): widenMenu q f U=f U := if_neg h |
| 86 | namespace System |
| 87 | variable (Y:System E A k) (s : ℝ) {g : Group k} (i : Group k) |
| 88 | |
| 89 | -- test only |
| 90 | abbrev sliceAt (v : Option ℕ) : Optical E := v.elim 1 (fun n=>mask (eclipse (normalOn P i) (dyad n))) -- `1` lens id |
| 91 | abbrev maskScore (X : Score E A)(b : Ballot)(v : Y.Arm i) := X * instructionScore E A (sliceAt P i b.slice)*instructionScore E A (Y.maskAt P s i v) -- `After` rightmost first |
| 92 | |
| 93 | def candidate (v : Y.Arm i)(b : Ballot) := Y.maskScore P s i (reshape (Y.treatment i v) (Y.punctured P s i)) b v |
| 94 | abbrev slate (b : Ballot) : Finset (Y.Arm i) := Finset.univ.filter b.tally |
| 95 | def vote (b : Ballot) := if 1 < i.card then ∑ v∈Y.slate i b, Y.candidate P s i v b else Y.full P s i |
| 96 | lemma pays (b : Ballot)(h : 1 < i.card) : Y.vote P s i b=∑ v∈Y.slate i b, Y.candidate P s i v b:= if_pos h |
| 97 | lemma alone (b : Ballot)(h : i.card ≤ 1): Y.vote P s i b= Y.full P s i := if_neg (not_lt.mpr h) |
| 98 | omit [FiniteDimensional ℝ E] in |
| 99 | lemma all_members (b : Ballot)(h : b.vote=none) : Y.slate i b= Finset.univ:= Finset.filter_true_of_mem fun _ _=> Or.inl h -- name? |
| 100 | omit [FiniteDimensional ℝ E] in |
| 101 | lemma one_member (b : Ballot)(v : Y.Arm i)(h : b.vote=some (Option.map Fin.val v)) : Y.slate i b={v}:= by |
| 102 | ext a; simp only [slate, Finset.mem_filter, Ballot.tally,h, reduceCtorEq,Option.some.injEq,false_or, Finset.mem_singleton,Finset.mem_univ,true_and]; cases a <;> cases v <;> simp [eq_comm,Fin.ext_iff] -- iff |
| 103 | lemma from_unit (X : Score E A) : X * instructionScore E A (sliceAt P i none)=X:=mul_one X |
| 104 | lemma unsliced (v : Y.Arm i) (b : Ballot)(h : b.slice=none) : Y.candidate P s i v b= reshape (Y.treatment i v) (Y.punctured P s i) * instructionScore E A (Y.maskAt P s i v):= by rw [candidate,maskScore,h,from_unit] |
| 105 | lemma all_votes : Y.vote P s i Ballot.whole= Y.full P s i:= by |
| 106 | by_cases h:1 < i.card; swap; · exact Y.alone P s _ _ (not_lt.mp h) |
| 107 | rw [pays _ _ _ _ _ h, all_members _ _ _ rfl]; simp_rw [Y.unsliced P s i _ Ballot.whole rfl]; exact (Y.full_split P s i h).symm |
| 108 | lemma focused_candidate (v : Y.Arm i)(b : Ballot) : Mark (Attention (normalOn P i)) (Y.candidate P s i v b):= by |
| 109 | let L := Attention (normalOn P i); apply Mark.prod (R:=L) (S:=L) ?_ ?_ (fun _ _ hx hy=>hx.times hy) |
| 110 | · apply Mark.prod (R:=L) (S:=L) (Mark.transformed ((Y.uses_punctured P s i).switch fun _=> .thermal) _) ?_ (fun _ _ hx hy=> hx.times hy) |
| 111 | cases b; next v w=> cases w with |
| 112 | | none=> exact Mark.inst (.thermal Uses.id) |
| 113 | | some n=> exact Mark.inst (.opt le_rfl (stillWindow _ _)) |
| 114 | cases v with |
| 115 | | none=> exact Mark.inst (.thermal Uses.id) |
| 116 | | some w=> rw [maskAt, instructionScore,deviation, show (1:E→A) ⊗ₜ[ℂ] (LinearMap.id - taylor (normalOn P i) s (Y.needle i w))=(1 ⊗ₜ[ℂ] (1:Optical E))-(1 ⊗ₜ[ℂ] taylor (normalOn P i) s (Y.needle i w)) from TensorProduct.tmul_sub (1:E→A) (1:Optical E) (taylor (normalOn P i) s (Y.needle i w)),sub_eq_add_neg]; exact Mark.plus (.atom _ (Attention.thermal Uses.id)) (Mark.minus (.atom _ (.thermal (.taylor _ le_rfl _ _)))) |
| 117 | lemma focused (b : Ballot) : Mark (Attention (normalOn P i)) (Y.vote P s i b):= by |
| 118 | unfold vote; split; exact Mark.sum (fun _ _=>focused_candidate ..); exact Mark.switch (Y.uses_full P s i) (fun _=> Attention.thermal) |
| 119 | end System |
| 120 | end YM.Contacts.Normal |