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.ITERATION_NO_LOSS.Patterns |
| 2 | import YM.Work.F08.Mixed |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Curvature column and its ordinary first differences in the residue convention |
| 7 | |
| 8 | From Towers.T and the two **diagonal** metrics (E H, not H tilde). |
| 9 | Use `Deep` spatial differences, never pay volume at fixed row. Extra |
| 10 | harmonic input on T alone for the loop handoff (would follow e.g. from |
| 11 | alias estimates of the intended universal T). |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extra.Iteration |
| 16 | open Lattice Wilson RG Exterior Precision Bloch Laurent Matrix Function Finset Work.F08 |
| 17 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 18 | |
| 19 | variable {L c f n : Side} {α β : Type*} [Fintype β] |
| 20 | |
| 21 | lemma carry_bound (r : Site L) (y : Cover) : |
| 22 | (Laurent.size (carry r y) : ℝ) ≤ Laurent.size y / (L.val:ℝ) + 4 := by |
| 23 | let z := carry r y |
| 24 | let t := arrives r y |
| 25 | have ht (i : Axis) : L.val * (z i).natAbs ≤ (y i).natAbs + L.val := by |
| 26 | have he := congr_fun (carry_spec r y) i |
| 27 | have hc := lift_centers r i; have hd := lift_centers t i |
| 28 | change lift r i + y i = lift t i + L.val • z i at he |
| 29 | have hh : |lift r i - lift t i| ≤ (L.val : ℤ) := by rw [abs_sub_le_iff]; omega |
| 30 | rw [nsmul_eq_mul] at he |
| 31 | have hl : ((L.val : ℤ) * z i).natAbs ≤ (y i).natAbs + L.val := by |
| 32 | rw [show (L.val : ℤ)*z i = y i + (lift r i - lift t i) by omega] |
| 33 | apply (Int.natAbs_add_le ..).trans; omega |
| 34 | simpa only [Int.natAbs_mul,Int.natAbs_natCast] using hl |
| 35 | have he := sum_le_sum (fun i (_:i∈univ) => ht i) |
| 36 | rw [← mul_sum, sum_add_distrib,sum_const,card_univ, nsmul_eq_mul] at he |
| 37 | change L.val * Laurent.size z ≤ Laurent.size y + 4*L.val at he |
| 38 | calc |
| 39 | _ ≤ ((Laurent.size y:ℝ)+4*L.val)/(L.val:ℝ) := (le_div_iff₀ (side_pos L)).2 (by |
| 40 | rw [mul_comm]; exact_mod_cast he) |
| 41 | _ = _ := by field_simp |
| 42 | |
| 43 | lemma output_row (R : Row α β) (u : Co n β → ℝ) (h : R.safe) (b x) : |
| 44 | (R.acts n *ᵥ u) (x,b) = ∑ j, ∑' z, R b j z * u (x+wrap n z,j) := by |
| 45 | rw [mulVec, dotProduct, Fintype.sum_prod_type, Finset.sum_comm] |
| 46 | exact sum_congr rfl fun j _ => sift_action ((h b j).of_norm) n x _ |
| 47 | |
| 48 | lemma output_cross (g : Ratio c f) (R : Cross g.count α β) (u : Co c β → ℝ) (h : R.safe) (b x) : |
| 49 | (installed g R *ᵥ u) (x,b) = ∑ j, ∑' z, R (g.residue x,b) j z * u (g.parent x+wrap c z,j) := by |
| 50 | simpa only [installed, mulVec, dotProduct, submatrix_apply, split_co, id_eq] using output_row R u h (g.residue x,b) (g.parent x) |
| 51 | |
| 52 | lemma sums_mul_shift {α β : Type*} {R : Row α β} (hr : R.safe) {b : β} (u : Co n β → ℝ) (r x) : |
| 53 | Summable (fun z => R r b z * u (x+wrap n z,b)) := by |
| 54 | have he (z : Site n) : |u (z,b)| ≤ ∑ v : Site n, |u (v,b)| := single_le_sum (f:=fun i => |u (i,b)|) (fun _ _ => abs_nonneg _) (mem_univ z) |
| 55 | exact Summable.of_norm_bounded ((hr r b).mul_right _) fun i => (norm_mul _ _).trans_le |
| 56 | (mul_le_mul_of_nonneg_left (he _) (norm_nonneg _)) |
| 57 | |
| 58 | def moving (R : Cross L α β) (a : Option Axis) := a.elim R (forwardC L R) |
| 59 | omit [Fintype β] in |
| 60 | lemma crossing_add (g : Ratio c f) (x : Site f) (d : Axis) (hg : Odd g.count.val) : |
| 61 | let Δ : Cover := if lift (g.residue x) d=↑(g.count.val/2 : ℕ) then step d else 0 |
| 62 | g.parent (x + step d) = g.parent x + wrap c Δ ∧ |
| 63 | g.residue (x+step d) = g.residue x + step d := by |
| 64 | intro Δ |
| 65 | rw [g.parents_hop hg,map_add, show g.residue (step d) = step d from ?_] |
| 66 | · dsimp [Δ]; split <;> simp |
| 67 | rw [← wrap_step f, Ratio.residue_wrap,wrap_step] |
| 68 | |
| 69 | lemma forward_act (g : Ratio c f) (a : Option Axis) (R : Cross g.count α β) (u : Co c β → ℝ) |
| 70 | (hr : R.safe) (hs : (moving R a).safe) (hg : Odd g.count.val) (x : Site f) (b : α) : |
| 71 | (installed g (moving R a) *ᵥ u) (x,b) = Iteration.read a (fun z => (installed g R *ᵥ u) (z,b)) x := by |
| 72 | cases a with |
| 73 | | none => rfl |
| 74 | | some d => |
| 75 | let r := g.residue x |
| 76 | let Δ : Cover := if lift r d=↑(g.count.val/2 : ℕ) then step d else 0 |
| 77 | obtain ⟨hp,hq⟩ := crossing_add g x d hg |
| 78 | change g.parent (x+step d) = _ + wrap c Δ at hp |
| 79 | change _ = (installed g R *ᵥ u) (x+step d,b) - (installed g R *ᵥ u) (x,b) |
| 80 | rw [output_cross _ _ _ hs,output_cross _ _ _ hr,output_cross _ _ _ hr,hp,hq,← sum_sub_distrib]; apply sum_congr rfl; intro j _ |
| 81 | let F (y : Cover) := R (r+step d,b) j y * u (g.parent x+wrap c Δ+wrap c y,j) |
| 82 | have H (y : Cover) : F (y-Δ) = R (r+step d,b) j (y-Δ)*u (g.parent x+wrap c y,j) := by |
| 83 | unfold F; congr 2; rw [map_sub]; abel_nf |
| 84 | have he (y) : moving R (some d) (g.residue x,b) j y = R (r+step d,b) j (y-Δ)-R (r,b) j y := rfl |
| 85 | simp_rw [he,sub_mul,← H] |
| 86 | have hF : Summable F := sums_mul_shift hr u _ _ |
| 87 | have hv : Summable (fun y => F (y-Δ)) := by simpa [comp_def,sub_eq_add_neg] using ((Equiv.addRight (-Δ)).summable_iff (f:=F)).2 hF |
| 88 | rw [hv.tsum_sub (sums_mul_shift hr ..)]; congr 1 |
| 89 | simpa [sub_eq_add_neg,F] using ((Equiv.addRight (-Δ)).tsum_eq F) |
| 90 | |
| 91 | lemma read_row (P : Row α β) (a : Option Axis) (u : Co n β → ℝ) (hp : P.safe) (x b) : |
| 92 | (P.acts n *ᵥ (fun v : Co n β => Iteration.read a (fun z : Site n => u (z,v.2)) v.1)) (x,b) = |
| 93 | Iteration.read a (fun z : Site n => (P.acts n *ᵥ u) (z,b)) x := by |
| 94 | cases a with |
| 95 | | none => rfl |
| 96 | | some d => |
| 97 | change _ = (P.acts n *ᵥ u) (x+step d,b) - (P.acts n *ᵥ u) (x,b) |
| 98 | rw [output_row P _ hp,output_row P u hp,output_row P u hp,← sum_sub_distrib]; apply sum_congr rfl; intro j _ |
| 99 | simp only [Iteration.read,Option.elim,grad, mul_sub,add_right_comm x] |
| 100 | exact (sums_mul_shift hp u b _).tsum_sub (sums_mul_shift hp u b x) |
| 101 | |
| 102 | /-- Fine gradient columns need not be differential quotients. -/ |
| 103 | def psi (P Q : Bed) (T : Towers L) (a : Option Axis) : Cross L (TypeFace 2) (TypeFace 2) := |
| 104 | composeRows (fineCompose P.dual_diag (moving T.T a)) Q.diagonal |
| 105 | |
| 106 | def psiPrice (Ω Ω' : ℝ) := |
| 107 | (Fintype.card (TypeFace 2):ℝ) * (((Fintype.card (TypeFace 2):ℝ)*(Ω*Ω))*Ω') |
| 108 | |
| 109 | def raised (a : Option Axis) : ℕ := a.elim 0 (fun _ => 1) |
| 110 | |
| 111 | /-- A precise extra assumption about the unmodified linear-data column at |
| 112 | harmonic input. Swapping channels at nonzero field is not part of this. -/ |
| 113 | def Harmonic (T : Towers L) := ∀ (r s : Site L) (b c : TypeFace 2), |
| 114 | (∑' z, T.T (r,b) c z) = ∑' z, T.T (s,b) c z |
| 115 | |
| 116 | def Cancels (ψ : Option Axis → Cross L (TypeFace 2) (TypeFace 2)) := ∀ i r b, |
| 117 | HasSum (fun z => ψ (some i) r b z) 0 |
| 118 | |
| 119 | section curvature |
| 120 | variable {P Q : Bed} {η Ω Ω' : ℝ} (hη : 0 < η) (hp : P.dual_diag.strip η Ω) (hq : Q.diagonal.strip η Ω') |
| 121 | {K : ℕ} {T : Towers L} (hk : 1 ≤ K) (ht : T.Deep η Ω K) |
| 122 | |
| 123 | include hk ht in |
| 124 | private lemma moving_strip (a : Option Axis) : |
| 125 | (moving T.T a).strip η (Ω/(L.val:ℝ)^(2+raised a)) := by |
| 126 | cases a with |
| 127 | | none => exact (ht.2.2.2 [] (Nat.zero_le _)).2 |
| 128 | | some d => exact (ht.2.2.2 [d] hk).2 |
| 129 | include hη hp hq ht hk |
| 130 | lemma psi_strip (a : Option Axis) : (psi P Q T a).strip η (psiPrice Ω Ω' / (L.val:ℝ)^(2+raised a)) := by |
| 131 | unfold psi |
| 132 | convert strip_compose hη.le (strip_fine hη.le hp (moving_strip hk ht a)) hq using 1 |
| 133 | unfold psiPrice; ring |
| 134 | |
| 135 | variable {c f : Side} (exactSize : f.val = c.val * L.val) |
| 136 | local notation "g" => (Ratio.mk (c:=c) (f:=f) L exactSize) |
| 137 | include exactSize |
| 138 | lemma psi_matrix (a : Option Axis) : installed g (psi P Q T a) = |
| 139 | (P.dual_diag.acts f * installed g (moving T.T a)) * Q.diagonal.acts c := by |
| 140 | unfold psi |
| 141 | rw [installed_compose g hη.le (strip_fine hη.le hp (moving_strip hk ht a)) hq, |
| 142 | installed_fine g hη.le hp (moving_strip hk ht a)] |
| 143 | lemma psi_read (hg : Odd L.val) (a : Option Axis) (v : Co c (TypeFace 2) → ℝ) (x b) : |
| 144 | (installed g (psi P Q T a) *ᵥ v) (x,b) = Iteration.read a (fun z => (installed g (psi P Q T none) *ᵥ v) (z,b)) x := by |
| 145 | simp_rw [psi_matrix hη hp hq hk ht exactSize, ← mulVec_mulVec] |
| 146 | let u := Q.diagonal.acts c *ᵥ v |
| 147 | have hr := fun a => Row.rights _ _ (moving_strip hk ht a) hη.le |
| 148 | change (P.dual_diag.acts f *ᵥ (installed g (moving T.T a) *ᵥ u)) (x,b) = _ |
| 149 | rw [show installed g (moving T.T a) *ᵥ u = fun w => Iteration.read a (fun z => (installed g T.T *ᵥ u) (z,w.2)) w.1 from |
| 150 | funext (fun w => forward_act g a T.T u (hr none) (hr a) hg w.1 w.2)] |
| 151 | exact read_row _ a _ (Row.rights _ _ hp hη.le) x b |
| 152 | |
| 153 | lemma psi_curl (hi : P.diagonal.acts f * P.dual_diag.acts f = 1) |
| 154 | (hd : installed g T.T * Q.diagonal.acts c * d 1 c = P.diagonal.acts f * d 1 f * installed g T.A0) : |
| 155 | installed g (psi P Q T none) * d 1 c = d 1 f * installed g T.A0 := by |
| 156 | have he := congr_arg (P.dual_diag.acts f * ·) hd |
| 157 | simpa only [psi_matrix hη hp hq hk ht exactSize, moving,Option.elim,← Matrix.mul_assoc, |
| 158 | mul_eq_one_comm.mp hi, Matrix.one_mul] using he |
| 159 | omit exactSize |
| 160 | include ht hk hη hp hq |
| 161 | lemma psi_cancels (hg : Odd L.val) (hT : Harmonic T) : Cancels (psi P Q T) := by |
| 162 | classical |
| 163 | letI : Subsingleton (Site (1:Side)) := by change Subsingleton (Axis → ZMod 1); infer_instance |
| 164 | have he : L.val = (1:Side).val * L.val := (one_mul _).symm |
| 165 | let G0 := Ratio.mk (f:=L) (c:=1) L he |
| 166 | rintro d ⟨r,b⟩ j |
| 167 | let v : Co (1:Side) (TypeFace 2) → ℝ := fun x => if x.2=j then 1 else 0 |
| 168 | let u := Q.diagonal.acts (1:Side) *ᵥ v |
| 169 | let x := G0.assemble (0,r) |
| 170 | have hp' := psi_strip hη hp hq hk ht (some d) |
| 171 | have h := (psi_read hη hp hq hk ht he hg (some d) v x b).symm |
| 172 | change grad d (fun z => (installed G0 (psi P Q T none) *ᵥ v) (z,b)) x = (installed G0 (psi P Q T (some d)) *ᵥ v) (x,b) at h |
| 173 | have hs : T.T.safe := Row.rights η _ (moving_strip hk ht none) hη.le |
| 174 | have hc (z y : Site L) (p : TypeFace 2) : (installed G0 T.T *ᵥ u) (z,p)=(installed G0 T.T *ᵥ u) (y,p) := by |
| 175 | rw [output_cross G0 T.T u hs,output_cross G0 T.T u hs]; apply sum_congr rfl; intro e _ |
| 176 | have he (x : Site L) (s : Cover) : G0.parent x + wrap _ s = 0 := Subsingleton.elim (α:=Site (1:Side)) .. |
| 177 | simp_rw [he,tsum_mul_right]; rw [hT _ (G0.residue y)] |
| 178 | have hx (z : Site L) : (installed G0 (psi P Q T none) *ᵥ v) (z,b) = (P.dual_diag.acts L *ᵥ (installed G0 T.T *ᵥ u)) (x,b) := by |
| 179 | rw [psi_matrix hη hp hq hk ht he, ← mulVec_mulVec, ← mulVec_mulVec] |
| 180 | have h' := Row.rights _ _ hp hη.le |
| 181 | rw [output_row _ _ h',output_row _ _ h']; apply sum_congr rfl; intro k _ |
| 182 | exact tsum_congr fun z' => congr_arg (_ * ·) (hc _ _ _) |
| 183 | dsimp only [grad] at h; simp only [hx,sub_self, output_cross G0 _ _ (Row.rights _ _ hp' hη.le), x,Ratio.assemble_res, |
| 184 | v,mul_ite,mul_one,mul_zero] at h |
| 185 | convert! ((hp' (r,b) j).summable hη.le).hasSum using 1 |
| 186 | have he (k : TypeFace 2) : (fun z => if k = j then psi P Q T (some d) (r,b) k z else 0) = |
| 187 | (if k = j then psi P Q T (some d) (r,b) j else fun _ : Cover => (0:ℝ)) := by by_cases e : k=j <;> simp [e] |
| 188 | simp_rw [he] at h |
| 189 | simpa only [apply_ite (fun p : Cover → ℝ => ∑' i, p i), tsum_zero,Finset.sum_ite_eq',Finset.mem_univ,if_true] using h |
| 190 | end curvature |
| 191 | end YM.Extra.Iteration |