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

RS_prime.leftLim_theta_succ

PrimeNumberTheoremAnd.IEANTN.RosserSchoenfeld.RosserSchoenfeldPrime · PrimeNumberTheoremAnd/IEANTN/RosserSchoenfeld/RosserSchoenfeldPrime.lean:139 to 156

Mathematical statement

Exact Lean statement

lemma leftLim_theta_succ (k : ℕ) : Function.leftLim θ (k + 1) = θ k

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma leftLim_theta_succ (k : ) : Function.leftLim θ (k + 1) = θ k := by  rw [leftLim_eq_of_tendsto (y := θ ↑k)]  · rw [nhdsWithin_restrict (t := Set.Ioo ↑k ↑(k + 2))]    · rw [Set.Iio_inter_Ioo]      apply tendsto_nhdsWithin_congr (f := fun _ => θ ↑k)      · intro y hy        have floor_k_eq: ⌊(k : )⌋₊ = ⌊(y: )⌋₊ := by          rw [eq_comm, Nat.floor_eq_iff]          · simp            grind          · simp at hy            linarith        rw [Chebyshev.theta_eq_theta_coe_floor]        rw [Chebyshev.theta_eq_theta_coe_floor (x := y)]        congr      · simp    · simp    · exact isOpen_Ioo