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.Extra.WILSON_STARTUP.Design |
| 2 | import YM.Work.B04 |
| 3 | import YM.Work.H03 |
| 4 | |
| 5 | /-! |
| 6 | # One-row startup energy and locality |
| 7 | |
| 8 | Charge all |
| 9 | remaining differences (nonnegative, also for small r_p with flag nearby or |
| 10 | where the soft kept-row test fails) to compulsory packets, at the **actual |
| 11 | signed-channel** locations. There are NO logarithm attachments in this plan. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.WilsonStartup |
| 16 | open Function Filter Tensor RG Wilson Lattice Design Work |
| 17 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 18 | variable {G : Gauge} {n : Side} (c : Clip) (b : BudgetPoint) |
| 19 | |
| 20 | structure Decent : Prop where |
| 21 | direct : c.direct ≤ 1 |
| 22 | radius : 2 ≤ b.B |
| 23 | cut : 2 ≤ b.threshold * Real.exp (((b.B - 2 : ℕ):ℝ) / c.relaxation) |
| 24 | |
| 25 | theorem too_far (h : Decent c b) (V : Config G n) (p : Cell n) (x : Site n) |
| 26 | (hh : b.B-2 ≤ separation x p.1) : |
| 27 | G.chord (faceValue V p) ≤ b.threshold*Real.exp (separation x p.1 / c.relaxation) := by |
| 28 | apply (G.chord_le_two _).trans (h.cut.trans ?_) |
| 29 | have := b.threshold_pos; have := c.radius_pos |
| 30 | gcongr |
| 31 | |
| 32 | theorem kept_small (U : Config G n) (p : Cell n) (h : PathData.kept c b.threshold p.1 U) : |
| 33 | G.chord (faceValue U p) ≤ b.threshold := by simpa using h p |
| 34 | |
| 35 | -- First in any one orientation channel's coordinates |
| 36 | def due (U : Config G n) (p : Cell n) := |
| 37 | let u := faceValue U p; let r := G.chord u; let k := bulk c * ‖G.curvature u‖^2/2 |
| 38 | if b.threshold < r then G.price u - c.linear * b.threshold * r |
| 39 | else (if Healthy b.threshold (touched p) U then k else bulk c * G.price u) - |
| 40 | (if PathData.kept c b.threshold p.1 U then k else 0) |
| 41 | |
| 42 | lemma due_large (hc : c.direct ≤ 1) (U : Config G n) (p : Cell n) |
| 43 | (ht : b.threshold < G.chord (faceValue U p)) : b.threshold^2/4 ≤ due c b U p := by |
| 44 | let r := G.chord (faceValue U p) |
| 45 | have hb := b.threshold_pos |
| 46 | have hl : c.linear ≤ 1/4 := by have := c.kink; linarith |
| 47 | unfold due; rw [if_pos ht] |
| 48 | have he : c.linear*b.threshold*r ≤ (1/4)*r*r := by dsimp only [r]; gcongr; exact G.chord_nonneg _ |
| 49 | nlinarith [G.chord_price (faceValue U p)] |
| 50 | |
| 51 | lemma due_range (hc : c.direct ≤ 1) (U : Config G n) (p : Cell n) : due c b U p ∈ Set.Icc (0:ℝ) 2 := by |
| 52 | let u := faceValue U p |
| 53 | have ht := b.threshold_pos; have hr := G.chord_nonneg u; have hl := c.tail_pos |
| 54 | have hd : 0 ≤ bulk c := sub_nonneg.mpr hc |
| 55 | have he : bulk c * ‖G.curvature u‖^2 / 2 ≤ bulk c * G.price u := by |
| 56 | nlinarith [mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) (G.curvature_norm u) 2) hd, G.chord_price u] |
| 57 | have hf := G.price_range u |
| 58 | have hp : bulk c * G.price u ≤ 2 := by |
| 59 | unfold bulk; nlinarith [c.quadratic_pos,hf.1,hf.2] |
| 60 | have hk : 0 ≤ bulk c * ‖G.curvature u‖^2 / 2 := by positivity |
| 61 | by_cases h : b.threshold < G.chord u |
| 62 | · exact ⟨(by positivity : (0:ℝ) ≤ b.threshold^2/4).trans (due_large c b hc U p h), by |
| 63 | unfold due; rw [if_pos h]; exact (sub_le_self _ (by change 0 ≤ _ * G.chord u; positivity)).trans hf.2⟩ |
| 64 | unfold due; rw [if_neg h] |
| 65 | change (if Healthy _ _ _ then bulk c * ‖G.curvature u‖^2/2 else bulk c*G.price u) - _ ∈ _ |
| 66 | split_ifs <;> constructor <;> linarith |
| 67 | |
| 68 | lemma due_eq (hc : c.direct ≤ 1) (U : Config G n) (p : Cell n) : |
| 69 | G.price (faceValue U p) = (top G c).baseTerm c b U p + masked b.threshold (touched p) |
| 70 | (fun V => diagonal (panel G c) (G.curvature (faceValue V p))) U + |
| 71 | bulk c * masked b.threshold (touched p) (residual G p) U + due c b U p := by |
| 72 | unfold PathData.baseTerm PathData.clipped due; dsimp only |
| 73 | rw [ell_sq _ hc,G.chord_price] |
| 74 | by_cases hh : Healthy b.threshold (touched p) U |
| 75 | · have he := healthy_chord p U hh |
| 76 | rw [if_pos he,if_neg (not_lt.mpr he),if_pos hh,masked_eq _ _ _ _ hh,masked_eq _ _ _ _ hh] |
| 77 | simp only [panel,diagonal,smul_apply,smul_eq_mul,residual,surplus,bulk]; ring |
| 78 | rw [masked_ne _ _ _ _ hh,masked_ne _ _ _ _ hh,if_neg hh] |
| 79 | by_cases he : b.threshold < G.chord (faceValue U p) |
| 80 | · rw [if_pos he,if_neg (not_le.mpr he),if_neg (fun h => not_le.mpr he (kept_small c b U p h))]; ring |
| 81 | rw [if_neg he,if_pos (le_of_not_gt he)]; unfold bulk; ring |
| 82 | |
| 83 | lemma due_gauge (U : Config G n) (k : Site n → G.El) (p : Cell n) : due c b (gauge k U) p = due c b U p := by |
| 84 | simp only [due,face_gauge,G.chord_conj,G.price_conj,Healthy,gauge_flags, |
| 85 | PathData.kept,G.curvature_conjugate,G.norm_adjoint] |
| 86 | congr! |
| 87 | |
| 88 | lemma due_measurable (p : Cell n) : Measurable fun U : Config G n => due c b U p := by |
| 89 | unfold due; refine Measurable.ite (isOpen_lt continuous_const (by unfold faceValue; fun_prop)).measurableSet |
| 90 | (by unfold faceValue; fun_prop) (Measurable.sub ?_ ?_) |
| 91 | · exact Measurable.ite (healthy_closed .. |>.measurableSet) (by unfold faceValue; fun_prop) (by unfold faceValue; fun_prop) |
| 92 | exact Measurable.ite (PathData.kept_closed .. |>.measurableSet) (by unfold faceValue; fun_prop) measurable_const |
| 93 | |
| 94 | lemma aff_inj (s : Signed) (x : Site n) : Injective (affine s x) := fun _ _ h => s.act_injective (add_right_cancel h) |
| 95 | |
| 96 | def frameSites (s : Signed) (x : Site n) : Equiv.Perm (Site n) := Equiv.ofBijective (affine s x) |
| 97 | ⟨aff_inj ..,Finite.injective_iff_surjective.mp (aff_inj ..)⟩ |
| 98 | |
| 99 | lemma pulls_gauge (s : Signed) (x : Site n) (U : Config G n) (k : Site n → G.El) : |
| 100 | pull s x (gauge k U) = gauge (k ∘ affine s x) (pull s x U) := by |
| 101 | funext i; change ((posDir i.2).rotate s).read _ _ = k _ * ((posDir i.2).rotate s).read _ _ * (k _)⁻¹ |
| 102 | rw [Step.gauge_read, Step.vec_rotate,Step.vec_pos]; congr 3 |
| 103 | unfold affine; rw [s.act_add]; abel |
| 104 | |
| 105 | abbrev Key (n : Side) := Signed × Cell n |
| 106 | namespace Key |
| 107 | variable (i : Key n) |
| 108 | def native := i.2.1 |
| 109 | def frame (U : Config G n) := pull i.1 i.native U |
| 110 | def root : Cell n := (0,i.2.2) |
| 111 | def positive := Face.send i.1 i.native i.root |
| 112 | def skin : Support n := (touched i.root).image (affine i.1 i.native) |
| 113 | |
| 114 | def perm (s : Signed) (x : Site n) : Equiv.Perm (Key n) := Equiv.prodCongr (Equiv.mulLeft s) |
| 115 | (Equiv.prodCongr (frameSites s x) (Equiv.refl PlaqAxes)) |
| 116 | |
| 117 | theorem oriented (s : Signed) (x : Site n) (U : Config G n) : (perm s x i).frame U = i.frame (pull s x U) := |
| 118 | (pull_pull ..).symm |
| 119 | |
| 120 | theorem spun (s : Signed) (x : Site n) : (perm s x i).skin = i.skin.image (affine s x) := by |
| 121 | change (touched i.root).image (affine (s*i.1) (affine s x i.native)) = _ |
| 122 | rw [skin,Finset.image_image] |
| 123 | congr 1; funext p; simp [affine,Signed.act_mul,add_assoc] |
| 124 | |
| 125 | theorem spins_healthy (U : Config G n) (t : ℝ) : Healthy t i.skin U ↔ Healthy t (touched i.root) (i.frame U) := by |
| 126 | rw [Healthy,skin,← H03.flags_send i.1 i.native t U,Finset.disjoint_image (aff_inj ..)] |
| 127 | rfl |
| 128 | |
| 129 | theorem skin_positive : i.skin = touched i.positive := (H03.touched_send ..).symm |
| 130 | |
| 131 | theorem native_mem : i.native ∈ i.skin := by |
| 132 | have h := Finset.mem_image_of_mem (affine i.1 i.native) (anchor_visit i.root) |
| 133 | simpa [affine,show i.root.1=0 from rfl,skin] using h |
| 134 | |
| 135 | theorem nearby {x : Site n} (h : x ∈ i.skin) : separation i.native x ≤ 2 := by |
| 136 | obtain ⟨p,hp,rfl⟩ := Finset.mem_image.mp h |
| 137 | have he : i.native = affine i.1 i.native i.root.1 := by simp [root,affine] |
| 138 | rw [separation_comm]; nth_rw 1 [affine]; nth_rw 2 [he]; rw [affine,separation_translate,separation_signed] |
| 139 | exact visit_near i.root hp |
| 140 | |
| 141 | def owed (U : Config G n) := due c b (i.frame U) i.root |
| 142 | |
| 143 | def addrE : RegularAddress n := ⟨i.native,i.skin,i.native_mem⟩ |
| 144 | |
| 145 | def accrual (U : Config G n) := residual G i.root (i.frame U) |
| 146 | |
| 147 | theorem accrual_def : i.accrual = residual G i.positive := funext fun U => (residual_send _ _ _ U).symm |
| 148 | |
| 149 | theorem readable {D : ℕ} (U V : Config G n) (h : Agrees (halo D {i.native}) U V) (p : Cell n) |
| 150 | (hp : separation 0 p.1 + 2 ≤ D) : faceValue U (Face.send i.1 i.native p) = faceValue V (Face.send i.1 i.native p) := by |
| 151 | apply face_local _ U V (agrees_mono h _) |
| 152 | intro z hz |
| 153 | rw [Finset.mem_coe, H03.touched_send] at hz |
| 154 | obtain ⟨q,hq,rfl⟩ := Finset.mem_image.mp hz |
| 155 | rw [Finset.mem_coe,halo_spec]; refine ⟨i.native, Finset.mem_singleton_self _,?_⟩ |
| 156 | have he : i.native = affine i.1 i.native (0:Site n) := by simp [affine] |
| 157 | nth_rw 1 [he]; simp only [affine,separation_translate,separation_signed] |
| 158 | apply (separation_triangle 0 p.1 q).trans (le_trans _ hp) |
| 159 | rw [separation_comm p.1]; exact Nat.add_le_add_left (visit_near p hq) _ |
| 160 | |
| 161 | theorem kept_reads (h : Decent c b) : LocalOn (halo b.B {i.native}) (fun U : Config G n => |
| 162 | decide (PathData.kept c b.threshold 0 (i.frame U))) := by |
| 163 | intro U V he |
| 164 | suffices PathData.kept c b.threshold 0 (i.frame U) ↔ PathData.kept c b.threshold 0 (i.frame V) from decide_eq_decide.mpr this |
| 165 | apply forall_congr'; intro p |
| 166 | by_cases hp : separation 0 p.1 + 2 ≤ b.B |
| 167 | · have hu (U : Config G n) := Face.send_price U p i.1 i.native G.chord G.chord_inv fun k g => G.chord_conj g k |
| 168 | simp only [frame,hu,i.readable U V he p hp] |
| 169 | exact iff_of_true (too_far c b h _ _ _ (by omega)) (too_far c b h _ _ _ (by omega)) |
| 170 | |
| 171 | theorem owed_reads (h : Decent c b) : UsesFinal b.threshold (halo b.B {i.native}) (owed c b i (G:=G)) := by |
| 172 | intro U V he hf |
| 173 | have ht := kept_reads c b i h U V he |
| 174 | have hr := i.readable U V he i.root (by simpa [root] using h.radius) |
| 175 | have hc (W : Config G n) := Face.send_price W i.root i.1 i.native G.chord G.chord_inv fun k g => G.chord_conj g k |
| 176 | have hp (W : Config G n) := Face.send_price W i.root i.1 i.native G.price G.price_inv fun k g => G.price_conj g k |
| 177 | have hk (W : Config G n) := Face.send_price W i.root i.1 i.native (fun w => ‖G.curvature w‖) |
| 178 | (by simp) (fun k g => by simp [Gauge.curvature_conjugate]) |
| 179 | have hE : i.skin ⊆ halo b.B {i.native} := fun z hz => halo_spec.mpr |
| 180 | ⟨_,Finset.mem_singleton_self _,(i.nearby hz).trans h.radius⟩ |
| 181 | have hL : Healthy b.threshold i.skin U = Healthy b.threshold i.skin V := by |
| 182 | refine H03.reads_larger hE (fun X Y _ hY => ?_) U V he hf |
| 183 | unfold Healthy |
| 184 | simpa [Finset.disjoint_iff_inter_eq_empty] using (show (i.skin ∩ flags b.threshold X = ∅) = |
| 185 | (i.skin ∩ flags b.threshold Y = ∅) from by rw [hY]) |
| 186 | simp only [decide_eq_decide] at ht |
| 187 | simp only [owed,due,← spins_healthy,show i.root.1=0 from rfl,hL,ht] |
| 188 | simp only [frame,hc,hp,hk,hr] |
| 189 | |
| 190 | theorem owed_gauge (U : Config G n) (k : Site n → G.El) : owed c b i (gauge k U) = owed c b i U := by |
| 191 | unfold owed frame; rw [pulls_gauge,due_gauge] |
| 192 | |
| 193 | theorem owed_zero {U : Config G n} (h : Decent c b) (hd : i.native ∉ halo b.B (flags b.threshold U)) : owed c b i U = 0 := by |
| 194 | rw [halo_spec] at hd |
| 195 | have hf {z : Site n} (hz : separation i.native z ≤ b.B) : z ∉ flags b.threshold U := by |
| 196 | intro he; exact hd ⟨z,he,(separation_comm _ _) ▸ hz⟩ |
| 197 | have hh : Healthy b.threshold (touched i.root) (i.frame U) := (spins_healthy i U _).mp <| |
| 198 | Finset.disjoint_left.mpr fun z hz => hf ((i.nearby hz).trans h.radius) |
| 199 | have ht : PathData.kept c b.threshold i.root.1 (i.frame U) := by |
| 200 | intro p |
| 201 | by_cases hp : separation i.root.1 p.1 ≤ b.B |
| 202 | · have hr : G.chord (faceValue (i.frame U) p) ≤ b.threshold := by |
| 203 | by_contra! he |
| 204 | have hv := Finset.mem_image_of_mem (affine i.1 i.native) ((flags_spec ..).mpr ⟨p, anchor_visit p, he⟩) |
| 205 | rw [frame,H03.flags_send] at hv |
| 206 | refine hf ?_ hv |
| 207 | simpa [affine,root,Signed.act_zero,zero_add] using (show |
| 208 | separation (affine i.1 i.native i.root.1) (affine i.1 i.native p.1) ≤ b.B by simpa [affine] using hp) |
| 209 | exact hr.trans (le_mul_of_one_le_right b.threshold_pos.le (Real.one_le_exp <| div_nonneg (by positivity) c.radius_pos.le)) |
| 210 | exact too_far c b h _ _ _ (by omega) |
| 211 | unfold owed due; rw [if_neg (not_lt.mpr (healthy_chord i.root _ hh)),if_pos hh,if_pos ht,sub_self] |
| 212 | end Key |
| 213 | end YM.WilsonStartup |