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.Next.FOUNDATIONS.SU2 |
| 2 | import YM.Push.LOCAL_SPLITTING.Merge |
| 3 | |
| 4 | /-! |
| 5 | # Exact singleton recovery after indicator moves |
| 6 | |
| 7 | Bijection on the nonzero pointed products in the existing forced alphabet. |
| 8 | No duplicates, no independent-gas assumption, no absolute value inside the |
| 9 | represented insertion. Eligibility and exact coverage even for evaluated |
| 10 | functions (not AE). Auxiliary series guarded by HasSum/Dominated. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Push.Local |
| 15 | open Function Filter Lattice Wilson RG Source |
| 16 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 17 | |
| 18 | variable {G : Gauge} {n : Side} {ι : Type*} |
| 19 | |
| 20 | abbrev Pointed := Σ b : Finset ℕ, ↥b |
| 21 | |
| 22 | def pointValue (B : BudgetPoint) (A : Activities G n) (f : ℕ → Config G n → ℂ) (U : Config G n) (x : Pointed) := |
| 23 | if A.admissible B U x.1 then f x.2.val U * ∏ j∈ x.1.erase x.2.val, (A.K j U : ℂ) else 0 |
| 24 | |
| 25 | def gasMark (B : BudgetPoint) (A : Activities G n) (U : Config G n) (b : Finset ℕ) : (ℕ → Config G n → ℂ) →ₗ[ℂ] ℂ := |
| 26 | ∑ i∈b, (if A.admissible B U b then ∏ j∈b.erase i, (A.K j U : ℂ) else 0) • |
| 27 | ((LinearMap.proj (R:=ℂ) (φ:=fun _: Config G n => ℂ) U) ∘ₗ (LinearMap.proj (R:=ℂ) (φ:=fun _ : ℕ => Config G n → ℂ) i)) |
| 28 | |
| 29 | theorem gasMark_eq (B : BudgetPoint) (A : Activities G n) (U : Config G n) (b : Finset ℕ) (f : ℕ → Config G n → ℂ) : |
| 30 | gasMark B A U b f = if A.admissible B U b then ∑ i∈b, f i U * ∏ j∈b.erase i, (A.K j U : ℂ) else 0 := by |
| 31 | by_cases h : A.admissible B U b <;> simp [gasMark,h,mul_comm] |
| 32 | |
| 33 | theorem gasMark_point (B : BudgetPoint) (A : Activities G n) (U : Config G n) (b : Finset ℕ) (f : ℕ → Config G n → ℂ) : |
| 34 | (∑ i : ↥b, pointValue B A f U ⟨b,i⟩) = gasMark B A U b f := by |
| 35 | by_cases h : A.admissible B U b <;> simp only [pointValue,gasMark_eq,h,↓reduceIte] |
| 36 | exact b.sum_coe_sort (fun i => f i U * ∏ j∈b.erase i, (A.K j U : ℂ)) |
| 37 | simp |
| 38 | |
| 39 | theorem dominated_gasMark {B : BudgetPoint} {A : Activities G n} {f : ℕ → Config G n → ℂ} {a w : ℝ} (hf : ForceCost B A f a) |
| 40 | (hw : A.KBound B w) : Dominated (fun b (U : Config G n) => gasMark B A U b f) := by |
| 41 | obtain ⟨k,hk,h⟩ := hf; obtain ⟨z,hz,hZ⟩ := Activities.K_total hw |
| 42 | let g (i : ℕ) := k i+z i |
| 43 | have he : Summable g := ((sumBudget_uncharge (fun i => (h i).1) hk).2.1).add hz |
| 44 | have hp i : 0 ≤ g i := add_nonneg (h i).1 (hZ i).1 |
| 45 | refine ⟨_, summable_finsetProd_of_summable_nonneg (f:=fun i => 2*g i) (fun i => mul_nonneg (by norm_num) (hp i)) (he.mul_left 2), ?_⟩ |
| 46 | intro b U; dsimp only; rw [gasMark_eq]; split |
| 47 | · apply (norm_sum_le ..).trans |
| 48 | have H (i) (hi : i∈b) : ‖f i U * ∏ j∈b.erase i, (A.K j U : ℂ)‖ ≤ ∏ j∈b, g j := by |
| 49 | rw [← Finset.mul_prod_erase b g hi,norm_mul,norm_prod]; refine mul_le_mul (((h i).2 U).trans (le_add_of_nonneg_right (hZ _).1)) ?_ (Finset.prod_nonneg fun _ _ => norm_nonneg _) (hp i) |
| 50 | exact Finset.prod_le_prod (fun _ _ => norm_nonneg _) fun i _ => (Complex.norm_real _).trans_le (((hZ i).2 U).trans (le_add_of_nonneg_left (h i).1)) |
| 51 | apply (Finset.sum_le_sum H).trans; rw [Finset.prod_mul_distrib, Finset.prod_const, Finset.sum_const,nsmul_eq_mul] |
| 52 | exact mul_le_mul_of_nonneg_right (by exact_mod_cast (Nat.lt_two_pow_self (n:=b.card)).le) (Finset.prod_nonneg fun i _ => hp i) |
| 53 | rw [norm_zero]; exact Finset.prod_nonneg fun i _ => mul_nonneg (by norm_num) (hp i) |
| 54 | |
| 55 | namespace Slots |
| 56 | variable {A : Activities G n} {X : ι → Support n} (S : Slots A X) |
| 57 | |
| 58 | def hits (T : Support n) (b : Finset ℕ) (A : Activities G n) := b.filter (fun i => ¬ Disjoint T (patch A i)) |
| 59 | |
| 60 | def Matches (x : Pointed) (y : ι × Finset ℕ) := ∃ s : Letters A X, s.1 = y.1 ∧ S.label s = x.2.val ∧ |
| 61 | y.2 = s.bundle ∪ x.1.erase x.2.val ∧ s.bundle = hits (X y.1) y.2 A ∧ Disjoint s.bundle (x.1.erase x.2.val) |
| 62 | |
| 63 | theorem Matches.uniq {x : Pointed} {y y' : ι × Finset ℕ} (h : S.Matches x y) (he : S.Matches x y') : y = y' := by |
| 64 | obtain ⟨s,h,hv,ha,_⟩ := h; obtain ⟨s',h',hv',ha',_⟩ := he |
| 65 | have hq : s = s' := S.label.injective (hv.trans hv'.symm) |
| 66 | subst s'; exact Prod.ext (h.symm.trans h') (ha.trans ha'.symm) |
| 67 | |
| 68 | theorem Matches.uniq' {x x' : Pointed} {y : ι × Finset ℕ} (h : S.Matches x y) (he : S.Matches x' y) : x = x' := by |
| 69 | obtain ⟨s,h,hv,ha,hb,hd⟩ := h; obtain ⟨s',h',hv',ha',hb',hd'⟩ := he |
| 70 | have hq : s = s' := Sigma.ext (h.trans h'.symm) (by cases s; cases s'; cases h.trans h'.symm; exact heq_of_eq (Subtype.ext (hb.trans hb'.symm))) |
| 71 | subst s' |
| 72 | have hrest := (Finset.union_sdiff_cancel_left hd).symm.trans ((congr_arg (· \ s.bundle) (ha.symm.trans ha')).trans (Finset.union_sdiff_cancel_left hd')) |
| 73 | have hx : x.1 = x'.1 := (Finset.insert_erase x.2.property).symm.trans ((congr_arg₂ _ (hv.symm.trans hv') hrest).trans (Finset.insert_erase x'.2.property)) |
| 74 | exact Sigma.ext hx (by cases x; cases x'; cases hx; exact heq_of_eq (Subtype.ext (hv.symm.trans hv'))) |
| 75 | |
| 76 | section Eq |
| 77 | variable (B : BudgetPoint) (U : Config G n) (f : ι → Config G n → ℂ) |
| 78 | |
| 79 | theorem approved {x : Pointed} {s : Letters A X} (he : A.admissible B U x.1) (hx : x.2.val = S.label s) : (A.forced (S.label s)).eligible B.threshold U := by |
| 80 | refine ⟨?_, S.allows _ _⟩ |
| 81 | rw [← he.2, ← hx] |
| 82 | ext z; rw [Finset.mem_inter]; constructor |
| 83 | · rintro ⟨hz,hz'⟩; obtain ⟨j,hj,hu⟩ := Finset.mem_biUnion.mp hz' |
| 84 | by_cases h : j = x.2.val |
| 85 | · simpa only [h] using hu |
| 86 | exact absurd ((A.forced j).inventory_sup hu) (Finset.disjoint_left.mp (he.1 x.2.property hj (Ne.symm h)) hz) |
| 87 | exact fun hz => ⟨(A.forced _).inventory_sup hz,Finset.mem_biUnion.mpr ⟨_,x.2.property,hz⟩⟩ |
| 88 | private theorem match_value {x : Pointed} {s : Letters A X} (he : A.admissible B U x.1) (hx : x.2.val = S.label s) {q : Finset ℕ} |
| 89 | (ha : A.admissible B U q) (hq : q = s.bundle ∪ x.1.erase x.2.val) (hd : Disjoint s.bundle (x.1.erase x.2.val)) : |
| 90 | pointValue B A (S.pack B.threshold f) U x = f s.1 U * (A.gasOccurrence B q U : ℂ) := by |
| 91 | have hg : (A.forced (S.label s)).eligible B.threshold U := by |
| 92 | exact S.approved B U he hx |
| 93 | rw [pointValue, if_pos he, hx, pack_label, payload, if_pos hg, Activities.gasOccurrence, if_pos ha,Complex.ofReal_prod,hq,Finset.prod_union hd,hx,mul_assoc] |
| 94 | |
| 95 | theorem unpack {x : Pointed} {s : Letters A X} (he : A.admissible B U x.1) (hs : S.label s = x.2.val) : |
| 96 | let y := (s.1,s.bundle∪x.1.erase x.2.val) |
| 97 | A.admissible B U y.2 ∧ S.Matches x y ∧ Disjoint s.bundle (x.1.erase x.2.val) := by |
| 98 | let r := x.1.erase x.2.val |
| 99 | have hD j (hj : j∈r) : Disjoint s.total (patch A j) := (S.support s).symm ▸ he.1 (hs ▸ x.2.property) (Finset.mem_of_mem_erase hj) (hs ▸ (Finset.ne_of_mem_erase hj).symm) |
| 100 | have hd : Disjoint s.bundle r := Finset.disjoint_left.mpr fun j hj hr => s.2.property.hits _ hj (Finset.disjoint_union_left.mp (hD _ hr)).1 |
| 101 | have ha : A.admissible B U (s.bundle ∪ r) := by |
| 102 | refine ⟨?_,?_⟩ |
| 103 | · change Separate A _; rw [Separate,Finset.coe_union]; exact s.2.property.separate.union ((show Separate A x.1 from he.1).subset (Finset.coe_subset.mpr (Finset.erase_subset _ _))) fun i hi j hj _ => Finset.disjoint_of_subset_left (s.contains hi) (hD j hj) |
| 104 | rw [← he.2]; conv_rhs => rw [← Finset.insert_erase x.2.property] |
| 105 | rw [Finset.biUnion_insert, Finset.union_biUnion]; exact congr_arg (· ∪ _) ((S.inventory s).symm.trans (congr_arg (flagsFor A) hs)) |
| 106 | refine ⟨ha,⟨s,rfl,hs,rfl,?_,hd⟩,hd⟩ |
| 107 | unfold hits; simp only [Finset.filter_union] |
| 108 | have hr {i} (hi : i∈r) := not_not.mpr (Finset.disjoint_union_left.mp (hD i hi)).1 |
| 109 | rw [Finset.filter_eq_empty_iff.mpr @hr, Finset.union_empty] |
| 110 | exact (Finset.filter_true_of_mem s.2.property.hits).symm |
| 111 | |
| 112 | private theorem from_point {x : Pointed} (h : pointValue B A (S.pack B.threshold f) U x ≠ 0) : |
| 113 | ∃ y : ι × Finset ℕ, S.Matches x y ∧ pointValue B A (S.pack B.threshold f) U x = f y.1 U * (A.gasOccurrence B y.2 U : ℂ) := by |
| 114 | have he : A.admissible B U x.1 := by contrapose! h; simp [pointValue,h] |
| 115 | obtain ⟨s,hs⟩ : ∃ s, S.label s = x.2.val := by by_contra hn; simp [pointValue, S.pack_none _ _ _ hn] at h |
| 116 | obtain ⟨ha,hq,hd⟩ := S.unpack B U he hs |
| 117 | exact ⟨_,hq, S.match_value B U f he hs.symm ha rfl hd⟩ |
| 118 | |
| 119 | theorem pack_admissible {q : Finset ℕ} (ha : A.admissible B U q) (i : ι) (hN : (hits (X i) q A).Nonempty) : |
| 120 | ∃ x : Pointed, A.admissible B U x.1 ∧ S.Matches x (i,q) := by |
| 121 | let u := hits (X i) q A |
| 122 | have hsub : u ⊆ q := Finset.filter_subset _ _ |
| 123 | have hP : Packs A (X i) u := by |
| 124 | refine ⟨hN,(show Separate A q from ha.1).subset (Finset.coe_subset.mpr hsub),fun j hj => (Finset.mem_filter.mp hj).2⟩ |
| 125 | let s : Letters A X := ⟨i,⟨u,hP⟩⟩ |
| 126 | let r := q \ u |
| 127 | have hun : u ∪ r = q := Finset.union_sdiff_of_subset hsub |
| 128 | have he j (hj : j∈r) : Disjoint (patch A (S.label s)) (patch A j) := by |
| 129 | obtain ⟨hq,hu⟩ := Finset.mem_sdiff.mp hj |
| 130 | rw [S.support,Letters.total,Finset.disjoint_union_left,Finset.disjoint_biUnion_left] |
| 131 | exact ⟨not_not.mp fun he => hu (Finset.mem_filter.mpr ⟨hq,he⟩),fun k hk => ha.1 (hsub hk) hq (fun hh => hu (hh ▸ hk))⟩ |
| 132 | have hnew : S.label s ∉ r := fun h => by |
| 133 | obtain ⟨x,hx⟩ := (A.forced (S.label s)).inventory_ne.mono (A.forced _).inventory_sup |
| 134 | exact Finset.disjoint_left.mp (he _ h) hx hx |
| 135 | have had : A.admissible B U (insert (S.label s) r) := by |
| 136 | constructor |
| 137 | · intro j hj k hk hjk |
| 138 | obtain h|h := Finset.mem_insert.mp hj <;> obtain h'|h' := Finset.mem_insert.mp hk |
| 139 | · exact absurd (h.trans h'.symm) hjk |
| 140 | · exact h ▸ he _ h' |
| 141 | · exact h' ▸ (he _ h).symm |
| 142 | exact ha.1 (Finset.mem_sdiff.mp h).1 (Finset.mem_sdiff.mp h').1 hjk |
| 143 | rw [← ha.2,← hun,Finset.union_biUnion,Finset.biUnion_insert]; exact congr_arg (· ∪ _) (S.inventory s) |
| 144 | let x : Pointed := ⟨insert (S.label s) r, ⟨_,Finset.mem_insert_self (S.label s) r⟩⟩ |
| 145 | have hx : x.1.erase x.2.val = r := Finset.erase_insert hnew |
| 146 | have hd : Disjoint s.bundle (x.1.erase x.2.val) := hx.symm ▸ Finset.disjoint_sdiff |
| 147 | have hq : q = s.bundle ∪ x.1.erase x.2.val := hx.symm ▸ hun.symm |
| 148 | exact ⟨x,had,⟨s,rfl,rfl,hq,rfl,hd⟩⟩ |
| 149 | |
| 150 | private theorem to_point (hf : ∀ i, Attaches B.threshold (X i) (f i)) (y : ι × Finset ℕ) (hy : f y.1 U * (A.gasOccurrence B y.2 U : ℂ) ≠ 0) : |
| 151 | ∃ x : Pointed, S.Matches x y ∧ pointValue B A (S.pack B.threshold f) U x = f y.1 U * (A.gasOccurrence B y.2 U : ℂ) := by |
| 152 | obtain ⟨i,q⟩ := y |
| 153 | have ha : A.admissible B U q := by by_contra hn; simp [Activities.gasOccurrence,hn] at hy |
| 154 | have hN : (hits (X i) q A).Nonempty := by |
| 155 | have h : ¬ Healthy B.threshold (X i) U := fun he => hy (by simp [(hf i).healthy_zero _ he]) |
| 156 | obtain ⟨x,hx,hx'⟩ := Finset.not_disjoint_iff.mp h |
| 157 | rw [← ha.2] at hx'; obtain ⟨j,hj,he⟩ := Finset.mem_biUnion.mp hx' |
| 158 | exact ⟨j, Finset.mem_filter.mpr ⟨hj, Finset.not_disjoint_iff.mpr ⟨_,hx,(A.forced j).inventory_sup he⟩⟩⟩ |
| 159 | obtain ⟨x,he,hM⟩ := S.pack_admissible B U ha i hN |
| 160 | obtain ⟨s,h1,h2,h3,-,hd⟩ := id hM |
| 161 | exact ⟨x, hM, (S.match_value B U f he h2.symm ha h3 hd).trans (by rw [h1])⟩ |
| 162 | |
| 163 | theorem point_hasSum_iff (hf : ∀ i, Attaches B.threshold (X i) (f i)) (c : ℂ) : |
| 164 | HasSum (pointValue B A (S.pack B.threshold f) U) c ↔ HasSum (fun y : ι × Finset ℕ => f y.1 U * (A.gasOccurrence B y.2 U : ℂ)) c := by |
| 165 | let g := pointValue B A (S.pack B.threshold f) U |
| 166 | let h := fun y : ι × Finset ℕ => f y.1 U * (A.gasOccurrence B y.2 U : ℂ) |
| 167 | choose y hy hy' using fun x : Function.support g => S.from_point B U f (x:=x.val) x.property |
| 168 | let M (x : Function.support g) : Function.support h := ⟨y x,fun he => x.property ((hy' x).trans he)⟩ |
| 169 | have hi : Injective M := by |
| 170 | intro x x' H; have H' : y x = y x' := congr_arg Subtype.val H |
| 171 | exact Subtype.ext ((hy x).uniq' S (H' ▸ hy x')) |
| 172 | have hs : Surjective M := by |
| 173 | rintro ⟨z,hz⟩; obtain ⟨x,hx,he⟩ := S.to_point B U f hf z hz |
| 174 | let t : Function.support g := ⟨x, fun ha => hz (he.symm.trans ha)⟩ |
| 175 | exact ⟨t, Subtype.ext ((hy t).uniq S hx)⟩ |
| 176 | exact (Equiv.ofBijective M ⟨hi, hs⟩).hasSum_iff_of_support (fun x => (hy' x).symm) |
| 177 | |
| 178 | private theorem mul_hasSum {κ : Type*} {u : ι → ℂ} {v : κ → ℂ} (h : Summable fun i => ‖u i‖) |
| 179 | (hv : Summable fun j => ‖v j‖) {z : ℂ} (he : HasSum v z) : HasSum (fun x : ι × κ => u x.1 * v x.2) ((∑' i, u i)*z) := |
| 180 | h.of_norm.hasSum.mul he (summable_mul_of_summable_norm h hv) |
| 181 | |
| 182 | /-- Multiply the sum of attaching terms by the vacuum gas, retaining all |
| 183 | predicates. No forking or altering `A`. Complex signs permitted. -/ |
| 184 | theorem recover (hf : ∀ i, Attaches B.threshold (X i) (f i)) {δ w : ℝ} (ha : A.Valid B δ w) (he : Summable fun i => ‖f i U‖) : |
| 185 | HasSum (fun b => gasMark B A U b (S.pack B.threshold f)) ((∑' i, f i U)*(A.gas B U : ℂ)) := by |
| 186 | have hz : Summable fun i => ‖(A.gasOccurrence B i U : ℂ)‖ := by simp_rw [Complex.norm_real]; exact (Activities.gasSeries ha).absolute U |
| 187 | have ht : HasSum (fun i => (A.gasOccurrence B i U : ℂ)) (A.gas B U : ℂ) := Complex.hasSum_ofReal.mpr ((Activities.gasSeries ha).summable U).hasSum |
| 188 | have hpoint : HasSum (pointValue B A (S.pack B.threshold f) U) _ := (S.point_hasSum_iff B U f hf _).2 (mul_hasSum he hz ht) |
| 189 | have hs (b : Finset ℕ) : HasSum (fun i : ↥b => pointValue B A (S.pack B.threshold f) U ⟨b,i⟩) (gasMark B A U b (S.pack B.threshold f)) := by |
| 190 | rw [← gasMark_point]; exact hasSum_fintype _ |
| 191 | exact hpoint.sigma hs |
| 192 | end Eq |
| 193 | end Slots |
| 194 | end YM.Push.Local |