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.Cells.Tiling |
| 2 | import YM.Next.UV_STRESS.Bonds |
| 3 | |
| 4 | /-! |
| 5 | # Locality/propagation support of the back kernel |
| 6 | |
| 7 | Loose radii are fine (scheduling mechanism covers this one use). Keep tagged |
| 8 | frame choices, walks, and both endpoints even though not on representatives. |
| 9 | Includes wrap, frame and predictor alternatives. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Next.UVStress |
| 14 | open Set Function Filter MeasureTheory Lattice Wilson RG Cells |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 16 | variable {G : Gauge} |
| 17 | |
| 18 | section Paths |
| 19 | variable (P : Patch) |
| 20 | |
| 21 | private lemma box_larger {i j : ℕ} (h : i≤j) {x : Cover} (he : x ∈ box i) : x∈box j := by |
| 22 | obtain ⟨A,B⟩ := box_test.mp he |
| 23 | exact box_test.mpr ⟨fun i => le_trans (neg_le_neg (Nat.cast_le.mpr h)) (A i),fun i => le_trans (B i) (Nat.cast_le.mpr h)⟩ |
| 24 | |
| 25 | private lemma meter_walk {r : ℕ} {x : Cover} (w : Walk) (hx : x∈box r) : ∀ i ∈ visits x w, i∈box (r+w.length) := by |
| 26 | induction w generalizing x r with |
| 27 | | nil => intro i hi; simp [visits] at hi; subst i; simpa using hx |
| 28 | | cons d l ih => |
| 29 | intro i hi; rcases List.mem_cons.mp hi with h|h |
| 30 | · subst i; exact box_larger (Nat.le_add_right ..) hx |
| 31 | have he : x+d.vec ∈ box (r+1) := by |
| 32 | rw [box_test] at * |
| 33 | have hs k : - (↑(r+1):ℤ) ≤ (x+d.vec : Cover) k ∧ (x+d.vec : Cover) k ≤ ↑(r+1 : ℕ) := by |
| 34 | have hm := hx.1 k; have hn := hx.2 k |
| 35 | rcases d with ⟨j,e|e⟩ <;> by_cases ht : k=j <;> simp [Step.vec,ht] at hm hn ⊢ <;> omega |
| 36 | exact ⟨fun i => (hs i).1, fun i => (hs i).2⟩ |
| 37 | exact (show r+1+l.length=r+(d::l).length by simp; omega) ▸ ih he i h |
| 38 | |
| 39 | private lemma extent (x y : P.Points) (k : Lattice.Order) : (route x.val y.val k).length ≤ 8*P.radius := by |
| 40 | have he (i : Axis) : (straight i (y.val i-x.val i)).length ≤ 2*P.radius := by |
| 41 | have H₁ := (box_test.mp x.property).1 i; have H₂ := (box_test.mp x.property).2 i |
| 42 | have H₃ := (box_test.mp y.property).1 i; have H₄ := (box_test.mp y.property).2 i |
| 43 | rw [straight,List.length_replicate]; omega |
| 44 | have hv (l : List Axis) : (axisRoute x.val y.val l).length ≤ l.length*(2*P.radius) := by |
| 45 | induction l with |
| 46 | | nil => simp [axisRoute] |
| 47 | | cons j l ih => |
| 48 | rw [show axisRoute x.val y.val (j::l)=_ ++ axisRoute x.val y.val l from rfl,List.length_append]; |
| 49 | apply le_trans (Nat.add_le_add (he j) ih) |
| 50 | simp only [List.length_cons]; nlinarith |
| 51 | calc |
| 52 | _ ≤ _ := hv (allAxes k) |
| 53 | _ = _ := by simp [allAxes]; omega |
| 54 | |
| 55 | private lemma escort {U V : CoverConfig G} (h : Agrees (↑(box (9*P.radius))) U V) |
| 56 | (x y : P.Points) (L : Lattice.Order) : travel U x.val (route x.val y.val L) = travel V x.val (route x.val y.val L) := by |
| 57 | apply travel_local _ _ U V |
| 58 | intro e hx he; apply h |
| 59 | exacts [(box_larger (by have := extent P x y L; omega) (meter_walk _ (box_test.mpr (box_test.mp x.property)) _ hx)), |
| 60 | (box_larger (by have := extent P x y L; omega) (meter_walk _ (box_test.mpr (box_test.mp x.property)) _ he))] |
| 61 | |
| 62 | private lemma valid_min {U V : CoverConfig G} {C : KernelChoices} (h : Agrees (↑(box (9*P.radius))) U V) : |
| 63 | P.usesMin C U ↔ P.usesMin C V := by simp only [Patch.usesMin, Patch.via,Patch.axial,escort P h] |
| 64 | |
| 65 | private lemma rate_axial {U V : CoverConfig G} (h : Agrees (↑(box (9*P.radius))) U V) (t : P.FrameTag) : |
| 66 | P.axialCost U t=P.axialCost V t := by |
| 67 | unfold Patch.axialCost; apply Finset.sum_congr rfl; intro x _; apply Finset.sum_congr rfl; intro i _ |
| 68 | split; rename_i hy |
| 69 | · unfold Patch.axial; simp_rw [escort P h, show U (x.val,i)=V (x.val,i) from |
| 70 | h (x.val,i) (box_larger (by omega) x.property) (box_larger (by omega) hy)] |
| 71 | rw [show travel U _ (route t.1.val (x.val+step i) t.2)=travel V _ _ from escort P h t.1 ⟨x.val+step i,hy⟩ _] |
| 72 | rfl |
| 73 | |
| 74 | lemma local_frame {U V : CoverConfig G} {C : KernelChoices} (h : Agrees (↑(box (9*P.radius))) U V) (t : P.FrameTag) |
| 75 | (hc : P.Branches C G) : P.frameMass C U t=P.frameMass C V t ∧ P.frame C U t=P.frame C V t := by |
| 76 | classical |
| 77 | by_cases hh : P.usesMin C V |
| 78 | · have hw := (valid_min P h).2 hh |
| 79 | simp only [Patch.frameMass,Patch.frame,hw,hh,↓reduceIte,true_and] |
| 80 | have he (x : P.Frame G) : P.score U x=P.score V x := by |
| 81 | unfold Patch.score; simp only [Patch.via,escort P h] |
| 82 | apply ExistsUnique.unique (hc.frame_unique V hh) ?_ (P.min_exists V).choose_spec |
| 83 | have hp := (P.min_exists U).choose_spec |
| 84 | refine ⟨hp.1,fun z hv => ?_⟩ |
| 85 | rw [← he, ← he]; exact hp.2 z hv |
| 86 | have he := mt (valid_min P h).1 hh |
| 87 | have hv : P.facesum U=P.facesum V := by |
| 88 | unfold Patch.facesum; apply Finset.sum_congr rfl; intro x _; apply Finset.sum_congr rfl; intro p _ |
| 89 | split; rename_i hp |
| 90 | · apply congr_arg G.chord |
| 91 | apply travel_local x.val (square p.val.1 p.val.2) U V |
| 92 | intro e he hf; exact h e (box_larger (by omega) (hp _ he)) (box_larger (by omega) (hp _ hf)) |
| 93 | rfl |
| 94 | have hx : P.eligible C U=P.eligible C V := by unfold Patch.eligible; simp only [hv, rate_axial P h] |
| 95 | simp only [Patch.frameMass,Patch.frame,hh,he, ↓reduceIte, hx, true_and]; unfold Patch.axial |
| 96 | simp_rw [escort P h] |
| 97 | end Paths |
| 98 | section Propagation |
| 99 | |
| 100 | variable {c f : Side} (S : StepData c f) (H : S.patch.Branches S.kernel G) |
| 101 | |
| 102 | def shadow (A : Set (Site c)) := {y : Site f|∃ x∈ A,∃ z∈box (9*S.patch.radius),y=wrap f z+S.ratio.embed x} |
| 103 | |
| 104 | lemma inside_agrees (A : Set (Site c)) (x : Site c) (hx : x∈A) (U V : Config G f) (hp : Agrees (shadow S A) U V) : |
| 105 | Agrees (↑(box (9*S.patch.radius))) (expandAt (S.ratio.embed x) U) (expandAt (S.ratio.embed x) V) := by |
| 106 | rintro ⟨z,i⟩ hz hi; let w := S.ratio.embed x |
| 107 | apply hp (wrap f z+w,i) ⟨x,hx,z,hz,rfl⟩ |
| 108 | refine ⟨x,hx,z+step i,hi,?_⟩ |
| 109 | change wrap f z+ S.ratio.embed x + step i =_; rw [map_add,wrap_step]; abel |
| 110 | |
| 111 | def edges (A : Set (Site c)) (e : Edge (Site c)) := e.1∈A ∧ e.1+step e.2∈A |
| 112 | |
| 113 | lemma reads_on_edges {A : Set (Site c)} {F : Config G c → ℂ} (hp : LocalOn A F) : Draws (edges A) F := |
| 114 | fun x y h => hp x y fun i a b => h i ⟨a,b⟩ |
| 115 | |
| 116 | lemma fees_tags (x : Config G f) {A : Set (Site c)} {a b : S.SitesChoice} (ha : EqOn a b A) (β : ℝ) (i : Edge (Site c)) |
| 117 | (hi : edges A i) : fees S β x a i=fees S β x b i := by |
| 118 | have ht : S.connector x a i=S.connector x b i := funext fun y => by |
| 119 | simp only [StepData.connector,StepData.frames]; rw [ha hi.1,ha hi.2] |
| 120 | unfold fees; simp_rw [ht] |
| 121 | |
| 122 | include H in |
| 123 | lemma fees_input (x y : Config G f) {A : Set (Site c)} (ha : Agrees (shadow S A) x y) (t : S.SitesChoice) (β : ℝ) |
| 124 | (i : Edge (Site c)) (hi : edges A i) : fees S β x t i=fees S β y t i := by |
| 125 | have h (z : S.patch.Points) : travel (expandAt (S.ratio.embed i.1) x) z.val (List.replicate S.patch.L.val (posDir i.2)) = |
| 126 | travel (expandAt (S.ratio.embed i.1) y) z.val (List.replicate S.patch.L.val (posDir i.2)) := by |
| 127 | have ht : (S.patch.L.val) ≤ S.patch.radius := by |
| 128 | unfold Patch.radius; nlinarith |
| 129 | let l := List.replicate S.patch.L.val (posDir i.2) |
| 130 | have hg : S.patch.radius+l.length ≤ 9*S.patch.radius := by simp only [l,List.length_replicate]; omega |
| 131 | apply travel_local z.val l (expandAt (S.ratio.embed i.1) x) (expandAt (S.ratio.embed i.1) y) |
| 132 | intro e he hf; apply inside_agrees S _ _ hi.1 _ _ ha |
| 133 | exacts [box_larger hg (meter_walk l z.property _ he),box_larger hg (meter_walk l z.property _ hf)] |
| 134 | have hX (v) (hv : v∈A) : S.frames x t v=S.frames y t v := |
| 135 | (local_frame S.patch (inside_agrees S A v hv x y ha) (t v) H).2 |
| 136 | have he : S.connector x t i=S.connector y t i := funext (fun v => by |
| 137 | unfold StepData.connector; rw [hX _ hi.1, hX _ hi.2,h]) |
| 138 | unfold fees; simp_rw [he] |
| 139 | |
| 140 | def forecast (β : ℝ) (U : Config G f) (B : Config G c → ℂ) (t : S.SitesChoice) : ℂ := |
| 141 | scatter G.probHaar (fees S β U t) B |
| 142 | |
| 143 | lemma forecast_tags (U : Config G f) {A : Set (Site c)} {B : Config G c→ℂ} (ha : LocalOn A B) (β : ℝ) : |
| 144 | Draws (·∈A) (forecast S β U B) := by |
| 145 | classical |
| 146 | intro x y hx |
| 147 | unfold forecast |
| 148 | rw [scatter_uses _ _ _ (reads_on_edges ha) (fees_total S β U x),scatter_uses _ _ (fees S β U y) (reads_on_edges ha) (fees_total S β U y)] |
| 149 | apply congr_arg (fun w => scatter G.probHaar w _) |
| 150 | exact funext fun i => fees_tags S U (fun _ h => hx _ h) β i i.property |
| 151 | |
| 152 | include H in |
| 153 | lemma through (β : ℝ) {A : Set (Site c)} {B : Config G c→ℂ} (hp : Interior A B) : Interior (shadow S A) (back S β B) := by |
| 154 | classical |
| 155 | have ht := pulled S (borel_bounded hp) H β |
| 156 | refine ⟨transfer_gauge S (borel_bounded hp) H β hp.gauge,ht.meas,?_ ,ht.cost⟩ |
| 157 | intro U V hu |
| 158 | rw [scanned_back S β U B (borel_bounded hp),scanned_back S β V B (borel_bounded hp)] |
| 159 | have hy (x) := forecast_tags S x hp.localSites β |
| 160 | apply scanning_congr (·∈A) _ _ _ _ (hy U) (hy V) (channels_mass _ _ H) (channels_mass _ _ H) |
| 161 | · intro i hi; funext t |
| 162 | unfold channels; rw [(local_frame S.patch (inside_agrees S A i hi U V hu) t H).1] |
| 163 | funext i |
| 164 | unfold forecast |
| 165 | rw [scatter_uses (edges A) _ _ (reads_on_edges hp.localSites) (fees_total S β U i), |
| 166 | scatter_uses (edges A) _ (fees S β V i) (reads_on_edges hp.localSites) (fees_total S β V i)] |
| 167 | apply congr_arg (fun w => scatter G.probHaar w _) |
| 168 | exact funext fun j => fees_input S H U V hu i β j j.property |
| 169 | end Propagation |
| 170 | |
| 171 | section Joint |
| 172 | variable {c f : Side} (S : StepData c f) (H : S.patch.Branches S.kernel G) (β : ℝ) |
| 173 | |
| 174 | include H in |
| 175 | lemma back_product {A B : Set (Site c)} {u v : Config G c→ℂ} (h : Disjoint A B) (hu : Interior A u) (hv : Interior B v) : |
| 176 | back S β (u*v)=back S β u * back S β v := by |
| 177 | classical |
| 178 | have hV := hv.enlarges (show B⊆Aᶜ from fun _ he ht => Set.disjoint_left.mp h ht he) |
| 179 | have hp : Interior univ (u*v) := (hu.enlarges (subset_univ _)).times (hv.enlarges (subset_univ _)) |
| 180 | funext U; rw [Pi.mul_apply,scanned_back S _ _ _ (borel_bounded hu),scanned_back S _ _ _ (borel_bounded hv), |
| 181 | scanned_back S _ _ _ (borel_bounded hp)] |
| 182 | have hh t : forecast S β U (u*v) t=forecast S β U u t * forecast S β U v t := |
| 183 | scatter_parts _ _ _ (reads_on_edges hu.localSites) (fun s r he => hv.localSites s r (fun c hx ht => he c fun hk => |
| 184 | Set.disjoint_left.mp h (show c.1∈A from (show c.1∈A ∧ c.1+step c.2∈A from hk).1) hx)) (fees_total S β U t) |
| 185 | have ht : forecast S β U (u*v)=forecast S β U u*forecast S β U v := funext hh |
| 186 | change scanning _ (forecast S β U (u*v))=scanning _ (forecast S β U u)*scanning _ (forecast S β U v) |
| 187 | rw [ht]; exact scanning_parts (·∈A) (channels S U) (forecast_tags S U hu.localSites β) (forecast_tags S U hV.localSites β) |
| 188 | (channels_mass S U H) |
| 189 | |
| 190 | include H in |
| 191 | lemma back_constant (v : ℂ) : back S β (fun _ : Config G c => v)=fun _ => v := by |
| 192 | funext U; unfold back; rw [integral_smul_const, S.density_total H,one_smul] |
| 193 | |
| 194 | lemma back_packs {ι : Type*} (s : Finset ι) (A : ι→Set (Site c)) (F : ι→Config G c→ℂ) |
| 195 | (h : (s : Set ι).Pairwise (Disjoint on A)) (ht : ∀ i∈s,Interior (A i) (F i)) (hp : S.patch.Branches S.kernel G) : |
| 196 | back S β (fun U => ∏ i ∈ s,F i U) = fun Q => ∏ i∈s,back S β (F i) Q := by |
| 197 | classical |
| 198 | induction s using Finset.induction_on with |
| 199 | | empty => simp only [Finset.prod_empty]; exact back_constant S hp β 1 |
| 200 | | @insert i s hi ih => |
| 201 | have he (j) (hh : j∈s) : Interior (A j) (F j) := ht j (Finset.mem_insert_of_mem hh) |
| 202 | let B := ⋃ j ∈ s, A j |
| 203 | let f (U : Config G c) := ∏ j∈s,F j U |
| 204 | have hv : Interior B f := Interior.combines F s fun j hh => (he j hh).enlarges (subset_iUnion₂_of_subset j hh (Subset.refl _)) |
| 205 | have hS : Disjoint (A i) B := Set.disjoint_left.mpr fun x hx hc => (mem_iUnion₂.mp hc).elim |
| 206 | (fun j ⟨H,Hj⟩ => Set.disjoint_left.mp (show Disjoint (A i) (A j) from h (Finset.mem_insert_self ..) |
| 207 | (Finset.mem_insert_of_mem H) (fun w => hi (w ▸ H))) hx Hj) |
| 208 | have he := ih (h.mono (Finset.coe_subset.mpr (Finset.subset_insert ..))) he |
| 209 | simp_rw [Finset.prod_insert hi]; funext U |
| 210 | change back S β (F i*f) U=_ |
| 211 | rw [back_product S hp β hS (ht i (Finset.mem_insert_self ..)) hv]; exact congr_arg (fun w : Config G _ → ℂ => back S β (F i) U*w U) he |
| 212 | end Joint |
| 213 | end YM.Next.UVStress |