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.SectorNext.RECONNECTED_LOCALITY.Fleet |
| 2 | |
| 3 | set_option warningAsError false |
| 4 | |
| 5 | /-! |
| 6 | # Mayer variants with addresses intact |
| 7 | |
| 8 | Exclusive choices among h variants of one |
| 9 | parent even for infinite alphabets (in E the run of telescope variants would |
| 10 | only be finite at each parent). Use pointwise summability of the actual variant |
| 11 | values, not assuming that their integrated series even exists. An unselected |
| 12 | address contributes one, not tagged with irrelevant choices. No reusing a |
| 13 | non-table address solely because a different cut sector made its value nonzero. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.SectorNext.Reconnect.Optional |
| 18 | open Words Fleet Function Filter Finset |
| 19 | open scoped Classical |
| 20 | |
| 21 | variable {ι par : Type*} |
| 22 | |
| 23 | /-- helper for countable trees too. Exact value (and by norm also absolute). |
| 24 | No countability class needed here (real unconditional sums). -/ |
| 25 | private theorem numbered {n : ℕ} {E : Fin n → Type*} (f : ∀ i,E i → ℝ) |
| 26 | (he : ∀ i,Summable (f i)) : |
| 27 | HasSum (fun (x : ∀ i,E i) => ∏ i,f i (x i)) (∏ i,∑' j,f i j) := by |
| 28 | induction n with |
| 29 | | zero => |
| 30 | let F := fun (x : ∀ i,E i) => ∏ i,f i (x i) |
| 31 | haveI : Unique (∀ i,E i) := inferInstance |
| 32 | simpa only [F,prod_of_isEmpty,Fintype.sum_unique] using (hasSum_fintype F) -- adjust |
| 33 | | succ n IH => |
| 34 | rw [Fin.prod_univ_succ] |
| 35 | let G := fun (x : ∀ i : Fin n, E i.succ) => ∏ i,f i.succ (x i) |
| 36 | have hh : HasSum G (∏ i : Fin n,∑' j,f i.succ j) := IH _ (fun i => he i.succ) |
| 37 | have hp:= (he 0).hasSum.mul hh (summable_mul_of_summable_norm (he 0).norm hh.summable.norm) |
| 38 | apply (Fin.consEquiv E).hasSum_iff.mp |
| 39 | refine hp.congr_fun ?_ |
| 40 | rintro ⟨i,x⟩ |
| 41 | simp only [comp_apply,G, Fin.prod_univ_succ,Fin.consEquiv_apply,Fin.cons_zero,Fin.cons_succ] |
| 42 | |
| 43 | |
| 44 | theorem series_prod [Fintype ι] {E : ι → Type*} (f : ∀ i,E i → ℝ) (he : ∀ i,Summable (f i)) : |
| 45 | HasSum (fun (x : ∀ i,E i) => ∏ i,f i (x i)) (∏ i,∑' j,f i j) := by |
| 46 | let e := (Fintype.equivFin ι).symm |
| 47 | rw [← (Equiv.piCongrLeft E e).hasSum_iff] |
| 48 | simp_rw [comp_def,← e.prod_comp, Equiv.piCongrLeft_apply_apply] |
| 49 | exact numbered _ fun i => he _ |
| 50 | |
| 51 | private abbrev Fiber (p : ι → par) (j : par) := {i // p i=j} |
| 52 | |
| 53 | private def plants (p : ι → par) (t : Finset par) (x : ∀ i : ↥t,Fiber p i.val) : Finset ι := |
| 54 | t.attach.image fun i => (x i).val |
| 55 | |
| 56 | private lemma places {p : ι → par} (t : Finset par) (x : ∀ i : ↥t,Fiber p i.val) : Injective fun i => (x i).val := |
| 57 | fun a b h => Subtype.ext ((x a).property.symm.trans ((congr_arg p h).trans (x b).property)) |
| 58 | |
| 59 | private lemma produces {p : ι → par} (t : Finset par) (x : ∀ i : ↥t,Fiber p i.val) : Fleet.pure p (plants p t x) ∧ |
| 60 | (plants p t x).image p=t := by |
| 61 | constructor |
| 62 | · intro i hi j hj hn |
| 63 | obtain ⟨a,_,rfl⟩:=mem_image.mp hi; obtain ⟨b,_,rfl⟩:=mem_image.mp hj |
| 64 | rw [(x b).property,(x a).property] at hn |
| 65 | have he : b=a := Subtype.ext hn |
| 66 | rw [he] |
| 67 | · ext i |
| 68 | simp only [plants,mem_image,mem_attach,true_and] |
| 69 | constructor |
| 70 | · rintro ⟨j,⟨q,rfl⟩,rfl⟩; rw [(x q).property]; exact q.property |
| 71 | intro he |
| 72 | exact ⟨_,⟨⟨i,he⟩,rfl⟩,(x _).property⟩ |
| 73 | |
| 74 | /-- Tuple of alternatives at t selected parents represents each such selection of variants once. -/ |
| 75 | private def atParents (p : ι → par) (t : Finset par) : |
| 76 | (∀ i : ↥t,Fiber p i.val) ≃ {b // Fleet.pure p b ∧ Finset.image p b=t} where |
| 77 | toFun x := ⟨plants p t x, produces t x⟩ |
| 78 | invFun b := fun i => |
| 79 | have he : i.val ∈ Finset.image p b.val := by rw [b.property.2]; exact i.property |
| 80 | ⟨(mem_image.mp he).choose,(mem_image.mp he).choose_spec.2⟩ |
| 81 | left_inv x := by |
| 82 | funext i |
| 83 | dsimp only |
| 84 | generalize_proofs h |
| 85 | apply Subtype.ext |
| 86 | obtain ⟨q,_,hq⟩:=mem_image.mp h.choose_spec.1 |
| 87 | have he:= h.choose_spec.2 |
| 88 | rw [← hq,(x q).property] at he |
| 89 | change h.choose = _ |
| 90 | exact hq.symm.trans (by rw [show q=i from Subtype.ext he]) |
| 91 | right_inv := by |
| 92 | intro b; apply Subtype.ext; ext j |
| 93 | simp only [plants, mem_image,mem_attach,true_and] |
| 94 | constructor |
| 95 | · rintro ⟨a,rfl⟩ |
| 96 | generalize_proofs h |
| 97 | exact h.choose_spec.1 |
| 98 | intro hj |
| 99 | have he : p j∈t := by rw [← b.property.2]; exact Finset.mem_image_of_mem p hj |
| 100 | use ⟨_,he⟩ |
| 101 | generalize_proofs h |
| 102 | exact b.property.1 j hj _ h.choose_spec.1 h.choose_spec.2 |
| 103 | |
| 104 | private lemma planted (p : ι → par) (t : Finset par) (f : ι → ℝ) (x : ∀ i : ↥t,Fiber p i.val) : |
| 105 | (∏ i∈((atParents p t x).val),f i)=∏ i,f (x i).val := by |
| 106 | change (∏ i∈(plants p t x),f i)=_ |
| 107 | rw [plants,prod_image (places t x).injOn] |
| 108 | rfl |
| 109 | |
| 110 | /-- Helpful for all primary reindexings; telescope along `s` (can be infinite map). -/ |
| 111 | theorem group_by {f : ι → ℝ} (s : ι → par) (hf : Summable f) : |
| 112 | Summable (fun i => ∑' j : Fiber s i,f j.val) ∧ ∑' i,f i = ∑' i,∑' j : Fiber s i,f j.val := by |
| 113 | let E:=Equiv.sigmaFiberEquiv s |
| 114 | have H := E.summable_iff.mpr hf |
| 115 | exact ⟨H.sigma,(E.tsum_eq f).symm.trans H.tsum_sigma⟩ |
| 116 | |
| 117 | def subsetTerm (p : ι → par) (F : ι → ℝ) (w : Finset ι) : ℝ := if Fleet.pure p w then ∏ i∈w,F i else 0 |
| 118 | |
| 119 | |
| 120 | |
| 121 | def factors (p : ι → par) (F : ι → ℝ) (i : par) := 1+∑' j : Fiber p i,F j.val |
| 122 | |
| 123 | theorem expanding (p : ι → par) {F : ι → ℝ} (hs : Summable F) : |
| 124 | HasSum (subsetTerm p F) (∏' j,factors p F j) ∧ Multipliable (factors p F) := by |
| 125 | let f i := ∑' j : Fiber p i,F j.val |
| 126 | have hsum : Summable f := (group_by p hs).1 |
| 127 | refine ⟨?_,multipliable_one_add_of_summable hsum.norm⟩ |
| 128 | let T:=fun i : {s // Fleet.pure p s} => ∏ j∈i.val,F j |
| 129 | have hT : Summable T := (summable_finsetProd_of_summable_norm hs.norm).comp_injective Subtype.val_injective |
| 130 | let book := fun i : {s // Fleet.pure p s} => i.val.image p |
| 131 | have ht (b) : (∑' j : Fiber book b,T j.val)=∏ i∈b,f i := by |
| 132 | let e : {s : Finset ι // Fleet.pure p s ∧ Finset.image p s=b} ≃ Fiber book b := |
| 133 | { toFun := fun a => ⟨⟨a.val,a.property.1⟩, a.property.2⟩ |
| 134 | invFun := fun a => ⟨a.val.val,a.val.property,a.property⟩ |
| 135 | left_inv _:=rfl |
| 136 | right_inv _:=rfl } |
| 137 | have hq := (series_prod (E:=fun i : ↥b => Fiber p i.val) (fun _ j => F j.val) fun i => hs.comp_injective Subtype.val_injective).tsum_eq |
| 138 | rw [← ((atParents p b).trans e).tsum_eq] |
| 139 | rw [← prod_coe_sort b f,← hq]; exact tsum_congr (planted p b F) |
| 140 | apply (hasSum_subtype_iff_of_support_subset (s:={s : Finset ι | Fleet.pure p s}) (f:=subsetTerm p F) |
| 141 | (by intro i hi; exact of_not_not (fun hh => hi (if_neg hh)))).mp |
| 142 | change HasSum (subsetTerm p F ∘ (Subtype.val : {s // Fleet.pure p s} → Finset ι)) _ |
| 143 | rw [show subsetTerm p F ∘ (Subtype.val : {s // Fleet.pure p s} → Finset ι)=T from funext fun i => if_pos i.property] |
| 144 | apply hT.hasSum_iff.mpr |
| 145 | rw [(group_by book hT).2] |
| 146 | simp_rw [ht] |
| 147 | exact (tprod_one_add (summable_finsetProd_of_summable_norm hsum.norm)).symm |
| 148 | |
| 149 | end YM.SectorNext.Reconnect.Optional |