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.SCHEDULE.Dues |
| 2 | import YM.Progress.DIRECTED_RECIPE.Pellets |
| 3 | import YM.Work.H03 |
| 4 | |
| 5 | /-! |
| 6 | # Maps when remembering species covariance |
| 7 | |
| 8 | It is not enough, when implementing a step, to check that counts of |
| 9 | readdressed terms match. Use a known movement of input E/K/log tensors. |
| 10 | Here we show how to pay the SAME permutation throughout a curve if the raw |
| 11 | geometry has that property. Our `Packed` will already give **pointwise** |
| 12 | use, which needs no such additional hypothesis. Recovery respects even the |
| 13 | named unused slots. Lifts the primitives (as in Work.H03) to a uniform and |
| 14 | *commuting with the receipt embeddings* Moves. No assertion every pair of |
| 15 | permutations transport correctly when attached in different views. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Progress.DirectedRecipe |
| 20 | open Function Set RG Wilson Lattice RG.Shoot Ovens Ovens.Pipes MeasureTheory |
| 21 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius Classical |
| 22 | variable {G : Gauge} {n : Side} |
| 23 | |
| 24 | structure Layout (X : Pipes G n) (s : Signed) (b : Site n) where |
| 25 | reg : Equiv.Perm ℕ |
| 26 | hard : Equiv.Perm ℕ |
| 27 | soft : Equiv.Perm ℕ |
| 28 | aligns i : regMap (destination s b) (X.reg i)=X.reg (reg i) |
| 29 | kernels i : hardMap (destination s b) (readFoot (X.kernel i))=readFoot (X.kernel (hard i)) |
| 30 | extra i U : (X.kernel (hard i)).extraTest U ↔ (X.kernel i).extraTest (pull s b U) |
| 31 | others i : (X.softer i).image (affine s b) = X.softer (soft i) |
| 32 | |
| 33 | namespace Layout |
| 34 | open Rack |
| 35 | variable {X : Pipes G n} {s : Signed} {b : Site n} |
| 36 | |
| 37 | structure Follows (L : Layout X s b) (d : Tap G n) : Prop where |
| 38 | E i U : d.regular (L.reg i) U=d.regular i (pull s b U) |
| 39 | K i U : d.forced (L.hard i) U=d.forced i (pull s b U) |
| 40 | logs i U : d.logarithm (L.soft i) U=d.logarithm i (pull s b U) |
| 41 | |
| 42 | lemma from_raw {d : Tap G n} (M : (X.pours d).Moves s b) {p : Equiv.Perm ℕ} |
| 43 | (h : ∀ i, X.softer (p i) = (X.softer i).image (affine s b)) (ht : ∀ U i,d.logarithm (p i) U= |
| 44 | d.logarithm i (pull s b U)) : |
| 45 | ∃ L : Layout X s b, L.reg=M.ep ∧ L.hard=M.kp ∧ L.soft=p ∧ L.Follows d := |
| 46 | ⟨⟨M.ep,M.kp,p,fun _ => reg_ext (M.reg_site _).symm (M.reg_support _).symm, |
| 47 | fun _ => foot_ext (M.forced_support _).symm (M.forced_inventory _).symm, M.forced_tests, |
| 48 | fun i => (h i).symm⟩,rfl,rfl,rfl,⟨M.valuesE,M.valuesK,fun i U => ht U i⟩⟩ |
| 49 | |
| 50 | variable (L : Layout X s b) |
| 51 | |
| 52 | def inflate : Layout (drawer G n) s b where |
| 53 | reg := rearrange (regularKeys n) (regMap (destination s b)) L.reg |
| 54 | hard := rearrange (hardKeys n) (hardMap (destination s b)) L.hard |
| 55 | soft := rearrange (softKeys n) (softMap (destination s b)) L.soft |
| 56 | aligns _ := (congr_arg Prod.fst (stocked ..)).symm |
| 57 | kernels i := (congr_arg Prod.fst (stocked (hardKeys n) (hardMap (destination s b)) L.hard i)).symm |
| 58 | extra _ _ := Iff.rfl |
| 59 | others i := (congr_arg Subtype.val (congr_arg Prod.fst (stocked (softKeys n) (softMap (destination s b)) L.soft i))).symm |
| 60 | |
| 61 | lemma usesReg i : L.inflate.reg (upE X i) = upE X (L.reg i) := move_stock _ _ _ _ L.aligns _ |
| 62 | lemma usesHard i : L.inflate.hard (upK X i) = upK X (L.hard i) := |
| 63 | move_stock _ _ _ (fun i => readFoot (X.kernel i)) L.kernels _ |
| 64 | lemma usesSoft i : L.inflate.soft (upS X i) = upS X (L.soft i) := |
| 65 | move_stock (softKeys n) (softMap (destination s b)) L.soft (fun i => ⟨X.softer i, X.sites i⟩) |
| 66 | (fun i => Subtype.ext (show (X.softer i).image _ = X.softer (L.soft i) from L.others i)) _ |
| 67 | |
| 68 | lemma inflates (d : Tap G n) (h : L.Follows d) : L.inflate.Follows (widen X d) := by |
| 69 | constructor |
| 70 | · intro i U; by_cases hi : i∈range (upE X) |
| 71 | · obtain ⟨i,rfl⟩ := hi; simp only [usesReg,widen,stuffed,h.E] |
| 72 | simp [widen,blank _ _ hi,blank _ _ (unused L.usesReg hi)] |
| 73 | · intro i U; by_cases hi : i∈range (upK X) |
| 74 | · obtain ⟨i,rfl⟩ := hi; simp only [usesHard,widen,stuffed,h.K] |
| 75 | simp [widen,blank _ _ hi,blank _ _ (unused L.usesHard hi)] |
| 76 | intro i U; by_cases hi : i∈range (upS X) |
| 77 | · obtain ⟨i,rfl⟩ := hi; simp only [usesSoft,widen,stuffed,h.logs] |
| 78 | simp [widen,blank _ _ hi,blank _ _ (unused L.usesSoft hi)] |
| 79 | |
| 80 | def atoms : Equiv.Perm Label := Equiv.sumCongr L.hard L.soft |
| 81 | |
| 82 | lemma footprint (i : Label) : X.patch (L.atoms i) = (X.patch i).image (affine s b) := by |
| 83 | cases i with |
| 84 | | inl i => exact (congr_arg Foot.support (L.kernels i)).symm |
| 85 | | inr i => exact (L.others i).symm |
| 86 | |
| 87 | lemma old_hard (i : ℕ) : (X.kernel (L.hard i)).support = (X.kernel i).support.image (affine s b) := L.footprint (.inl i) |
| 88 | lemma old_inv (i : ℕ) : (X.kernel (L.hard i)).inventory = (X.kernel i).inventory.image (affine s b) := |
| 89 | (congr_arg Foot.inventory (L.kernels i)).symm |
| 90 | lemma located (A : Finset Label) : lefts (A.map L.atoms.toEmbedding) = (lefts A).map L.hard.toEmbedding := by |
| 91 | ext x; simp [lefts, Layout.atoms] |
| 92 | |
| 93 | lemma preserves (A : Finset Label) : X.contains A ↔ X.contains (A.map L.atoms.toEmbedding) := by |
| 94 | let e := destination s b |
| 95 | let p := L.atoms |
| 96 | let A' := A.map p.toEmbedding |
| 97 | have hb : ∀ i j, Ac.bonds X.patch A' (p i) (p j) ↔ Ac.bonds X.patch A i j := by |
| 98 | intro i j |
| 99 | simp only [Ac.bonds,A', Finset.mem_map_equiv,Equiv.symm_apply_apply,p, Ac.meets, L.footprint] |
| 100 | constructor |
| 101 | · rintro ⟨hi,hj,x,hx,hy⟩ |
| 102 | obtain ⟨y,hU,heu⟩ := Finset.mem_image.mp hx; obtain ⟨z,hV,hev⟩ := Finset.mem_image.mp hy |
| 103 | have HH : y=z := e.injective (heu.trans hev.symm) |
| 104 | exact ⟨hi,hj,y,hU,HH.symm ▸ hV⟩ |
| 105 | rintro ⟨hi,hj,x,hx,hy⟩ |
| 106 | exact ⟨hi,hj,affine s b x, Finset.mem_image_of_mem _ hx, Finset.mem_image_of_mem _ hy⟩ |
| 107 | have hx : ∀ i j,Ac.chain X.patch A i j ↔ Ac.chain X.patch A' (p i) (p j) := by |
| 108 | intro i j |
| 109 | constructor <;> intro h |
| 110 | · exact Relation.ReflTransGen.lift p (fun a b H => (hb a b).2 H) i j h |
| 111 | have he : Ac.bonds X.patch A' ≤ onFun (Ac.bonds X.patch A) p.symm := by |
| 112 | intro a b ha; obtain ⟨a,rfl⟩ := p.surjective a; obtain ⟨b,rfl⟩ := p.surjective b |
| 113 | simp only [onFun,Equiv.symm_apply_apply]; exact (hb ..).1 ha |
| 114 | have ht := Relation.ReflTransGen.lift p.symm he _ _ h |
| 115 | simpa [onFun,Ac.chain] using ht |
| 116 | have hQ : Ac.Spark X.patch A ↔ Ac.Spark X.patch A' := by |
| 117 | constructor <;> rintro ⟨hv,h⟩ |
| 118 | · refine ⟨hv.map,fun i hi j hj => ?_⟩ |
| 119 | obtain ⟨i,hia,rfl⟩ := Finset.mem_map.mp hi |
| 120 | obtain ⟨j,hja,rfl⟩ := Finset.mem_map.mp hj |
| 121 | exact (hx ..).mp (h i hia j hja) |
| 122 | exact ⟨Finset.map_nonempty.mp hv,fun i hi j hj => (hx ..).mpr |
| 123 | (h (p i) (Finset.mem_map.mpr ⟨i,hi,rfl⟩) (p j) (Finset.mem_map.mpr ⟨j,hj,rfl⟩))⟩ |
| 124 | have ht i j : Disjoint (X.kernel (L.hard i)).support (X.kernel (L.hard j)).support ↔ |
| 125 | Disjoint (X.kernel i).support (X.kernel j).support := by |
| 126 | rw [L.old_hard,L.old_hard]; exact Finset.disjoint_image e.injective |
| 127 | unfold Pipes.contains |
| 128 | rw [L.located,Finset.map_nonempty,hQ,paired L.hard.toEmbedding ht] |
| 129 | |
| 130 | lemma biImage {ι : Type*} (f : ι → Support n) (g : Equiv.Perm ι) (p : Equiv.Perm (Site n)) |
| 131 | (hf : ∀ i, f (g i) = (f i).image p) (A : Finset ι) : |
| 132 | (A.map g.toEmbedding).biUnion f = (A.biUnion f).image p := by |
| 133 | rw [mapped_biUnion _ hf]; ext i; simp |
| 134 | constructor |
| 135 | · rintro ⟨a,H,b,h,rfl⟩; exact ⟨b,⟨a,H,h⟩,rfl⟩ |
| 136 | rintro ⟨b,⟨a,h,H⟩,rfl⟩; exact ⟨a,h,b,H,rfl⟩ |
| 137 | |
| 138 | def slide : Equiv.Perm X.Pellet := Equiv.subtypeEquiv L.atoms.finsetCongr (L.preserves) |
| 139 | |
| 140 | def walk (F : ℕ≃ X.Pellet) : Equiv.Perm ℕ := (F.trans L.slide).trans F.symm |
| 141 | |
| 142 | lemma ready (F : ℕ≃ X.Pellet) (i) : (F (L.walk F i)).val = (F i).val.map L.atoms.toEmbedding := by |
| 143 | unfold walk; rw [Equiv.trans_apply,Equiv.trans_apply, Equiv.apply_symm_apply]; rfl |
| 144 | |
| 145 | /-- For each payable Layout the *same* walk works for any d with that |
| 146 | layout. Strengthens the "some permutation" in use at startup. -/ |
| 147 | def motion (F : ℕ≃ X.Pellet) (P : BudgetPoint) {d : Tap G n} (h : L.Follows d) : |
| 148 | (fused F P d).Moves s b := by |
| 149 | have hs i : (addr F P (L.walk F i)).support = (addr F P i).support.image (affine s b) := by |
| 150 | dsimp only [addr,skin]; rw [L.ready] |
| 151 | exact biImage _ _ (destination s b) L.footprint _ |
| 152 | have hi i : (addr F P (L.walk F i)).inventory = (addr F P i).inventory.image (affine s b) := by |
| 153 | dsimp only [addr,plot]; rw [L.ready,L.located] |
| 154 | exact biImage _ _ (destination s b) L.old_inv _ |
| 155 | have hT i U : (addr F P (L.walk F i)).extraTest U ↔ (addr F P i).extraTest (pull s b U) := by |
| 156 | simp only [addr,condition,L.ready,L.located,Finset.forall_mem_map, Equiv.coe_toEmbedding] |
| 157 | exact forall₂_congr fun j _ => Work.H03.eligible_send s b P.threshold U _ _ (L.old_hard j) (L.old_inv j) (L.extra j U) |
| 158 | have hv i U : reach d (L.atoms i) U = reach d i (pull s b U) := by |
| 159 | cases i |
| 160 | · exact h.K .. |
| 161 | · simp only [reach,atoms,Equiv.sumCongr_apply, Sum.map_inr,Sum.elim_inr,h.logs] |
| 162 | refine ⟨L.reg,L.walk F,fun i => (congr_arg RegularAddress.site (L.aligns i)).symm, |
| 163 | fun i => (congr_arg RegularAddress.support (L.aligns i)).symm,hs,hi,hT,h.E,?_⟩ |
| 164 | intro i U |
| 165 | have he := Work.H03.eligible_send s b P.threshold U _ _ (hs i) (hi i) (hT i U) |
| 166 | simp only [fused,solid,he,L.ready,Finset.prod_map, Equiv.coe_toEmbedding, hv] |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | end Layout |
| 172 | |
| 173 | |
| 174 | end YM.Progress.DirectedRecipe |