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.Extra.SOURCE_HISTORIES.Pencil |
| 2 | import YM.Next.BOUNDARY.Alias |
| 3 | |
| 4 | /-! |
| 5 | # Gathering the birth cluster |
| 6 | |
| 7 | One coefficient uses exactly the old forced labels whose supports **meet Y** |
| 8 | (no expansion during this gathering). Preserve all K factors and their tests |
| 9 | and the actual global coverage. A receipt about available addresses on the |
| 10 | HISTORY is needed: do not overwrite a vacuum label to enlarge its support. |
| 11 | Here use a common shelf of distinct dummy labels, of the given shapes. |
| 12 | |
| 13 | These lemmas are level-generic. Application to chosen path is in `Birth`. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Extra.Histories |
| 18 | open Function Filter MeasureTheory Set Lattice Wilson RG Source Labels |
| 19 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 20 | |
| 21 | variable {n : Side} {G : Gauge} |
| 22 | |
| 23 | /-- A countable permanent preallocation (independently of whether the |
| 24 | source coefficient vanishes). -/ |
| 25 | abbrev StockTag (n : Side) := {s : Support n × Support n // s.2.Nonempty ∧ s.2 ⊆ s.1} |
| 26 | |
| 27 | structure Shelf (A : Activities G n) where |
| 28 | name : StockTag n × ℕ ↪ ℕ |
| 29 | support t : (A.forced (name t)).support = t.1.val.1 |
| 30 | inventory t : (A.forced (name t)).inventory = t.1.val.2 |
| 31 | check t U : (A.forced (name t)).extraTest U |
| 32 | blank t : A.K (name t) = 0 |
| 33 | |
| 34 | namespace Attach |
| 35 | variable (R : Rep G n) (Y : Support n) |
| 36 | |
| 37 | abbrev X (i : ℕ) := (R.activities.forced i).support |
| 38 | abbrev I (i : ℕ) := (R.activities.forced i).inventory |
| 39 | |
| 40 | abbrev coherent (b : Finset ℕ) := (b:Set ℕ).Pairwise fun i j => Disjoint (X R i) (X R j) |
| 41 | |
| 42 | /-- incoming profile split by the actual incompatibility test (supports), |
| 43 | not by the sites of the flags. -/ |
| 44 | def meet (b : Finset ℕ) := b.filter fun i => ¬ Disjoint (X R i) Y |
| 45 | def rest (b : Finset ℕ) := b.filter fun i => Disjoint (X R i) Y |
| 46 | |
| 47 | lemma mem_meet (b : Finset ℕ) (i : ℕ) : i ∈ meet R Y b ↔ i ∈ b ∧ ¬ Disjoint (X R i) Y := Finset.mem_filter |
| 48 | lemma mem_rest (b : Finset ℕ) (i : ℕ) : i ∈ rest R Y b ↔ i ∈ b ∧ Disjoint (X R i) Y := Finset.mem_filter |
| 49 | lemma pieces (b) : meet R Y b ∪ rest R Y b = b := by |
| 50 | ext i; simp only [Finset.mem_union,mem_meet,mem_rest]; tauto |
| 51 | |
| 52 | abbrev Cluster := {b : Finset ℕ // b.Nonempty ∧ coherent R b ∧ ∀ i ∈ b, ¬ Disjoint (X R i) Y} |
| 53 | |
| 54 | def span (c : Cluster R Y) := Y ∪ c.val.biUnion (X R) |
| 55 | |
| 56 | def debts (c : Cluster R Y) := c.val.biUnion (I R) |
| 57 | |
| 58 | lemma owns (c : Cluster R Y) (i) (hi : i ∈ c.val) : X R i ⊆ span R Y c := |
| 59 | fun _ hx => Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hi,hx⟩) |
| 60 | lemma base (c : Cluster R Y) : Y ⊆ span R Y c := Finset.subset_union_left |
| 61 | |
| 62 | def shape (c : Cluster R Y) : StockTag n := ⟨(span R Y c, debts R Y c), |
| 63 | (by obtain ⟨i, hi⟩ := c.property.1 |
| 64 | obtain ⟨j,hj⟩ := (R.activities.forced i).inventory_ne |
| 65 | exact ⟨j,Finset.mem_biUnion.mpr ⟨i,hi,hj⟩⟩), |
| 66 | (by intro i hi |
| 67 | obtain ⟨j,hj,h⟩ := Finset.mem_biUnion.mp hi |
| 68 | exact owns R Y c j hj ((R.activities.forced j).inventory_sup h))⟩ |
| 69 | |
| 70 | variable (H : Shelf R.activities) (docket : ℕ) |
| 71 | |
| 72 | def codeId (c : Cluster R Y) : StockTag n × ℕ := |
| 73 | (shape R Y c, Encodable.encode (docket,c.val)) |
| 74 | |
| 75 | def stamp : Cluster R Y ↪ ℕ where |
| 76 | toFun c := H.name (codeId R Y docket c) |
| 77 | inj' := by |
| 78 | intro c c' h |
| 79 | have ht := congr_arg Prod.snd (H.name.injective h) |
| 80 | exact Subtype.ext (congr_arg Prod.snd (Encodable.encode_injective ht)) |
| 81 | |
| 82 | lemma stamp_x (c : Cluster R Y) : X R (stamp R Y H docket c) = span R Y c := H.support _ |
| 83 | lemma stamp_i (c : Cluster R Y) : I R (stamp R Y H docket c) = debts R Y c := H.inventory _ |
| 84 | |
| 85 | variable (U : Config G n) |
| 86 | |
| 87 | /-- Exact coverage and exclusions give inventory predicate already, even |
| 88 | if K on some address happens to vanish. -/ |
| 89 | lemma seated {b : Finset ℕ} (hb : R.activities.admissible R.p U b) {i} (hi : i ∈ b) : |
| 90 | X R i ∩ flags R.p.threshold U = I R i := by |
| 91 | rw [← hb.2] |
| 92 | ext x |
| 93 | rw [Finset.mem_inter, Finset.mem_biUnion] |
| 94 | constructor |
| 95 | · rintro ⟨ht,j,hj,hk⟩ |
| 96 | rcases eq_or_ne i j with H|H |
| 97 | · subst j; exact hk |
| 98 | exact (Finset.disjoint_left.mp (hb.1 hi hj H) ht ((R.activities.forced j).inventory_sup hk)).elim |
| 99 | intro hx; exact ⟨(R.activities.forced i).inventory_sup hx,i,hi,hx⟩ |
| 100 | |
| 101 | abbrev Old := {b : Finset ℕ // R.activities.admissible R.p U b ∧ (meet R Y b).Nonempty} |
| 102 | abbrev Issued := {p : Cluster R Y × Finset ℕ // |
| 103 | stamp R Y H docket p.1 ∈ p.2 ∧ R.activities.admissible R.p U p.2} |
| 104 | |
| 105 | def interest (b : Old R Y U) : Cluster R Y := ⟨meet R Y b.val, b.property.2, |
| 106 | b.property.1.1.mono (Finset.coe_subset.mpr (Finset.filter_subset ..)), fun _ hi => ((mem_meet ..).mp hi).2⟩ |
| 107 | |
| 108 | private lemma aside (b : Old R Y U) {i} (hi : i∈rest R Y b.val) : |
| 109 | Disjoint (X R (stamp R Y H docket (interest R Y U b))) (X R i) := by |
| 110 | rw [stamp_x] |
| 111 | obtain ⟨he,hx⟩ := (mem_rest ..).mp hi |
| 112 | apply Finset.disjoint_left.mpr |
| 113 | intro x hu hX |
| 114 | obtain hd|hd := Finset.mem_union.mp hu |
| 115 | · exact Finset.disjoint_left.mp hx hX hd |
| 116 | obtain ⟨j, hj, hw⟩ := Finset.mem_biUnion.mp hd |
| 117 | obtain ⟨hf,hq⟩ := (mem_meet ..).mp (show j ∈ meet R Y b.val from hj) |
| 118 | have hc : j ≠ i := fun h => hq (h.symm ▸ hx) |
| 119 | exact Finset.disjoint_left.mp (b.property.1.1 hf he hc) hw hX |
| 120 | |
| 121 | private lemma stamp_notMem (b : Old R Y U) : |
| 122 | stamp R Y H docket (interest R Y U b) ∉ rest R Y b.val := by |
| 123 | intro ha |
| 124 | have he := aside R Y H docket U b ha |
| 125 | obtain ⟨x,hx⟩ := (R.activities.forced _).inventory_ne.mono |
| 126 | ((R.activities.forced (stamp R Y H docket (interest R Y U b))).inventory_sup) |
| 127 | exact Finset.disjoint_left.mp he hx hx |
| 128 | |
| 129 | def issue (b : Old R Y U) : Issued R Y H docket U := |
| 130 | let c := interest R Y U b |
| 131 | let i := stamp R Y H docket c |
| 132 | ⟨(c,insert i (rest R Y b.val)),Finset.mem_insert_self ..,by |
| 133 | constructor |
| 134 | · rw [Finset.coe_insert] |
| 135 | apply Set.Pairwise.insert (b.property.1.1.mono (Finset.coe_subset.mpr (Finset.filter_subset ..))) |
| 136 | intro y hy _; have he := aside R Y H docket U b hy; exact ⟨he,he.symm⟩ |
| 137 | · change (insert i (rest R Y b.val)).biUnion (I R)=_ |
| 138 | rw [Finset.biUnion_insert, show I R i = debts R Y c from stamp_i ..] |
| 139 | rw [show debts R Y c = (meet R Y b.val).biUnion (I R) from rfl, ← Finset.union_biUnion, |
| 140 | pieces, show b.val.biUnion (I R) = _ from b.property.1.2]⟩ |
| 141 | |
| 142 | def unchanged (p : Issued R Y H docket U) := p.val.2.erase (stamp R Y H docket p.val.1) |
| 143 | |
| 144 | private theorem recovers (p : Issued R Y H docket U) : |
| 145 | insert (stamp R Y H docket p.val.1) (unchanged R Y H docket U p)= p.val.2 := Finset.insert_erase p.property.1 |
| 146 | |
| 147 | lemma far (p : Issued R Y H docket U) {i} (hi : i ∈ unchanged R Y H docket U p) : |
| 148 | Disjoint (X R i) (span R Y p.val.1) := |
| 149 | stamp_x R Y H docket p.val.1 ▸ p.property.2.1 (Finset.mem_of_mem_erase hi) |
| 150 | p.property.1 (Finset.ne_of_mem_erase hi) |
| 151 | |
| 152 | lemma separate (p : Issued R Y H docket U) : Disjoint p.val.1.val (unchanged R Y H docket U p) := by |
| 153 | apply Finset.disjoint_left.mpr; intro i hi ha |
| 154 | have hx := far R Y H docket U p ha |
| 155 | obtain ⟨x,hx'⟩ := (R.activities.forced _).inventory_ne.mono (R.activities.forced i).inventory_sup |
| 156 | exact Finset.disjoint_left.mp hx hx' (owns _ _ _ _ hi hx') |
| 157 | |
| 158 | def flatten (p : Issued R Y H docket U) : Finset ℕ := p.val.1.val ∪ unchanged R Y H docket U p |
| 159 | |
| 160 | lemma meetFlatten (p : Issued R Y H docket U) : meet R Y (flatten R Y H docket U p) = p.val.1.val := by |
| 161 | ext i |
| 162 | rw [mem_meet] |
| 163 | constructor |
| 164 | · rintro ⟨hi,hb⟩ |
| 165 | obtain ha|hx := Finset.mem_union.mp hi |
| 166 | · exact ha |
| 167 | exact (hb (Finset.disjoint_of_subset_right (base ..) (far R Y H docket U p hx))).elim |
| 168 | intro hi |
| 169 | exact ⟨Finset.mem_union_left _ hi,p.val.1.property.2.2 i hi⟩ |
| 170 | |
| 171 | lemma restFlatten (p : Issued R Y H docket U) : rest R Y (flatten R Y H docket U p) = unchanged R Y H docket U p := by |
| 172 | ext i |
| 173 | rw [mem_rest] |
| 174 | constructor |
| 175 | · rintro ⟨hi,hb⟩ |
| 176 | obtain ha|hx := Finset.mem_union.mp hi |
| 177 | · exact (p.val.1.property.2.2 i ha hb).elim |
| 178 | exact hx |
| 179 | intro hi |
| 180 | exact ⟨Finset.mem_union_right _ hi, Finset.disjoint_of_subset_right (base ..) (far R Y H docket U p hi)⟩ |
| 181 | |
| 182 | def redeem (p : Issued R Y H docket U) : Old R Y U := by |
| 183 | refine ⟨flatten R Y H docket U p, ⟨?_,?_⟩, meetFlatten R Y H docket U p |>.symm ▸ p.val.1.property.1⟩ |
| 184 | · rw [flatten,Finset.coe_union,Set.pairwise_union] |
| 185 | refine ⟨p.val.1.property.2.1,p.property.2.1.mono (Finset.coe_subset.mpr (Finset.erase_subset ..)),?_⟩ |
| 186 | intro i hi j hj _ |
| 187 | have h := Finset.disjoint_of_subset_right (owns _ _ _ _ hi) (far R Y H docket U p hj) |
| 188 | exact ⟨h.symm,h⟩ |
| 189 | change (flatten R Y H docket U p).biUnion (I R)=_ |
| 190 | rw [flatten,Finset.union_biUnion, show p.val.1.val.biUnion (I R)= I R (stamp R Y H docket p.val.1) from (stamp_i ..).symm, |
| 191 | ← Finset.biUnion_insert, recovers, show p.val.2.biUnion (I R)=_ from p.property.2.2] |
| 192 | |
| 193 | lemma unchanged_issue (b : Old R Y U) : unchanged R Y H docket U (issue R Y H docket U b) = rest R Y b.val := by |
| 194 | simp only [unchanged,issue, Finset.erase_insert (stamp_notMem R Y H docket U b)] |
| 195 | |
| 196 | /-- Bijection BEFORE summation. Works on all cover/exclusion-admissible |
| 197 | terms even those with vanishing K. -/ |
| 198 | def routes : Old R Y U ≃ Issued R Y H docket U where |
| 199 | toFun := issue R Y H docket U |
| 200 | invFun := redeem R Y H docket U |
| 201 | left_inv b := by |
| 202 | apply Subtype.ext |
| 203 | change (issue R Y H docket U b).val.1.val ∪ unchanged .. = _ |
| 204 | rw [unchanged_issue]; exact pieces R Y _ |
| 205 | right_inv p := by |
| 206 | apply Subtype.ext |
| 207 | have he : interest R Y U (redeem R Y H docket U p)=p.val.1 := Subtype.ext (meetFlatten ..) |
| 208 | apply Prod.ext |
| 209 | · exact he |
| 210 | change insert (stamp R Y H docket (interest R Y U _)) (rest R Y (flatten ..)) = _ |
| 211 | rw [he,restFlatten]; exact recovers R Y H docket U p |
| 212 | |
| 213 | end Attach |
| 214 | end YM.Extra.Histories |