Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/LandauPoleAsym.lean
1import Development.AutomorphicArithmetic.DedekindLFunctions.LandauZeroFreeCriterion2import Development.AutomorphicArithmetic.DedekindLFunctions.LandauTheorems.LandauCauchy34open Complex MeasureTheory Set Filter Topology56noncomputable section78namespace Deduction910theorem landau_pole_asym_deriv (c ρ z : ℂ) (k : ℕ) :11iteratedDeriv k (fun s : ℂ => c * (s - ρ)⁻¹) z12= c * ((-1) ^ k * (k.factorial : ℂ) * ((z - ρ) ^ (k + 1))⁻¹) := by13rw [iteratedDeriv_const_mul_field]14congr 115have e := congrFun (iteratedDeriv_comp_sub_const k (fun t : ℂ => t⁻¹) ρ) z16rw [e, iteratedDeriv_eq_iterate, show (fun t : ℂ => t⁻¹) = Inv.inv from rfl, iter_deriv_inv,17show (-1 - k : ℤ) = -((k + 1 : ℕ) : ℤ) by push_cast; ring, zpow_neg, zpow_natCast]1819theorem landau_pole_asym {Φ : ℂ → ℂ} {z ρ c : ℂ} {r r' : ℝ} (hρ : ρ ∈ Metric.ball z r) (hne : ρ ≠ z)20(hd : DifferentiableOn ℂ Φ (Metric.ball z r \ {ρ}))21(hp : ∃ h : ℂ → ℂ, AnalyticAt ℂ h ρ ∧ ∀ᶠ s in 𝓝[≠] ρ, Φ s = c / (s - ρ) + h s)22(h0 : 0 < r') (h1 : r' < r) :23∃ M : ℝ, ∀ k : ℕ,24‖(-1) ^ k * iteratedDeriv k Φ z / (k.factorial : ℂ) - c / (z - ρ) ^ (k + 1)‖ ≤ M / r' ^ k := by25obtain ⟨hfun, han, hev⟩ := hp26have hopen : IsOpen (Metric.ball z r \ {ρ}) := Metric.isOpen_ball.sdiff isClosed_singleton27set G : ℂ → ℂ := fun s => if s = ρ then hfun ρ else Φ s - c / (s - ρ) with hG28have hGeq : G =ᶠ[𝓝 ρ] hfun := by29rw [eventually_nhdsWithin_iff] at hev30filter_upwards [hev] with s hs31by_cases hsρ : s = ρ32· rw [hsρ]33simp [G]34· simp only [G, if_neg hsρ]35rw [hs (Set.mem_compl_singleton_iff.mpr hsρ)]36ring37have hGd : DifferentiableOn ℂ G (Metric.ball z r) := by38intro s hs39by_cases hsρ : s = ρ40· rw [hsρ]41exact ((hGeq.differentiableAt_iff).mpr han.differentiableAt).differentiableWithinAt42· have hmem : s ∈ Metric.ball z r \ {ρ} := ⟨hs, hsρ⟩43have hΦ : DifferentiableAt ℂ Φ s := (hd s hmem).differentiableAt (hopen.mem_nhds hmem)44have hloc : G =ᶠ[𝓝 s] fun t => Φ t - c / (t - ρ) := by45filter_upwards [hopen.mem_nhds hmem] with t ht46have htρ : t ≠ ρ := ht.247simp only [G, if_neg htρ]48have hd' : DifferentiableAt ℂ (fun t => Φ t - c / (t - ρ)) s :=49hΦ.sub ((differentiableAt_const c).div50(differentiableAt_id.sub (differentiableAt_const ρ)) (sub_ne_zero.mpr hsρ))