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.AnalyticNext.CUBIC_MATCH.Lift.Boundary |
| 2 | import YM.AnalyticNext.CUBIC_MATCH.Lift.Stocks |
| 3 | |
| 4 | set_option warningAsError false |
| 5 | |
| 6 | /-! |
| 7 | # Same prescription in one independent group or sheared while retaining x closures |
| 8 | |
| 9 | Right inverse statements are on COVER cycles. Here we do not mix an analytic |
| 10 | adjoint convention with numerical Hermitian. The shear brings a dependent |
| 11 | boundary to a literal forward `+` dual-stencil translation. Costs among |
| 12 | input and output both on the real coefficient norm. These operators can |
| 13 | leave terms unsymmetrized; don't infer a kernel symmetry from price alone. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.CubicMatch.Lift |
| 18 | open Filter Function Lattice RG Precision Work.F08 Laurent Bloch Exterior Next.Free |
| 19 | open scoped Topology BigOperators |
| 20 | |
| 21 | variable {r s t n : ℕ} {η C F θ : ℝ} |
| 22 | |
| 23 | def runY (U : Array1 r → Array1 s) (A : Line Couple ℝ r) : Line Couple ℝ s := fun i p => |
| 24 | U (fun j y => A j (p.1,y)) i p.2 |
| 25 | |
| 26 | def flipped (A : Line Couple ℝ r) : Line Couple ℝ r := fun i p => A i p.swap |
| 27 | |
| 28 | def LineRate (η C : ℝ) (A : Line Couple ℝ r) := ∀ i, Decay length2 η C (A i) |
| 29 | |
| 30 | |
| 31 | lemma line_slice {A : Line Couple ℝ r} (h : LineRate η C A) (x : Cover) : |
| 32 | Price1 η (C*wanes η (size x)) (fun j y => A j (x,y)) := fun i y => by |
| 33 | have hh := h i (x,y); change _ ≤ C*wanes η (size x+size y) at hh |
| 34 | rw [wanes_splits,← mul_assoc] at hh; exact hh |
| 35 | lemma line_flip {A : Line Couple ℝ r} (h : LineRate η C A) : LineRate η C (flipped A) := by |
| 36 | rintro i ⟨x,y⟩; exact (h i (y,x)).trans_eq (by rw [show length2 (y,x)=length2 (x,y) from Nat.add_comm ..]) |
| 37 | lemma line_cost {U : Array1 r → Array1 s} (h : Single r s U) (hη : 0<η) : |
| 38 | ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ A : Line Couple ℝ r, ∀ C ≥ 0, LineRate η C A → LineRate θ (F*C) (runY U A) := by |
| 39 | obtain ⟨θ,F,hθ,hF,H⟩ := h.price η hη |
| 40 | let σ := min η θ; have ht : 0<σ := lt_min hη hθ |
| 41 | refine ⟨σ,F,ht,hF,fun A C hC h => ?_⟩ |
| 42 | rintro i ⟨x,y⟩ |
| 43 | have he := (H _ _ (mul_nonneg hC (wanes_pos ..).le) (line_slice h x)) i |
| 44 | change _ ≤ (F*C)*wanes σ (size x+size y) |
| 45 | rw [wanes_splits,← mul_assoc] |
| 46 | apply he.mono (min_le_right ..) ?_ (mul_nonneg (mul_nonneg hF.le hC) (wanes_pos ..).le) y |
| 47 | rw [← mul_assoc]; refine mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) (mul_nonneg hF.le hC) |
| 48 | apply mul_le_mul_of_nonneg_right (neg_le_neg (min_le_left ..)); positivity |
| 49 | |
| 50 | namespace Single |
| 51 | variable {U : Array1 r → Array1 s} (h : Single r s U) |
| 52 | include h |
| 53 | lemma zero_value : U 0=0 := by |
| 54 | simpa only [zero_smul] using (h.smul (0:Array1 r) 0 (show Whole (emptyPrefix 0) from barren_whole)) |
| 55 | lemma grant_sub {A B : Array1 r} (he : Whole (emptyPrefix A)) (hp : Whole (emptyPrefix B)) : U (A-B)=U A-U B := by |
| 56 | have hh (T : Array1 r) : -T=(-1:ℝ) • T := by rw [neg_one_smul] |
| 57 | rw [sub_eq_add_neg,hh,h.add _ _ he (hp.weight (-1)),h.smul _ _ hp,neg_one_smul,sub_eq_add_neg] |
| 58 | omit h in |
| 59 | lemma prefixes {ι : Type*} (R : ι → Array1 r) (k : Finset ι) (p : ∀ i ∈ k, Whole (emptyPrefix (R i))) : Whole (emptyPrefix (∑ i∈k,R i)) := by |
| 60 | classical |
| 61 | induction k using Finset.induction_on with |
| 62 | | empty => rw [Finset.sum_empty]; exact barren_whole |
| 63 | | @insert a l hi ih => |
| 64 | have he := (Finset.forall_mem_insert _ _ _).mp p |
| 65 | have hh := he.1.plus (ih he.2) |
| 66 | rw [plus_rows] at hh; rw [Finset.sum_insert hi]; exact hh |
| 67 | lemma grant_sum {ι : Type*} (R : ι → Array1 r) (k : Finset ι) (p : ∀ i ∈ k, Whole (emptyPrefix (R i))) : |
| 68 | U (∑ i∈k,R i)=∑ i∈k,U (R i) := by |
| 69 | classical |
| 70 | induction k using Finset.induction_on with |
| 71 | | empty => simp [h.zero_value] |
| 72 | | @insert a l hi ih => |
| 73 | have he := (Finset.forall_mem_insert _ _ _).mp p |
| 74 | rw [Finset.sum_insert hi, Finset.sum_insert hi, h.add _ _ he.1 (prefixes _ _ he.2),ih he.2] |
| 75 | |
| 76 | /-- Lift acts pointwise in the other group. Thus closure is preserved there |
| 77 | *while* doing this, even though division in the active group loses control |
| 78 | of its own contraction (needs cycles) and width. -/ |
| 79 | lemma untouched {A : TypeFace (t+1) → Line Couple ℝ r} (hη : 0<η) (hA : ∀ i, LineRate η C (A i)) |
| 80 | (i : TypeFace t) (k : TypeFace s) : |
| 81 | bite aheadX (fun b => runY U (A b) k) i = runY U (fun a => bite aheadX (fun b => A b a) i) k := by |
| 82 | funext ⟨x,y⟩ |
| 83 | let f (x : Cover) (k : TypeFace (t+1)) := fun (a : TypeFace r) (v : Cover) => A k a (x,v) |
| 84 | have H x k : Whole (emptyPrefix (f x k)) := (line_slice (hA k) x).whole hη |
| 85 | let S (b : TypeFace (t+1)) (a : Axis) := left ℝ t a b i • (f (x-step a) b-f x b) |
| 86 | have hp (b c) : Whole (emptyPrefix (S b c)) := ((H _ _).minus (H _ _)).weight _ |
| 87 | unfold bite runY |
| 88 | dsimp only |
| 89 | rw [show (fun (j : TypeFace r) (y : Cover) => ∑ c : TypeFace (t+1), ∑ a : Axis, Exterior.left ℝ t a c i • |
| 90 | (A c j ((x,y)-aheadX a)-A c j (x,y))) = ∑ c : TypeFace (t+1), ∑ a : Axis, S c a from ?eq] |
| 91 | rw [h.grant_sum _ _ (fun i _ => prefixes _ _ (fun k _ => hp i k)),Finset.sum_apply,Finset.sum_apply] |
| 92 | refine Finset.sum_congr rfl fun b _ => ?_ |
| 93 | rw [h.grant_sum _ _ (fun j _ => hp b j),Finset.sum_apply,Finset.sum_apply] |
| 94 | refine Finset.sum_congr rfl fun a _ => ?_ |
| 95 | have he : U (S b a) = left ℝ t a b i • (U (f (x-step a) b)-U (f x b)) := |
| 96 | (h.smul _ _ ((H (x-step a) b).minus (H x b))).trans (congr_arg (left ℝ t a b i • ·) (h.grant_sub (H (x-step a) b) (H x b))) |
| 97 | rw [he] |
| 98 | simp only [aheadX, Prod.snd_sub,Prod.fst_sub,sub_zero]; rfl |
| 99 | case eq => |
| 100 | funext j y |
| 101 | simp only [S,aheadX, Finset.sum_apply,Pi.smul_apply,Pi.sub_apply,f] |
| 102 | refine Finset.sum_congr rfl fun _ _ => Finset.sum_congr rfl fun _ _ => ?_ |
| 103 | simp only [Prod.mk_sub_mk,sub_zero] |
| 104 | end Single |
| 105 | |
| 106 | lemma pure_y (A : Line Couple ℝ (r+1)) (x y : Cover) (i : TypeFace r) : |
| 107 | bite aheadY A i (x,y)=boundary r (fun b z => A b (x,z)) i y := by |
| 108 | unfold bite aheadY boundary; simp only [Prod.mk_sub_mk,sub_zero,smul_eq_mul] |
| 109 | |
| 110 | lemma pure_dynamic {A : Line Couple ℝ (r+1)} (h : LineRate η C A) (hη : 0<η) |
| 111 | (hp : bite aheadY A=0) : bite aheadY (runY Lifted A)=A := by |
| 112 | funext i p; rcases p with ⟨x,y⟩ |
| 113 | have ht : boundary r (fun b z => A b (x,z))=0 := by |
| 114 | funext b z; rw [← pure_y, hp]; rfl |
| 115 | have he := single_lift ((line_slice h x).whole hη) ht |
| 116 | rw [pure_y]; exact congr_fun (congr_fun he i) y |
| 117 | |
| 118 | lemma pure_closed {A : Line Couple ℝ (r+2)} (h : LineRate η C A) (hη : 0<η) : |
| 119 | bite aheadY (bite aheadY A)=0 := by |
| 120 | funext i p; rcases p with ⟨x,y⟩ |
| 121 | let K : Array1 (r+2) := fun b z => A b (x,z) |
| 122 | have hp : Whole (emptyPrefix K) := (line_slice h x).whole hη |
| 123 | have hh : emptyPrefix (boundary r (boundary (r+1) K))=0 := by |
| 124 | have ht := hp.prod (Whole.boundary (r+1)) |
| 125 | rw [boundary_rows,boundary_rows] |
| 126 | apply bank_injective (ht.prod (Whole.boundary r)).safe barren_whole.safe; intro c |
| 127 | rw [ht.acts (Whole.boundary _) _, hp.acts (Whole.boundary _) _, Matrix.mul_assoc, |
| 128 | show ((cobound (r+1)).acts c * (cobound r).acts c) = 0 from closed r c,Matrix.mul_zero,barren_acts] |
| 129 | rw [pure_y]; simp_rw [pure_y] |
| 130 | exact congr_fun (congr_fun (congr_fun hh ()) i) y |
| 131 | |
| 132 | /-- Involutive. Exponents sheared, no complex argument conventions. -/ |
| 133 | def shear : Couple ≃+ Couple := |
| 134 | { toFun := fun x => (x.1-x.2,-x.2) |
| 135 | invFun := fun x => (x.1-x.2,-x.2) |
| 136 | map_add' := fun ⟨x,y⟩ ⟨a,b⟩ => by dsimp; ext1 <;> dsimp <;> abel |
| 137 | left_inv := fun ⟨a,b⟩ => by simp |
| 138 | right_inv := fun ⟨a,b⟩ => by simp } |
| 139 | |
| 140 | def sheared (A : Line Couple ℝ r) : Line Couple ℝ r := fun i x => A i (shear x) |
| 141 | |
| 142 | @[simp] lemma shear_involutive (A : Line Couple ℝ r) : sheared (sheared A)=A := by |
| 143 | funext i x; exact congr_arg _ (shear.left_inv x) |
| 144 | lemma shear_zero : sheared (0:Line Couple ℝ r)=0 := by rfl |
| 145 | lemma shear_cost {A : Line Couple ℝ r} (h : LineRate η C A) (hη : 0≤η) : LineRate (η/2) C (sheared A) := by |
| 146 | rintro i ⟨x,y⟩ |
| 147 | have he : size x ≤ size (x-y)+size y := by simpa only [sub_add_cancel] using size_add (x-y) y |
| 148 | specialize h i |
| 149 | refine (h (shear (x,y))).trans (mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) h.cash) |
| 150 | change -(η)*(length2 (x-y,-y) : ℝ) ≤ _ |
| 151 | have hv : (size x:ℝ) ≤ size (x-y)+(size y:ℝ) := by exact_mod_cast he |
| 152 | unfold length2 |
| 153 | rw [size_neg]; push_cast |
| 154 | nlinarith [Nat.cast_nonneg (α:=ℝ) (size (x-y))] |
| 155 | |
| 156 | lemma shear_cross (A : Line Couple ℝ (r+1)) : bite aheadY (sheared A)=sheared (bite behind A) := by |
| 157 | funext i x |
| 158 | have he (i : Axis) : shear (aheadY i)=behind i := by simp [shear,aheadY,behind] |
| 159 | change bite aheadY (fun i => A i ∘ (shear:Couple → Couple)) i x=_ |
| 160 | simp_rw [permute, he]; rfl |
| 161 | lemma shear_keep (A : Line Couple ℝ (r+1)) : bite aheadX (sheared A)=sheared (bite aheadX A) := by |
| 162 | funext i x |
| 163 | have he (i : Axis) : shear (aheadX i)=aheadX i := by simp [shear,aheadX] |
| 164 | change bite aheadX (fun i => A i ∘ (shear:Couple → Couple)) i x=_ |
| 165 | simp_rw [permute,he]; rfl |
| 166 | |
| 167 | /-- First primitive in dependent momentum with no closures except the |
| 168 | one at x. -/ |
| 169 | def gainZ (A : Three ℝ r s (n+1)) : Three ℝ r s (n+2) := |
| 170 | fun i j => sheared (runY Lifted (sheared (A i j))) |
| 171 | |
| 172 | lemma gainZ_cost (r s n) (hη : 0<η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ C ≥ 0, |
| 173 | ∀ A : Three ℝ r s (n+1), Pace η C A → Pace θ (F*C) (gainZ A) := by |
| 174 | obtain ⟨θ,F,hθ,hF,H⟩ := line_cost (lifted_single n) (half_pos hη) |
| 175 | exact ⟨θ/2,F,half_pos hθ,hF,fun C hC A hp i j => shear_cost (H _ C hC (shear_cost (hp i j) hη.le)) hθ.le⟩ |
| 176 | lemma gainZ_cross {A : Three ℝ r s (n+1)} (hp : Pace η C A) (hη : 0<η) (hA : δz A=0) : |
| 177 | δz (gainZ A)=A := by |
| 178 | funext i j |
| 179 | have h : LineRate _ _ _ := shear_cost (hp i j) hη.le |
| 180 | have hh : bite aheadY (sheared (A i j))=0 := by |
| 181 | rw [shear_cross,show bite behind (A i j)=0 from congr_fun (congr_fun hA i) j,shear_zero] |
| 182 | have he := pure_dynamic h (half_pos hη) hh |
| 183 | change bite behind (sheared _)=_ |
| 184 | calc |
| 185 | _ = sheared (bite aheadY (runY Lifted (sheared (A i j)))) := by |
| 186 | conv_rhs => rw [← shear_involutive (runY Lifted (sheared (A i j))),shear_cross,shear_involutive] |
| 187 | _ = _ := by rw [he,shear_involutive] |
| 188 | |
| 189 | lemma gainZ_kept {A : Three ℝ (t+1) s (n+1)} (h : Pace η C A) (hη : 0<η) (he : δx A=0) : |
| 190 | δx (gainZ A)=0 := by |
| 191 | funext i j k x |
| 192 | let M (b : TypeFace (t+1)) := sheared (A b j) |
| 193 | have hh b := shear_cost (h b j) hη.le |
| 194 | let Q := fun a : TypeFace (n+1) => bite aheadX (fun b => M b a) i |
| 195 | have hM : Q=0 := by |
| 196 | funext a y |
| 197 | have ht := shear_keep (fun b => A b j a) |
| 198 | change bite aheadX (sheared (fun b => A b j a)) i y=0 |
| 199 | rw [ht]; exact congr_fun (congr_fun (congr_fun (congr_fun he i) j) a) (shear y) |
| 200 | have ht : bite aheadX (fun b => runY Lifted (M b) k) i=0 := by |
| 201 | rw [(lifted_single n).untouched (A:=M) (half_pos hη) hh] |
| 202 | change runY Lifted Q k=0; rw [hM] |
| 203 | funext p |
| 204 | change Lifted (0:Array1 (n+1)) k p.2=0; rw [(lifted_single n).zero_value]; rfl |
| 205 | change bite aheadX (sheared (fun b => runY Lifted (M b) k)) i x=_ |
| 206 | rw [shear_keep,sheared,ht]; rfl |
| 207 | |
| 208 | lemma zz {A : Three ℝ r s (t+2)} (h : Pace η C A) (hη : 0<η) : δz (δz A)=0 := by |
| 209 | funext i j |
| 210 | change bite behind (bite behind (A i j))=0 |
| 211 | have he := pure_closed (shear_cost (h i j) hη.le) (half_pos hη) |
| 212 | rw [shear_cross,shear_cross] at he |
| 213 | rw [← shear_involutive (bite _ _),he,shear_zero] |
| 214 | |
| 215 | lemma bite_ind {A : Line Couple ℝ (n+1)} : bite aheadY (flipped A)=flipped (bite aheadX A) := by |
| 216 | funext i x; have he := permute A AddEquiv.prodComm aheadY i x |
| 217 | change bite aheadY _ _ _=bite (fun j => (aheadY j).swap) A i x.swap at he |
| 218 | rw [show (fun j => (aheadY j).swap)=aheadX from funext fun _ => rfl] at he; exact he |
| 219 | lemma bite_dep {A : Line Couple ℝ (n+1)} : bite aheadX (flipped A)=flipped (bite aheadY A) := by |
| 220 | have he := congr_arg flipped (bite_ind (A:=flipped A)); exact he.symm |
| 221 | |
| 222 | def gainX (A : Three ℝ (r+1) s t) : Three ℝ (r+2) s t := fun i j b => |
| 223 | flipped (runY Lifted (flipped (fun a => A a j b))) i |
| 224 | lemma gainX_cost (r s t) (hη : 0<η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ C ≥ 0, ∀ A : Three ℝ (r+1) s t, |
| 225 | Pace η C A → Pace θ (F*C) (gainX A) := by |
| 226 | obtain ⟨θ,F,hp,hF,H⟩ := line_cost (lifted_single r) hη |
| 227 | exact ⟨θ,F,hp,hF,fun C hC A p i j b => line_flip (H _ C hC (line_flip (A:=fun i => A i j b) (fun i => p i j b))) i⟩ |
| 228 | lemma gainX_cross {A : Three ℝ (r+1) s t} (h : Pace η C A) (hη : 0<η) (hh : δx A=0) : |
| 229 | δx (gainX A)=A := by |
| 230 | funext i j a |
| 231 | let M := fun i : TypeFace (r+1) => A i j a |
| 232 | have hx : bite aheadX M=0 := funext fun b => congr_fun (congr_fun (congr_fun hh b) j) a |
| 233 | change bite aheadX (flipped (runY Lifted (flipped M))) _ = _ |
| 234 | rw [bite_dep, pure_dynamic (line_flip (A:=M) (fun b => h b j a)) hη (by rw [bite_ind,hx]; rfl)]; rfl |
| 235 | lemma gainX_kept {A : Three ℝ (r+1) (s+1) t} (h : Pace η C A) (hη : 0<η) (hh : δy A=0) : |
| 236 | δy (gainX A)=0 := by |
| 237 | funext i j a x |
| 238 | let M := fun b : TypeFace (s+1) => flipped (fun i => A i b a) |
| 239 | have he : ∀ b, LineRate _ _ (M b) := fun b => line_flip (fun i => h i b a) |
| 240 | let Q := fun i : TypeFace (r+1) => bite aheadX (fun b => M b i) j |
| 241 | have hx : Q=0 := by |
| 242 | funext v w |
| 243 | change bite aheadX (flipped (fun b => A v b a)) j w=_ |
| 244 | rw [bite_dep]; exact congr_fun (congr_fun (congr_fun (congr_fun hh v) j) a) w.swap |
| 245 | change bite aheadY (flipped (fun b => runY Lifted (M b) i)) j x=_ |
| 246 | rw [bite_ind]; unfold flipped; rw [(lifted_single r).untouched (A:=M) hη he] |
| 247 | change runY Lifted Q _ _=0; rw [hx] |
| 248 | change Lifted (0:Array1 (r+1)) _ _=0; rw [(lifted_single r).zero_value]; rfl |
| 249 | |
| 250 | def gainY (A : Three ℝ r (s+1) t) : Three ℝ r (s+2) t := fun i j a => runY Lifted (fun k => A i k a) j |
| 251 | lemma gainY_cost (r s t) (hη : 0<η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ C ≥ 0, ∀ A : Three ℝ r (s+1) t, |
| 252 | Pace η C A → Pace θ (F*C) (gainY A) := by |
| 253 | obtain ⟨θ,F,hp,hF,H⟩ := line_cost (lifted_single s) hη |
| 254 | exact ⟨θ,F,hp,hF,fun C hC A p i j b => H (fun j => A i j b) C hC (fun k => p i k b) j⟩ |
| 255 | lemma gainY_cross {A : Three ℝ r (s+1) t} (h : Pace η C A) (hη : 0<η) (he : δy A=0) : |
| 256 | δy (gainY A)=A := by |
| 257 | funext i j a; exact congr_fun (pure_dynamic (A:=fun b => A i b a) (fun k => h i k a) hη |
| 258 | (funext fun b => congr_fun (congr_fun (congr_fun he i) b) a)) j |
| 259 | end YM.CubicMatch.Lift |