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 | |
| 3 | /-! |
| 4 | # Real-space two-difference lift of a loop input |
| 5 | |
| 6 | Only an identity on summed **linear curvatures** (tested on a whole |
| 7 | period, not after indicators). No complex division by momentum. Pays |
| 8 | one width shrink and a true-length squared moment even for winding |
| 9 | labels. Used once within a step (on the fine input width). |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Extra.Iteration.Lift |
| 14 | open Lattice Wilson RG Function Finset |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 16 | variable {G : Gauge} {n : Side} |
| 17 | |
| 18 | abbrev Piece (w : Walk) := Fin w.length |
| 19 | |
| 20 | def axis (w : Walk) (i : Piece w) := (w.get i).dir |
| 21 | def sign (w : Walk) (i : Piece w) : ℤ := if (w.get i).neg then -1 else 1 |
| 22 | def floor (z : Cover) (w : Walk) (i : Piece w) := ((w.get i).used (stop z (w.take i))).1 |
| 23 | |
| 24 | lemma floor_size (z : Cover) (w : Walk) (i : Piece w) : Laurent.size (floor z w i) ≤ Laurent.size z + w.length := by |
| 25 | let x := stop z (w.take i) |
| 26 | have he : Laurent.size x ≤ Laurent.size z + i.val := by simpa [x,i.isLt.le] using end_size z (w.take i) |
| 27 | unfold floor Step.used; split |
| 28 | · change Laurent.size (x-step _) ≤ _ |
| 29 | rw [sub_eq_add_neg]; apply (Laurent.size_add _ _).trans |
| 30 | rw [Laurent.size_neg]; have ht := step_size (posDir (axis w i)); simp only [Step.vec_pos,axis] at ht; have := i.isLt; omega |
| 31 | exact he.trans (Nat.add_le_add_left i.isLt.le _) |
| 32 | |
| 33 | lemma telescopes (f : Site n → ℝ) (x : Site n) (z : Cover) (w : Walk) : |
| 34 | f (x+wrap n (stop z w)) - f (x+wrap n z) = ∑ i : Piece w, (sign w i : ℝ) * grad (axis w i) f (x+wrap n (floor z w i)) := by |
| 35 | induction w generalizing z with |
| 36 | | nil => simp [Piece,stop] |
| 37 | | cons d w ih => |
| 38 | change _ = ∑ i : Fin (w.length+1), (sign (d::w) i:ℝ)*grad (axis (d::w) i) f (x+wrap n (floor z (d::w) i)) |
| 39 | rw [show stop z (d::w)=stop (z+d.vec) w from rfl, Fin.sum_univ_succ (n:=w.length)] |
| 40 | have he (i : Piece w) : floor z (d::w) i.succ = floor (z+d.vec) w i := rfl |
| 41 | simp_rw [he]; have hh := ih (z+d.vec) |
| 42 | change _ = (sign (d::w) 0:ℝ) * grad d.dir f (x+wrap n (floor z (d::w) 0)) + |
| 43 | ∑ i : Piece w, (sign w i:ℝ)*grad (axis w i) f (x+wrap n (floor (z+d.vec) w i)) |
| 44 | rw [← hh]; cases d with |
| 45 | | mk dir neg => |
| 46 | cases neg <;> simp [Step.vec,Step.used,sign,grad,floor,stop, add_assoc]; abel_nf |
| 47 | |
| 48 | lemma projected (l : Axis) (z : Cover) (w : Walk) : stop z w l-z l = ∑ i : Piece w, if axis w i=l then sign w i else 0 := by |
| 49 | induction w generalizing z with |
| 50 | | nil => simp [Piece,stop] |
| 51 | | cons d w ih => |
| 52 | change _ = ∑ i : Fin (w.length+1), if axis (d::w) i=l then sign (d::w) i else 0 |
| 53 | rw [Fin.sum_univ_succ (n:=w.length),stop] |
| 54 | change _ = (if d.dir=l then sign (d::w) 0 else 0) + ∑ i : Piece w, if axis w i=l then sign w i else 0 |
| 55 | rw [← ih (z+d.vec)]; by_cases he : d.dir=l <;> cases h : d.neg <;> simp [Step.vec,sign,h,he,eq_comm] <;> first | exact Ne.symm he | omega |
| 56 | |
| 57 | lemma linear_term (w : Walk) (g : Site n → ℝ) (x : Site n) : |
| 58 | ∑ l : Axis, (stop 0 w l:ℤ)*grad l g x = ∑ i : Piece w, (sign w i:ℝ)*grad (axis w i) g x := by |
| 59 | have he (l : Axis) : stop (0:Cover) w l = ∑ i : Piece w, if axis w i=l then sign w i else 0 := by simpa using projected l 0 w |
| 60 | simp_rw [he, Int.cast_sum, Int.cast_ite, Int.cast_zero,sum_mul,ite_mul,zero_mul] |
| 61 | rw [sum_comm]; simp |
| 62 | |
| 63 | lemma exchange (f g : Site n → ℝ) (y : Cover) : ∑ x, f x * g (x + wrap n y) = ∑ x, f (x + wrap n (-y)) * g x := by |
| 64 | rw [← Equiv.sum_comp (Equiv.addRight (wrap n y)) (fun x => f (x+wrap n (-y))*g x)] |
| 65 | simp |
| 66 | |
| 67 | def driver (w : Walk) (i : Piece w) := route 0 (- floor 0 w i) 1 |
| 68 | abbrev Fragment (w : Walk) := (i : Piece w) × Piece (driver w i) |
| 69 | lemma driver_length (w : Walk) (i : Piece w) : (driver w i).length ≤ w.length := by |
| 70 | rw [driver,route_length,sub_zero,Laurent.size_neg]; simpa [Laurent.size] using floor_size 0 w i |
| 71 | |
| 72 | /- Linear order divided difference on a whole opposite pair. -/ |
| 73 | def taylor (y : Cover) (f g : Site n → ℝ) := ∑ x, f x * (g (x+wrap n y)-g x-∑ l : Axis, (y l:ℤ)*grad l g x) |
| 74 | |
| 75 | def paired (w : Walk) (p : Fragment w) (f g : Site n → ℝ) (x : Site n) := |
| 76 | ((sign (driver w p.1) p.2 : ℝ) * (sign w p.1:ℝ)) * (grad (axis (driver w p.1) p.2) f |
| 77 | (x+wrap n (floor 0 (driver w p.1) p.2)) * grad (axis w p.1) g x) |
| 78 | |
| 79 | lemma taylor_lift (w : Walk) (f g : Site n → ℝ) : taylor (stop 0 w) f g = ∑ p : Fragment w, ∑ x, paired w p f g x := by |
| 80 | unfold taylor |
| 81 | have hd (x : Site n) : _ - g x = _ := (show g (x+wrap n (stop 0 w))-g x = _ by simpa using telescopes g x 0 w) |
| 82 | simp_rw [hd,linear_term, ← sum_sub_distrib, mul_sum] |
| 83 | rw [sum_comm, Fintype.sum_sigma]; apply sum_congr rfl; intro i _ |
| 84 | let y := floor 0 w i; let a := axis w i; let s := sign w i; let v := driver w i |
| 85 | change (∑ x, f x*((s:ℝ)*grad a g (x+wrap n y)-(s:ℝ)*grad a g x)) = ∑ j : Piece v, ∑ x, paired w ⟨i,j⟩ f g x |
| 86 | have he : stop (0:Cover) v=-y := route_end .. |
| 87 | have hv (x : Site n) := telescopes f x 0 v |
| 88 | simp only [he,map_zero,add_zero] at hv |
| 89 | calc |
| 90 | _ = s * ((∑ x, f x * grad a g (x + wrap n y)) - ∑ x, f x * grad a g x) := by |
| 91 | rw [← sum_sub_distrib, mul_sum]; apply sum_congr rfl; intros; ring |
| 92 | _ = s * ∑ x,(f (x+ wrap n (-y))-f x)*grad a g x := by rw [exchange]; simp_rw [sub_mul,sum_sub_distrib] |
| 93 | _ = _ := by |
| 94 | rw [sum_comm,mul_sum]; apply sum_congr rfl; intro x _ |
| 95 | rw [hv x,sum_mul,mul_sum]; apply sum_congr rfl; intro j _ |
| 96 | unfold paired; dsimp only; change _ = ((sign v j:ℝ)*(s:ℝ)) * (_ * _); ring |
| 97 | |
| 98 | def road (a : Atom G 2) := route 0 (delta a) 1 |
| 99 | abbrev Pieces (a : Atom G 2) := Fragment (road a) |
| 100 | lemma end_road (a : Atom G 2) : stop 0 (road a) = delta a := route_end .. |
| 101 | lemma length_road (a : Atom G 2) : (road a).length + 8 ≤ a.length := by |
| 102 | rw [road,route_length,sub_zero,delta,sub_eq_add_neg, Atom.length, Fin.sum_univ_two] |
| 103 | have ht := offset_size (a.leg 0); have hh := offset_size (a.leg 1) |
| 104 | apply (Nat.add_le_add_right (Laurent.size_add _ _) _).trans |
| 105 | rw [Laurent.size_neg]; unfold Slot.length; omega |
| 106 | |
| 107 | abbrev types (a : Atom G 2) := fun i => (a.leg i).plaq |
| 108 | |
| 109 | def breakUp (a : Atom G 2) (p : Pieces a) : Pattern G 2 := |
| 110 | let w := road a |
| 111 | let v := driver w p.1 |
| 112 | ⟨![some (axis v p.2),some (axis w p.1)], relocate a ((sign v p.2:ℝ)*sign w p.1) ![floor 0 v p.2,0] (types a)⟩ |
| 113 | |
| 114 | lemma break_both (a : Atom G 2) (p : Pieces a) : both (breakUp a p) := by |
| 115 | intro i; fin_cases i <;> rfl |
| 116 | lemma break_symm (a : Atom G 2) (h : a.Invariant) (p : Pieces a) : (breakUp a p).atom.Invariant := relocated_symm a h _ _ _ |
| 117 | lemma break_length (a : Atom G 2) (p : Pieces a) : (breakUp a p).atom.length ≤ a.length := by |
| 118 | dsimp only [breakUp]; rw [relocated_length, Fin.sum_univ_two] |
| 119 | have he := length_road a |
| 120 | have hl := driver_length (road a) p.1; have hp := floor_size 0 (driver (road a) p.1) p.2 |
| 121 | have h0 : Laurent.size (0:Cover) = 0 := by simp [Laurent.size] |
| 122 | rw [h0] at hp; simp only [Matrix.cons_val_one, Matrix.cons_val_zero, Matrix.cons_val_fin_one,h0]; omega |
| 123 | lemma break_magnitude (a : Atom G 2) (p : Pieces a) : (breakUp a p).atom.magnitude = a.magnitude := by |
| 124 | have he (w : Walk) (i : Piece w) : |(sign w i:ℝ)| = 1 := by cases h : w[i.val].neg <;> simp [sign,h] |
| 125 | rw [breakUp, relocated_coeff, abs_mul, he,he]; simp |
| 126 | |
| 127 | lemma break_cost (a : Atom G 2) (η : ℝ) (he : 0 ≤ η) : |
| 128 | SumBudget (fun i => ((breakUp a i).atom).budget η) ((1+(a.length:ℝ))^2 * a.budget η) := by |
| 129 | classical |
| 130 | let f := fun i => ((breakUp a i).atom).budget η |
| 131 | have h1 i : 0 ≤ f i := by unfold f Atom.budget Atom.magnitude; positivity |
| 132 | have h' : 0 ≤ a.budget η := by unfold Atom.budget Atom.magnitude; positivity |
| 133 | have h2 (i) : f i ≤ a.budget η := by unfold f Atom.budget; rw [break_magnitude]; gcongr; exacts [by unfold Atom.magnitude; positivity,break_length a i] |
| 134 | refine ⟨h1, (hasSum_fintype f).summable,?_⟩ |
| 135 | change ∑' i, f i ≤ _ |
| 136 | rw [tsum_fintype,Fintype.sum_sigma] |
| 137 | have ha : ((road a).length:ℝ) ≤ 1+(a.length:ℝ) := by |
| 138 | have h := length_road a |
| 139 | exact_mod_cast (show (road a).length ≤ 1+a.length by omega) |
| 140 | calc |
| 141 | _ ≤ ∑ _ : Piece (road a), ((road a).length:ℝ) * a.budget η := Finset.sum_le_sum fun i _ => by |
| 142 | have hl := driver_length (road a) i |
| 143 | apply (Finset.sum_le_sum (fun j (_: j ∈ (univ : Finset (Piece (driver (road a) i)))) => h2 ⟨i,j⟩)).trans |
| 144 | simpa using mul_le_mul_of_nonneg_right (Nat.cast_le (α:=ℝ) |>.2 hl) h' |
| 145 | _ = ((road a).length:ℝ)^2 * a.budget η := by simp; ring |
| 146 | _ ≤ _ := by gcongr |
| 147 | |
| 148 | abbrev Field (a : Atom G 2) (V : Flux G n) (b : Fin 2 → G.ColorIndex) i := V (types a i) (b i) |
| 149 | |
| 150 | def constant (a : Atom G 2) (V : Flux G n) (x : Site n) (b : Fin 2 → G.ColorIndex) := a.coeff b * (Field a V b 0 x * Field a V b 1 x) |
| 151 | |
| 152 | def slope (a : Atom G 2) (V : Flux G n) (x : Site n) (b : Fin 2 → G.ColorIndex) (l : Axis) := a.coeff b * delta a l * |
| 153 | (Field a V b 0 x * grad l (Field a V b 1) x) |
| 154 | |
| 155 | lemma break_eq (a : Atom G 2) (p : Pieces a) (V : Flux G n) (x : Site n) : |
| 156 | (breakUp a p).sample V x = ∑ b, a.coeff b * paired (road a) p (Field a V b 0) (Field a V b 1) x := by |
| 157 | simp only [Pattern.sample, breakUp, relocate, Fin.prod_univ_two,slot_plaq,slot_offset, Matrix.cons_val_zero, |
| 158 | Matrix.cons_val_one,Matrix.cons_val_fin_one, map_zero, add_zero]; unfold read paired |
| 159 | apply Finset.sum_congr rfl; intros; rw [mul_comm _ (a.coeff _),mul_assoc]; rfl |
| 160 | |
| 161 | lemma resolve (a : Atom G 2) (V : Flux G n) : |
| 162 | ∑ x : Site n, (plain a).sample V x = (∑ x,∑ b,constant a V x b) + (∑ x, ∑ b,∑ l,slope a V x b l) + |
| 163 | ∑ p : Pieces a, ∑ x, (breakUp a p).sample V x := by |
| 164 | simp_rw [break_eq]; conv_lhs => simp only [Pattern.sample,plain, read, Option.elim, Fin.prod_univ_two]; rw [Finset.sum_comm] |
| 165 | have hx (p : Pieces a) : ∑ x : Site n, (∑ b, a.coeff b * paired (road a) p (Field a V b 0) (Field a V b 1) x) = _ := Finset.sum_comm |
| 166 | simp_rw [hx]; rw [Finset.sum_comm (f:=fun x b => constant a V x b), Finset.sum_comm (f:=fun x b => ∑ l,slope a V x b l), |
| 167 | Finset.sum_comm (f:=fun p b => ∑ x, a.coeff b * paired _ p _ _ x),← sum_add_distrib, ← sum_add_distrib] |
| 168 | apply Finset.sum_congr rfl; intro b _ |
| 169 | let f := Field a V b 0; let g := Field a V b 1; let w := road a; let u := a.coeff b |
| 170 | have he := taylor_lift w f g; rw [end_road] at he |
| 171 | let y := (a.leg 0).offset; let z := (a.leg 1).offset |
| 172 | calc |
| 173 | ∑ x : Site n, u*(f (x+wrap n y)*g (x+wrap n z)) = ∑ x, u*(f x*g (x+wrap n (delta a))) := by |
| 174 | rw [← Equiv.sum_comp (Equiv.addRight (wrap n y)) (fun x => u*(f x*g (x+wrap n (delta a))))] |
| 175 | unfold delta y z; simp [add_assoc] |
| 176 | _ = (∑ x,constant a V x b)+(∑ x,∑ l,slope a V x b l)+ u*taylor (delta a) f g := by |
| 177 | simp_rw [taylor, mul_sum]; rw [← sum_add_distrib, ← sum_add_distrib]; apply sum_congr rfl; intro x _ |
| 178 | unfold constant slope; dsimp only [u,f,g]; simp only [mul_sub, mul_sum]; ring_nf |
| 179 | _ = _ := by rw [he, Finset.mul_sum]; simp only [Finset.mul_sum,u]; rfl |
| 180 | |
| 181 | variable {ι : Type*} {A : ι → Atom G 2} |
| 182 | |
| 183 | lemma cancel_head (h : Silent A) (V : Flux G n) (x : Site n) (b : Fin 2 → G.ColorIndex) : |
| 184 | HasSum (fun i => constant (A i) V x b) 0 := by |
| 185 | let F (t : Fin 2 → PlaqAxes) := V (t 0) (b 0) x * V (t 1) (b 1) x |
| 186 | have ht (t : Fin 2 → PlaqAxes) := ((h t b).1).mul_right (F t) |
| 187 | convert! hasSum_sum (s:=univ) (fun t _ => ht t) using 1 |
| 188 | · funext i; simp [charge,F,constant,ite_mul] |
| 189 | simp only [zero_mul,sum_const_zero] |
| 190 | lemma cancel_tail (h : Silent A) (V : Flux G n) (x : Site n) (b : Fin 2 → G.ColorIndex) (l : Axis) : |
| 191 | HasSum (fun i => slope (A i) V x b l) 0 := by |
| 192 | let F (t : Fin 2 → PlaqAxes) := V (t 0) (b 0) x * grad l (V (t 1) (b 1)) x |
| 193 | have ht (t : Fin 2 → PlaqAxes) := ((h t b).2 l).mul_right (F t) |
| 194 | convert! hasSum_sum (s:=univ) (fun t _ => ht t) using 1 |
| 195 | · funext i; simp [charge,F,slope,ite_mul] |
| 196 | simp only [zero_mul,sum_const_zero] |
| 197 | |
| 198 | def strip (A : ι → Atom G 2) (p : (i : ι) × Pieces (A i)) := breakUp (A p.1) p.2 |
| 199 | |
| 200 | lemma strip_cost {σ η C : ℝ} (h : Charged A σ C) (hp : 0 ≤ η) (he : η < σ) : |
| 201 | Charged (fun p => (strip A p).atom) η (momentPrice 2 (σ-η)*C) := by |
| 202 | have ht := h.moments 2 (sub_pos.mpr he) |
| 203 | rw [sub_sub_cancel] at ht |
| 204 | exact Cost.sigma ht fun i => break_cost _ η hp |
| 205 | |
| 206 | lemma strip_total {σ η C : ℝ} (h : Charged A σ C) (hp : 0 ≤ η) (he : η < σ) (hh : Silent A) (V : Flux G n) : |
| 207 | total (strip A) V = total (plain ∘ A) V := by |
| 208 | have hc : HasSum (fun i => ∑ x,∑ b, constant (A i) V x b) 0 := by |
| 209 | simpa using hasSum_sum (s:=univ) (fun x _ => hasSum_sum (s:=univ) (fun b _ => cancel_head hh V x b)) |
| 210 | have hs : HasSum (fun i => ∑ x,∑ b, ∑ l,slope (A i) V x b l) 0 := by |
| 211 | simpa using hasSum_sum (s:=univ) (fun x _ => hasSum_sum (s:=univ) (fun b _ => hasSum_sum (s:=univ) (fun l _ => cancel_tail hh V x b l))) |
| 212 | let F p := ∑ x, (strip A p).sample V x |
| 213 | have hf : Summable F := net_summable (strip A) V hp (strip_cost h hp he) |
| 214 | have hg := (hc.add hs).add hf.sigma.hasSum |
| 215 | change (∑' p, F p) = _; rw [hf.tsum_sigma]; rw [zero_add,zero_add] at hg |
| 216 | exact (HasSum.congr_fun hg (fun i => by rw [Function.comp_apply,resolve,tsum_fintype]; rfl)).tsum_eq.symm |
| 217 | |
| 218 | end YM.Extra.Iteration.Lift |