The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V15. Real analysis in one variable

Mathlib.Analysis.SpecialFunctions.Log.Base

114 declarations. Mathlib docs · Source

def Real.logb E1 #

ℝ → ℝ → ℝ

The real logarithm in a given base. As with the natural logarithm, we define logb b x to be logb b |x| for x < 0, and 0 for x = 0.

theorem Real.log_div_log E1 #

∀ {b x : ℝ}, Real.log x / Real.log b = Real.logb b x

theorem Real.logb_zero E0 #

∀ {b : ℝ}, Real.logb b 0 = 0

theorem Real.logb_one E0 #

∀ {b : ℝ}, Real.logb b 1 = 0

theorem Real.logb_zero_left E1 #

∀ {x : ℝ}, Real.logb 0 x = 0

theorem Real.logb_zero_left_eq_zero E0 #

Real.logb 0 = 0

theorem Real.logb_one_left E1 #

∀ {x : ℝ}, Real.logb 1 x = 0

theorem Real.logb_one_left_eq_zero E0 #

Real.logb 1 = 0

theorem Real.logb_self_eq_one E0 #

∀ {b : ℝ}, 1 < b → Real.logb b b = 1

theorem Real.logb_self_eq_one_iff E0 #

∀ {b : ℝ}, Real.logb b b = 1 ↔ b ≠ 0 ∧ b ≠ 1 ∧ b ≠ -1

theorem Real.logb_abs_base E0 #

∀ (b x : ℝ), Real.logb |b| x = Real.logb b x

theorem Real.logb_abs E0 #

∀ (b x : ℝ), Real.logb b |x| = Real.logb b x

theorem Real.logb_neg_base_eq_logb E0 #

∀ (b : ℝ), Real.logb (-b) = Real.logb b

theorem Real.logb_neg_eq_logb E0 #

∀ (b x : ℝ), Real.logb b (-x) = Real.logb b x

theorem Real.logb_mul E1 #

∀ {b x y : ℝ}, x ≠ 0 → y ≠ 0 → Real.logb b (x * y) = Real.logb b x + Real.logb b y

theorem Real.logb_div E1 #

∀ {b x y : ℝ}, x ≠ 0 → y ≠ 0 → Real.logb b (x / y) = Real.logb b x - Real.logb b y

theorem Real.logb_inv E0 #

∀ (b x : ℝ), Real.logb b x⁻¹ = -Real.logb b x

theorem Real.logb_inv_base E0 #

∀ (b x : ℝ), Real.logb b⁻¹ x = -Real.logb b x

theorem Real.inv_logb E1 #

∀ (a b : ℝ), (Real.logb a b)⁻¹ = Real.logb b a

theorem Real.inv_logb_mul_base E1 #

∀ {a b : ℝ}, a ≠ 0 → b ≠ 0 → ∀ (c : ℝ), (Real.logb (a * b) c)⁻¹ = (Real.logb a c)⁻¹ + (Real.logb b c)⁻¹

theorem Real.inv_logb_div_base E1 #

∀ {a b : ℝ}, a ≠ 0 → b ≠ 0 → ∀ (c : ℝ), (Real.logb (a / b) c)⁻¹ = (Real.logb a c)⁻¹ - (Real.logb b c)⁻¹

theorem Real.logb_mul_base E1 #

∀ {a b : ℝ}, a ≠ 0 → b ≠ 0 → ∀ (c : ℝ), Real.logb (a * b) c = ((Real.logb a c)⁻¹ + (Real.logb b c)⁻¹)⁻¹

theorem Real.logb_div_base E1 #

∀ {a b : ℝ}, a ≠ 0 → b ≠ 0 → ∀ (c : ℝ), Real.logb (a / b) c = ((Real.logb a c)⁻¹ - (Real.logb b c)⁻¹)⁻¹

theorem Real.mul_logb E1 #

∀ {a b c : ℝ}, b ≠ 0 → b ≠ 1 → b ≠ -1 → Real.logb a b * Real.logb b c = Real.logb a c

theorem Real.div_logb E1 #

∀ {a b c : ℝ}, c ≠ 0 → c ≠ 1 → c ≠ -1 → Real.logb a c / Real.logb b c = Real.logb a b

