Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedlemma · leanprover/lean4:v4.32.0

ZetaAppendix.exp_geometric_partial_sums_bounded

PrimeNumberTheoremAnd.IEANTN.ZetaAppendix · PrimeNumberTheoremAnd/IEANTN/ZetaAppendix.lean:2165 to 2181

Mathematical statement

Exact Lean statement

lemma exp_geometric_partial_sums_bounded {x : ℝ} (hx : ¬ ∃ k : ℤ, x = k) :
    ∃ C : ℝ, 0 ≤ C ∧
      ∀ N : ℕ,
        ‖∑ n ∈ range N, (Complex.exp ((2 * Real.pi * x : ℝ) * Complex.I)) ^ n‖ ≤ C

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma exp_geometric_partial_sums_bounded {x : } (hx : ¬  k : , x = k) :     C : , 0  C        N : ,        ‖∑ n  range N, (Complex.exp ((2 * Real.pi * x : ) * Complex.I)) ^ n‖  C := by  let z : ℂ := Complex.exp ((2 * Real.pi * x : ) * Complex.I)  have hz_ne_one : z  1 := exp_two_pi_mul_I_ne_one_of_not_int hx  have hz_norm : ‖z‖ = 1 := norm_exp_two_pi_mul_I x  refine 2 / ‖z - 1‖, ?_, fun N  ?_  · positivity  calc    ‖∑ n  range N, z ^ n‖        = ‖(z ^ N - 1) / (z - 1)‖ := by rw [geom_sum_eq hz_ne_one]    _ = ‖z ^ N - 1/ ‖z - 1:= norm_div _ _    _  (‖z ^ N‖ + ‖(1 : ℂ)‖) / ‖z - 1:= by      gcongr      exact norm_sub_le _ _    _ = 2 / ‖z - 1:= by norm_num [norm_pow, hz_norm]