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.LOCAL_SPLITTING.Calculus |
| 2 | |
| 3 | /-! |
| 4 | # Ordered left and right derivatives on complementary sets of oriented links |
| 5 | |
| 6 | Flipping a positive link gives **right** increments (with the shifted |
| 7 | starting vertex and negative color direction). A successive list of flips |
| 8 | is not in general the ordered left derivative with directions conjugated |
| 9 | in that order. Prove a split & reverse formula on disjoint link sectors by |
| 10 | commuting a fixed left derivative through all right derivatives. No constants |
| 11 | from uncontrolled products of polynomial position weights at one link. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Push.Local |
| 16 | open Function Filter Lattice Wilson RG Source Next.Foundations |
| 17 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 18 | |
| 19 | variable {G : Gauge} {n : Side} |
| 20 | |
| 21 | abbrev LR (G : Gauge) (n : Side) := Directions G n × Directions G n |
| 22 | |
| 23 | def mix (U : Config G n) (p : LR G n) : Config G n := |
| 24 | fun i => G.lieExp (p.1 i) * U i * G.lieExp (p.2 i) |
| 25 | |
| 26 | def byLeft (a : Directions G n) : LR G n := (a,0) |
| 27 | def byRight (a : Directions G n) : LR G n := (0,a) |
| 28 | def rotateRight (U : Config G n) (a : Directions G n) : Directions G n := |
| 29 | fun l => G.adjoint (U l) (a l) |
| 30 | |
| 31 | @[simp] theorem mix_zero (U : Config G n) : mix U 0 = U := by funext i; simp [mix] |
| 32 | theorem mix_left (U : Config G n) (a : Directions G n) (t : ℝ) : mix U (t • byLeft a) = increment U (t • a) := by |
| 33 | funext i; simp [mix,byLeft,increment] |
| 34 | theorem mix_right (U : Config G n) (a : Directions G n) (t : ℝ) : mix U (t • byRight a) = increment U (t • rotateRight U a) := by |
| 35 | funext i; apply G.mat_injective |
| 36 | have he (g : G.El) (x : G.Color) : |
| 37 | G.mat (G.lieExp (G.adjoint g x)) * G.mat g = G.mat g * G.mat (G.lieExp x) := by |
| 38 | rw [G.mat_lieExp, G.mat_lieExp, G.mat_adjoint, G.exp_conjugate] |
| 39 | simp [Gauge.conjugate,mul_assoc] |
| 40 | simp only [mix,byRight,rotateRight,increment,G.mat_mul, Prod.smul_fst, Prod.smul_snd, Pi.smul_apply, Pi.zero_apply, smul_zero, G.mat_lieExp_zero, one_mul] |
| 41 | rw [← map_smul,he] |
| 42 | |
| 43 | section Smooth |
| 44 | variable {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 45 | |
| 46 | def mixJets (f : Config G n → Y) : List (LR G n) → Config G n → Y |
| 47 | | [], U => f U |
| 48 | | p::l, U => deriv (fun t : ℝ => mixJets f l (mix U (t • p))) 0 |
| 49 | |
| 50 | private theorem chart_mix {U : Config G n} {f : Config G n → Y} {k : ℕ} (hf : Chart k f U) : |
| 51 | ContDiffAt ℝ (k : WithTop ℕ∞) (f ∘ mix U) 0 := |
| 52 | chart_comp (by simpa using hf) (fun l => by |
| 53 | simp only [mix, G.mat_mul]; exact (((G.exp_jet.comp ((contDiff_apply ..).comp contDiff_fst)).mul contDiff_const).mul (G.exp_jet.comp ((contDiff_apply ..).comp contDiff_snd))).contDiffAt) |
| 54 | |
| 55 | private theorem mix_near {U : Config G n} {f : Config G n → Y} {k : ℕ} (hf : Chart k f U) (p : LR G n) : |
| 56 | ∀ᶠ t : ℝ in 𝓝 0, Chart k f (mix U (t • p)) := |
| 57 | chart_eventually (by simpa using hf) (fun i => by |
| 58 | simp only [mix, G.mat_mul, Prod.smul_fst, Prod.smul_snd, Pi.smul_apply] |
| 59 | exact (((G.exp_jet.comp (contDiff_id.smul contDiff_const)).mul contDiff_const).mul (G.exp_jet.comp (contDiff_id.smul contDiff_const))).contDiffAt) |
| 60 | |
| 61 | theorem mix_chart {U : Config G n} {f : Config G n → Y} |
| 62 | (l : List (LR G n)) (k : ℕ) (hf : Chart (l.length+k) f U) : Chart k (mixJets f l) U := by |
| 63 | induction l generalizing k with |
| 64 | | nil => simpa! only [List.length_nil, Nat.zero_add] using hf |
| 65 | | cons p l ih => |
| 66 | let V (b : Directions G n) (t : ℝ) := mixJets f l (mix (increment U b) (t • p)) |
| 67 | change ContDiffAt ℝ _ (fun b : Directions G n => fderiv ℝ (V b) 0 1) 0 |
| 68 | have he := ih (k+1) (by simpa [add_right_comm, add_assoc, add_left_comm, add_comm] using hf) |
| 69 | have hQ : ContDiffAt ℝ (↑(k+1 : ℕ)) (uncurry V) 0 := by |
| 70 | let W (z : Directions G n × ℝ) := mix (increment U z.1) (z.2 • p) |
| 71 | exact chart_comp (k:=k+1) (x:=0) (W:=W) (by simpa only [W, Prod.fst_zero, Prod.snd_zero,zero_smul, mix_zero, Work.G07.at_zero_increment] using he) (fun i => by |
| 72 | simp only [W,mix,increment,G.mat_mul, Pi.smul_apply,Prod.smul_fst,Prod.smul_snd] |
| 73 | exact (((G.exp_jet.comp (contDiff_snd.smul contDiff_const)).mul |
| 74 | ((G.exp_jet.comp ((contDiff_apply ..).comp contDiff_fst)).mul contDiff_const)).mul |
| 75 | (G.exp_jet.comp (contDiff_snd.smul contDiff_const))).contDiffAt) |
| 76 | exact (hQ.fderiv (f:=V) (g:=fun _ => 0) (m:=↑k) contDiffAt_const (by push_cast; rfl)).clm_apply (g:=fun _ => (1:ℝ)) contDiffAt_const |
| 77 | |
| 78 | private theorem mix_cons {U : Config G n} {f : Config G n → Y} |
| 79 | (p : LR G n) (l : List (LR G n)) (hf : Chart (l.length+1) f U) : |
| 80 | mixJets f (p::l) U = fderiv ℝ (mixJets f l ∘ mix U) 0 p := by |
| 81 | have ht := chart_mix (mix_chart l 1 hf) |
| 82 | have hx : HasDerivAt (fun t : ℝ => t • p) p 0 := by simpa using (hasDerivAt_id' (0:ℝ)).smul_const p |
| 83 | rw [← show (fun t : ℝ => t • p) 0 = 0 from zero_smul ..] at ht |
| 84 | simpa only [mixJets,comp_def,zero_smul] using ((ht.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt 0 hx).deriv |
| 85 | |
| 86 | private theorem mixed_partials {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 87 | (V : ℝ × ℝ → Y) (h : ContDiffAt ℝ 2 V 0) : |
| 88 | deriv (fun t : ℝ => deriv (fun u : ℝ => V (t,u)) 0) 0 = deriv (fun u : ℝ => deriv (fun t : ℝ => V (t,u)) 0) 0 := by |
| 89 | have ds (f : ℝ × ℝ → Y) (t : ℝ) (h : DifferentiableAt ℝ f (t,0)) : Analysis.D (0,1) f (t,0) = deriv (fun u => f (t,u)) 0 := by |
| 90 | have he := (hasDerivAt_const (x:=(0:ℝ)) t).prodMk (hasDerivAt_id' 0) |
| 91 | exact (h.hasFDerivAt.comp_hasDerivAt 0 (f:=fun u => (t,u)) he).deriv.symm |
| 92 | have ds' (f : ℝ × ℝ → Y) (t : ℝ) (h : DifferentiableAt ℝ f (0,t)) : Analysis.D (1,0) f (0,t) = deriv (fun u => f (u,t)) 0 := by |
| 93 | have he := (hasDerivAt_id' (0:ℝ)).prodMk (hasDerivAt_const _ t) |
| 94 | exact (h.hasFDerivAt.comp_hasDerivAt 0 (f:=fun u => (u,t)) he).deriv.symm |
| 95 | have H := Analysis.commuteD h (1,0) (0,1) |
| 96 | have h' (a) := (Analysis.dSmooth (m:=1) h a (by norm_num)).differentiableAt one_ne_zero |
| 97 | rw [show (0:ℝ × ℝ)=(0,0) from rfl, ds' _ _ (h' _), ds _ _ (h' _)] at H |
| 98 | refine Eq.trans ?_ (H.trans ?_) <;> apply Filter.EventuallyEq.deriv_eq |
| 99 | · filter_upwards [((continuous_id.prodMk (continuous_const (y:=(0:ℝ)))).tendsto 0).eventually (h.eventually (by simp))] with t ht |
| 100 | exact (ds V t (ht.differentiableAt (by norm_num))).symm |
| 101 | · filter_upwards [(((continuous_const (y:=(0:ℝ))).prodMk continuous_id).tendsto 0).eventually (h.eventually (by simp))] with t ht |
| 102 | exact ds' V t (ht.differentiableAt (by norm_num)) |
| 103 | |
| 104 | private theorem mix_commute {C : Directions G n} {p : LR G n} {f : Config G n → Y} {U : Config G n} |
| 105 | (hf : Chart 2 f U) (hC : ∀ i, C i = 0 ∨ p.1 i = 0) : |
| 106 | leftDerivs (mixJets f [p]) [C] U = mixJets (leftDerivs f [C]) [p] U := by |
| 107 | let Q (x : ℝ × ℝ) := mix (increment U (x.1 • C)) (x.2 • p) |
| 108 | have hQ : ContDiffAt ℝ 2 (f ∘ Q) 0 := by |
| 109 | have ht := chart_comp (k:=2) (x:=0) (W:=Q) (by simpa [Q,Work.G07.at_zero_increment] using hf) fun i => by |
| 110 | simp only [Q, mix, increment,G.mat_mul,Pi.smul_apply,Prod.smul_fst,Prod.smul_snd]; exact |
| 111 | (((G.exp_jet.comp (contDiff_snd.smul contDiff_const)).mul ((G.exp_jet.comp (contDiff_fst.smul contDiff_const)).mul contDiff_const)).mul (G.exp_jet.comp (contDiff_snd.smul contDiff_const))).contDiffAt |
| 112 | exact ht |
| 113 | have he (s t : ℝ) : Q (s,t) = increment (mix U (t • p)) (s • C) := by |
| 114 | funext i; obtain H|H := hC i <;> simp [Q,mix,increment,H,mul_assoc] |
| 115 | change deriv (fun t : ℝ => deriv (fun u : ℝ => (f ∘ Q) (t,u)) 0) 0 = _ |
| 116 | rw [mixed_partials _ hQ]; simp_rw [comp_apply,he]; rfl |
| 117 | |
| 118 | theorem mix_swap {C : Directions G n} {l : List (LR G n)} {f : Config G n → Y} {U : Config G n} |
| 119 | (hf : Chart (l.length+1) f U) (hC : ∀ p∈l, ∀ i, C i = 0 ∨ p.1 i = 0) : |
| 120 | leftDerivs (mixJets f l) [C] U = mixJets (leftDerivs f [C]) l U := by |
| 121 | induction l generalizing U with |
| 122 | | nil => rfl |
| 123 | | cons p l ih => |
| 124 | have ht : Chart (l.length+2) f U := hf |
| 125 | change leftDerivs (mixJets (mixJets f l) [p]) [C] U = _ |
| 126 | rw [mix_commute (mix_chart l 2 ht) (hC _ List.mem_cons_self)] |
| 127 | simp only [mixJets]; apply Filter.EventuallyEq.deriv_eq |
| 128 | filter_upwards [mix_near (ht.of_le (Nat.cast_le.mpr (Nat.le_succ (l.length+1)))) p] with t hv |
| 129 | exact ih hv (fun a ha => hC a (List.mem_cons_of_mem _ ha)) |
| 130 | |
| 131 | end Smooth |
| 132 | |
| 133 | section Convert |
| 134 | variable {Y : Type*} [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 135 | |
| 136 | def convertOrder (U : Config G n) : List (LR G n) → List (List (Directions G n)) |
| 137 | | [] => [[]] |
| 138 | | p::l => ((convertOrder U l).map (fun s => p.1 :: s)) ++ ((convertOrder U l).map (fun s => s ++ [rotateRight U p.2])) |
| 139 | |
| 140 | @[simp] theorem convert_length (U : Config G n) (l : List (LR G n)) : |
| 141 | (convertOrder U l).length = 2^l.length := by |
| 142 | induction l with |
| 143 | | nil => rfl |
| 144 | | cons p l ih => simp only [convertOrder,List.length_append,List.length_map,List.length_cons,ih,pow_succ]; omega |
| 145 | |
| 146 | theorem convert_mem (U : Config G n) (D : Directions G n → Prop) (l : List (LR G n)) |
| 147 | (h : ∀ p∈l, D p.1 ∧ D (rotateRight U p.2)) : |
| 148 | ∀ s∈convertOrder U l, s.length = l.length ∧ ∀ v∈s, D v := by |
| 149 | induction l with |
| 150 | | nil => simp [convertOrder] |
| 151 | | cons p l ih => |
| 152 | have he := ih (fun q hq => h q (by simp [hq])) |
| 153 | obtain ⟨h1,h2⟩ := h p (by simp) |
| 154 | intro s hs; obtain h|h := List.mem_append.mp hs <;> obtain ⟨s,hs',rfl⟩ := List.mem_map.mp h |
| 155 | · simpa [h1] using he s hs' |
| 156 | refine ⟨by simp [(he s hs').1],fun v hv => ?_⟩ |
| 157 | obtain h|h := List.mem_append.mp hv |
| 158 | · exact (he s hs').2 v h |
| 159 | exact (List.mem_singleton.mp h) ▸ h2 |
| 160 | |
| 161 | private theorem convert_edit (U : Config G n) (l : List (LR G n)) (C : Directions G n) |
| 162 | (h : ∀ p∈l, ∀ i, C i = 0 ∨ p.2 i = 0) : convertOrder (increment U C) l = convertOrder U l := by |
| 163 | induction l with |
| 164 | | nil => rfl |
| 165 | | cons p l ih => |
| 166 | have ht : rotateRight (increment U C) p.2 = rotateRight U p.2 := funext fun i => by |
| 167 | obtain h|h := h p (by simp) i <;> simp [rotateRight,increment,h] |
| 168 | simp only [convertOrder, ht, ih (fun q hq => h q (List.mem_cons_of_mem _ hq))] |
| 169 | |
| 170 | private theorem list_hasDeriv {ι : Type*} (g : ι → ℝ → Y) (g' : ι → Y) (l : List ι) |
| 171 | (hg : ∀ i∈l, HasDerivAt (g i) (g' i) 0) : HasDerivAt (fun t : ℝ => (l.map (fun i => g i t)).sum) (l.map g').sum 0 := by |
| 172 | induction l with |
| 173 | | nil => exact hasDerivAt_const _ _ |
| 174 | | cons i l ih => exact (hg i (by simp)).add (ih fun j hj => hg j (List.mem_cons_of_mem _ hj)) |
| 175 | |
| 176 | /-- Split into ordinary ordered left jets at a base point. The support |
| 177 | hypothesis is precisely the disjoint positive/negative sector condition |
| 178 | (no link belongs to both in the full list of test directions). -/ |
| 179 | theorem mix_convert {k : ℕ} (U : Config G n) (l : List (LR G n)) (f : Config G n → Y) |
| 180 | (h : ∀ p∈l, ∀ q∈l, ∀ i, p.1 i = 0 ∨ q.2 i = 0) (hf : Chart k f U) (hl : l.length ≤ k) : |
| 181 | mixJets f l U = ((convertOrder U l).map (fun s => leftDerivs f s U)).sum := by |
| 182 | induction l generalizing f U k with |
| 183 | | nil => simp [convertOrder,mixJets,leftDerivs] |
| 184 | | cons p l ih => |
| 185 | have hh : ∀ q∈l, ∀ r∈l, ∀ i, q.1 i = 0 ∨ r.2 i = 0 := fun _ ha _ hb => h _ (by simp [ha]) _ (by simp [hb]) |
| 186 | have he : l.length+1 ≤ k := hl |
| 187 | have ht : Chart (l.length+1) f U := hf.of_le (Nat.cast_le.mpr he) |
| 188 | have hsplit : mixJets f (p::l) U = mixJets f (byLeft p.1 :: l) U + mixJets f (byRight p.2 :: l) U := by |
| 189 | simp only [mix_cons _ _ ht, ← map_add, show byLeft p.1 + byRight p.2 = p by ext <;> simp [byLeft,byRight]] |
| 190 | rw [hsplit, convertOrder, List.map_append,List.sum_append,List.map_map,List.map_map]; apply congr_arg₂ (· + ·) |
| 191 | · simp only [mixJets,mix_left] |
| 192 | apply ((list_hasDeriv (fun s t => leftDerivs f s (increment U (t • p.1))) |
| 193 | ((fun s => leftDerivs f s U) ∘ (p.1 :: ·)) (convertOrder U l) (fun s hs => left_has p.1 |
| 194 | (l:=s) (by simpa only [(convert_mem U (fun _ => True) l (by simp) s hs).1] using l.length.lt_succ_self) ht)).congr_of_eventuallyEq ?_).deriv |
| 195 | filter_upwards [chart_near hf p.1] with t hv |
| 196 | exact (ih _ _ hh hv (by omega)).trans (by rw [convert_edit]; exact fun q hq i => (h p (by simp) q (by simp [hq]) i).imp (fun he => by simp [he]) id) |
| 197 | let C := rotateRight U p.2 |
| 198 | have hC (q : LR G n) (hq : q∈l) (i) : C i = 0 ∨ q.1 i = 0 := (h q (by simp [hq]) p (by simp) i).symm.imp (fun he => by simp [C, rotateRight,he]) id |
| 199 | rw [show mixJets f (byRight p.2 :: l) U = leftDerivs (mixJets f l) [C] U from by simp [mixJets,leftDerivs,C,mix_right], mix_swap ht hC] |
| 200 | rw [ih _ _ hh (leftDerivs_chart [C] l.length (show Chart ([C].length+l.length) f U from by simpa [Nat.add_comm] using ht)) le_rfl] |
| 201 | simp [comp_def,Work.G07.left_append,C] |
| 202 | end Convert |
| 203 | end YM.Push.Local |