theorem Real.logb_rpow_eq_mul_logb_of_pos E1 #

∀ {b x y : ℝ}, 0 < x → Real.logb b (x ^ y) = y * Real.logb b x

theorem Real.logb_pow E1 #

∀ (b x : ℝ) (k : ℕ), Real.logb b (x ^ k) = ↑k * Real.logb b x

theorem Real.logb_rpow E0 #

∀ {b x : ℝ}, 0 < b → b ≠ 1 → Real.logb b (b ^ x) = x

theorem Real.rpow_logb_eq_abs E1 #

∀ {b x : ℝ}, 0 < b → b ≠ 1 → x ≠ 0 → b ^ Real.logb b x = |x|

theorem Real.rpow_logb E0 #

∀ {b x : ℝ}, 0 < b → b ≠ 1 → 0 < x → b ^ Real.logb b x = x

theorem Real.rpow_logb_of_neg E1 #

∀ {b x : ℝ}, 0 < b → b ≠ 1 → x < 0 → b ^ Real.logb b x = -x

theorem Real.logb_eq_iff_rpow_eq E0 #

∀ {b x y : ℝ}, 0 < b → b ≠ 1 → 0 < y → (Real.logb b y = x ↔ b ^ x = y)

theorem Real.surjOn_logb E1 #

∀ {b : ℝ}, 0 < b → b ≠ 1 → Set.SurjOn (Real.logb b) (Set.Ioi 0) Set.univ

theorem Real.logb_surjective E1 #

∀ {b : ℝ}, 0 < b → b ≠ 1 → Function.Surjective (Real.logb b)

theorem Real.range_logb E0 #

∀ {b : ℝ}, 0 < b → b ≠ 1 → Set.range (Real.logb b) = Set.univ

theorem Real.surjOn_logb' E1 #

∀ {b : ℝ}, 0 < b → b ≠ 1 → Set.SurjOn (Real.logb b) (Set.Iio 0) Set.univ

theorem Real.logb_le_logb E0 #

∀ {b x y : ℝ}, 1 < b → 0 < x → 0 < y → (Real.logb b x ≤ Real.logb b y ↔ x ≤ y)

theorem Real.logb_le_logb_of_le E1 #

∀ {b x y : ℝ}, 1 < b → 0 < x → x ≤ y → Real.logb b x ≤ Real.logb b y

theorem Real.logb_lt_logb E1 #

∀ {b x y : ℝ}, 1 < b → 0 < x → x < y → Real.logb b x < Real.logb b y

theorem Real.logb_lt_logb_iff E0 #

∀ {b x y : ℝ}, 1 < b → 0 < x → 0 < y → (Real.logb b x < Real.logb b y ↔ x < y)

theorem Real.logb_le_iff_le_rpow E1 #

∀ {b x y : ℝ}, 1 < b → 0 < x → (Real.logb b x ≤ y ↔ x ≤ b ^ y)

theorem Real.logb_lt_iff_lt_rpow E1 #

∀ {b x y : ℝ}, 1 < b → 0 < x → (Real.logb b x < y ↔ x < b ^ y)

theorem Real.le_logb_iff_rpow_le E1 #

∀ {b x y : ℝ}, 1 < b → 0 < y → (x ≤ Real.logb b y ↔ b ^ x ≤ y)

theorem Real.lt_logb_iff_rpow_lt E1 #

∀ {b x y : ℝ}, 1 < b → 0 < y → (x < Real.logb b y ↔ b ^ x < y)

theorem Real.logb_pos_iff E0 #

∀ {b x : ℝ}, 1 < b → 0 < x → (0 < Real.logb b x ↔ 1 < x)

theorem Real.logb_pos E1 #

∀ {b x : ℝ}, 1 < b → 1 < x → 0 < Real.logb b x

theorem Real.logb_neg_iff E0 #

∀ {b x : ℝ}, 1 < b → 0 < x → (Real.logb b x < 0 ↔ x < 1)

theorem Real.logb_neg E1 #

∀ {b x : ℝ}, 1 < b → 0 < x → x < 1 → Real.logb b x < 0

theorem Real.logb_nonneg_iff E0 #

