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.Bid.Craft |
| 2 | import YM.Extra.SOURCE_HISTORIES.Clusters |
| 3 | import YM.Extra.SOURCE_HISTORIES.Motion |
| 4 | |
| 5 | /-! |
| 6 | # Supplying the top-level address shelf (keeping public label/name data) |
| 7 | |
| 8 | An enrichment procedure for the planner: always preallocate *all* finite |
| 9 | support shapes with nonempty flags and countable duplicates. Doesn't assert |
| 10 | that one can assume this in an *arbitrary already supplied Bolt*. Shows |
| 11 | extension by literally zero labels in chosen history/action, to use in |
| 12 | constructing a Bolt with that property. Exact paths & all old unmarked |
| 13 | addresses remain (old K through one fixed renaming). Extra test is True |
| 14 | but eligible still uses exact flags; richer predicates on this shape |
| 15 | checked in the payload as in `Attach`. All vacuum costs unchanged incl |
| 16 | exponential and the strong extra cap in `Directed.Move`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Extra.Histories.Pads |
| 22 | open Lattice Wilson RG Source Function Filter Set MeasureTheory Bid Labels Motion |
| 23 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 24 | |
| 25 | variable {G : Gauge} |
| 26 | |
| 27 | abbrev Ghost (n : Side) := StockTag n × ℕ |
| 28 | |
| 29 | def sidekick (n : Side) : ℕ ⊕ Ghost n ≃ ℕ := by |
| 30 | letI : Encodable (ℕ ⊕ Ghost n) := Encodable.ofCountable _ |
| 31 | letI := Denumerable.ofEncodableOfInfinite (ℕ ⊕ Ghost n) |
| 32 | exact Denumerable.eqv _ |
| 33 | |
| 34 | def old (n : Side) : ℕ ↪ ℕ := ⟨(sidekick n) ∘ Sum.inl,(sidekick n).injective.comp Sum.inl_injective⟩ |
| 35 | def reserve (n : Side) : Ghost n ↪ ℕ := ⟨(sidekick n) ∘ Sum.inr,(sidekick n).injective.comp Sum.inr_injective⟩ |
| 36 | |
| 37 | variable {n : Side} (p : Ghost n) (A : Activities G n) |
| 38 | |
| 39 | def joins {α : Type*} (n : Side) (f : ℕ → α) (g : Ghost n → α) : ℕ → α := (Sum.elim f g) ∘ (sidekick n).symm |
| 40 | lemma joins_old {α : Type*} (f : ℕ → α) (g : Ghost n → α) (j) : joins n f g (old n j)=f j := by simp [joins,old] |
| 41 | lemma joins_stock {α : Type*} (f : ℕ → α) (g : Ghost n → α) (j) : joins n f g (reserve n j)=g j := by simp [joins,reserve] |
| 42 | |
| 43 | lemma cases_cell (n : Side) (i : ℕ) : (∃ j,old n j=i) ∨ ∃ j, reserve n j=i := by |
| 44 | obtain ⟨j|j,rfl⟩ := (sidekick n).surjective i ; exacts [Or.inl ⟨j,rfl⟩,Or.inr ⟨j,rfl⟩] |
| 45 | |
| 46 | lemma budget_joins {f : ℕ → ℝ} {w : ℝ} (h : SumBudget f w) (n : Side) : |
| 47 | SumBudget (joins n f (fun _ => 0)) w := by |
| 48 | let z := joins n f (fun _ => 0) |
| 49 | have he : z ∘ old n = f := funext fun _ => joins_old .. |
| 50 | have hv (i : ℕ) (hi : i∉range (old n)) : z i=0 := by |
| 51 | obtain h|⟨j,rfl⟩ := cases_cell n i; exact (hi h).elim; exact joins_stock .. |
| 52 | have hg : Function.support z ⊆ range (old n) := by intro i hi; by_contra hu; exact hi (hv i hu) |
| 53 | refine ⟨fun i => ?_, ((old n).injective.summable_iff hv).mp (he.symm ▸ h.2.1),?_⟩ |
| 54 | · obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 55 | · rw [joins_old]; exact h.1 _ |
| 56 | rw [joins_stock] |
| 57 | change tsum z ≤ _ |
| 58 | rw [← (old n).injective.tsum_eq hg,show (fun j => z (old n j))=f from he]; exact h.2.2 |
| 59 | |
| 60 | /-- The ghost is identified by full supports and inventory. -/ |
| 61 | def apparition : ForcedAddress G n := ⟨p.1.val.1,p.1.val.2,p.1.property.1,p.1.property.2,fun _ => True⟩ |
| 62 | |
| 63 | def enhanced : Activities G n := { A with |
| 64 | forced := joins n A.forced apparition |
| 65 | K := joins n A.K (fun _ => 0) } |
| 66 | |
| 67 | lemma old_eq (j : ℕ) : (enhanced A).forced (old n j)=A.forced j := joins_old .. |
| 68 | lemma ghost_eq (j : Ghost n) : (enhanced A).forced (reserve n j)=apparition j := joins_stock .. |
| 69 | lemma old_k (j : ℕ) : (enhanced A).K (old n j)=A.K j := joins_old .. |
| 70 | lemma ghost_k (j : Ghost n) : (enhanced A).K (reserve n j)=0 := joins_stock .. |
| 71 | |
| 72 | def supplies : Shelf (enhanced A) := by |
| 73 | refine ⟨reserve n,?_,?_,?_,ghost_k A⟩ |
| 74 | · intro t; rw [ghost_eq]; rfl |
| 75 | · intro t; rw [ghost_eq]; rfl |
| 76 | intro t U; rw [ghost_eq]; exact trivial |
| 77 | |
| 78 | /-- preserves ALL label permutations, even through reflections -/ |
| 79 | private def new_shape (f : Site n ≃ Site n) (v : StockTag n) : StockTag n := ⟨(v.val.1.image f,v.val.2.image f), |
| 80 | v.property.1.image _, Finset.image_subset_image v.property.2⟩ |
| 81 | private lemma prod_shape (f : Site n ≃ Site n) (v : StockTag n) : new_shape f.symm (new_shape f v)=v := by |
| 82 | apply Subtype.ext; apply Prod.ext <;> simp only [new_shape,Finset.image_image,comp_def,Equiv.symm_apply_apply,Finset.image_id'] |
| 83 | private def fitting (f : Equiv.Perm (Site n)) : Equiv.Perm (StockTag n) := |
| 84 | ⟨new_shape f,new_shape f.symm, prod_shape f, prod_shape f.symm⟩ |
| 85 | |
| 86 | lemma actions {s : Signed} {b : Site n} (H : A.Moves s b) : Nonempty ((enhanced A).Moves s b) := by |
| 87 | let g := Equiv.ofBijective (affine s b) (by |
| 88 | have hx : Injective (affine s b) := fun i j h => s.act_injective (add_right_cancel h) |
| 89 | exact ⟨hx,Finite.injective_iff_surjective.mp hx⟩) |
| 90 | let u := (fitting g).prodCongr (Equiv.refl ℕ) |
| 91 | let F := ((sidekick n).symm.trans (H.kp.sumCongr u)).trans (sidekick n) |
| 92 | have he i : F (old n i)=old n (H.kp i) := by simp [F,old] |
| 93 | have hl i : F (reserve n i)=reserve n (u i) := by simp [F,reserve] |
| 94 | refine ⟨⟨H.ep,F,H.reg_site,H.reg_support,?_,?_,?_,H.valuesE,?_⟩⟩ |
| 95 | · intro i; obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 96 | · rw [he,old_eq,old_eq,H.forced_support] |
| 97 | rw [hl,ghost_eq,ghost_eq]; rfl |
| 98 | · intro i; obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 99 | · rw [he,old_eq,old_eq,H.forced_inventory] |
| 100 | rw [hl,ghost_eq,ghost_eq]; rfl |
| 101 | · intro i U; obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 102 | · rw [he,old_eq,old_eq,H.forced_tests] |
| 103 | rw [hl,ghost_eq,ghost_eq] |
| 104 | rfl |
| 105 | intro i U; obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 106 | · rw [he,old_k,old_k,H.valuesK] |
| 107 | rw [hl,ghost_k,ghost_k]; rfl |
| 108 | |
| 109 | lemma zeros (P : BudgetPoint) (u : ℝ) (h : A.KBound P u) : (enhanced A).KBound P u := by |
| 110 | obtain ⟨a,ha,hA⟩ := h |
| 111 | let t := joins n a (fun _ => 0) |
| 112 | refine ⟨t,fun i => ?_, fun x => ?_⟩ |
| 113 | · obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 114 | · unfold t; rw [joins_old,old_k]; exact ha _ |
| 115 | unfold t; simp [joins_stock,ghost_k] |
| 116 | let r (i : ℕ) := if x∈(A.forced i).support then P.mass (A.forced i).support (a i) else 0 |
| 117 | have he : (fun i => if x∈((enhanced A).forced i).support then P.mass ((enhanced A).forced i).support (t i) else 0) = |
| 118 | joins n r (fun _ => 0) := by |
| 119 | funext i; obtain ⟨i,rfl⟩|⟨i,rfl⟩ := cases_cell n i |
| 120 | · simp only [t,r,joins_old,old_eq] |
| 121 | simp [t,joins_stock,BudgetPoint.mass] |
| 122 | exact he.symm ▸ (budget_joins (hA x) n) |
| 123 | |
| 124 | lemma family (P : BudgetPoint) (h : A.ForcedFamily P) : (enhanced A).ForcedFamily P := by |
| 125 | constructor |
| 126 | all_goals |
| 127 | intro i; obtain ⟨j,rfl⟩|⟨j,rfl⟩ := cases_cell n i |
| 128 | · simp only [old_eq,old_k] |
| 129 | first | exact h.sym j | exact h.symtest j | exact h.meas j | exact h.meas_test j | exact h.reads j | |
| 130 | exact h.reads_test j | exact h.permit j |
| 131 | all_goals |
| 132 | simp only [ghost_eq,ghost_k,apparition] |
| 133 | first |
| 134 | | exact fun _ _ => rfl |
| 135 | | exact fun _ _ _ _ => rfl |
| 136 | | exact measurable_const |
| 137 | | simp |
| 138 | |
| 139 | lemma legitimate (P : BudgetPoint) {u v : ℝ} (h : A.Valid P u v) : (enhanced A).Valid P u v := by |
| 140 | have hh : (enhanced A).RegularFamily P := ⟨h.regular.smooth,h.regular.at_flat,h.regular.vanish⟩ |
| 141 | exact ⟨hh,family A P h.forced,fun s b => actions A (Classical.choice (h.moves s b)),h.boundE,zeros A P v h.boundK⟩ |
| 142 | |
| 143 | lemma fuels (P : BudgetPoint) (U : Config G n) : (enhanced A).gas P U=A.gas P U := by |
| 144 | let f := old n |
| 145 | let g := Finset.map f |
| 146 | let h b := (enhanced A).gasOccurrence P b U |
| 147 | have ht (b) : h (g b)= A.gasOccurrence P b U := by |
| 148 | have hh : (enhanced A).admissible P U (g b) ↔ A.admissible P U b := by |
| 149 | unfold Activities.admissible g |
| 150 | rw [Finset.map_eq_image,Finset.image_biUnion] |
| 151 | simp_rw [show ∀ i, (enhanced A).forced (f i)=_ from old_eq A] |
| 152 | constructor |
| 153 | · rintro ⟨h,a⟩ |
| 154 | refine ⟨?_,a⟩ |
| 155 | intro i hi j hj hx |
| 156 | have hg := h (Finset.mem_image_of_mem f hi) (Finset.mem_image_of_mem f hj) (f.injective.ne hx) |
| 157 | simpa only [f,old_eq] using hg |
| 158 | rintro ⟨h,a⟩; refine ⟨?_,a⟩ |
| 159 | intro i hi j hj hx |
| 160 | obtain ⟨k,hk,rfl⟩ := Finset.mem_image.mp hi |
| 161 | obtain ⟨l,hl,rfl⟩ := Finset.mem_image.mp hj |
| 162 | simpa only [f,old_eq] using h hk hl (f.injective.ne_iff.mp hx) |
| 163 | unfold h Activities.gasOccurrence |
| 164 | rw [hh]; simp only [g,Finset.prod_map,f,old_k] |
| 165 | have hz : Function.support h ⊆ range g := by |
| 166 | intro b hb |
| 167 | have he (i) (hi : i∈b) : i∈range f := by |
| 168 | obtain hh|⟨j,rfl⟩ := cases_cell n i; exact hh |
| 169 | exfalso; apply hb |
| 170 | unfold h Activities.gasOccurrence |
| 171 | split; exact Finset.prod_eq_zero hi (by rw [ghost_k]; rfl); exact rfl |
| 172 | let t (i : ℕ) := ((sidekick n).symm i).elim id (fun _ => 0) |
| 173 | have ht (i : ℕ) : t (f i)=i := by simp [t,f,old] |
| 174 | refine ⟨b.image t,?_⟩ |
| 175 | ext a; constructor |
| 176 | · intro ha |
| 177 | obtain ⟨i,hi,rfl⟩ := Finset.mem_map.mp ha |
| 178 | obtain ⟨c,hc,rfl⟩ := Finset.mem_image.mp hi |
| 179 | obtain ⟨c,rfl⟩ := he c hc |
| 180 | rwa [ht] |
| 181 | intro ha; obtain ⟨a,rfl⟩ := he a ha |
| 182 | refine Finset.mem_map.mpr ⟨a,Finset.mem_image.mpr ⟨f a,ha,ht a⟩,rfl⟩ |
| 183 | change tsum h = _ |
| 184 | rw [← (Finset.map_injective f).tsum_eq hz]; exact tsum_congr ht |
| 185 | |
| 186 | variable (R : Rep G n) |
| 187 | |
| 188 | def bulk := { R with activities := enhanced R.activities } |
| 189 | lemma bulky {σ C Λ δ w : ℝ} (h : R.Lawful σ C Λ δ w) : (bulk R).Lawful σ C Λ δ w := |
| 190 | ⟨h.paths, legitimate R.activities _ h.labels⟩ |
| 191 | lemma charged : (bulk R).eval=R.eval := by |
| 192 | funext U |
| 193 | unfold Rep.eval |
| 194 | change _ * (enhanced R.activities).gas R.p U = _ |
| 195 | rw [fuels]; rfl |
| 196 | end YM.Extra.Histories.Pads |