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.Push.LOCAL_SPLITTING.Mixed |
| 2 | import YM.Work.F03.Flat |
| 3 | import YM.Work.H03 |
| 4 | |
| 5 | /-! |
| 6 | # Signed placement transport of supports, pre-mask extensions and charges |
| 7 | |
| 8 | Ordered derivatives pay a displayed constant *before* the torus size. Stencil and |
| 9 | cover cost of the full transformed support (not the smallest support of the value). |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Push.Local |
| 14 | open Function Lattice Wilson RG Source Next.Foundations |
| 15 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 16 | |
| 17 | variable {G : Gauge} {n : Side} |
| 18 | |
| 19 | def turnSites (s : Signed) (b : Site n) : Equiv.Perm (Site n) := s.actEquiv.toEquiv.trans (Equiv.addRight b) |
| 20 | |
| 21 | @[simp] theorem turn_sep (s : Signed) (b x y : Site n) : |
| 22 | separation (turnSites s b x) (turnSites s b y) = separation x y := by simp [show ⇑(turnSites s b) = affine s b from rfl,affine] |
| 23 | |
| 24 | private theorem end_turn (s : Signed) (b x : Site n) (i : Axis) : |
| 25 | affine s b (x+step i) = affine s b x + ((posDir i).rotate s).vec := by |
| 26 | rw [Lattice.Step.vec_rotate, Lattice.Step.vec_pos, affine,affine,s.act_add, add_right_comm] |
| 27 | |
| 28 | theorem agrees_pull (s : Signed) (b : Site n) {K : Type*} [Group K] {U V : Links (Per n) K} {X : Support n} |
| 29 | (h : Agrees (X.image (turnSites s b)) U V) : Agrees X (pull s b U) (pull s b V) := by |
| 30 | rintro ⟨x,i⟩ hx hy |
| 31 | have hb : affine s b x ∈ X.image (turnSites s b) := Finset.mem_image_of_mem (turnSites s b) (a:=x) hx |
| 32 | have he : affine s b (x+step i) ∈ X.image (turnSites s b) := Finset.mem_image_of_mem (turnSites s b) (a:=x+step i) hy |
| 33 | rw [end_turn] at he |
| 34 | unfold pull; cases hq : ((posDir i).rotate s) with | mk a t => |
| 35 | rw [hq] at he; cases t |
| 36 | · exact h (affine s b x,a) hb he |
| 37 | have hv : affine s b x-step a ∈ X.image (turnSites s b) := by simpa only [show (⟨a,true⟩ : Lattice.Step)=negDir a from rfl, Lattice.Step.vec_neg, sub_eq_add_neg] using he |
| 38 | exact congr_arg Inv.inv (h (affine s b x-step a,a) hv (by change affine s b x-step a+step a ∈ X.image _; rw [sub_add_cancel]; exact hb)) |
| 39 | |
| 40 | theorem uses_pull {Z : Sort*} {X : Support n} {f : Config G n → Z} {t : ℝ} |
| 41 | (h : UsesFinal t X f) (s : Signed) (b : Site n) : UsesFinal t (X.image (turnSites s b)) (fun U => f (pull s b U)) := by |
| 42 | intro U V huv hx; refine h _ _ (agrees_pull s b huv) (Finset.image_injective (turnSites s b).injective ?_) |
| 43 | rwa [Finset.image_inter _ _ (turnSites s b).injective, Finset.image_inter _ _ (turnSites s b).injective, |
| 44 | show ⇑(turnSites s b) = affine s b from rfl, Work.H03.flags_send, Work.H03.flags_send] |
| 45 | |
| 46 | theorem pull_gauge {K : Type*} [Group K] (s : Signed) (b : Site n) (U : Links (Per n) K) (g : Site n → K) : |
| 47 | pull s b (gauge g U) = gauge (g ∘ turnSites s b) (pull s b U) := by |
| 48 | funext e |
| 49 | simp only [pull,Lattice.Step.gauge_read, ← end_turn]; rfl |
| 50 | |
| 51 | theorem invariant_pull {Z : Type*} {f : Config G n → Z} |
| 52 | (h : GaugeInvariant f) (s : Signed) (b : Site n) : GaugeInvariant (f ∘ pull s b) := fun g U => by |
| 53 | simp only [comp_apply,pull_gauge,h _ _] |
| 54 | |
| 55 | theorem healthy_pull (s : Signed) (b : Site n) (t : ℝ) (X : Support n) (U : Config G n) : |
| 56 | Healthy t (X.image (turnSites s b)) U ↔ Healthy t X (pull s b U) := by |
| 57 | unfold Healthy; rw [← Work.H03.flags_send s b]; exact Finset.disjoint_image (turnSites s b).injective |
| 58 | |
| 59 | theorem nonwrapping_turn (s : Signed) (b o : Site n) (X : Support n) : |
| 60 | Nonwrapping (X.image (turnSites s b)) (turnSites s b o) ↔ Nonwrapping X o := by simp [Nonwrapping] |
| 61 | |
| 62 | section Mass |
| 63 | variable (r : Equiv.Perm (Site n)) (hr : ∀ i j, separation (r i) (r j) = separation i j) |
| 64 | include hr |
| 65 | |
| 66 | theorem halo_map (b : ℕ) (A : Support n) : halo b (A.image r) = (halo b A).image r := by |
| 67 | ext i; obtain ⟨i,rfl⟩ := r.surjective i |
| 68 | simp [halo_spec,hr] |
| 69 | |
| 70 | theorem cover_map (b : ℕ) (X : Support n) : coverNumber b (X.image r) = coverNumber b X := by |
| 71 | have he (r : Equiv.Perm (Site n)) (hr : ∀ i j, separation (r i) (r j) = separation i j) (X) : |
| 72 | coverNumber b (X.image r) ≤ coverNumber b X := by |
| 73 | obtain ⟨D,⟨h1,h2⟩,hD⟩ := coverNumber_realized b X |
| 74 | have ht : covers b (X.image r) (D.image r) := by |
| 75 | unfold covers; rw [halo_map r hr]; refine ⟨Finset.image_subset_image h1,?_⟩ |
| 76 | simp only [Finset.forall_mem_image]; intro i hi j hj |
| 77 | refine (h2 _ hi _ hj).lift (f:=r) ?_ |
| 78 | rintro x y ⟨hx,hy,h⟩; exact ⟨Finset.mem_image_of_mem _ hx, Finset.mem_image_of_mem _ hy, (hr ..).trans_le h⟩ |
| 79 | exact (Corona.list_cost _ ht).trans ((Finset.card_image_le).trans_eq hD) |
| 80 | apply le_antisymm (he r hr X) |
| 81 | simpa [← Finset.image_comp] using he r.symm (fun i j => by simpa using (hr (r.symm i) (r.symm j)).symm) (X.image r) |
| 82 | end Mass |
| 83 | |
| 84 | section Jets |
| 85 | private def movedDirs (s : Signed) (b : Site n) (A : Directions G n) : LR G n := |
| 86 | ((fun e => if s.flip e.2 then 0 else A (affine s b e.1, s.perm e.2)), |
| 87 | fun e => if s.flip e.2 then -A (affine s b e.1-step (s.perm e.2), s.perm e.2) else 0) |
| 88 | |
| 89 | private theorem pull_increment (s : Signed) (b : Site n) (U : Config G n) (A : Directions G n) (t : ℝ) : |
| 90 | pull s b (increment U (t • A)) = mix (pull s b U) (t • movedDirs s b A) := by |
| 91 | ext i |
| 92 | simp only [pull,Lattice.Step.rotate, Lattice.Step.read,Lattice.Step.used,posDir,Bool.false_xor, mix, increment, movedDirs] |
| 93 | split <;> simp [*,Work.F03.exp_neg_color] |
| 94 | |
| 95 | private theorem pull_jets {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] (s : Signed) (b : Site n) (U : Config G n) (f : Config G n → Y) (l : List (Directions G n)) : |
| 96 | leftDerivs (f ∘ pull s b) l U = mixJets f (l.map (movedDirs s b)) (pull s b U) := by |
| 97 | induction l generalizing U with |
| 98 | | nil => rfl |
| 99 | | cons A l ih => simp [mixJets,leftDerivs,ih,pull_increment] |
| 100 | |
| 101 | theorem chart_pull {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] (s : Signed) (b : Site n) {U : Config G n} {f : Config G n → Y} {k : ℕ} |
| 102 | (hf : Chart k f (pull s b U)) : Chart k (f ∘ pull s b) U := by |
| 103 | apply chart_comp (x:=(0 : Directions G n)) (W:=fun v => pull s b (increment U v)) (by simpa [Work.G07.at_zero_increment] using hf) |
| 104 | intro l |
| 105 | simp only [pull, Lattice.Step.read]; split |
| 106 | · simp only [G.mat_inv,increment,G.mat_mul] |
| 107 | exact ((starL' ℝ : G.Mat ≃L[ℝ] G.Mat).contDiff.comp ((G.exp_jet.comp (contDiff_apply ..)).mul contDiff_const)).contDiffAt |
| 108 | exact ((G.exp_jet.comp (contDiff_apply ..)).mul contDiff_const).contDiffAt |
| 109 | |
| 110 | private theorem dir_price (B : BudgetPoint) (s : Signed) (b o : Site n) (V : Config G n) (p : Directions G n) |
| 111 | (h : B.dirBound (turnSites s b o) p) : |
| 112 | let D (A : Directions G n) := ∀ l, ‖A l‖ ≤ (2:ℝ)^B.power * (B.threshold * (1+(separation l.1 o : ℝ))^B.power) |
| 113 | D (movedDirs s b p).1 ∧ D (rotateRight V (movedDirs s b p).2) := by |
| 114 | dsimp only |
| 115 | constructor |
| 116 | · intro l |
| 117 | dsimp only [movedDirs]; split |
| 118 | · rw [norm_zero]; positivity [B.threshold_pos] |
| 119 | have he := h (turnSites s b l.1,s.perm l.2) |
| 120 | simp only [turn_sep] at he; exact he.trans (le_mul_of_one_le_left (by positivity [B.threshold_pos]) (one_le_pow₀ (by norm_num))) |
| 121 | rintro ⟨x,i⟩; rw [rotateRight, G.norm_adjoint]; dsimp only [movedDirs]; split |
| 122 | · rw [norm_neg] |
| 123 | let q := turnSites s b x-step (s.perm i) |
| 124 | have h1 : separation q (turnSites s b o) ≤ 1+separation x o := by |
| 125 | apply (separation_triangle q (turnSites s b x) _).trans |
| 126 | rw [turn_sep, separation, show q - turnSites s b x = - step (s.perm i) by dsimp [q]; abel, pdist_neg] |
| 127 | exact Nat.add_le_add_right (pdist_step _) _ |
| 128 | refine (h (q,s.perm i)).trans ?_ |
| 129 | rw [mul_left_comm (2^B.power), ← mul_pow]; apply mul_le_mul_of_nonneg_left _ B.threshold_pos.le |
| 130 | apply pow_le_pow_left₀ (by positivity) |
| 131 | change (1:ℝ)+separation q (turnSites s b o) ≤ 2*(1+(separation x o : ℝ)) |
| 132 | exact_mod_cast (show 1+separation q (turnSites s b o) ≤ 2*(1+separation x o) by omega) |
| 133 | rw [norm_zero]; positivity [B.threshold_pos] |
| 134 | |
| 135 | private theorem sum_price {ι Y : Type*} [NormedAddCommGroup Y] (l : List ι) (f : ι → Y) {c : ℝ} (hf : ∀ i∈l, ‖f i‖ ≤ c) : |
| 136 | ‖(l.map f).sum‖ ≤ (l.length : ℝ)*c := by |
| 137 | induction l with |
| 138 | | nil => simp |
| 139 | | cons i l ih => |
| 140 | simp only [List.length_cons,List.map_cons,List.sum_cons,Nat.cast_add,Nat.cast_one,add_mul,one_mul,add_comm (_ * c) c] |
| 141 | exact (norm_add_le ..).trans (add_le_add (hf i (by simp)) (ih fun j hj => hf j (by simp [hj]))) |
| 142 | |
| 143 | variable {B : BudgetPoint} {X : Support n} {f : Config G n → ℂ} {o : Site n} {a : ℝ} |
| 144 | |
| 145 | theorem regular_pull (h : B.Regular X f) (s : Signed) (b : Site n) : B.Regular (X.image (turnSites s b)) (f ∘ pull s b) := by |
| 146 | have ht (U) (hU : Healthy B.threshold (X.image (turnSites s b)) U) : Chart B.order (f ∘ pull s b) U := |
| 147 | chart_pull s b (h.smooth _ ((healthy_pull ..).mp hU)) |
| 148 | exact ⟨fun _ _ hu => h.sites _ _ (agrees_pull s b hu), h.borel.comp (continuous_pull ..).measurable, invariant_pull h.symmetry s b, ht, |
| 149 | fun U hu A _ hl => left_has A hl (ht U hu)⟩ |
| 150 | |
| 151 | /-- Universal finite-budget factor including the negative-link endpoint shift |
| 152 | and all terms of the ordered-derivative reversal. -/ |
| 153 | def turnCost (k P : ℕ) := ((2:ℝ)*2^P)^k |
| 154 | |
| 155 | theorem bound_pull (h : B.Regular X f) (hc : B.supBounds o X f a) (s : Signed) (b : Site n) : |
| 156 | B.supBounds (turnSites s b o) (X.image (turnSites s b)) (f ∘ pull s b) (turnCost B.order B.power*a) := by |
| 157 | let r := (2:ℝ)^B.power |
| 158 | refine ⟨mul_nonneg (pow_nonneg (by positivity) _) hc.1, fun U hu l hl hD => ?_⟩ |
| 159 | let V := pull s b U |
| 160 | have hv : Healthy B.threshold X V := (healthy_pull ..).mp hu |
| 161 | let Q := l.map (movedDirs s b) |
| 162 | let D (A : Directions G n) := ∀ e, ‖A e‖ ≤ r*(B.threshold * (1+(separation e.1 o : ℝ))^B.power) |
| 163 | have he := convert_mem V D Q (by simp only [Q,List.forall_mem_map]; exact fun p hp => dir_price B s b o V p (hD p hp)) |
| 164 | have hj (q) (hq : q∈convertOrder V Q) : ‖leftDerivs f q V‖ ≤ r^l.length*a := by |
| 165 | have heq : q.length = l.length := (he q hq).1.trans (List.length_map _) |
| 166 | rw [← heq]; exact bound_rescale_dirs hc h V hv q (heq.trans_le hl) r (by positivity) (he q hq).2 |
| 167 | have hs : ∀ p∈Q, ∀ q∈Q, ∀ i, p.1 i = 0 ∨ q.2 i = 0 := by |
| 168 | simp only [Q,List.forall_mem_map]; intro p _ q _ i; dsimp only [movedDirs]; split <;> simp_all |
| 169 | rw [pull_jets s b, mix_convert V Q f hs (h.smooth _ hv) ((List.length_map _).trans_le hl)] |
| 170 | apply (sum_price (convertOrder V Q) _ hj).trans |
| 171 | simp only [convert_length,List.length_map,Q,Nat.cast_pow,Nat.cast_ofNat,← mul_assoc, r,← mul_pow,turnCost] |
| 172 | exact mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le (by norm_num) (one_le_pow₀ (by norm_num))) hl) hc.1 |
| 173 | end Jets |
| 174 | end YM.Push.Local |