∀ {b x : ℝ}, 1 < b → 0 < x → (0 ≤ Real.logb b x ↔ 1 ≤ x)

theorem Real.logb_nonneg E1 #

∀ {b x : ℝ}, 1 < b → 1 ≤ x → 0 ≤ Real.logb b x

theorem Real.logb_nonpos_iff E0 #

∀ {b x : ℝ}, 1 < b → 0 < x → (Real.logb b x ≤ 0 ↔ x ≤ 1)

theorem Real.logb_nonpos_iff' E1 #

∀ {b x : ℝ}, 1 < b → 0 ≤ x → (Real.logb b x ≤ 0 ↔ x ≤ 1)

theorem Real.logb_nonpos E1 #

∀ {b x : ℝ}, 1 < b → 0 ≤ x → x ≤ 1 → Real.logb b x ≤ 0

theorem Real.strictMonoOn_logb E1 #

∀ {b : ℝ}, 1 < b → StrictMonoOn (Real.logb b) (Set.Ioi 0)

theorem Real.strictAntiOn_logb E1 #

∀ {b : ℝ}, 1 < b → StrictAntiOn (Real.logb b) (Set.Iio 0)

theorem Real.logb_injOn_pos E1 #

∀ {b : ℝ}, 1 < b → Set.InjOn (Real.logb b) (Set.Ioi 0)

theorem Real.logb_ne_zero_of_pos_of_ne_one E1 #

∀ {b x : ℝ}, 1 < b → 0 < x → x ≠ 1 → Real.logb b x ≠ 0

theorem Real.tendsto_logb_atTop E1 #

∀ {b : ℝ}, 1 < b → Filter.Tendsto (Real.logb b) Filter.atTop Filter.atTop

theorem Real.logb_le_logb_of_base_lt_one E0 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < x → 0 < y → (Real.logb b x ≤ Real.logb b y ↔ y ≤ x)

theorem Real.logb_lt_logb_of_base_lt_one E1 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < x → x < y → Real.logb b y < Real.logb b x

theorem Real.logb_lt_logb_iff_of_base_lt_one E0 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < x → 0 < y → (Real.logb b x < Real.logb b y ↔ y < x)

theorem Real.logb_le_iff_le_rpow_of_base_lt_one E1 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < x → (Real.logb b x ≤ y ↔ b ^ y ≤ x)

theorem Real.logb_lt_iff_lt_rpow_of_base_lt_one E1 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < x → (Real.logb b x < y ↔ b ^ y < x)

theorem Real.le_logb_iff_rpow_le_of_base_lt_one E1 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < y → (x ≤ Real.logb b y ↔ y ≤ b ^ x)

theorem Real.lt_logb_iff_rpow_lt_of_base_lt_one E1 #

∀ {b x y : ℝ}, 0 < b → b < 1 → 0 < y → (x < Real.logb b y ↔ y < b ^ x)

theorem Real.logb_pos_iff_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → (0 < Real.logb b x ↔ x < 1)

theorem Real.logb_pos_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → x < 1 → 0 < Real.logb b x

theorem Real.logb_neg_iff_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → (Real.logb b x < 0 ↔ 1 < x)

theorem Real.logb_neg_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 1 < x → Real.logb b x < 0

theorem Real.logb_nonneg_iff_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → (0 ≤ Real.logb b x ↔ x ≤ 1)

theorem Real.logb_nonneg_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → x ≤ 1 → 0 ≤ Real.logb b x

theorem Real.logb_nonpos_iff_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → (Real.logb b x ≤ 0 ↔ 1 ≤ x)

theorem Real.strictAntiOn_logb_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → StrictAntiOn (Real.logb b) (Set.Ioi 0)

theorem Real.strictMonoOn_logb_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → StrictMonoOn (Real.logb b) (Set.Iio 0)

theorem Real.logb_injOn_pos_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → Set.InjOn (Real.logb b) (Set.Ioi 0)

theorem Real.logb_ne_zero_of_pos_of_ne_one_of_base_lt_one E1 #

∀ {b x : ℝ}, 0 < b → b < 1 → 0 < x → x ≠ 1 → Real.logb b x ≠ 0

