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.Further.THRESHOLD_SOURCE_RESTART.Baked |
| 2 | /-! |
| 3 | # Every history in the restarted K moves |
| 4 | |
| 5 | Target `Rep.Lawful`. Even though the ultimate marker answer doesn't |
| 6 | require one common Moves for its own lamps here, P must be a complete |
| 7 | unmarked Rep. On *all* permutations of the given form; no assumption of |
| 8 | a coherent underlying group action on old labels. No new winding identifications. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Further.ThresholdSourceRestart.Sluice.Menu |
| 13 | open Function Set Filter MeasureTheory Wilson RG Lattice Marker Overlay |
| 14 | open Push.Corrected Work.H03 WilsonStartup Finset Relation |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 16 | variable {G : Gauge} {α : Type} {n : Side} {H : Rep G n} {q : BudgetPoint} (L : Menu H q α) |
| 17 | variable {s : Signed} {x : Site n} (m : H.activities.Moves s x) |
| 18 | private abbrev spin (p : Support n) (s : Signed) (x : Site n) := p.image (affine s x) |
| 19 | lemma looks (p : Support n) : inspected (p.image (affine s x))=(inspected p).image (affine s x) := by |
| 20 | change inspected (spin p s x)=spin (inspected p) s x |
| 21 | have he : ∀ j : WilsonStartup.Cell n, Disjoint (spin p s x) (touched (Face.send s x j)) ↔ Disjoint p (touched j) := by |
| 22 | intro j; rw [Work.H03.touched_send,spin,Finset.disjoint_image (aff_inj s x)] |
| 23 | unfold spin inspected; rw [Finset.image_union,Finset.biUnion_image]; congr 1 |
| 24 | ext i; rw [Finset.mem_biUnion,Finset.mem_biUnion]; constructor |
| 25 | · rintro ⟨r,hr,hx⟩ |
| 26 | obtain ⟨j,rfl⟩ := (Finite.injective_iff_surjective.mp (Face.injective_send (R:=Per n) s x)) r |
| 27 | split at hx; simp at hx |
| 28 | next h => exact ⟨j,Finset.mem_univ _,by rw [if_neg (mt (he _).2 h)]; rwa [touched_send] at hx⟩ |
| 29 | rintro ⟨r,hr,hx⟩; split at hx; simp at hx |
| 30 | next h => exact ⟨Face.send s x r, Finset.mem_univ _,by rw [if_neg (mt (he _).1 h), touched_send]; exact hx⟩ |
| 31 | |
| 32 | def wheel : Equiv.Perm (Codes n α) := Equiv.sumCongr m.kp (Equiv.sumCongr (Key.perm s x) (L.more.move s x)) |
| 33 | private lemma mem_image_of_injective {β γ : Type*} [DecidableEq γ] {f : β → γ} {i} {s : Finset β} (h : Injective f) : |
| 34 | f i ∈ s.image f ↔ i∈s := by simp [h.eq_iff] |
| 35 | private lemma resale {β : Type*} (f : Equiv.Perm β) {s i} : f i ∈ f.finsetCongr s ↔ i∈s := by simp |
| 36 | private lemma spun_walls (i) : walls q (Key.perm s x i)=spin (walls q i) s x := by |
| 37 | ext j; obtain ⟨j,hj⟩ := (frameSites s x).surjective j |
| 38 | subst hj |
| 39 | have he : Injective (affine s x) := aff_inj s x |
| 40 | change affine s x j∈ _ ↔ affine s x j∈_ |
| 41 | rw [spin, mem_image_of_injective he]; unfold walls |
| 42 | simp only [Lattice.halo_spec, Finset.mem_singleton,exists_eq_left] |
| 43 | change separation (affine s x i.native) _ ≤ _ ↔ _ |
| 44 | rw [affine,affine,separation_translate,separation_signed] |
| 45 | private lemma wheels (i : Codes n α) : L.zone (L.wheel m i)=spin (L.zone i) s x := by |
| 46 | rcases i with i|i|i |
| 47 | · change inspected (H.activities.forced (m.kp i)).support=_; rw [m.forced_support]; exact looks _ |
| 48 | · exact spun_walls _ |
| 49 | exact L.more.carries .. |
| 50 | private lemma wheels_set (z : Finset (Codes n α)) : ((L.wheel m).finsetCongr z).toLeft=z.toLeft.image m.kp := by |
| 51 | ext j; obtain ⟨i,rfl⟩ := m.kp.surjective j |
| 52 | rw [mem_image_of_injective m.kp.injective, mem_toLeft,mem_toLeft]; exact resale (L.wheel m) (i:=Sum.inl i) |
| 53 | private lemma wheels_paint (z : Finset (Codes n α)) : L.paint ((L.wheel m).finsetCongr z)=(L.paint z).image (Key.perm s x) := by |
| 54 | ext j; obtain ⟨i,rfl⟩ := (Key.perm s x).surjective j |
| 55 | unfold paint; rw [mem_image_of_injective (Key.perm s x).injective,mem_toLeft,mem_toLeft,mem_toRight,mem_toRight] |
| 56 | exact resale (L.wheel m) (i:=Sum.inr (Sum.inl i)) |
| 57 | |
| 58 | private lemma capstan {β η φ : Type*} (e : Equiv.Perm β) (v : η → φ) [DecidableEq η] [DecidableEq φ] |
| 59 | (f : β → Finset η) (g : β → Finset φ) (h : ∀ i, g (e i)=(f i).image v) (t : Finset β) : |
| 60 | (e.finsetCongr t).biUnion g=(t.biUnion f).image v := by |
| 61 | ext x; constructor |
| 62 | · intro hi; obtain ⟨b,hb,he⟩ := Finset.mem_biUnion.mp hi |
| 63 | obtain ⟨i,rfl⟩ := e.surjective b; rw [h] at he; obtain ⟨b,hb',rfl⟩ := mem_image.mp he |
| 64 | exact mem_image_of_mem _ (mem_biUnion.mpr ⟨i,(resale _).mp hb,hb'⟩) |
| 65 | intro hi; obtain ⟨b,hb,rfl⟩ := mem_image.mp hi; obtain ⟨i,hi,hb⟩ := mem_biUnion.mp hb |
| 66 | exact mem_biUnion.mpr ⟨e i,(resale _).mpr hi,by rw [h]; exact mem_image_of_mem _ hb⟩ |
| 67 | private lemma pins (z) : L.limit ((L.wheel m).finsetCongr z)=spin (L.limit z) s x := |
| 68 | capstan _ _ _ _ (L.wheels m) z |
| 69 | private lemma paint_coil (z) : L.inv ((L.wheel m).finsetCongr z)=spin (L.inv z) s x := by |
| 70 | rw [inv,L.wheels_paint]; simpa only [Equiv.finsetCongr_apply,Finset.map_eq_image] using! capstan (Key.perm s x) _ Key.skin _ (fun i=> Key.spun ..) (L.paint z) |
| 71 | |
| 72 | private lemma ignition {β : Type*} (X : β → Support n) (e : Equiv.Perm β) (z : Finset β) |
| 73 | (h : ∀ i,X (e i)=spin (X i) s x) : Ac.Spark X z ↔ Ac.Spark X (e.finsetCongr z) := by |
| 74 | let f := e.finsetCongr |
| 75 | have he (i) : e i ∈ f z ↔ i∈z := resale _ |
| 76 | have hs (i j) : Ac.bonds X (f z) (e i) (e j) ↔ Ac.bonds X z i j := by |
| 77 | simp only [Ac.bonds,Ac.meets,he,h] |
| 78 | have hh : ¬Disjoint (spin (X i) s x) (spin (X j) s x) ↔ ¬ Disjoint (X i) (X j) := not_congr (disjoint_image (aff_inj ..)) |
| 79 | exact and_congr_right fun _ => and_congr_right fun _ => by simpa only [Finset.not_disjoint_iff] using hh |
| 80 | constructor |
| 81 | · intro h; obtain ⟨a,ha⟩ := h.1 |
| 82 | refine ⟨⟨e a,(he a).mpr ha⟩,fun i hi j hj => ?_⟩ |
| 83 | obtain ⟨p,rfl⟩ := e.surjective i; obtain ⟨q,rfl⟩ := e.surjective j |
| 84 | exact (h.2 p ((he _).mp hi) _ ((he _).mp hj)).lift e fun i j h => (hs i j).mpr h |
| 85 | intro h; obtain ⟨a,ha⟩ := h.1; obtain ⟨b,rfl⟩ := e.surjective a |
| 86 | refine ⟨⟨b,(he _).mp ha⟩,fun i hi j hj => ?_⟩ |
| 87 | have he' := (h.2 (e i) ((he _).mpr hi) (e j) ((he _).mpr hj)).lift e.symm (p:=Ac.bonds X z) (fun i j h => ?_) |
| 88 | · unfold onFun at he'; rw [e.symm_apply_apply,e.symm_apply_apply] at he'; exact he' |
| 89 | obtain ⟨k,rfl⟩ := e.surjective i; obtain ⟨l,rfl⟩ := e.surjective j; unfold onFun; rw [e.symm_apply_apply,e.symm_apply_apply]; exact (hs _ _).mp h |
| 90 | |
| 91 | private lemma grips (z : Finset (Codes n α)) : L.Fuel z ↔ L.Fuel ((L.wheel m).finsetCongr z) := by |
| 92 | unfold Fuel; rw [ignition L.zone (L.wheel m) z (L.wheels m),L.wheels_paint, Finset.image_nonempty,L.wheels_set] |
| 93 | refine and_congr_right fun _ => and_congr_right fun _ => ?_ |
| 94 | have hv (j k : ℕ) : Disjoint (oldSites H (m.kp j)) (oldSites H (m.kp k)) ↔ Disjoint (oldSites H j) (oldSites H k) := by |
| 95 | unfold oldSites; rw [m.forced_support,m.forced_support,disjoint_image (aff_inj ..)] |
| 96 | constructor |
| 97 | · intro h i hi j hj e |
| 98 | obtain ⟨b,hb,rfl⟩ := mem_image.mp hi; obtain ⟨l,hl,rfl⟩ := mem_image.mp hj |
| 99 | exact (hv _ _).2 (h hb hl fun H => e (congr_arg _ H)) |
| 100 | intro h i hi j hj e; exact (hv _ _).mp (h (mem_image_of_mem m.kp hi) (mem_image_of_mem m.kp hj) (m.kp.injective.ne e)) |
| 101 | |
| 102 | def turning : Equiv.Perm L.Record := Equiv.subtypeEquiv (L.wheel m).finsetCongr (L.grips m) |
| 103 | private lemma shifts (i : L.Record) (U : Config G n) : L.Ready (L.turning m i) U ↔ L.Ready i (pull s x U) := by |
| 104 | unfold Ready; simp only [turning,Equiv.subtypeEquiv_apply]; rw [L.wheels_paint m,L.wheels_set m,L.paint_coil m] |
| 105 | have he : Injective (affine s x) := aff_inj .. |
| 106 | let f := pull s x U |
| 107 | have hE j := list_transfer q j U s x |
| 108 | have ht j : ¬ Disjoint (Key.skin (Key.perm s x j)) (spin (L.inv i.val) s x) ↔ ¬Disjoint j.skin (L.inv i.val) := by |
| 109 | rw [Key.spun,spin, Finset.disjoint_image he] |
| 110 | have hi j : permits H (m.kp j) U ↔ permits H j f := eligible_send s x H.p.threshold _ _ _ |
| 111 | (m.forced_support _) (m.forced_inventory _) (m.forced_tests _ _) |
| 112 | have hx : ((i.val.toLeft.image m.kp).biUnion (claims H)) = spin (i.val.toLeft.biUnion (claims H)) s x := by |
| 113 | simpa only [Equiv.finsetCongr_apply,Finset.map_eq_image] using! capstan m.kp _ (claims H) _ m.forced_inventory i.val.toLeft |
| 114 | rw [hx,spin,← flags_send s x H.p.threshold U, ← Finset.image_inter _ _ he,spin,Finset.image_subset_image_iff he] |
| 115 | constructor <;> rintro ⟨h,p,t,hu⟩ |
| 116 | · refine ⟨fun j hj => (hE _).mp (h (mem_image_of_mem _ hj)), fun j hj hh => ?_, fun j hj => |
| 117 | (hi j).mp (t _ (mem_image_of_mem _ hj)),hu⟩ |
| 118 | exact (mem_image_of_injective (Key.perm s x).injective).mp (p _ ((hE _).mpr hj) ((ht _).mpr hh)) |
| 119 | refine ⟨fun j hj => ?_,fun j hj hh => ?_,fun j hj => ?_,hu⟩ |
| 120 | · obtain ⟨k,hk,rfl⟩ := mem_image.mp hj; exact (hE _).mpr (h hk) |
| 121 | · obtain ⟨b,rfl⟩ := (Key.perm s x).surjective j; exact mem_image_of_mem _ (p _ ((hE _).mp hj) ((ht _).mp hh)) |
| 122 | obtain ⟨p,hp,rfl⟩ := mem_image.mp hj; exact (hi _).2 (t p hp) |
| 123 | private lemma stays (U : Config G n) (p : L.Record) : L.solid (L.turning m p) U=L.solid p (pull s x U) := by |
| 124 | have hi : _ ↔ _ := eligible_send s x q.threshold U (L.sole p) (L.sole (L.turning m p)) (L.pins m _) (L.paint_coil m _) (L.shifts m _ _) |
| 125 | unfold solid; rw [hi]; split |
| 126 | · change (∏ j ∈ p.val.map (L.wheel m).toEmbedding, L.glow j U)=_ |
| 127 | rw [Finset.prod_map]; apply Finset.prod_congr rfl |
| 128 | intro j _; rcases j with j|j|j |
| 129 | · rfl |
| 130 | · exact congr_arg Real.exp (L.flare.shifts s x j U) |
| 131 | exact congr_arg (fun v=> Real.exp v - 1) (L.more.shifts s x j U) |
| 132 | rfl |
| 133 | |
| 134 | private def lamps : Equiv.Perm L.Book := Equiv.sumCongr (L.turning m) (Equiv.prodCongr (Equiv.refl ℕ) (frameSites s x)) |
| 135 | private lemma transmits (i : L.Book) : (L.stamp (L.lamps m i)).support=spin (L.stamp i).support s x ∧ |
| 136 | (L.stamp (L.lamps m i)).inventory=spin (L.stamp i).inventory s x ∧ |
| 137 | (∀ U,(L.stamp (L.lamps m i)).extraTest U ↔ (L.stamp i).extraTest (pull s x U)) ∧ |
| 138 | ∀ U,L.tailK (L.lamps m i) U=L.tailK i (pull s x U) := by |
| 139 | rcases i with i|i |
| 140 | · refine ⟨L.pins m _,L.paint_coil m _, L.shifts m i,fun U => ?_⟩ |
| 141 | change L.solid (L.turning m i) U * (∏ j ∈ ((L.wheel m).finsetCongr i.val).toLeft, _)=_ |
| 142 | rw [L.stays m,L.wheels_set,Finset.prod_image m.kp.injective.injOn]; exact congr_arg _ (Finset.prod_congr rfl fun i _ => m.valuesK i U) |
| 143 | have h : ({affine s x i.2} : Finset _) = spin {i.2} s x := Finset.image_singleton .. |>.symm |
| 144 | exact ⟨h,h,fun _ => Iff.rfl,fun U => by change 0*_=(0:ℝ)*_; simp⟩ |
| 145 | |
| 146 | def mobilized [Countable α] : L.printer.activities.Moves s x where |
| 147 | ep := m.ep |
| 148 | kp := L.label.trans ((L.lamps m).trans L.label.symm) |
| 149 | reg_site := m.reg_site |
| 150 | reg_support := m.reg_support |
| 151 | forced_support i := by |
| 152 | change (L.stamp (L.label (L.label.symm _))).support=_; rw [L.label.apply_symm_apply]; exact (L.transmits m _).1 |
| 153 | forced_inventory i := by |
| 154 | change (L.stamp (L.label (L.label.symm _))).inventory=_; rw [L.label.apply_symm_apply]; exact (L.transmits m _).2.1 |
| 155 | forced_tests i U := by |
| 156 | change (L.stamp (L.label (L.label.symm _))).extraTest _ ↔ _; rw [L.label.apply_symm_apply]; exact (L.transmits m _).2.2.1 U |
| 157 | valuesE := m.valuesE |
| 158 | valuesK i U := by change L.tailK (L.label (L.label.symm _)) U= _; rw [L.label.apply_symm_apply]; exact (L.transmits m _).2.2.2 U |
| 159 | end YM.Further.ThresholdSourceRestart.Sluice.Menu |