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.Branch.Transport |
| 2 | import YM.RG.History |
| 3 | |
| 4 | /-! |
| 5 | # Predictor transport |
| 6 | |
| 7 | Under symmetry transform positive bond may invert. Preserve frame tags at |
| 8 | shared sites (coarse-labelled), and transform bond point once for the WHOLE |
| 9 | bond. Gauge transforms do not change ranges. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.RG |
| 14 | |
| 15 | open Function Lattice Wilson |
| 16 | open scoped Matrix.Norms.Frobenius BigOperators |
| 17 | |
| 18 | variable {G : Gauge} |
| 19 | |
| 20 | namespace Patch |
| 21 | variable (P : Patch) {C : KernelChoices} |
| 22 | |
| 23 | lemma predicts {h : P.Branches C G} {T X : P.Connector G} (f : Equiv.Perm P.Points) (j : Equiv.Perm G.El) |
| 24 | (hf : ∀ x, P.weight (f x)=P.weight x) (he : ∀ x, T x=j (X (f x))) |
| 25 | (hs : ∀ u, P.bondCost T (j u)=P.bondCost X u) (x : P.Points) : |
| 26 | P.predictorMass C T x=P.predictorMass C X (f x) ∧ P.predict C T x=j (P.predict C X (f x)) := by |
| 27 | have eq (Y : P.Connector G) : P.usesBest C Y ↔ ∃ u, P.bondCost Y u < C.predictor_cut := |
| 28 | ⟨fun hx ↦ ⟨_,hx⟩, fun ⟨t,hx⟩ ↦ ((P.bond_min Y).choose_spec t).trans_lt hx⟩ |
| 29 | have hh : P.usesBest C T ↔ P.usesBest C X := by |
| 30 | rw [eq,eq,j.surjective.exists]; simp only [hs] |
| 31 | by_cases ha : P.usesBest C X |
| 32 | · simp only [predictorMass, predict, if_pos ha,if_pos (hh.mpr ha),true_and] |
| 33 | refine (h.predictor_unique T (hh.mpr ha)).unique (P.bond_min T).choose_spec fun i => ?_ |
| 34 | obtain ⟨b,rfl⟩ := j.surjective i; rw [hs,hs]; exact (P.bond_min X).choose_spec b |
| 35 | simp only [predictorMass, predict, if_neg ha,if_neg (mt hh.mp ha),he,hf,and_self] |
| 36 | |
| 37 | lemma bond_pull {h : P.Branches C G} (s : Signed) (X : P.Connector G) (x : P.Points) : |
| 38 | P.predictorMass C (X ∘ P.offset s) x=P.predictorMass C X (P.offset s x) ∧ |
| 39 | P.predict C (X ∘ P.offset s) x=P.predict C X (P.offset s x) := by |
| 40 | refine P.predicts (T:=X ∘ P.offset s) (h:=h) (P.offset s) (Equiv.refl _) (P.weight_invariant s) (fun _ => rfl) (fun u => ?_) x |
| 41 | unfold bondCost; conv_rhs => rw [← Equiv.sum_comp (P.offset s)] |
| 42 | simp_rw [weight_invariant]; rfl |
| 43 | |
| 44 | lemma bond_inv {h : P.Branches C G} (s : Signed) (X : P.Connector G) (x : P.Points) : |
| 45 | P.predictorMass C (X⁻¹ ∘ P.offset s) x=P.predictorMass C X (P.offset s x) ∧ |
| 46 | P.predict C (X⁻¹ ∘ P.offset s) x=(P.predict C X (P.offset s x))⁻¹ := by |
| 47 | refine P.predicts (T:=X⁻¹ ∘ P.offset s) (h:=h) (P.offset s) (Equiv.inv _) (P.weight_invariant s) (fun _ => rfl) (fun u => ?_) x |
| 48 | unfold bondCost; conv_rhs => rw [← Equiv.sum_comp (P.offset s)] |
| 49 | have ht (k : G.El) : G.price (k⁻¹ * u) = G.price (k * u⁻¹) := by |
| 50 | rw [← G.price_inv (k*u⁻¹), show (k*u⁻¹)⁻¹=k*(k⁻¹*u)*k⁻¹ by -- actually k*(k⁻¹*u)*k⁻¹=u*k⁻¹ |
| 51 | group,G.price_conj] |
| 52 | simp only [weight_invariant, Function.comp_apply,Pi.inv_apply, Equiv.inv_apply, inv_inv, ht] |
| 53 | |
| 54 | lemma bond_gauge {h : P.Branches C G} (u v : G.El) (X : P.Connector G) (x : P.Points) : |
| 55 | P.predictorMass C (fun i => u * X i * v) x=P.predictorMass C X x ∧ |
| 56 | P.predict C (fun i => u * X i * v) x=u*P.predict C X x*v := by |
| 57 | refine P.predicts (T:=(fun i => u * X i * v)) (h:=h) (Equiv.refl _) ((Equiv.mulLeft u).trans (Equiv.mulRight v)) |
| 58 | (fun _ => rfl) (fun _ => rfl) (fun j => ?_) x |
| 59 | unfold bondCost |
| 60 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 61 | change _ * G.price (u * X i * v * (u*j*v)⁻¹) = _ |
| 62 | rw [show u * X i * v * (u*j*v)⁻¹=u*(X i*j⁻¹)*u⁻¹ by group,G.price_conj] |
| 63 | end Patch |
| 64 | |
| 65 | namespace StepData |
| 66 | variable {c f : Side} (S : StepData c f) |
| 67 | |
| 68 | private lemma add (y x : Site c) : S.ratio.embed (x+y)=S.ratio.embed x + S.ratio.embed y := S.ratio.root.map_add x y |
| 69 | lemma port (s : Signed) (y x : Site c) : affine s (S.ratio.embed y) (S.ratio.embed x)=S.ratio.embed (affine s y x) := by |
| 70 | rw [affine,affine,add, Ratio.signed] |
| 71 | |
| 72 | lemma leap (x : Site c) (i : Axis) : S.ratio.embed (x+step i)=S.ratio.embed x+S.patch.L.val • step i := by |
| 73 | have he : S.ratio.embed (step i)=_ := calc |
| 74 | S.ratio.embed (step i)=S.ratio.embed (wrap _ (step i)) := by rw [wrap_step] |
| 75 | _ = _ := S.ratio.embed_wrap (step i) |
| 76 | rw [S.add,he,map_nsmul,wrap_step]; rfl |
| 77 | |
| 78 | abbrev sendSites (s : Signed) (b : Site c) : Equiv.Perm (Site c) := s.actEquiv.toEquiv.trans (Equiv.addRight b) |
| 79 | abbrev sendBonds (s : Signed) (b : Site c) : Equiv.Perm (Edge (Site c)) := Equiv.ofBijective _ ⟨sendEdge_injective s b, |
| 80 | Finite.injective_iff_surjective.mp (sendEdge_injective s b)⟩ |
| 81 | |
| 82 | def withinSites (s : Signed) (b : Site c) : Equiv.Perm S.SitesChoice := |
| 83 | Equiv.arrowCongr (sendSites s b) (S.patch.orient s) |
| 84 | |
| 85 | def withinBond (s : Signed) (b : Site c) : Equiv.Perm S.BondChoice := |
| 86 | Equiv.arrowCongr (sendBonds s b) (S.patch.offset s) |
| 87 | |
| 88 | def withinChoice (s : Signed) (b : Site c) : Equiv.Perm S.Choices := Equiv.prodCongr (S.withinSites s b) (S.withinBond s b) |
| 89 | |
| 90 | lemma port_site (s : Signed) (b : Site c) (t : S.SitesChoice) (x : Site c) : |
| 91 | S.withinSites s b t (affine s b x)=S.patch.orient s (t x) := by |
| 92 | change S.withinSites s b t (((sendSites s b) x)) = _ |
| 93 | simp only [withinSites,Function.comp_apply,Equiv.arrowCongr_apply, Equiv.symm_apply_apply] |
| 94 | |
| 95 | lemma port_bond (s : Signed) (b : Site c) (t : S.BondChoice) (x : Edge (Site c)) : |
| 96 | S.withinBond s b t (sendEdge s b x)=S.patch.offset s (t x) := by |
| 97 | change S.withinBond s b t (((sendBonds s b) x)) = _ |
| 98 | simp only [withinBond,Function.comp_apply,Equiv.arrowCongr_apply,Equiv.symm_apply_apply] |
| 99 | |
| 100 | def repath (i : Axis) := List.replicate S.patch.L.val (posDir i) |
| 101 | |
| 102 | lemma stop_repath (i : Axis) {A : Type*} [AddCommGroup A] [One A] (x : Four A) : |
| 103 | stop x (S.repath i) = x + S.patch.L.val • step i := by |
| 104 | unfold repath |
| 105 | generalize S.patch.L.val = M; induction M generalizing x with |
| 106 | | zero => simp [stop] |
| 107 | | succ m ih => rw [List.replicate_succ, stop, ih,succ_nsmul,Step.vec_pos]; abel |
| 108 | |
| 109 | lemma frames_match (h : S.patch.Branches S.kernel G) (s : Signed) (b : Site c) (U : Config G f) (t : S.SitesChoice) (x : Site c) : |
| 110 | S.frames (pull s (S.ratio.embed b) U) t x=S.frames U (S.withinSites s b t) (affine s b x) ∘ S.patch.offset s := by |
| 111 | unfold frames; rw [expandAt_pull,S.port,S.port_site]; exact (S.patch.frames_channel h s _ _).2 |
| 112 | |
| 113 | lemma negsite (s : Signed) (b : Site c) (x : Site c) (i : Axis) (he : s.flip i=true) : |
| 114 | affine s b (x+step i) = affine s b x-step (s.perm i) := by |
| 115 | have hh : s.act (step i : Site c) = -step (s.perm i) := by |
| 116 | have ht := (Step.vec_rotate (R:=Per c) (posDir i) s).symm |
| 117 | rw [Step.vec_pos] at ht |
| 118 | exact ht.trans (by simp [Step.rotate,posDir,he,Step.vec]) |
| 119 | unfold affine; rw [Signed.act_add,hh]; abel |
| 120 | |
| 121 | lemma possite (s : Signed) (b : Site c) (x : Site c) (i : Axis) (he : s.flip i=false) : |
| 122 | affine s b (x+step i) = affine s b x+step (s.perm i) := by |
| 123 | have ht := (Step.vec_rotate (R:=Per c) (posDir i) s).symm |
| 124 | rw [Step.vec_pos] at ht |
| 125 | unfold affine; rw [Signed.act_add,ht]; simp [Step.rotate,Step.vec,posDir,he,add_right_comm] |
| 126 | |
| 127 | lemma positive (h : S.patch.Branches S.kernel G) (s : Signed) (b : Site c) (U : Config G f) (t : S.SitesChoice) |
| 128 | (x : Site c) (i : Axis) (hs : s.flip i=false) : S.connector (pull s (S.ratio.embed b) U) t (x,i)= |
| 129 | (S.connector U (S.withinSites s b t) (sendEdge s b (x,i))) ∘ S.patch.offset s := by |
| 130 | funext y; unfold connector; simp only [Function.comp_apply] |
| 131 | rw [S.frames_match h,S.frames_match h, expandAt_pull,S.port, travel_pull] |
| 132 | have hh : sendEdge s b (x,i)=(affine s b x,s.perm i) := by simp [sendEdge,Step.rotate,posDir,Step.used,hs] |
| 133 | simp only [hh,Function.comp_apply, possite s b x i hs,Patch.coord] |
| 134 | simp [affine,Step.rotate,posDir,hs] |
| 135 | |
| 136 | lemma negative (h : S.patch.Branches S.kernel G) (s : Signed) (b : Site c) (U : Config G f) (t : S.SitesChoice) |
| 137 | (x : Site c) (i : Axis) (hs : s.flip i=true) : S.connector (pull s (S.ratio.embed b) U) t (x,i)= |
| 138 | (S.connector U (S.withinSites s b t) (sendEdge s b (x,i)))⁻¹ ∘ S.patch.offset s := by |
| 139 | funext y; unfold connector; simp only [Function.comp_apply,Pi.inv_apply] |
| 140 | rw [S.frames_match h,S.frames_match h, expandAt_pull,S.port, travel_pull, travel_at,travel_at] |
| 141 | have hh : sendEdge s b (x,i)=(affine s b x-step (s.perm i),s.perm i) := by simp [sendEdge,Step.rotate,posDir,Step.used,hs] |
| 142 | -- inverse occurs around whole product before inverse-path |
| 143 | rw [hh]; simp only [Function.comp_apply, sub_add_cancel, Patch.coord, negsite s b x i hs, mul_inv_rev, inv_inv] |
| 144 | let X := affine s b x-step (s.perm i) |
| 145 | have he : S.ratio.embed X + S.patch.L.val • step (s.perm i) = S.ratio.embed (affine s b x) := by rw [← S.leap, show X+step (s.perm i)=_ by unfold X; abel] |
| 146 | rw [show List.replicate S.patch.L.val (posDir (s.perm i))=S.repath _ from rfl, ← travel_reverse _ U, S.stop_repath, add_assoc,he] |
| 147 | simp only [affine,add_zero,List.map_replicate,repath,reverse,List.reverse_replicate, Step.rotate,posDir,hs,Bool.false_xor,mul_assoc] |
| 148 | rfl |
| 149 | |
| 150 | lemma updateGauged (h : S.patch.Branches S.kernel G) (t : Site f → G.El) (U : Config G f) (i : S.SitesChoice) (e : Edge (Site c)) : |
| 151 | S.connector (Lattice.gauge t U) i e=fun x => t (S.ratio.embed e.1)*S.connector U i e x*(t (S.ratio.embed (e.1+step e.2)))⁻¹ := by |
| 152 | have ht (x y) : S.frames (Lattice.gauge t U) i x y = t (S.ratio.embed x)*S.frames U i x y*(t (wrap f y.val +S.ratio.embed x))⁻¹ := by |
| 153 | rw [frames,expandAt_gauge,(S.patch.frame_gauged h ..).2, Patch.changed, show S.patch.center.val=0 from rfl,map_zero,zero_add]; rfl |
| 154 | funext x; unfold connector |
| 155 | rw [ht,ht,travel_at,travel_at,travel_gauge,show List.replicate S.patch.L.val (posDir e.2)=S.repath e.2 from rfl,S.stop_repath] |
| 156 | rw [add_assoc (wrap f x.val) (S.ratio.embed e.1),← S.leap] |
| 157 | group |
| 158 | end StepData |
| 159 | end YM.RG |