theorem Real.tendsto_logb_atTop_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → Filter.Tendsto (Real.logb b) Filter.atTop Filter.atBot

theorem Real.floor_logb_natCast E1 #

∀ {b : ℕ} {r : ℝ}, 0 ≤ r → ⌊Real.logb (↑b) r⌋ = Int.log b r

theorem Real.ceil_logb_natCast E1 #

∀ {b : ℕ} {r : ℝ}, 0 ≤ r → ⌈Real.logb (↑b) r⌉ = Int.clog b r

theorem Real.natFloor_logb_natCast E1 #

∀ (b n : ℕ), ⌊Real.logb ↑b ↑n⌋₊ = Nat.log b n

theorem Real.natCeil_logb_natCast E1 #

∀ (b n : ℕ), ⌈Real.logb ↑b ↑n⌉₊ = Nat.clog b n

theorem Real.natLog_le_logb E1 #

∀ (a b : ℕ), ↑(Nat.log b a) ≤ Real.logb ↑b ↑a

theorem Real.log2_le_logb E1 #

∀ (n : ℕ), ↑n.log2 ≤ Real.logb 2 ↑n

theorem Real.logb_eq_zero E0 #

∀ {b x : ℝ}, Real.logb b x = 0 ↔ b = 0 ∨ b = 1 ∨ b = -1 ∨ x = 0 ∨ x = 1 ∨ x = -1

theorem Real.tendsto_logb_nhdsNE_zero E1 #

∀ {b : ℝ}, 1 < b → Filter.Tendsto (Real.logb b) (nhdsWithin 0 {0}ᶜ) Filter.atBot

theorem Real.tendsto_logb_nhdsNE_zero_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → Filter.Tendsto (Real.logb b) (nhdsWithin 0 {0}ᶜ) Filter.atTop

theorem Real.tendsto_logb_nhdsGT_zero E1 #

∀ {b : ℝ}, 1 < b → Filter.Tendsto (Real.logb b) (nhdsWithin 0 (Set.Ioi 0)) Filter.atBot

theorem Real.tendsto_logb_nhdsGT_zero_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → Filter.Tendsto (Real.logb b) (nhdsWithin 0 (Set.Ioi 0)) Filter.atTop

theorem Real.tendsto_abs_logb_atTop E1 #

