Real logarithm base b #
In this file we define Real.logb to be the logarithm of a real number in a given base b. We
define this as the division of the natural logarithms of the argument and the base, so that we have
a globally defined function with logb b 0 = 0, logb b (-x) = logb b x, logb 0 x = 0, and
logb (-b) x = logb b x.
We prove some basic properties of this function and its relation to rpow.
Tags #
logarithm, continuity
theorem Real.surjOn_logb {b : ℝ} (b_pos : 0 < b) (b_ne_one : b ≠ 1) :
Set.SurjOn (logb b) (Set.Ioi 0) Set.univ
theorem Real.surjOn_logb' {b : ℝ} (b_pos : 0 < b) (b_ne_one : b ≠ 1) :
Set.SurjOn (logb b) (Set.Iio 0) Set.univ
theorem Real.strictAntiOn_logb_of_base_lt_one {b : ℝ} (b_pos : 0 < b) (b_lt_one : b < 1) :
StrictAntiOn (logb b) (Set.Ioi 0)
theorem Real.strictMonoOn_logb_of_base_lt_one {b : ℝ} (b_pos : 0 < b) (b_lt_one : b < 1) :
StrictMonoOn (logb b) (Set.Iio 0)
theorem Real.tendsto_logb_nhdsNE_zero {b : ℝ} (hb : 1 < b) :
Filter.Tendsto (logb b) (nhdsWithin 0 {0}ᶜ) Filter.atBot
theorem Real.tendsto_logb_nhdsNE_zero_of_base_lt_one {b : ℝ} (hb₀ : 0 < b) (hb : b < 1) :
Filter.Tendsto (logb b) (nhdsWithin 0 {0}ᶜ) Filter.atTop
theorem Real.tendsto_logb_nhdsGT_zero {b : ℝ} (hb : 1 < b) :
Filter.Tendsto (logb b) (nhdsWithin 0 (Set.Ioi 0)) Filter.atBot
theorem Real.tendsto_logb_nhdsGT_zero_of_base_lt_one {b : ℝ} (hb₀ : 0 < b) (hb : b < 1) :
Filter.Tendsto (logb b) (nhdsWithin 0 (Set.Ioi 0)) Filter.atTop
theorem Real.tendsto_abs_logb_atTop {b : ℝ} (hb : b ≠ -1 ∧ b ≠ 0 ∧ b ≠ 1) :
Filter.Tendsto (fun (x : ℝ) => |logb b x|) Filter.atTop Filter.atTop
The function |logb b x| tends to +∞ as x tendsto +∞.
See also tendsto_logb_atTop and tendsto_logb_atTop_of_base_lt_one.
@[simp]
theorem Real.tendsto_pow_logb_div_mul_add_atTop {b : ℝ} (a c : ℝ) (n : ℕ) (ha : a ≠ 0) :
Filter.Tendsto (fun (x : ℝ) => logb b x ^ n / (a * x + c)) Filter.atTop (nhds 0)
theorem Continuous.logb {α : Type u_1} {b : ℝ} [TopologicalSpace α] {f : α → ℝ} (hf : Continuous f) (h₀ : ∀ (x : α), f x ≠ 0) :
Continuous fun (x : α) => Real.logb b (f x)
theorem ContinuousAt.logb {α : Type u_1} {b : ℝ} [TopologicalSpace α] {f : α → ℝ} {a : α} (hf : ContinuousAt f a) (h₀ : f a ≠ 0) :
ContinuousAt (fun (x : α) => Real.logb b (f x)) a
theorem ContinuousWithinAt.logb {α : Type u_1} {b : ℝ} [TopologicalSpace α] {f : α → ℝ} {s : Set α} {a : α} (hf : ContinuousWithinAt f s a) (h₀ : f a ≠ 0) :
ContinuousWithinAt (fun (x : α) => Real.logb b (f x)) s a
theorem ContinuousOn.logb {α : Type u_1} {b : ℝ} [TopologicalSpace α] {f : α → ℝ} {s : Set α} (hf : ContinuousOn f s) (h₀ : ∀ x ∈ s, f x ≠ 0) :
ContinuousOn (fun (x : α) => Real.logb b (f x)) s
theorem Real.tendsto_logb_comp_add_sub_logb {b : ℝ} (y : ℝ) :
Filter.Tendsto (fun (x : ℝ) => logb b (x + y) - logb b x) Filter.atTop (nhds 0)
theorem Real.tendsto_logb_nat_add_one_sub_logb {b : ℝ} :
Filter.Tendsto (fun (k : ℕ) => logb b (↑k + 1) - logb b ↑k) Filter.atTop (nhds 0)
theorem Real.induction_Ico_mul {P : ℝ → Prop} (x₀ r : ℝ) (hr : 1 < r) (hx₀ : 0 < x₀) (base : ∀ x ∈ Set.Ico x₀ (r * x₀), P x) (step : ∀ n ≥ 1, (∀ z ∈ Set.Ico x₀ (r ^ n * x₀), P z) → ∀ z ∈ Set.Ico (r ^ n * x₀) (r ^ (n + 1) * x₀), P z) (x : ℝ) :
x ≥ x₀ → P x
Induction principle for intervals of real numbers: if a proposition P is true
on [x₀, r * x₀) and if P for [x₀, r^n * x₀) implies P for [r^n * x₀, r^(n+1) * x₀),
then P is true for all x ≥ x₀.