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.RingTheory.Nilpotent.Exp |
| 2 | import YM.Next.EXTRACTION.Tails |
| 3 | import YM.Work.B04 |
| 4 | import YM.Work.B18 |
| 5 | /-! |
| 6 | # Exact compaction of countably many alternative packet entries |
| 7 | |
| 8 | If two history packets are assigned the same (nonempty support) address they |
| 9 | cannot occur together. After proving absolute convergence one can either test |
| 10 | whole selections of histories, or sum the histories assigned to each address |
| 11 | first and then take the usual gas over addresses. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extra.Trajectories |
| 16 | open Finset Marker Filter Function RG |
| 17 | open scoped BigOperators Topology Classical |
| 18 | |
| 19 | variable {ι κ : Type*} [DecidableEq ι] [DecidableEq κ] |
| 20 | variable {V : Type*} [DecidableEq V] {R : Census V} |
| 21 | |
| 22 | namespace Packets |
| 23 | |
| 24 | variable (slot : ι → κ) (adm : Finset κ → Prop) (F : ι → Poly R) |
| 25 | |
| 26 | def selected (s : Finset ι) := adm (s.image slot) ∧ (s : Set ι).InjOn slot |
| 27 | |
| 28 | def value (s : Finset ι) : Poly R := if selected slot adm s then ∏ i∈s,F i else 0 |
| 29 | |
| 30 | omit [DecidableEq ι] in |
| 31 | lemma summable_value {w : V → ℝ} (hw : ∀ i, 0 < w i) (hf : Summable (fun i => Poly.price w (F i))) : |
| 32 | Summable (value slot adm F) := by |
| 33 | let b (s : Finset ι) := ∏ i∈s,Poly.price w (F i) |
| 34 | have hs : Summable b := summable_finsetProd_of_summable_nonneg (fun i => Poly.nonnegative hw _) hf |
| 35 | refine (Poly.budgeted hw hs fun s => ?_).1 |
| 36 | dsimp only [value]; split |
| 37 | · exact Poly.multiple hw _ _ |
| 38 | · simp only [Poly.zero_price]; exact prod_nonneg fun i _ => Poly.nonnegative hw _ |
| 39 | |
| 40 | private abbrev Fiber (b : κ) := {x // slot x = b} |
| 41 | private abbrev Row (s : Finset κ) := (b : s) → Fiber slot b.val |
| 42 | private abbrev Target (s : Finset κ) := {t : Finset ι // t.image slot = s} |
| 43 | |
| 44 | private def flatten {s : Finset κ} (p : Row slot s) : Target slot s := |
| 45 | ⟨univ.image (fun i : s => (p i).val), by ext i; simp [(p _).property]⟩ |
| 46 | |
| 47 | private lemma inj {s : Finset κ} : Injective (@flatten ι κ _ _ slot s) := by |
| 48 | intro p q he |
| 49 | funext i |
| 50 | have hm : (p i).val ∈ (flatten slot p).val := mem_image_of_mem _ (mem_univ i) |
| 51 | rw [he] at hm |
| 52 | obtain ⟨j,-,hj⟩ := mem_image.mp hm |
| 53 | have hh : j = i := Subtype.ext ((q j).property.symm.trans ((congrArg slot hj).trans (p i).property)) |
| 54 | exact Subtype.ext (hh ▸ hj.symm) |
| 55 | |
| 56 | omit [DecidableEq ι] [DecidableEq κ] in |
| 57 | private lemma row_inj {s : Finset κ} (p : Row slot s) : Injective (fun i : s => (p i).val) := by |
| 58 | intro i j he; exact Subtype.ext ((p i).property.symm.trans ((congrArg slot he).trans (p j).property)) |
| 59 | |
| 60 | private lemma matching {s : Finset κ} (hs : adm s) (p : Row slot s) : |
| 61 | value slot adm F (flatten slot p).val = ∏ i,(F (p i).val) := by |
| 62 | rw [value,if_pos (show selected slot adm (flatten slot p).val from ?_)] |
| 63 | · exact prod_image (row_inj slot p).injOn |
| 64 | refine ⟨(flatten slot p).property.symm ▸ hs,?_⟩ |
| 65 | intro x hx y hy he |
| 66 | obtain ⟨i,-,rfl⟩ := mem_image.mp hx |
| 67 | obtain ⟨j,-,rfl⟩ := mem_image.mp hy |
| 68 | have hh : i = j := Subtype.ext ((p i).property.symm.trans (he.trans (p j).property)) |
| 69 | subst j; rfl |
| 70 | |
| 71 | private lemma in_range {s : Finset κ} (z : Target slot s) |
| 72 | (hz : value slot adm F z.val ≠ 0) : z ∈ Set.range (flatten slot) := by |
| 73 | have hs : (z.val : Set ι).InjOn slot := by |
| 74 | unfold value at hz; split at hz |
| 75 | next he => exact he.2 |
| 76 | contradiction |
| 77 | have pick (i : s) : ∃ x∈z.val,slot x=i.val := mem_image.mp (z.property.symm ▸ i.property) |
| 78 | choose x hx h using pick |
| 79 | let p (i : s) : Fiber slot i.val := ⟨x i,h i⟩ |
| 80 | refine ⟨p,Subtype.ext (Finset.ext fun b => ?_)⟩ |
| 81 | constructor |
| 82 | · intro he; obtain ⟨i,-,rfl⟩ := mem_image.mp he; exact hx i |
| 83 | intro he |
| 84 | let i : s := ⟨slot b,z.property ▸ mem_image_of_mem slot he⟩ |
| 85 | exact mem_image.mpr ⟨i,mem_univ i,hs (hx i) he (h i)⟩ |
| 86 | |
| 87 | private lemma product {s : Finset κ} (ha : adm s) (hs : Summable (value slot adm F)) (hf : Summable F) : |
| 88 | ∑' p : Row slot s, value slot adm F (flatten slot p).val = |
| 89 | ∏ i∈s,∑' x : Fiber slot i,F x.val := by |
| 90 | let f (i : κ) := ∑' x : Fiber slot i,F x.val |
| 91 | let q := fun p : Row slot s => value slot adm F (flatten slot p).val |
| 92 | have hq : Summable q := hs.comp_injective (Subtype.val_injective.comp (inj slot)) |
| 93 | let X (D : Finset ι) (i : s) : Finset (Fiber slot i.val) := D.subtype (fun x => slot x=i.val) |
| 94 | have he (i : s) : Tendsto (fun D => X D i) atTop atTop := by |
| 95 | refine tendsto_atTop_finset_of_monotone (fun A B h z hz => mem_subtype.mpr (h (mem_subtype.mp hz))) ?_ |
| 96 | exact fun z => ⟨{z.val},mem_subtype.mpr (mem_singleton_self _)⟩ |
| 97 | have ht (i : s) : Tendsto (fun D => ∑ x∈X D i,F x.val) atTop (𝓝 (f i.val)) := |
| 98 | (hf.comp_injective (i:=fun x : Fiber slot i.val => x.val) Subtype.val_injective).hasSum.comp (he i) |
| 99 | have hh : Tendsto (fun D => ∏ i : s,∑ x∈X D i,F x.val) atTop (𝓝 (∏ i : s, f i.val)) := |
| 100 | tendsto_finsetProd _ (fun i _ => ht i) |
| 101 | have hp : Tendsto (fun D => Fintype.piFinset (X D)) atTop atTop := by |
| 102 | refine tendsto_atTop_finset_of_monotone (fun A B h z hz => Fintype.mem_piFinset.mpr fun i => ?_) ?_ |
| 103 | · exact mem_subtype.mpr (h (mem_subtype.mp (Fintype.mem_piFinset.mp hz i))) |
| 104 | intro p; exact ⟨(flatten slot p).val, Fintype.mem_piFinset.mpr fun i => mem_subtype.mpr (mem_image_of_mem _ (mem_univ i))⟩ |
| 105 | have hv : Tendsto (fun D => ∑ p∈Fintype.piFinset (X D), q p) atTop (𝓝 (∑' p,q p)) := |
| 106 | hq.hasSum.comp hp |
| 107 | simp_rw [prod_univ_sum] at hh |
| 108 | dsimp only [q] at hv |
| 109 | simp_rw [matching slot adm F ha] at hv |
| 110 | change ∑' p,q p=∏ i∈s,f i |
| 111 | simp_rw [q, matching slot adm F ha] |
| 112 | exact (tendsto_nhds_unique hv hh).trans (prod_subtype s (fun _ => Iff.rfl) f).symm |
| 113 | |
| 114 | theorem repack (hs : Summable (value slot adm F)) (hf : Summable F) : |
| 115 | HasSum (fun s => if adm s then ∏ i∈s,∑' x : {x // slot x=i}, F x.val else 0) |
| 116 | (∑' z,value slot adm F z) := by |
| 117 | convert hs.hasSum.tsum_fiberwise (fun z => z.image slot) using 1 |
| 118 | · rfl |
| 119 | ext1 s |
| 120 | change (if adm s then _ else _) = ∑' x : Target slot s,value slot adm F x.val |
| 121 | split |
| 122 | next h => |
| 123 | exact (product slot adm F h hs hf).symm.trans ((inj slot).tsum_eq (fun z hz => in_range slot adm F z hz)) |
| 124 | next h => simp [value, selected, fun (x : Target slot s) => x.property, h] |
| 125 | end Packets |
| 126 | end YM.Extra.Trajectories |