∀ {b : ℝ}, b ≠ -1 ∧ b ≠ 0 ∧ b ≠ 1 → Filter.Tendsto (fun x ↦ |Real.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.

theorem Real.continuousOn_logb E1 #

∀ {b : ℝ}, ContinuousOn (Real.logb b) {0}ᶜ

theorem Real.continuous_logb E1 #

∀ {b : ℝ}, Continuous fun x ↦ Real.logb b ↑x

The real logarithm base b is continuous as a function from nonzero reals.

theorem Real.continuous_logb' E1 #

∀ {b : ℝ}, Continuous fun x ↦ Real.logb b ↑x

The real logarithm base b is continuous as a function from positive reals.

theorem Real.continuousAt_logb E1 #

∀ {b x : ℝ}, x ≠ 0 → ContinuousAt (Real.logb b) x

theorem Real.continuousAt_logb_iff E0 #

∀ {b x : ℝ}, 0 < b → b ≠ 1 → (ContinuousAt (Real.logb b) x ↔ x ≠ 0)

theorem Real.logb_prod E1 #

∀ {b : ℝ} {α : Type u_1} (s : Finset α) (f : α → ℝ),
  (∀ x ∈ s, f x ≠ 0) → Real.logb b (∏ i ∈ s, f i) = ∑ i ∈ s, Real.logb b (f i)

theorem Finsupp.logb_prod E1 #

∀ {b : ℝ} {α : Type u_1} {β : Type u_2} [inst : Zero β] (f : α →₀ β) (g : α → β → ℝ),
  (∀ (a : α), g a (f a) = 0 → f a = 0) → Real.logb b (f.prod g) = f.sum fun a c ↦ Real.logb b (g a c)

theorem Real.logb_nat_eq_sum_factorization E1 #

∀ {b : ℝ} (n : ℕ), Real.logb b ↑n = n.factorization.sum fun p t ↦ ↑t * Real.logb b ↑p

theorem Real.tendsto_pow_logb_div_mul_add_atTop E1 #

∀ {b : ℝ} (a c : ℝ) (n : ℕ), a ≠ 0 → Filter.Tendsto (fun x ↦ Real.logb b x ^ n / (a * x + c)) Filter.atTop (nhds 0)

theorem Real.isLittleO_pow_logb_id_atTop E1 #

∀ {b : ℝ} {n : ℕ}, (fun x ↦ Real.logb b x ^ n) =o[Filter.atTop] id

theorem Real.isLittleO_logb_id_atTop E1 #

∀ {b : ℝ}, Real.logb b =o[Filter.atTop] id

theorem Real.isLittleO_const_logb_atTop E1 #

∀ {b c : ℝ}, b ≠ -1 ∧ b ≠ 0 ∧ b ≠ 1 → (fun x ↦ c) =o[Filter.atTop] Real.logb b

theorem Real.isBigO_logb_log E1 #

∀ {b : ℝ}, Real.logb b =O[⊤] Real.log

theorem Real.isBigO_log_const_mul_log_atTop E1 #

∀ (c : ℝ), (fun x ↦ Real.log (c * x)) =O[Filter.atTop] Real.log

theorem Real.isBigO_log_mul_const_log_atTop E1 #

∀ (c : ℝ), (fun x ↦ Real.log (x * c)) =O[Filter.atTop] Real.log

theorem Real.isBigO_logb_const_mul_log_atTop E1 #

∀ {b : ℝ} (c : ℝ), (fun x ↦ Real.logb b (c * x)) =O[Filter.atTop] Real.log

theorem Real.isBigO_logb_mul_const_log_atTop E1 #

∀ {b : ℝ} (c : ℝ), (fun x ↦ Real.logb b (x * c)) =O[Filter.atTop] Real.log

theorem Filter.Tendsto.logb E1 #

∀ {α : Type u_1} {b : ℝ} {f : α → ℝ} {l : Filter α} {x : ℝ},
  Filter.Tendsto f l (nhds x) → x ≠ 0 → Filter.Tendsto (fun y ↦ Real.logb b (f y)) l (nhds (Real.logb b x))

theorem Continuous.logb E1 #

∀ {α : Type u_1} {b : ℝ} [inst : TopologicalSpace α] {f : α → ℝ},
  Continuous f → (∀ (x : α), f x ≠ 0) → Continuous fun x ↦ Real.logb b (f x)

theorem ContinuousAt.logb E1 #

∀ {α : Type u_1} {b : ℝ} [inst : TopologicalSpace α] {f : α → ℝ} {a : α},
  ContinuousAt f a → f a ≠ 0 → ContinuousAt (fun x ↦ Real.logb b (f x)) a

theorem ContinuousWithinAt.logb E1 #

∀ {α : Type u_1} {b : ℝ} [inst : TopologicalSpace α] {f : α → ℝ} {s : Set α} {a : α},
  ContinuousWithinAt f s a → f a ≠ 0 → ContinuousWithinAt (fun x ↦ Real.logb b (f x)) s a

theorem ContinuousOn.logb E1 #

∀ {α : Type u_1} {b : ℝ} [inst : TopologicalSpace α] {f : α → ℝ} {s : Set α},
  ContinuousOn f s → (∀ x ∈ s, f x ≠ 0) → ContinuousOn (fun x ↦ Real.logb b (f x)) s

theorem Real.tendsto_logb_comp_add_sub_logb E1 #

∀ {b : ℝ} (y : ℝ), Filter.Tendsto (fun x ↦ Real.logb b (x + y) - Real.logb b x) Filter.atTop (nhds 0)

theorem Real.tendsto_logb_nat_add_one_sub_logb E1 #

∀ {b : ℝ}, Filter.Tendsto (fun k ↦ Real.logb b (↑k + 1) - Real.logb b ↑k) Filter.atTop (nhds 0)

theorem Real.induction_Ico_mul E2 #

∀ {P : ℝ → Prop} (x₀ r : ℝ),
  1 < r →
    0 < x₀ →
      (∀ x ∈ Set.Ico x₀ (r * x₀), P x) →
        (∀ 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₀, 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₀.