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.STATIONARY_UNIFORM.Array |
| 2 | import YM.Push.STATIONARY_UNIFORM.Resolvent |
| 3 | import YM.Push.STATIONARY_UNIFORM.Scatter |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Counting slope and Hessian on domains of score tensors |
| 8 | |
| 9 | `Slope` has the coordinates of the partial real derivative; same column and |
| 10 | row convention as Stationed. No assuming a counting-size derivative bound on |
| 11 | the whole extensive action w.r.t. the Pi norm. Get Lipschitz precision error |
| 12 | from cubic cost, also in positions before summing. All estimates uniform in |
| 13 | ball-size and K multiplicity inputs (pre-L when paid upstream). |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Push.Uniform |
| 18 | open Lattice Matrix Filter Function Set Metric |
| 19 | open scoped Topology ContDiff BigOperators Classical |
| 20 | |
| 21 | variable {n : Side} {ι τ : Type} [Fintype ι] [Fintype τ] {a C r ρ m : ℝ} {N K : ℕ} |
| 22 | |
| 23 | lemma combine (v : Positions ι) : ∑ i, v i • bolt i = v := by |
| 24 | funext i; rw [Finset.sum_apply, Finset.sum_eq_single i]; simp [bolt]; intro j _ hj; simp [bolt,Ne.symm hj]; simp |
| 25 | |
| 26 | lemma by_row {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (L : Positions ι →L[ℝ] E) (v : Positions ι) : |
| 27 | L v = ∑ i, v i • L (bolt i) := by |
| 28 | conv_lhs => rw [← combine v,map_sum] |
| 29 | simp_rw [map_smul] |
| 30 | |
| 31 | section Increment |
| 32 | variable {f : Positions ι → ℝ} {p x : Positions ι} {l : ι → Site n} |
| 33 | lemma tend_entry (hf : ContDiffAt ℝ ω f p) {k : ℕ} (q : Fin k → ι) : |
| 34 | ContDiffAt ℝ ω (fun z => entry f z q) p ∧ ∀ i, fderiv ℝ (fun z => entry f z q) p (bolt i)=entry f p (Matrix.vecCons i q) := by |
| 35 | let L := ContinuousMultilinearMap.apply ℝ _ ℝ (fun j => bolt (q j)) |
| 36 | let g := iteratedFDeriv ℝ k f |
| 37 | have hg : ContDiffAt ℝ ω g p := hf.iteratedFDeriv_right (by simp) |
| 38 | refine ⟨L.contDiff.contDiffAt.comp p hg,?_⟩ |
| 39 | intro i; change fderiv ℝ (L ∘ g) p _ = _ |
| 40 | rw [fderiv_comp p L.differentiableAt (hg.differentiableAt (by simp)), L.fderiv,entry,iteratedFDeriv_succ_apply_left] |
| 41 | change (fderiv ℝ g p (bolt i)) (fun j => bolt (q j)) = (fderiv ℝ g p (bolt i)) (Fin.tail (α:=fun _ : Fin (k+1) => Positions ι) (fun j=>bolt (Matrix.vecCons i q j))) |
| 42 | congr 1 |
| 43 | |
| 44 | lemma Scatter.taper (ha : 0<a) (hp : 0≤C) (hK : Multiplicity l K) (hf : ContDiffAt ℝ ω f p) (h : Scatter l a N f p C) |
| 45 | {k : ℕ} (hk : k<N) (q : Fin k → ι) (t : Fin k) : |
| 46 | ‖fderiv ℝ (fun z => entry f z q) p‖ ≤ C*((K:ℝ)*countCost a)*Real.exp (-a*spanSites l (l (q t)) q) := by |
| 47 | let y := l (q t); let T := Real.exp (-a*spanSites l y q) |
| 48 | let F := fderiv ℝ (fun z => entry f z q) p |
| 49 | have hs i : ‖F (bolt i)‖ ≤ Decay a y (l i)*(C*T) := by |
| 50 | let Q := Matrix.vecCons i q |
| 51 | rw [show F (bolt i)=_ from (tend_entry hf q).2 i] |
| 52 | have hh : spanSites l y Q = separation y (l i)+spanSites l y q := by simp [spanSites,Q,Fin.sum_univ_succ] |
| 53 | apply le_trans (h _ hk Q t.succ); apply le_of_eq |
| 54 | change C*Real.exp (_*(spanSites l y Q:ℝ))=_ |
| 55 | rw [hh,Nat.cast_add, mul_add, Real.exp_add]; unfold T Decay; ring |
| 56 | have hv := count_pos ha |
| 57 | refine ContinuousLinearMap.opNorm_le_bound _ (by positivity) fun v => ?_ |
| 58 | rw [by_row] |
| 59 | apply le_trans (norm_sum_le ..) |
| 60 | have hL : 0≤C*T*‖v‖ := by unfold T; positivity |
| 61 | calc |
| 62 | _ ≤ ∑ i, Decay a y (l i)*(C*T*‖v‖) := Finset.sum_le_sum fun i _ => by |
| 63 | rw [norm_smul] |
| 64 | exact (mul_le_mul (norm_le_pi_norm v _) (hs i) (norm_nonneg _) (norm_nonneg _)).trans_eq (by ring) |
| 65 | _ = (∑ i, Decay a y (l i))*(C*T*‖v‖) := by rw [Finset.sum_mul] |
| 66 | _ ≤ _ := (mul_le_mul_of_nonneg_right (hK.count l ha y) hL).trans_eq (by unfold T y; ring) |
| 67 | |
| 68 | lemma scatter_difference {s : Set (Positions ι)} (ha : 0<a) (hp : 0≤C) (hK : Multiplicity l K) |
| 69 | (hs : Convex ℝ s) (hf : ∀ p∈s, ContDiffAt ℝ ω f p ∧ Scatter l a N f p C) (hx : x∈s) (hh : p∈s) |
| 70 | {k : ℕ} (hk : k<N) (q : Fin k → ι) (t : Fin k) : |
| 71 | ‖entry f p q-entry f x q‖ ≤ ‖p-x‖*(C*((K:ℝ)*countCost a))*Real.exp (-a*spanSites l (l (q t)) q) := by |
| 72 | rw [mul_assoc ‖p-x‖, mul_comm ‖p-x‖] |
| 73 | exact hs.norm_image_sub_le_of_norm_fderiv_le |
| 74 | (fun y hy => ((tend_entry (hf y hy).1 q).1).differentiableAt (by simp)) (fun y hy => (hf y hy).2.taper ha hp hK (hf y hy).1 hk q t) hx hh |
| 75 | end Increment |
| 76 | |
| 77 | section Positions |
| 78 | variable {f : Positions (ι ⊕ τ) → ℝ} |
| 79 | variable {p : Positions (ι ⊕ τ)} {x : Positions ι} {v : Positions τ} |
| 80 | |
| 81 | def meetVar (x : Positions ι) (v : Positions τ) := (partSpace ι τ).symm (x,v) |
| 82 | lemma norm_meet (x : Positions ι) (v : Positions τ) : ‖meetVar x v‖ = max ‖x‖ ‖v‖ := by |
| 83 | rw [← parts_isometry,meetVar,(partSpace ..).apply_symm_apply]; rfl |
| 84 | lemma meet_columns (x : Positions ι) (v : Positions τ) : meetVar x v = meetVar x (0:Positions τ) + meetVar (0:Positions ι) v := by |
| 85 | unfold meetVar; rw [← map_add, Prod.mk_add_mk, add_zero,zero_add] |
| 86 | |
| 87 | def lowerCol : Positions τ →L[ℝ] Positions (ι ⊕ τ) := |
| 88 | (partSpace ι τ).symm.toContinuousLinearMap.comp (ContinuousLinearMap.inr ℝ (Positions ι) (Positions τ)) |
| 89 | lemma lower_bolt (i : τ) : lowerCol (ι:=ι) (bolt i) = bolt (Sum.inr i) := by |
| 90 | funext j; cases j with |
| 91 | | inl j => change (0:ℝ) = bolt (Sum.inr i) (Sum.inl j); simp [bolt] |
| 92 | | inr j => change bolt i j = bolt (Sum.inr i) (Sum.inr j); by_cases he : j=i <;> simp [bolt,he] |
| 93 | |
| 94 | lemma meet_derivative (x : Positions ι) (v : Positions τ) : HasFDerivAt (meetVar x) lowerCol v := by |
| 95 | have hh := (lowerCol (ι:=ι) (τ:=τ)).hasFDerivAt (x:=v) |
| 96 | exact (hh.const_add (meetVar x (0:Positions τ))).congr_of_eventuallyEq (Filter.Eventually.of_forall (fun y => meet_columns x y)) |
| 97 | |
| 98 | def Slope (f : Positions (ι ⊕ τ) → ℝ) (p : Positions (ι ⊕ τ)) : Positions τ := fun i => |
| 99 | entry f p ![Sum.inr i] |
| 100 | |
| 101 | def block (f : Positions (ι ⊕ τ) → ℝ) (p : Positions (ι ⊕ τ)) : Matrix τ τ ℝ := of fun i j => |
| 102 | entry f p ![Sum.inr j,Sum.inr i] |
| 103 | |
| 104 | lemma slope_zero_test (hf : ContDiffAt ℝ ω f (meetVar x v)) : |
| 105 | Slope f (meetVar x v)=0 ↔ HasFDerivAt (fun y => f (meetVar x y)) (0 : Positions τ →L[ℝ] ℝ) v := by |
| 106 | let p := meetVar x v |
| 107 | let L := (fderiv ℝ f p).comp lowerCol |
| 108 | have he : HasFDerivAt (fun y => f (meetVar x y)) L v := |
| 109 | (hf.differentiableAt (by simp)).hasFDerivAt.comp v (meet_derivative x v) |
| 110 | have hh (i : τ) : Slope f p i=L (bolt i) := by |
| 111 | unfold Slope entry; rw [iteratedFDeriv_one_apply]; unfold L; rw [ContinuousLinearMap.comp_apply,lower_bolt]; rfl |
| 112 | constructor |
| 113 | · intro hx; suffices ht : L=0 by rwa [ht] at he |
| 114 | ext z; rw [by_row]; change Slope f p=0 at hx; simp only [← hh,hx]; simp |
| 115 | intro hx; funext i; change Slope f p i=_; rw [hh,he.unique hx]; rfl |
| 116 | |
| 117 | lemma block_hermitian (hf : ContDiffAt ℝ ω f p) : (block f p).IsHermitian := by |
| 118 | apply IsHermitian.ext; intro i j |
| 119 | simp only [block,Matrix.of_apply,star_trivial,entry,iteratedFDeriv_two_apply]; exact hf.isSymmSndFDerivAt (by simp) _ _ |
| 120 | |
| 121 | lemma slope_block (hf : ContDiffAt ℝ ω f (meetVar x v)) : |
| 122 | ContDiffAt ℝ ω (Slope f) (meetVar x v) ∧ ∀ w, fderiv ℝ (Slope f ∘ meetVar x) v w = block f (meetVar x v) *ᵥ w := by |
| 123 | let p := meetVar x v |
| 124 | have ht (i : τ) := tend_entry hf ![Sum.inr i] |
| 125 | have hg : ContDiffAt ℝ ω (Slope f) p := contDiffAt_pi.mpr (fun i => (ht i).1) |
| 126 | refine ⟨hg,fun w => ?_⟩ |
| 127 | have he : HasFDerivAt (Slope f ∘ meetVar x) ((fderiv ℝ (Slope f) p).comp lowerCol) v := |
| 128 | (hg.differentiableAt (by simp)).hasFDerivAt.comp v (meet_derivative x v) |
| 129 | rw [he.fderiv]; funext i |
| 130 | let L := (ContinuousLinearMap.proj (φ:=fun _ => ℝ) (R:=ℝ) i).comp ((fderiv ℝ (Slope f) p).comp lowerCol) |
| 131 | change L w=_ |
| 132 | have hu (j : τ) : L (bolt j)=block f p i j := by |
| 133 | let Q := ContinuousLinearMap.proj (φ:=fun _ => ℝ) (R:=ℝ) i |
| 134 | have hb := (ht i).2 (Sum.inr j) |
| 135 | change fderiv ℝ (Q ∘ Slope f) p (bolt _) = _ at hb |
| 136 | rw [fderiv_comp _ Q.differentiableAt (hg.differentiableAt (by simp)), Q.fderiv] at hb |
| 137 | unfold L; rw [ContinuousLinearMap.comp_apply,ContinuousLinearMap.comp_apply,lower_bolt]; exact hb |
| 138 | rw [by_row]; unfold mulVec dotProduct; simp_rw [hu,smul_eq_mul,mul_comm (w _)]; rfl |
| 139 | |
| 140 | variable {l : ι ⊕ τ → Site n} |
| 141 | lemma block_rows (h : Scatter l a N f p C) (hn : 2≤N) : Sealed (l ∘ Sum.inr) a (block f p) C := by |
| 142 | intro i j |
| 143 | have he := h 2 hn ![Sum.inr j,Sum.inr i] 1 |
| 144 | simpa [spanSites,Fin.sum_univ_succ,block,Decay] using he |
| 145 | |
| 146 | lemma block_near {s : Set (Positions (ι ⊕ τ))} (ha : 0<a) (hp : 0≤C) (hK : Multiplicity l K) |
| 147 | (hs : Convex ℝ s) (hf : ∀ p∈s, ContDiffAt ℝ ω f p ∧ Scatter l a N f p C) |
| 148 | {b c : Positions (ι ⊕ τ)} (hb : b∈s) (hc : c∈s) (hr : ‖b-c‖≤r) (h : 3≤N) : |
| 149 | Sealed (l ∘ Sum.inr) a (block f b-block f c) (r*(C*((K:ℝ)*countCost a))) := by |
| 150 | intro i j |
| 151 | have he := scatter_difference ha hp hK hs hf hc hb (k:=2) h ![Sum.inr j,Sum.inr i] 1 |
| 152 | let Z := C*((K:ℝ)*countCost a) |
| 153 | have hz := count_pos ha |
| 154 | have h : |(block f b-block f c) i j| ≤ ‖b-c‖*Z*Decay a (l (Sum.inr i)) (l (Sum.inr j)) := by |
| 155 | simpa [block,Decay, Z, spanSites,Fin.sum_univ_succ,Real.norm_eq_abs] using he |
| 156 | exact h.trans (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hr (by positivity)) (decay_pos ..).le) |
| 157 | lemma slope_range {s : Set (Positions (ι ⊕ τ))} (ha : 0<a) (hp : 0≤C) (hK : Multiplicity l K) |
| 158 | (hs : Convex ℝ s) (hf : ∀ p∈s, ContDiffAt ℝ ω f p ∧ Scatter l a N f p C) |
| 159 | {b c : Positions (ι ⊕ τ)} (hb : b∈s) (hc : c∈s) (hn : 2 ≤ N) : |
| 160 | ‖Slope f b-Slope f c‖ ≤ ‖b-c‖*(C*((K:ℝ)*countCost a)) := by |
| 161 | have hp := count_pos ha |
| 162 | apply (pi_norm_le_iff_of_nonneg (by positivity : 0 ≤ ‖b-c‖*(C*((K:ℝ)*countCost a)))).mpr |
| 163 | intro i |
| 164 | simpa only [Pi.sub_apply, Slope,spanSites, Fin.sum_univ_one,separation_self,Nat.cast_zero,mul_zero,Real.exp_zero,mul_one] using |
| 165 | scatter_difference ha ‹0≤C› hK hs hf hc hb (k:=1) hn ![Sum.inr i] 0 |
| 166 | end Positions |
| 167 | end YM.Push.Uniform |