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.Columns |
| 2 | import YM.Work.B17 |
| 3 | import YM.Work.G04 |
| 4 | |
| 5 | /-! |
| 6 | # Coarse terms from a fine curvature tensor through its first nonzero degree |
| 7 | |
| 8 | Whole-path placement and quantitative absolute bounds. Shift through true |
| 9 | residues; when the input is a two-difference pattern, we require a separate |
| 10 | zero-fiber receipt for the used columns in checking the output loop jets. |
| 11 | No identification of higher nonlinear jets by linear curl substitution here. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extra.Iteration.Placement |
| 16 | open Lattice Wilson RG Exterior Precision Bloch Matrix Laurent Finset Work.F08 Function |
| 17 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 18 | variable {L c f : Side} {G : Gauge} {ι : Type*} {k : ℕ} |
| 19 | |
| 20 | abbrev Columns (L : Side) := Option Axis → Cross L (TypeFace 2) (TypeFace 2) |
| 21 | abbrev Address (k : ℕ) := (Fin k → PlaqAxes) × (Fin k → Cover) |
| 22 | |
| 23 | def entry (ψ : Columns L) (a : Pattern G k) (r : Site L) (b : Fin k → PlaqAxes) (i : Fin k) := |
| 24 | let s := a.atom.leg i |
| 25 | ψ (a.op i) (arrives r s.offset,plaquette s.plaq) (plaquette (b i)) |
| 26 | |
| 27 | def reach (a : Pattern G k) (r : Site L) (y : Fin k → Cover) i := carry r (a.atom.leg i).offset + y i |
| 28 | |
| 29 | def term (ψ : Columns L) (a : Pattern G k) (r : Site L) (z : Address k) := |
| 30 | relocate a.atom (∏ i, entry ψ a r z.1 i (z.2 i)) (reach a r z.2) z.1 |
| 31 | |
| 32 | lemma term_symm (ψ : Columns L) (a : Pattern G k) (r z) (ha : a.atom.Invariant) : |
| 33 | (term ψ a r z).Invariant := relocated_symm a.atom ha _ _ _ |
| 34 | |
| 35 | private lemma length_weight (ψ : Columns L) (a : Pattern G k) (r z) {η σ : ℝ} (he : 0 ≤ η) (hs : η ≤ σ*L.val) : |
| 36 | η * (term ψ a r z).length ≤ σ * a.atom.length + 8*η*k + ∑ i, η*Laurent.size (z.2 i) := by |
| 37 | have hL := side_pos L |
| 38 | have hσ : 0 ≤ σ := nonneg_of_mul_nonneg_left (he.trans hs) hL |
| 39 | rw [term,relocated_length,Nat.cast_add,Nat.cast_sum,mul_add]; push_cast |
| 40 | unfold Atom.length; rw [Nat.cast_sum, mul_sum,mul_sum]; unfold reach |
| 41 | have hi (i : Fin k) : (η* (Laurent.size (carry r (a.atom.leg i).offset + z.2 i):ℝ)) ≤ |
| 42 | σ*(a.atom.leg i).length + 4*η + η * Laurent.size (z.2 i) := by |
| 43 | have hx := offset_size (a.atom.leg i) |
| 44 | have hf : (Laurent.size (a.atom.leg i).offset:ℝ) ≤ (a.atom.leg i).length := by |
| 45 | exact_mod_cast hx.trans (Nat.le_add_right _ 4) |
| 46 | calc |
| 47 | _ ≤ η * ((Laurent.size (carry r (a.atom.leg i).offset) : ℝ) + Laurent.size (z.2 i)) := by |
| 48 | gcongr; exact_mod_cast Laurent.size_add _ _ |
| 49 | _ ≤ η * ((Laurent.size (a.atom.leg i).offset / (L.val:ℝ)+4) + Laurent.size (z.2 i)) := by gcongr; exact carry_bound .. |
| 50 | _ = (η/L.val) * Laurent.size (a.atom.leg i).offset + 4*η + η * Laurent.size (z.2 i) := by ring |
| 51 | _ ≤ _ := by gcongr; exact (div_le_iff₀ hL).2 hs |
| 52 | have hl := sum_le_sum fun i (_:i∈univ) => hi i |
| 53 | rw [sum_add_distrib,sum_add_distrib,sum_const,card_univ,Fintype.card_fin, nsmul_eq_mul] at hl |
| 54 | linarith |
| 55 | |
| 56 | def wallet (η : ℝ) (k : ℕ) (A : ℝ) := Real.exp (8*η*k)*(Fintype.card PlaqAxes:ℝ)^k*A^k |
| 57 | lemma wallet_nonneg (η k) {A : ℝ} (hA : 0 ≤ A) : 0 ≤ wallet η k A := by unfold wallet; positivity |
| 58 | |
| 59 | lemma term_price {ψ : Columns L} (a : Pattern G k) (r : Site L) {A η σ : ℝ} (hA : 0 ≤ A) |
| 60 | (he : 0 ≤ η) (hs : η ≤ σ*L.val) (h : ∀ i, (ψ (a.op i)).strip η A) : |
| 61 | SumBudget (fun z => (term ψ a r z).budget η) (wallet η k A * a.atom.budget σ) := by |
| 62 | let u := Real.exp (8*η*k) * a.atom.budget σ |
| 63 | have hu : 0 ≤ u := by unfold u Atom.budget Atom.magnitude; positivity |
| 64 | have hw (b : Fin k → PlaqAxes) : SumBudget (fun y : Fin k → Cover => (term ψ a r (b,y)).budget η) (u*A^k) := by |
| 65 | have ht := Cost.pi (fun i => h i (arrives r (a.atom.leg i).offset,plaquette (a.atom.leg i).plaq) (plaquette (b i))) |
| 66 | rw [prod_const,card_univ,Fintype.card_fin] at ht |
| 67 | refine Cost.mono (Cost.scale ht u hu) (fun i => by unfold Atom.budget Atom.magnitude; positivity) ?_ |
| 68 | intro y |
| 69 | simp_rw [prod_mul_distrib, ← Real.exp_sum, Real.norm_eq_abs,show ∀ i, ψ (a.op i) (arrives r (a.atom.leg i).offset, plaquette (a.atom.leg i).plaq) |
| 70 | (plaquette (b i)) = entry ψ a r b i from fun _ => rfl, ← Finset.abs_prod] |
| 71 | have hm : (term ψ a r (b,y)).magnitude = |∏ i,entry ψ a r b i (y i)| * a.atom.magnitude := relocated_coeff .. |
| 72 | unfold u Atom.budget; rw [hm] |
| 73 | have hp := Real.exp_monotone (length_weight ψ a r (b,y) he hs) |
| 74 | rw [Real.exp_add,Real.exp_add] at hp |
| 75 | refine (mul_le_mul_of_nonneg_left hp (by unfold Atom.magnitude; positivity : (0:ℝ) ≤ |∏ i, entry ψ a r b i (y i)| * a.atom.magnitude)).trans_eq ?_ |
| 76 | ring |
| 77 | have hx := Cost.product (F:=fun z => (term ψ a r z).budget η) (Cost.finite (α:=Fin k → PlaqAxes) (u*A^k) (by positivity)) hw |
| 78 | convert hx using 1 |
| 79 | unfold wallet u; rw [Fintype.card_fun,Fintype.card_fin,Nat.cast_pow]; ring |
| 80 | |
| 81 | def book (ψ : Columns L) (E : ι → Pattern G k) (p : ι × Site L × Address k) := term ψ (E p.1) p.2.1 p.2.2 |
| 82 | |
| 83 | lemma book_symm (ψ : Columns L) (E : ι → Pattern G k) (h : ∀ i, (E i).atom.Invariant) : SymmetricAtoms (book ψ E) := |
| 84 | fun p => term_symm ψ (E p.1) _ _ (h p.1) |
| 85 | |
| 86 | lemma book_price {ψ : Columns L} (E : ι → Pattern G k) {A C η σ : ℝ} (hA : 0 ≤ A) |
| 87 | (he : 0 ≤ η) (hs : η ≤ σ*L.val) (q : ℕ) (hq : 4 ≤ q*k) |
| 88 | (h : ∀ p i, (ψ ((E p).op i)).strip η (A/(L.val:ℝ)^q)) (hE : Charged (fun i => (E i).atom) σ C) : |
| 89 | Charged (book ψ E) η (wallet η k A / (L.val:ℝ)^(q*k-4) * C) := by |
| 90 | have hL := side_pos L |
| 91 | let v := wallet η k (A/(L.val:ℝ)^q) |
| 92 | have hv : 0 ≤ v := wallet_nonneg _ _ (by positivity) |
| 93 | have hv' : (L.val:ℝ)^4 * v = wallet η k A / (L.val:ℝ)^(q*k-4) := by |
| 94 | have hm : (L.val:ℝ)^ (q*k) = (L.val:ℝ)^(q*k-4)*L.val^(4:ℕ) := by rw [← pow_add, Nat.sub_add_cancel hq] |
| 95 | unfold v wallet; rw [div_pow,← pow_mul,hm]; field_simp |
| 96 | have hx (i : ι) : SumBudget (fun p : Site L × Address k => (book ψ E (i,p)).budget η) |
| 97 | ((L.val:ℝ)^4*v*((E i).atom.budget σ)) := by |
| 98 | rw [mul_assoc] |
| 99 | have ho := Cost.finite (α:=Site L) (v*((E i).atom.budget σ)) (by unfold Atom.budget Atom.magnitude; positivity) |
| 100 | rw [site_card,Nat.cast_pow] at ho |
| 101 | exact Cost.product ho (fun r => term_price (E i) r (A:=A/(L.val:ℝ)^q) (by positivity) he hs (h i)) |
| 102 | rw [Charged,← hv']; exact Cost.product (Cost.scale hE ((L.val:ℝ)^4*v) (by positivity)) hx |
| 103 | |
| 104 | /-- Exact linear-flux equality; counts all colors in `entry` products. -/ |
| 105 | def Substitution (g : Ratio c f) (ψ : Columns g.count) (F : Flux G f) (V : Flux G c) := ∀ i b j x, |
| 106 | Iteration.read i (F b j) x = ∑ p : PlaqAxes, ∑' y, ψ i (g.residue x,plaquette b) (plaquette p) y * V p j (g.parent x+wrap c y) |
| 107 | |
| 108 | section transport |
| 109 | variable {g : Ratio c f} {ψ : Columns g.count} {F : Flux G f} {V : Flux G c} (hd : Substitution g ψ F V) |
| 110 | (a : Pattern G k) (r : Site g.count) (x : Site c) {η σ A : ℝ} (he : 0 < η) (hA : 0 ≤ A) (h : ∀ i, (ψ (a.op i)).strip η A) |
| 111 | |
| 112 | private def value (ψ : Columns L) (V : Flux G c) (a : Pattern G k) (r : Site L) (x : Site c) |
| 113 | (d : Fin k → G.ColorIndex) (b : Fin k → PlaqAxes) (i : Fin k) (y : Cover) := |
| 114 | entry ψ a r b i y * V (b i) (d i) (x+wrap c (carry r (a.atom.leg i).offset+y)) |
| 115 | |
| 116 | include he h in |
| 117 | private lemma value_abs (d b i) : Summable (fun y => |value ψ V a r x d b i y|) := by |
| 118 | have hv y : |V (b i) (d i) y| ≤ ∑ v,|V (b i) (d i) v| := single_le_sum (f:=fun v => |V (b i) (d i) v|) |
| 119 | (fun _ _ => abs_nonneg _) (mem_univ y) |
| 120 | unfold value; simp_rw [abs_mul]; exact ((Row.rights _ _ (h i) he.le _ (plaquette (b i))).mul_right _).of_nonneg_of_le |
| 121 | (fun _ => by positivity) (fun y => mul_le_mul_of_nonneg_left (hv _) (abs_nonneg (entry ψ a r b i y))) |
| 122 | |
| 123 | include he hA h hd in |
| 124 | private lemma expanded (z : Site f) (e : z = g.assemble (x,r)) : a.sample F z = ∑' u : Address k, |
| 125 | (plain (term ψ a r u)).sample V x := by |
| 126 | subst z |
| 127 | let P := value ψ V a r x |
| 128 | have hi (d : Fin k → G.ColorIndex) (i : Fin k) : Iteration.read (a.op i) (F (a.atom.leg i).plaq (d i)) |
| 129 | (g.assemble (x,r) + wrap f (a.atom.leg i).offset) = ∑ b : PlaqAxes, ∑' y, P d (fun _ => b) i y := by |
| 130 | rw [hd]; simp_rw [moves_parent,moves_residue,Ratio.assemble_res,Ratio.assemble_parent,P,value,map_add,← add_assoc]; rfl |
| 131 | have hp d b := Cost.tsum_pi (fun i => value_abs (V:=V) a r x he h d b i) |
| 132 | have hT : Charged (term ψ a r) η _ := term_price a r hA he.le (show η ≤ η*g.count.val by |
| 133 | exact le_mul_of_one_le_right he.le (by exact_mod_cast g.count.pos)) h |
| 134 | have hs := sample_summable (plain ∘ term ψ a r) V he.le hT x |
| 135 | change _ = ∑' u, ((plain ∘ term ψ a r) u).sample V x |
| 136 | rw [hs.tsum_prod,tsum_fintype]; conv_lhs => simp only [Pattern.sample,hi,Fintype.prod_sum] |
| 137 | have hpart (b d) : Summable (fun y : Fin k → Cover => a.atom.coeff d * ∏ i, P d b i (y i)) := (hp d b).1.of_abs.mul_left _ |
| 138 | have hx b y : (plain (term ψ a r (b,y))).sample V x = ∑ d, a.atom.coeff d * ∏ i,P d b i (y i) := by |
| 139 | unfold Pattern.sample plain term relocate; simp only [slot_plaq,slot_offset, Iteration.read,Option.elim,reach,P,value] |
| 140 | simp only [prod_mul_distrib]; apply sum_congr rfl; intros; ring |
| 141 | change _ = ∑ b, ∑' y, (plain (term ψ a r (b,y))).sample V x |
| 142 | simp_rw [hx,Summable.tsum_finsetSum (fun d _ => hpart _ d),tsum_mul_left]; rw [Finset.sum_comm]; apply sum_congr rfl |
| 143 | intro d _; rw [mul_sum]; apply sum_congr rfl; intro b _; congr 1; exact (hp d b).2.symm |
| 144 | |
| 145 | include he hd hA |
| 146 | lemma book_eq (E : ι → Pattern G k) (hψ : ∀ u i, (ψ ((E u).op i)).strip η A) |
| 147 | (hbook : Summable (fun u : ι × Site g.count × Address k => ∑ y, (plain (book ψ E u)).sample V y)) : |
| 148 | total (plain ∘ book ψ E) V = total E F := by |
| 149 | unfold total; rw [show ∑' e, ∑ x : Site c, ((plain ∘ book ψ E) e).sample V x = _ from hbook.tsum_prod] |
| 150 | apply tsum_congr; intro u |
| 151 | rw [(hbook.prod_factor u).tsum_prod, tsum_fintype, ← Equiv.sum_comp g.splitSites.symm (fun z => (E u).sample F z), |
| 152 | Fintype.sum_prod_type, Finset.sum_comm (s:=univ) (f:=fun x r => (E u).sample F _)] |
| 153 | refine sum_congr rfl fun r _ => ?_ |
| 154 | have hT : Charged (term ψ (E u) r) η _ := term_price (E u) r hA he.le (show η ≤ η*g.count.val by |
| 155 | exact le_mul_of_one_le_right he.le (by exact_mod_cast g.count.pos)) (hψ u) |
| 156 | change (∑' i, ∑ x, ((plain ∘ term ψ (E u) r) i).sample V x) = _ |
| 157 | rw [Summable.tsum_finsetSum (fun x _ => sample_summable (plain ∘ term ψ (E u) r) V he.le hT x)] |
| 158 | exact sum_congr rfl fun x _ => (expanded hd (E u) r x he hA (hψ u) _ rfl).symm |
| 159 | end transport |
| 160 | |
| 161 | |
| 162 | lemma component_abs (x : Cover) (l : Axis) : |(x l:ℝ)| ≤ Laurent.size x := by |
| 163 | rw [← Int.cast_abs, ← Int.natCast_natAbs, Int.cast_natCast]; exact_mod_cast Finset.single_le_sum (fun i _ => Nat.zero_le ((x i).natAbs)) (mem_univ l) |
| 164 | |
| 165 | lemma moments_summable {a : ι → Atom G 2} {σ C : ℝ} (hs : 0 < σ) (h : Charged a σ C) (i b) : |
| 166 | Summable (fun p => charge (a p) i b) ∧ ∀ l : Axis, Summable (fun p => charge (a p) i b * delta (a p) l) := by |
| 167 | have hb := h.absolute hs.le |
| 168 | have hc (p) : |charge (a p) i b| ≤ (a p).magnitude := by unfold charge; split; exact coeff_le ..; simp [Atom.magnitude,sum_nonneg] |
| 169 | refine ⟨Summable.of_norm_bounded hb hc,fun l => ?_⟩ |
| 170 | have hm := (h.moments 1 hs).2.1; simp only [pow_one,sub_self,Atom.budget,zero_mul,Real.exp_zero,mul_one] at hm |
| 171 | refine Summable.of_norm_bounded hm fun p => ?_ |
| 172 | rw [norm_mul,mul_comm,Real.norm_eq_abs, Real.norm_eq_abs] |
| 173 | exact mul_le_mul ((component_abs ..).trans (le_trans (by exact_mod_cast delta_size (a p)) |
| 174 | (le_add_of_nonneg_left zero_le_one))) (hc p) (abs_nonneg _) (by positivity) |
| 175 | |
| 176 | private lemma width_moment {f : Cover → ℝ} {η A : ℝ} (he : 0 < η) (h : Width η A f) (z : Cover) (l : Axis) : |
| 177 | Summable (fun x => |f x * (z+x) l|) := by |
| 178 | have hz : Summable (fun y : Cover => |f y * y l|) := by |
| 179 | refine (h.2.1.mul_left (momentPrice 1 η)).of_nonneg_of_le (fun _ => abs_nonneg _) ?_ |
| 180 | intro y; rw [← mul_assoc, abs_mul,mul_comm,Real.norm_eq_abs]; apply mul_le_mul_of_nonneg_right _ (abs_nonneg _) |
| 181 | have he := spendMoment 1 he (Nat.cast_nonneg (Laurent.size y)) |
| 182 | rw [pow_one] at he |
| 183 | exact (component_abs y l).trans (by linarith : (Laurent.size y : ℝ) ≤ momentPrice 1 η * Real.exp (η * Laurent.size y)) |
| 184 | simp_rw [Pi.add_apply, Int.cast_add,mul_add]; exact (((h.unweighted he.le).2.1.mul_right |(z l:ℝ)|).add hz).of_nonneg_of_le |
| 185 | (fun _ => abs_nonneg _) fun y => (abs_add_le ..).trans (by rw [abs_mul, Real.norm_eq_abs]) |
| 186 | |
| 187 | lemma term_silent (a : Pattern G 2) (r : Site L) (b : Fin 2 → PlaqAxes) (hu : both a) {η A : ℝ} {ψ : Columns L} |
| 188 | (he : 0 < η) (hs : ∀ i,(ψ (a.op i)).strip η A) (hz : Cancels ψ) : Silent fun y : Fin 2 → Cover => term ψ a r (b,y) := by |
| 189 | intro i d |
| 190 | let f := entry ψ a r b |
| 191 | let z (j : Fin 2) := carry r (a.atom.leg j).offset |
| 192 | have hp (j : Fin 2) : (∑' x, f j x) = 0 := by |
| 193 | obtain ⟨w,h⟩ := Option.isSome_iff_exists.mp (hu j) |
| 194 | change (∑' x, ψ (a.op j) _ _ x) = _ |
| 195 | rw [h]; exact (hz ..).tsum_eq |
| 196 | have habs (j : Fin 2) : Summable fun y => |f j y| := Row.rights _ _ (hs j) he.le _ _ |
| 197 | let u := if b=i then a.atom.coeff d else 0 |
| 198 | have hv (y) : charge (term ψ a r (b,y)) i d = u * ∏ j, f j (y j) := by |
| 199 | change (if (fun j => b j) = i then _ else 0)=_ |
| 200 | dsimp only [term,relocate]; unfold u f; split <;> simp [mul_comm] |
| 201 | simp_rw [hv] |
| 202 | have hm := Cost.tsum_pi habs |
| 203 | constructor |
| 204 | · have h := hm.1.of_abs.hasSum.mul_left u |
| 205 | rw [hm.2] at h; simpa only [hp, Fin.prod_univ_two,mul_zero] using h |
| 206 | intro l |
| 207 | let g j x := f j x * (z j+x) l |
| 208 | have hcost (j) : Summable fun x => |g j x| := width_moment he (hs ..) .. |
| 209 | have hh (j : Fin 2) : HasSum (fun y : Fin 2 → Cover => (∏ i, f i (y i)) * (((z j + y j) l:ℤ):ℝ)) 0 := by |
| 210 | let H (i : Fin 2) := if i=j then g i else f i |
| 211 | have hb := Cost.tsum_pi (f:=H) (fun i => by unfold H; split; exact hcost i; exact habs i) |
| 212 | have heq : (fun y : Fin 2 → Cover => (∏ i, f i (y i)) * (((z j + y j) l:ℤ):ℝ)) = fun y => ∏ i, H i (y i) := by |
| 213 | funext y; fin_cases j <;> simp [H,Fin.prod_univ_two, g] <;> ring |
| 214 | rw [heq]; convert! hb.1.of_abs.hasSum using 1; rw [hb.2,Fin.prod_univ_two]; fin_cases j <;> simp [H,hp] |
| 215 | have hl := ((hh 1).sub (hh 0)).mul_left u |
| 216 | simp_rw [delta,term,relocate,slot_offset, Pi.sub_apply,Int.cast_sub,reach] |
| 217 | convert! hl using 1 |
| 218 | · funext y; unfold z; ring |
| 219 | simp |
| 220 | |
| 221 | lemma book_silent (E : ι → Pattern G 2) (hu : ∀ p,both (E p)) {η A C : ℝ} {ψ : Columns L} |
| 222 | (he : 0 < η) (hs : ∀ p i,(ψ ((E p).op i)).strip η A) (hz : Cancels ψ) (h : Charged (book ψ E) η C) : |
| 223 | Silent (book ψ E) := by |
| 224 | intro i b |
| 225 | have hb := moments_summable he h i b |
| 226 | have heq (f : ι × Site L × Address 2 → ℝ) (hf : Summable f) |
| 227 | (hq : ∀ p r k, HasSum (fun y => f (p,r,k,y)) 0) : HasSum f 0 := by |
| 228 | convert! hf.hasSum using 1; rw [hf.tsum_prod]; simp_rw [(hf.prod_factor _).tsum_prod, |
| 229 | ((hf.prod_factor _).prod_factor _).tsum_prod,(hq ..).tsum_eq]; simp |
| 230 | have h p r k := term_silent (E p) r k (hu p) he (hs p) hz i b |
| 231 | exact ⟨heq _ hb.1 (fun p r k => (h p r k).1),fun l => heq _ (hb.2 l) (fun p r k => (h p r k).2 l)⟩ |
| 232 | end YM.Extra.Iteration.Placement |