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.LOOP_COEFFICIENT.Pullback |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Complex jets at zero momentum |
| 8 | |
| 9 | Continue identities, *not* finite-torus interpolants. Ordered/isolated-zeros |
| 10 | trick as in BOUNDARY. Real counting values versus complex line calculus. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Push.Loops |
| 15 | open Function Filter Bloch Complex Set Metric |
| 16 | open scoped Topology ContDiff BigOperators |
| 17 | |
| 18 | lemma continue_real {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] |
| 19 | {s : Set Momentum} {f g : Momentum → F} (hs : Convex ℝ s) (ho : IsOpen s) |
| 20 | (hf : AnalyticOnNhd ℂ f s) (hg : AnalyticOnNhd ℂ g s) |
| 21 | (h : ∀ p∈s, star p = p → f p = g p) (z : Momentum) (hz : z∈s) |
| 22 | (hR : (fun i => ((z i).re:ℂ)) ∈ s) : f z = g z := by |
| 23 | let W (t : ℂ) : Momentum := fun i => ((z i).re:ℂ)+t*((z i).im:ℂ) |
| 24 | have hw : ContDiff ℂ ω W := by unfold W; fun_prop |
| 25 | let U := W ⁻¹' s |
| 26 | have hU : Convex ℝ U := by |
| 27 | intro x hx y hy a b ha hb hab |
| 28 | change W (a • x + b • y) ∈ s |
| 29 | rw [show W (a • x+b • y) = a • W x+b • W y from ?_] |
| 30 | · exact hs hx hy ha hb hab |
| 31 | funext i; dsimp [W, real_smul] |
| 32 | have hab' : (a:ℂ) + b = 1 := by exact_mod_cast hab |
| 33 | linear_combination - ((z i).re:ℂ) * hab' |
| 34 | have hO := ho.preimage hw.continuous |
| 35 | have ht : (0:ℂ) ∈ U := by simpa [U,W] using hR |
| 36 | have hI : W I = z := by ext1 i; dsimp [W]; rw [mul_comm, re_add_im] |
| 37 | have hT : Tendsto ((↑):ℝ→ℂ) (𝓝[>] 0) (𝓝[≠] 0) := by |
| 38 | apply tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within |
| 39 | · simpa using ((continuous_ofReal.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi 0))) |
| 40 | filter_upwards [self_mem_nhdsWithin] with t ht; simpa using (mem_Ioi.mp ht).ne' |
| 41 | have he := (hf.comp (hw.analyticOnNhd) (mapsTo_preimage W s)).eqOn_of_preconnected_of_frequently_eq |
| 42 | (hg.comp (hw.analyticOnNhd) (mapsTo_preimage W s)) hU.isPreconnected ht (by |
| 43 | intro hn; obtain ⟨t,h₁,h₂⟩ := ((hT.eventually hn).and ((hT.mono_right nhdsWithin_le_nhds).eventually (hO.mem_nhds ht))).exists |
| 44 | exact h₁ (h _ h₂ (by ext1; simp [W]))) (show I ∈ U from (show W I ∈ s by rwa [hI])) |
| 45 | simpa [comp_def,hI] using he |
| 46 | |
| 47 | lemma germ_real {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] |
| 48 | {f g : Momentum → F} (hf : AnalyticAt ℂ f 0) (hg : AnalyticAt ℂ g 0) |
| 49 | (h : ∀ᶠ p in 𝓝 0, star p = p → f p = g p) : f =ᶠ[𝓝 0] g := by |
| 50 | obtain ⟨r,hr,he⟩ := Metric.nhds_basis_ball.mem_iff.mp ((hf.eventually_analyticAt.and hg.eventually_analyticAt).and h) |
| 51 | filter_upwards [ball_mem_nhds (0:Momentum) hr] with p hp |
| 52 | refine continue_real (convex_ball 0 r) isOpen_ball (fun x hx => (he hx).1.1) (fun x hx => (he hx).1.2) (fun x hx => (he hx).2) p hp ?_ |
| 53 | simp only [mem_ball,dist_zero_right] at hp ⊢ |
| 54 | refine lt_of_le_of_lt ((pi_norm_le_iff_of_nonneg (norm_nonneg p)).2 fun i => ?_) hp |
| 55 | exact (by simpa using (abs_re_le_norm (p i)).trans (norm_le_pi_norm p i)) |
| 56 | |
| 57 | /-- Momentum derivative along a complex line (not divided by factorial). |
| 58 | Keep scalar to avoid accidental norm instances for matrices. -/ |
| 59 | def lineD (f : Momentum → ℂ) (p : Momentum) (n : ℕ) := iteratedDeriv n (fun t : ℂ => f (t • p)) 0 |
| 60 | |
| 61 | def Below (f : Momentum → ℂ) (p : Momentum) (n : ℕ) : Prop := ∀ i < n,lineD f p i = 0 |
| 62 | |
| 63 | variable {f g : Momentum → ℂ} {n a b : ℕ} {p : Momentum} |
| 64 | |
| 65 | @[simp] lemma line_zero : lineD f p 0 = f 0 := by simp [lineD] |
| 66 | @[simp] lemma line_vac (p n) : lineD (fun _ => 0) p n = 0 := by simp [lineD] |
| 67 | lemma line_neg (f : Momentum → ℂ) (p n) : lineD f (-p) n = (-1)^n * lineD f p n := by |
| 68 | simpa [lineD, neg_smul] using iteratedDeriv_comp_neg n (fun t : ℂ => f (t • p)) 0 |
| 69 | lemma tendsto_ray (p : Momentum) : Tendsto (fun t : ℂ => t • p) (𝓝 0) (𝓝 0) := by |
| 70 | simpa only [zero_smul] using ((show Continuous (fun t : ℂ => t • p) by fun_prop).tendsto 0) |
| 71 | lemma line_congr (h : f =ᶠ[𝓝 0] g) (p n) : lineD f p n = lineD g p n := by |
| 72 | apply EventuallyEq.iteratedDeriv_eq |
| 73 | exact (tendsto_ray p).eventually h |
| 74 | |
| 75 | lemma below_zero : Below f p 0 := by simp [Below] |
| 76 | lemma below_one (h : f 0 = 0) : Below f p 1 := by simpa [Below] using h |
| 77 | lemma below_succ : Below f p (n+1) ↔ Below f p n ∧ lineD f p n = 0 := by unfold Below; exact ⟨fun h => ⟨fun _ hi => h _ (by omega),h n (by omega)⟩,fun ⟨h,h'⟩ i hi => by rcases Nat.lt_or_eq_of_le (Nat.le_of_lt_succ hi) with ha|rfl; exacts [h i ha,h']⟩ |
| 78 | |
| 79 | variable (hf : ContDiffAt ℂ ω f 0) (hg : ContDiffAt ℂ ω g 0) |
| 80 | include hf |
| 81 | lemma line_smooth (p : Momentum) (n : ℕ∞ω) : ContDiffAt ℂ n (fun t : ℂ => f (t • p)) 0 := |
| 82 | ((show ContDiffAt ℂ ω f ((0:ℂ) • p) by rwa [zero_smul]).of_le le_top).comp (f:=fun t => t • p) (0:ℂ) (by fun_prop) |
| 83 | |
| 84 | lemma line_one (p : Momentum) : lineD f p 1 = fderiv ℂ f 0 p := by |
| 85 | rw [lineD, iteratedDeriv_one]; have h₁ : HasDerivAt (fun t : ℂ => t • p) p 0 := by simpa only [one_smul] using (hasDerivAt_id' (0:ℂ)).smul_const p |
| 86 | exact ((show HasFDerivAt f (fderiv ℂ f 0) ((0:ℂ) • p) by simpa using (hf.differentiableAt (by simp)).hasFDerivAt).comp_hasDerivAt 0 h₁).deriv |
| 87 | |
| 88 | private lemma fd_ray (p : Momentum) : deriv (fun t : ℂ => f (t • p)) =ᶠ[𝓝 0] fun t : ℂ => fderiv ℂ f (t • p) p := by |
| 89 | have h : Tendsto (fun t : ℂ => t • p) (𝓝 0) (𝓝 0) := tendsto_ray p |
| 90 | filter_upwards [h.eventually (hf.eventually (by simp))] with t ht |
| 91 | exact ((ht.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt t (show HasDerivAt (fun z : ℂ => z • p) p t by simpa only [one_smul] using (hasDerivAt_id' t).smul_const p)).deriv |
| 92 | lemma line_two (p : Momentum) : lineD f p 2 = fderiv ℂ (fderiv ℂ f) 0 p p := by |
| 93 | rw [lineD, iteratedDeriv_succ,iteratedDeriv_one,(fd_ray hf p).deriv_eq] |
| 94 | have h₁ : HasDerivAt (fun t : ℂ => t • p) p 0 := by simpa only [one_smul] using (hasDerivAt_id' (0:ℂ)).smul_const p |
| 95 | have h₂ := ((hf.fderiv_right (m:=ω) (by simp)).differentiableAt (by simp)).hasFDerivAt |
| 96 | have hcomp : HasDerivAt (fun z : ℂ => fderiv ℂ f (z • p)) (fderiv ℂ (fderiv ℂ f) 0 p) 0 := (show HasFDerivAt (fderiv ℂ f) (fderiv ℂ (fderiv ℂ f) 0) ((0:ℂ) • p) by rw [zero_smul]; exact h₂).comp_hasDerivAt 0 h₁ |
| 97 | have h₃ := hcomp.clm_apply (hasDerivAt_const 0 p) |
| 98 | simpa only [map_zero,add_zero,Function.comp_def] using h₃.deriv |
| 99 | |
| 100 | include hg |
| 101 | lemma line_mul (p n) : lineD (fun z => f z * g z) p n = |
| 102 | ∑ i ∈ Finset.range (n+1),(n.choose i:ℂ) * lineD f p i * lineD g p (n-i) := iteratedDeriv_fun_mul (line_smooth hf p n) (line_smooth hg p n) |
| 103 | lemma line_sub (p n) : lineD (fun z => f z - g z) p n = lineD f p n - lineD g p n := |
| 104 | iteratedDeriv_fun_sub (line_smooth hf p n) (line_smooth hg p n) |
| 105 | lemma line_add (p n) : lineD (fun z => f z + g z) p n = lineD f p n + lineD g p n := |
| 106 | iteratedDeriv_fun_add (line_smooth hf p n) (line_smooth hg p n) |
| 107 | lemma Below.mul (h : Below f p a) (h' : Below g p b) : Below (fun z => f z * g z) p (a+b) := by |
| 108 | intro k hk; rw [line_mul hf hg] |
| 109 | apply Finset.sum_eq_zero; intro i hi; by_cases hi' : i < a |
| 110 | · rw [h i hi',mul_zero,zero_mul] |
| 111 | rw [h' (k-i) (by simp only [Finset.mem_range] at hi; omega),mul_zero] |
| 112 | lemma Below.product (h : Below f p a) (h' : Below g p b) : lineD (fun z => f z * g z) p (a+b) = |
| 113 | ((a+b).choose a:ℂ) * lineD f p a * lineD g p b := by |
| 114 | rw [line_mul hf hg,Finset.sum_eq_single a,Nat.add_sub_cancel_left] |
| 115 | · intro i hi ha; by_cases hi' : i < a |
| 116 | · rw [h i hi',mul_zero,zero_mul] |
| 117 | rw [h' (a+b-i) (by simp only [Finset.mem_range] at hi; omega),mul_zero] |
| 118 | simp |
| 119 | omit hf hg in |
| 120 | lemma line_sum {ι : Type*} (s : Finset ι) (u : ι → Momentum → ℂ) (h : ∀ i∈s,ContDiffAt ℂ ω (u i) 0) (p n) : |
| 121 | lineD (fun z => ∑ i∈s,u i z) p n = ∑ i∈s,lineD (u i) p n := iteratedDeriv_fun_sum fun i hi => line_smooth (h i hi) p n |
| 122 | omit hf hg in |
| 123 | lemma line_const_mul (c : ℂ) (p n) : lineD (fun z => c * f z) p n = c * lineD f p n := iteratedDeriv_const_mul_field .. |
| 124 | |
| 125 | omit hf hg |
| 126 | |
| 127 | lemma real_line {u : ℂ → ℂ} {x : ℝ} (h : ∀ᶠ (t : ℝ) in 𝓝 x, star (u (t:ℂ)) = u (t:ℂ)) (hd : DifferentiableAt ℂ u (x:ℂ)) : |
| 128 | star (deriv u (x:ℂ)) = deriv u (x:ℂ) := by |
| 129 | have he : (fun t : ℝ => ((u (t:ℂ)).re:ℂ)) =ᶠ[𝓝 x] fun t : ℝ => u (t:ℂ) := h.mono fun t ht => by |
| 130 | rw [Complex.star_def] at ht |
| 131 | rw [Complex.conj_eq_iff_re] at ht; exact ht |
| 132 | have he' := hd.hasDerivAt |
| 133 | rw [← he'.comp_ofReal.deriv, ← he.deriv_eq,he'.real_of_complex.ofReal_comp.deriv]; simp |
| 134 | |
| 135 | lemma real_iterate {u : ℂ → ℂ} {x : ℝ} (h : ∀ᶠ (t : ℝ) in 𝓝 x, star (u (t:ℂ)) = u (t:ℂ)) (hd : ContDiffAt ℂ ω u (x:ℂ)) (n : ℕ) : |
| 136 | star (iteratedDeriv n u (x:ℂ)) = iteratedDeriv n u (x:ℂ) := by |
| 137 | induction n generalizing u with |
| 138 | | zero => simpa using h.self_of_nhds |
| 139 | | succ n ih => |
| 140 | rw [iteratedDeriv_succ']; exact ih (by |
| 141 | filter_upwards [eventually_eventually_nhds.mpr h, (continuous_ofReal.tendsto x).eventually (hd.eventually (by simp))] with t ht h' |
| 142 | exact real_line ht (h'.differentiableAt (by simp))) ((hd.fderiv_right (m:=ω) (by simp)).clm_apply (g:=fun _ => (1:ℂ)) contDiffAt_const) |
| 143 | end YM.Push.Loops |