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.AnalyticNext.QUARTIC_MATCH.Joint |
| 2 | import YM.Bid.Drops |
| 3 | import YM.Work.B06 |
| 4 | import YM.Work.E04 |
| 5 | |
| 6 | /-! |
| 7 | # Testing on period multiples |
| 8 | |
| 9 | No divisibility hypotheses on `Schedule.period`. This is a device for proving |
| 10 | periodization; COMPARE via enlargements, not selecting special physical periods. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.AnalyticNext.QuarticMatch.Sheets |
| 15 | open Matrix Lattice RG Wilson Tree Precision Exterior Bid Filter Function Topology Joint |
| 16 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 17 | |
| 18 | variable {G : Gauge} |
| 19 | |
| 20 | section fibers |
| 21 | variable {c d : Side} (h : c.val ∣ d.val) |
| 22 | |
| 23 | /-- Projection from the covering torus onto the given one. -/ |
| 24 | def project : Site d →+ Site c where |
| 25 | toFun x i := ZMod.castHom h (Per c) (x i) |
| 26 | map_zero' := by ext; simp |
| 27 | map_add' x y := funext fun i => map_add _ _ _ |
| 28 | |
| 29 | lemma project_wrap (x : Cover) : project h (wrap d x) = wrap c x := |
| 30 | funext fun i => map_intCast (ZMod.castHom h (Per c)) (x i) |
| 31 | lemma project_on : Surjective (project h) := fun i => ⟨wrap d (lift i),(project_wrap h _).trans (wrap_lift i)⟩ |
| 32 | lemma project_signed (s : Signed) (x : Site d) : project h (s.act x)=s.act (project h x) := by |
| 33 | rw [← wrap_lift x,wrap_signed,project_wrap,project_wrap,wrap_signed] |
| 34 | lemma project_vec (x : Step) : project h (x.vec : Site d) = x.vec := by rw [← wrap_vec, project_wrap,wrap_vec] |
| 35 | lemma project_step (x : Axis) : project h (step x) = step x := project_vec h (posDir x) |
| 36 | |
| 37 | abbrev Deck := (project h).ker |
| 38 | |
| 39 | -- pin one section |
| 40 | |
| 41 | def pin (x : Site c) := (project_on h x).choose |
| 42 | @[simp] lemma pin_site (x : Site c) : project h (pin h x) = x := (project_on h x).choose_spec |
| 43 | |
| 44 | def split : Site c × ↥(Deck h) ≃ Site d where |
| 45 | toFun p := pin h p.1 + p.2.val |
| 46 | invFun i := (project h i,⟨i-pin h (project h i),by simp⟩) |
| 47 | left_inv := by |
| 48 | rintro ⟨i,j⟩; have hx : project h j.val=0 := j.property |
| 49 | apply Prod.ext <;> simp [hx] |
| 50 | right_inv := by intro i; dsimp; abel |
| 51 | |
| 52 | -- make canonical decidable instance to avoid nondefeq issues |
| 53 | -- (overlap existing AddSubgroup instances; use natCard for factor) |
| 54 | def mult : ℕ := Nat.card (Deck h) |
| 55 | lemma mult_pos : 0 < mult h := Nat.card_pos |
| 56 | lemma cards : Fintype.card (Site c) * mult h = Fintype.card (Site d) := by |
| 57 | classical |
| 58 | cases nonempty_fintype (Deck h) |
| 59 | rw [← Fintype.card_congr (split h), Fintype.card_prod,mult,Nat.card_eq_fintype_card] |
| 60 | |
| 61 | @[simp] lemma split_base (x : Site c) (i : Deck h) : project h (split h (x,i))=x := by |
| 62 | change project h (pin h _ + i.val)=_; rw [map_add,pin_site,show project h i.val=0 from i.property,add_zero] |
| 63 | |
| 64 | lemma count_sum {E : Type*} [AddCommMonoid E] (F : Site c → E) : ∑ i : Site d, F (project h i) = mult h • ∑ i,F i := by |
| 65 | classical |
| 66 | cases nonempty_fintype (Deck h) |
| 67 | rw [← Equiv.sum_comp (split h) (fun i => F (project h i)), Fintype.sum_prod_type] |
| 68 | simp_rw [split_base h,Finset.sum_const,Finset.card_univ,← Finset.smul_sum]; rw [mult,Nat.card_eq_fintype_card] |
| 69 | lemma count_extra {E ι : Type*} [AddCommMonoid E] [Fintype ι] (F : Site c × ι → E) : |
| 70 | ∑ i : Site d × ι, F (project h i.1,i.2)=mult h • ∑ i : Site c × ι,F i := by |
| 71 | rw [Fintype.sum_prod_type,Fintype.sum_prod_type]; exact count_sum h (fun i => ∑ j,F (i,j)) |
| 72 | |
| 73 | /-- A deck-translation invariant function is periodic of the smaller size. -/ |
| 74 | lemma periodic {E : Type*} (F : Site d → E) (hf : ∀ (u : Site d), project h u=0 → ∀ x, F (x+u)=F x) : |
| 75 | (F ∘ pin h) ∘ project h = F := by |
| 76 | funext i |
| 77 | obtain ⟨⟨x,u⟩,rfl⟩ := (split h).surjective i |
| 78 | simp only [Function.comp_apply,split_base] |
| 79 | exact (hf u u.property _).symm |
| 80 | |
| 81 | /-- Pull up positive orientations. -/ |
| 82 | def copies (U : Config G c) : Config G d := fun e => U (project h e.1,e.2) |
| 83 | def reuses {k : ℕ} : fieldDir G c k →L[ℝ] fieldDir G d k := |
| 84 | ContinuousLinearMap.pi fun i => ContinuousLinearMap.proj (project h i.1,i.2) |
| 85 | def spine : LieSpin G c →L[ℝ] LieSpin G d := |
| 86 | ContinuousLinearMap.pi fun i => ContinuousLinearMap.proj (project h i) |
| 87 | lemma represented (u : Dir G c) : copies h (represent u)=represent (reuses h u) := rfl |
| 88 | |
| 89 | lemma pull_copies (s : Signed) (b : Site d) (U : Config G c) : |
| 90 | pull s b (copies h U) = copies h (pull s (project h b) U) := by |
| 91 | funext i; unfold copies pull Step.read Step.used; simp only [affine] |
| 92 | split <;> simp [*,map_add,project_signed h, project_step] |
| 93 | lemma expand_copies (b : Site d) (U : Config G c) : expandAt b (copies h U)=expandAt (project h b) U := by |
| 94 | funext e; unfold copies expandAt; simp [map_add,project_wrap] |
| 95 | lemma gauge_copies (U : Config G c) (t : Spin G c) : |
| 96 | Lattice.gauge (t ∘ project h) (copies h U) = copies h (Lattice.gauge t U) := by |
| 97 | funext i; simp only [Lattice.gauge,copies,Function.comp_apply,map_add,project_step] |
| 98 | lemma face_copy (U : Config G c) (i : Face (Per d)) : faceValue (copies h U) i=faceValue U (project h i.1,i.2) := by |
| 99 | have he (w : Walk) (b : Site d) : travel (copies h U) b w = travel U (project h b) w := calc |
| 100 | _ = travel (expandAt b (copies h U)) 0 w := by rw [travel_at,map_zero,zero_add] |
| 101 | _ = _ := by rw [expand_copies,travel_at,map_zero,zero_add] |
| 102 | exact he .. |
| 103 | lemma uncut_copy {m : ℕ} (A : ℕ → Atom G m) (U : Config G c) : uncut A (copies h U)=mult h • uncut A U := by |
| 104 | have he x i : (A i).unmasked (copies h U) x=(A i).unmasked U (project h x) := by |
| 105 | simp_rw [Atom.unmasked,RG.Slot.atSite,expand_copies h] |
| 106 | unfold uncut; simp_rw [he]; exact count_sum h fun i => ∑' j,(A j).unmasked U i |
| 107 | lemma quadratic_copy (p : Clip) (W : PathData G) (U : Config G c) : quadratic p W (copies h U)=mult h • quadratic p W U := by |
| 108 | have he i : W.ell (copies h U) i=W.ell U (project h i.1,i.2) := by |
| 109 | simp_rw [PathData.ell,PathData.ellTerms, RG.Slot.atSite, expand_copies h] |
| 110 | unfold quadratic |
| 111 | simp_rw [he,face_copy] |
| 112 | exact count_extra h fun i : Face (Per c) => p.direct * G.price (faceValue U i) + ‖W.ell U i‖^2/2 |
| 113 | lemma main_copy (p : Clip) (W : PathData G) (U : Config G c) : mainTerm p W (copies h U)=mult h • mainTerm p W U := by |
| 114 | simp_rw [mainTerm,Patch.average,pull_copies, map_zero, quadratic_copy, uncut_copy, ← smul_add, ← Finset.smul_sum,nsmul_eq_mul] |
| 115 | ring |
| 116 | lemma wilson_copy (U : Config G c) : energy (copies h U) = mult h • energy U := by |
| 117 | simp_rw [energy,face_copy]; exact count_extra h fun i : Face (Per c) => G.price (faceValue U i) |
| 118 | end fibers |
| 119 | |
| 120 | section lanes |
| 121 | variable (P : Patch) (K : KernelChoices) {c d : Side} (h : c.val∣d.val) |
| 122 | |
| 123 | abbrev stepAt (c : Side) := (⟨P,K,rfl⟩ : StepData c (c*P.L)) |
| 124 | include h |
| 125 | lemma within : (c*P.L).val ∣ (d*P.L).val := mul_dvd_mul_right h _ |
| 126 | |
| 127 | lemma multiplicity_eq : mult (within P h)=mult h := by |
| 128 | have hc := cards (within P h); have ha := cards h |
| 129 | simp_rw [site_card,PNat.mul_coe,mul_pow] at hc ha |
| 130 | apply Nat.eq_of_mul_eq_mul_right (show 0<c.val^4*P.L.val^4 by positivity) |
| 131 | rw [mul_comm,hc]; rw [← ha]; ring |
| 132 | |
| 133 | -- embedding by L maps between deck groups |
| 134 | lemma project_embed (x : Site d) : project (within P h) ((stepAt P K d).ratio.embed x)= |
| 135 | (stepAt P K c).ratio.embed (project h x) := by |
| 136 | rw [← wrap_lift x]; rw [Ratio.embed_wrap, project_wrap,project_wrap,Ratio.embed_wrap] |
| 137 | rfl |
| 138 | |
| 139 | def embedDeck : Deck h → Deck (within P h) := fun x => |
| 140 | ⟨(stepAt P K d).ratio.root x.val,by |
| 141 | have he : project h x.val=0 := x.property |
| 142 | change project (within P h) ((stepAt P K d).ratio.embed _) = _ |
| 143 | rw [project_embed P K h, he]; exact (stepAt P K c).ratio.root.map_zero⟩ |
| 144 | |
| 145 | lemma embedDeck_onto : Surjective (embedDeck P K h) := by |
| 146 | classical |
| 147 | letI := Fintype.ofFinite (Deck h); letI := Fintype.ofFinite (Deck (within P h)) |
| 148 | have hh := multiplicity_eq P h; unfold mult at hh; simp only [Nat.card_eq_fintype_card] at hh |
| 149 | have he : Injective (embedDeck P K h) := fun x y h => Subtype.ext |
| 150 | ((stepAt P K d).ratio.embed_injective (congr_arg Subtype.val h)) |
| 151 | exact ((Fintype.bijective_iff_injective_and_card _).mpr ⟨he,hh.symm⟩).2 |
| 152 | |
| 153 | /-- Same tag assigned on repetitions, only for pointwise step comparisons; NO claim that |
| 154 | this lifting maps the measures on tags or predictors. -/ |
| 155 | def mimic (t : (stepAt P K c).Choices) : (stepAt P K d).Choices := |
| 156 | ⟨t.1 ∘ project h, fun i => t.2 (project h i.1,i.2)⟩ |
| 157 | lemma pred_copies (U : Config G (c*P.L)) (t : (stepAt P K c).Choices) : |
| 158 | (stepAt P K d).prediction (copies (within P h) U) (mimic P K h t) = copies h ((stepAt P K c).prediction U t) := by |
| 159 | let S := stepAt P K c |
| 160 | let T := stepAt P K d |
| 161 | let U' := copies (within P h) U |
| 162 | let s := mimic P K h t |
| 163 | have he x : T.frames U' s.1 x=S.frames U t.1 (project h x) := by |
| 164 | unfold StepData.frames U'; rw [expand_copies,project_embed]; rfl |
| 165 | funext e |
| 166 | have hh : T.connector U' s.1 e=S.connector U t.1 (project h e.1,e.2) := by |
| 167 | funext x |
| 168 | simp only [StepData.connector,he,U',expand_copies, map_add,project_step] |
| 169 | rw [show project (within P h) (T.ratio.embed e.1) = _ from project_embed P K h e.1] |
| 170 | change P.predict K (T.connector _ _ _) _=P.predict K (S.connector _ _ _) _ |
| 171 | rw [hh]; rfl |
| 172 | lemma field_copy (t : (stepAt P K c).Choices) (p : Clip) (W : PathData G) |
| 173 | (V : Config G c) (U : Config G (c*P.L)) (Φ : Spin G c) : |
| 174 | fieldAction _ (mimic P K h t) p W (copies h V) (copies (within P h) U) (Φ ∘ project h) = |
| 175 | mult h • fieldAction (stepAt P K c) t p W V U Φ := by |
| 176 | simp only [fieldAction, main_copy, multiplicity_eq P h, pred_copies, smul_add] |
| 177 | rw [gauge_copies] |
| 178 | have he (Y V : Config G c) : groupEnergy K (copies h Y) (copies h V)=mult h • groupEnergy K Y V := by |
| 179 | unfold groupEnergy |
| 180 | have hh := count_extra h fun i : Edge (Site c) => G.price (V i * (Y i)⁻¹) |
| 181 | rw [show (∑ i, G.price (copies h V i * (copies h Y i)⁻¹)) = _ from hh, nsmul_eq_mul, nsmul_eq_mul]; ring |
| 182 | rw [he] |
| 183 | |
| 184 | |
| 185 | def ride : Vertical G c (c*P.L) →L[ℝ] Vertical G d (d*P.L) := |
| 186 | (reuses (k:=1) (within P h)).prodMap (spine h) |
| 187 | |
| 188 | def rideAlong : Dir G c × Vertical G c (c*P.L) →L[ℝ] Dir G d × Vertical G d (d*P.L) := |
| 189 | (reuses (k:=1) h).prodMap (ride P h) |
| 190 | lemma action_copy (t : (stepAt P K c).Choices) (p : Clip) (W : PathData G) |
| 191 | (z : Dir G c × Vertical G c (c*P.L)) : |
| 192 | Joint.action (stepAt P K d) (mimic P K h t) p W (rideAlong P h z) = |
| 193 | (mult h:ℝ) * Joint.action (stepAt P K c) t p W z := by |
| 194 | rw [← nsmul_eq_mul]; exact field_copy P K h t p W (represent z.1) (represent z.2.1) (power z.2.2) |
| 195 | end lanes |
| 196 | end YM.AnalyticNext.QuarticMatch.Sheets |