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.Push.LOCAL_SPLITTING.Atoms |
| 2 | import YM.Push.LOCAL_SPLITTING.Budget |
| 3 | |
| 4 | /-! |
| 5 | # Multiplying flag-requiring attachments into the specified activity system |
| 6 | |
| 7 | E `Jmdef` forced side at singleton-marker order. Use a reservation in the |
| 8 | *same* alphabet as for the vacuum. The old K terms at these addresses do NOT |
| 9 | even need to be zero, but their addresses (supports/inventories/tests) must |
| 10 | already permit the bundle uses below; just an arbitrary KBound doesn't give |
| 11 | this. No support re-fitting after seeing amplitudes or flags. This file does |
| 12 | structure and absolute budgets; evaluation bijection in the sequel. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Push.Local |
| 17 | open Function Filter Lattice Wilson RG Source |
| 18 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 19 | |
| 20 | variable {G : Gauge} {n : Side} {ι : Type*} |
| 21 | |
| 22 | abbrev patch (A : Activities G n) (i : ℕ) := (A.forced i).support |
| 23 | abbrev flagsFor (A : Activities G n) (i : ℕ) := (A.forced i).inventory |
| 24 | abbrev Separate (A : Activities G n) (q : Finset ℕ) := (q : Set ℕ).PairwiseDisjoint (patch A) |
| 25 | |
| 26 | structure Packs (A : Activities G n) (X : Support n) (q : Finset ℕ) : Prop where |
| 27 | nonempty : q.Nonempty |
| 28 | separate : Separate A q |
| 29 | hits : ∀ j∈q, ¬ Disjoint X (patch A j) |
| 30 | |
| 31 | abbrev Pack (A : Activities G n) (X : Support n) := {q // Packs A X q} |
| 32 | /-- Remember the donor occurrence. -/ |
| 33 | abbrev Letters (A : Activities G n) (X : ι → Support n) := Σ i : ι, Pack A (X i) |
| 34 | |
| 35 | namespace Letters |
| 36 | variable {A : Activities G n} {X : ι → Support n} |
| 37 | |
| 38 | abbrev bundle (s : Letters A X) : Finset ℕ := s.2.val |
| 39 | |
| 40 | def total (s : Letters A X) := X s.1 ∪ s.bundle.biUnion (patch A) |
| 41 | def keeps (s : Letters A X) := s.bundle.biUnion (flagsFor A) |
| 42 | |
| 43 | theorem keeps_ne (s : Letters A X) : s.keeps.Nonempty := by |
| 44 | obtain ⟨j,hj⟩ := s.2.property.nonempty |
| 45 | exact (A.forced j).inventory_ne.mono (Finset.subset_biUnion_of_mem (flagsFor A) hj) |
| 46 | |
| 47 | theorem keeps_sub (s : Letters A X) : s.keeps ⊆ s.total := fun _ hx => by |
| 48 | obtain ⟨i,hi,hx⟩ := Finset.mem_biUnion.mp hx |
| 49 | exact Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hi,(A.forced i).inventory_sup hx⟩) |
| 50 | |
| 51 | theorem contains (s : Letters A X) {j : ℕ} (h : j∈s.bundle) : patch A j ⊆ s.total := |
| 52 | (Finset.subset_biUnion_of_mem (patch A) h).trans Finset.subset_union_right |
| 53 | end Letters |
| 54 | |
| 55 | /-- Dormant-address prerequisite to fix BEFORE vacuum continuation (or pay |
| 56 | via equivalent inventories retained there). Does not assume any estimates |
| 57 | on source or output. Old extra tests occur in the product of original |
| 58 | activities; use the extraTest=True slots to avoid imposing new predicates. -/ |
| 59 | structure Slots (A : Activities G n) (X : ι → Support n) where |
| 60 | label : Letters A X ↪ ℕ |
| 61 | support (s) : patch A (label s) = s.total |
| 62 | inventory (s) : flagsFor A (label s) = s.keeps |
| 63 | allows (s) (U : Config G n) : (A.forced (label s)).extraTest U |
| 64 | |
| 65 | structure ForceFormat (B : BudgetPoint) (A : Activities G n) (o : Site n) (f : ℕ → Config G n → ℂ) : Prop where |
| 66 | forcing (i : ℕ) (U : Config G n) : f i U ≠ 0 → (A.forced i).eligible B.threshold U |
| 67 | carried (i : ℕ) : f i ≠ 0 → o ∈ patch A i |
| 68 | invariant (i : ℕ) : GaugeInvariant (f i) |
| 69 | supported (i : ℕ) : UsesFinal B.threshold (patch A i) (f i) |
| 70 | borel (i : ℕ) : Measurable (f i) |
| 71 | |
| 72 | def ForceCost (B : BudgetPoint) (A : Activities G n) (f : ℕ → Config G n → ℂ) (c : ℝ) := |
| 73 | ∃ e : ℕ → ℝ, SumBudget (fun i => B.mass (patch A i) (e i)) c ∧ ∀ i, 0 ≤ e i ∧ ∀ U, ‖f i U‖ ≤ e i |
| 74 | |
| 75 | section Add |
| 76 | variable {B : BudgetPoint} {A : Activities G n} {f g : ℕ → Config G n → ℂ} {a b : ℝ} {o : Site n} |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | theorem ForceFormat.add (hf : ForceFormat B A o f) (hg : ForceFormat B A o g) : ForceFormat B A o (f+g) := by |
| 83 | refine ⟨fun i U hu => ?_,fun i hi => ?_,fun i g U => congr_arg₂ (·+·) (hf.invariant i g U) (hg.invariant i g U), |
| 84 | fun i U V huv ht => congr_arg₂ (·+·) (hf.supported i U V huv ht) (hg.supported i U V huv ht),fun i => (hf.borel i).add (hg.borel i)⟩ |
| 85 | · by_contra he |
| 86 | simp [not_not.mp (mt (hf.forcing i U) he),not_not.mp (mt (hg.forcing i U) he)] at hu |
| 87 | by_contra he |
| 88 | simp [not_not.mp (mt (hf.carried i) he),not_not.mp (mt (hg.carried i) he)] at hi |
| 89 | |
| 90 | theorem ForceCost.add (hf : ForceCost B A f a) (hg : ForceCost B A g b) : ForceCost B A (f+g) (a+b) := by |
| 91 | obtain ⟨e,hE,h⟩ := hf; obtain ⟨u,hU,q⟩ := hg |
| 92 | exact ⟨e+u,by simpa [BudgetPoint.mass, mul_add] using sumBudget_add hE hU,fun i => ⟨add_nonneg (h i).1 (q i).1, fun U => (norm_add_le ..).trans (add_le_add ((h i).2 U) ((q i).2 U))⟩⟩ |
| 93 | end Add |
| 94 | |
| 95 | namespace Slots |
| 96 | variable {A : Activities G n} {X : ι → Support n} (S : Slots A X) |
| 97 | |
| 98 | open scoped Classical in |
| 99 | def payload (t : ℝ) (s : Letters A X) (f : ι → Config G n → ℂ) (U : Config G n) := |
| 100 | if (A.forced (S.label s)).eligible t U then f s.1 U * ∏ j ∈ s.bundle, (A.K j U : ℂ) else 0 |
| 101 | |
| 102 | def pack (t : ℝ) (f : ι → Config G n → ℂ) : ℕ → Config G n → ℂ := extend S.label (fun s => S.payload t s f) 0 |
| 103 | |
| 104 | @[simp] theorem pack_label (t : ℝ) (f : ι → Config G n → ℂ) (s : Letters A X) : |
| 105 | S.pack t f (S.label s) = S.payload t s f := S.label.injective.extend_apply .. |
| 106 | |
| 107 | theorem pack_none (t : ℝ) (f : ι → Config G n → ℂ) (j : ℕ) (h : ¬∃ i, S.label i = j) : |
| 108 | S.pack t f j = 0 := Function.extend_apply' _ _ _ h |
| 109 | |
| 110 | def packLinear (t : ℝ) : (ι → Config G n → ℂ) →ₗ[ℂ] ℕ → Config G n → ℂ where |
| 111 | toFun := S.pack t |
| 112 | map_add' f g := by |
| 113 | funext j U; by_cases hx : ∃ i, S.label i = j |
| 114 | · obtain ⟨i,rfl⟩ := hx; simp only [Pi.add_apply,pack_label,payload]; split <;> simp [add_mul] |
| 115 | simp [pack_none _ _ _ _ hx] |
| 116 | map_smul' f g := by |
| 117 | funext j U; by_cases hx : ∃ i, S.label i = j |
| 118 | · obtain ⟨i,rfl⟩ := hx; simp only [Pi.smul_apply,pack_label,payload,RingHom.id_apply,smul_eq_mul]; split <;> simp [mul_assoc] |
| 119 | simp [pack_none _ _ _ _ hx] |
| 120 | |
| 121 | theorem forceFormat {B : BudgetPoint} {o : Site n} {f : ι → Config G n → ℂ} (ha : A.ForcedFamily B) |
| 122 | (ho : ∀ i, o∈X i) (hf : ∀ i, Attaches B.threshold (X i) (f i)) : ForceFormat B A o (S.pack B.threshold f) := by |
| 123 | classical |
| 124 | refine ⟨fun i U hu => ?_,fun i hi => ?_,fun i => ?_,fun i => ?_,fun i => ?_⟩ <;> by_cases hx : ∃ s, S.label s = i |
| 125 | all_goals (first | obtain ⟨s,rfl⟩ := hx | simp [S.pack_none _ _ _ hx] at * ) |
| 126 | · by_contra he |
| 127 | simp [payload,he] at hu |
| 128 | · exact S.support _ ▸ Finset.mem_union_left _ (ho _) |
| 129 | · intro g U; rw [pack_label]; unfold payload |
| 130 | simp only [(Work.H03.eligible_gauge _ _ _ _ (ha.symtest _ g U)),(hf s.1).symmetry g U,fun j => ha.sym j g U] |
| 131 | · intro g U; rfl |
| 132 | · rw [pack_label]; intro U V huv ht |
| 133 | unfold payload; rw [Work.H03.eligible_reads _ _ (ha.reads_test _) U V huv ht] |
| 134 | rw [show patch A (S.label s) = s.total from S.support _] at huv ht |
| 135 | split |
| 136 | · rw [Work.H03.reads_larger (Finset.subset_union_left (s₂:=s.bundle.biUnion (patch A))) (hf _).sites U V huv ht]; congr 1 |
| 137 | exact Finset.prod_congr rfl fun j hj => congr_arg Complex.ofReal (Work.H03.reads_larger (s.contains hj) (ha.reads j) U V huv ht) |
| 138 | rfl |
| 139 | · intro U V _ _; rfl |
| 140 | · rw [pack_label]; unfold payload |
| 141 | exact Measurable.ite (Work.H03.eligible_measurable _ _ (ha.meas_test _)) ((hf _).borel.mul |
| 142 | (Finset.measurable_fun_prod _ fun i _ => Complex.continuous_ofReal.measurable.comp (ha.meas i))) measurable_const |
| 143 | · exact measurable_const |
| 144 | |
| 145 | end Slots |
| 146 | |
| 147 | def mergePrice (B : BudgetPoint) (w : ℝ) (X : Support n) (a : ℝ) := B.mass X a * (Real.exp ((X.card:ℝ)*w) - 1) |
| 148 | |
| 149 | theorem mergePrice_nonneg (B : BudgetPoint) {w a : ℝ} (X : Support n) (hw : 0 ≤ w) (ha : 0 ≤ a) : 0 ≤ mergePrice B w X a := |
| 150 | mul_nonneg (ha.trans (B.loMass X a ha)) (sub_nonneg.mpr (Real.one_le_exp (by positivity))) |
| 151 | |
| 152 | section Budget |
| 153 | variable {B : BudgetPoint} {A : Activities G n} {X : ι → Support n} |
| 154 | |
| 155 | theorem packBudget (X : Support n) {a : ℝ} {b : ℕ → ℝ} (ha : 0 ≤ a) {w : ℝ} |
| 156 | (hb : ∀ i, 0 ≤ b i) (hc : ∀ x : Site n, SumBudget (fun i => if x ∈ patch A i then B.mass (patch A i) (b i) else 0) w) : |
| 157 | SumBudget (fun s : Pack A X => B.mass (X∪s.val.biUnion (patch A)) (a * ∏ j ∈ s.val, b j)) (mergePrice B w X a) := by |
| 158 | classical |
| 159 | let y (i : ℕ) := if Disjoint X (patch A i) then 0 else B.mass (patch A i) (b i) |
| 160 | have he : SumBudget y ((X.card:ℝ)*w) := sumBudget_meeting X (fun i => (hb i).trans (B.loMass _ _ (hb i))) hc |
| 161 | let prod' (s : Finset ℕ) := if s.Nonempty then ∏ i∈s, y i else 0 |
| 162 | refine sumBudget_mono (sumBudget_mul_left (sumBudget_subtype (Packs A X) (a:=prod') (sumBudget_exponential he)) (ha.trans (B.loMass X a ha))) (fun i => mul_nonneg (Real.exp_pos _).le (mul_nonneg ha (Finset.prod_nonneg fun j _ => hb j))) (fun s => ?_) le_rfl |
| 163 | dsimp only [prod']; rw [if_pos s.property.nonempty] |
| 164 | convert mass_union_meeting X (patch A) s.val s.property.hits b a (fun j _ => hb j) ha B using 1 |
| 165 | congr 1; exact Finset.prod_congr rfl fun i hi => if_neg (s.property.hits i hi) |
| 166 | |
| 167 | theorem Slots.forceCost (S : Slots A X) {a : ι → ℝ} {c w : ℝ} {f : ι → Config G n → ℂ} (hw : A.KBound B w) |
| 168 | (h : SumBudget (fun i => mergePrice B w (X i) (a i)) c) (hp : ∀ i, 0 ≤ a i) (hf : ∀ i U, ‖f i U‖ ≤ a i) : |
| 169 | ForceCost B A (S.pack B.threshold f) c := by |
| 170 | obtain ⟨b,hb,h'⟩ := hw |
| 171 | let p (s : Letters A X) := a s.1 * ∏ i∈s.bundle, b i |
| 172 | have h0 (s) : 0 ≤ p s := mul_nonneg (hp _) (Finset.prod_nonneg fun i _ => (hb i).1) |
| 173 | let e := Function.extend S.label p (0 : ℕ → ℝ) |
| 174 | refine ⟨e, sumBudget_pass S.label _ (sumBudget_sigma (fun i => ?_) h) ?_,fun i => ?_⟩ |
| 175 | · simpa only [e, S.label.injective.extend_apply, S.support,Letters.total,p] using! packBudget (A:=A) (B:=B) (X i) (hp i) (fun i => (hb i).1) h' |
| 176 | · intro i hi; rw [show e i = 0 from extend_apply' _ _ _ hi, BudgetPoint.mass, mul_zero] |
| 177 | by_cases hi : ∃ s, S.label s = i |
| 178 | · obtain ⟨s,rfl⟩ := hi |
| 179 | rw [show e _ = p s from S.label.injective.extend_apply ..,S.pack_label] |
| 180 | refine ⟨h0 s, fun U => ?_⟩; unfold payload; split |
| 181 | · rw [norm_mul,norm_prod]; refine mul_le_mul (hf ..) ?_ (Finset.prod_nonneg fun _ _ => norm_nonneg _) (hp _) |
| 182 | exact Finset.prod_le_prod (fun _ _ => norm_nonneg _) fun i _ => by simpa using (hb i).2 U |
| 183 | rw [norm_zero]; exact h0 _ |
| 184 | rw [show e i = 0 from extend_apply' _ _ _ hi,S.pack_none _ _ _ hi]; simp |
| 185 | end Budget |
| 186 | end YM.Push.Local |