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.SpecificLimits.Basic

87 declarations. Mathlib docs · Source

A collection of specific limit computations

This file, by design, is independent of NormedSpace in the import hierarchy. It contains important specific limit computations in metric spaces, in ordered rings/fields, and in specific instances of these such as ℝ, ℝ≥0 and ℝ≥0∞.

Powers

Geometric series

Sequences with geometrically decaying distance in metric spaces

In this paragraph, we discuss sequences in metric spaces or emetric spaces for which the distance between two consecutive terms decays geometrically. We show that such sequences are Cauchy sequences, and bound their distances to the limit. We also discuss series with geometrically decaying terms.

Summability tests based on comparison with geometric series

Positive sequences with small sums on countable types

Factorial

Ceil and floor

theorem NNRat.tendsto_inv_atTop_nhds_zero_nat E1 #

Filter.Tendsto (fun n ↦ (↑n)⁻¹) Filter.atTop (nhds 0)

theorem NNRat.tendsto_algebraMap_inv_atTop_nhds_zero_nat E1 #

∀ (𝕜 : Type u_4) [inst : Semiring 𝕜] [inst_1 : Algebra ℚ≥0 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜],
  Filter.Tendsto (⇑(algebraMap ℚ≥0 𝕜) ∘ fun n ↦ (↑n)⁻¹) Filter.atTop (nhds 0)

theorem tendsto_inv_atTop_nhds_zero_nat E1 #

∀ {𝕜 : Type u_4} [inst : DivisionSemiring 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜],
  Filter.Tendsto (fun n ↦ (↑n)⁻¹) Filter.atTop (nhds 0)

theorem tendsto_const_div_atTop_nhds_zero_nat E1 #

∀ {𝕜 : Type u_4} [inst : DivisionSemiring 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜]
  [ContinuousMul 𝕜] (C : 𝕜), Filter.Tendsto (fun n ↦ C / ↑n) Filter.atTop (nhds 0)

theorem tendsto_one_div_atTop_nhds_zero_nat E1 #

∀ {𝕜 : Type u_4} [inst : DivisionSemiring 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜],
  Filter.Tendsto (fun n ↦ 1 / ↑n) Filter.atTop (nhds 0)

theorem EReal.tendsto_const_div_atTop_nhds_zero_nat E1 #

∀ {C : EReal}, C ≠ ⊥ → C ≠ ⊤ → Filter.Tendsto (fun n ↦ C / ↑n) Filter.atTop (nhds 0)

theorem tendsto_one_div_add_atTop_nhds_zero_nat E1 #

∀ {𝕜 : Type u_4} [inst : DivisionSemiring 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜],
  Filter.Tendsto (fun n ↦ 1 / (↑n + 1)) Filter.atTop (nhds 0)

theorem tendsto_algebraMap_inv_atTop_nhds_zero_nat E1 #

∀ {𝕜 : Type u_4} (A : Type u_5) [inst : Semifield 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜]
  [ContinuousSMul ℚ≥0 𝕜] [inst_4 : Semiring A] [inst_5 : Algebra 𝕜 A] [inst_6 : TopologicalSpace A]
  [ContinuousSMul 𝕜 A], Filter.Tendsto (⇑(algebraMap 𝕜 A) ∘ fun n ↦ (↑n)⁻¹) Filter.atTop (nhds 0)

theorem tendsto_natCast_div_add_atTop E1 #

∀ {𝕜 : Type u_4} [inst : DivisionSemiring 𝕜] [inst_1 : TopologicalSpace 𝕜] [inst_2 : CharZero 𝕜] [ContinuousSMul ℚ≥0 𝕜]
  [IsTopologicalSemiring 𝕜] [ContinuousInv₀ 𝕜] (x : 𝕜), Filter.Tendsto (fun n ↦ ↑n / (↑n + x)) Filter.atTop (nhds 1)

The limit of n / (n + x) is 1, for any constant x (valid in ℝ or any topological division algebra over ℚ≥0, e.g., ℂ).

theorem tendsto_add_mul_div_add_mul_atTop_nhds E1 #

∀ {𝕜 : Type u_4} [inst : Semifield 𝕜] [inst_1 : CharZero 𝕜] [inst_2 : TopologicalSpace 𝕜] [ContinuousSMul ℚ≥0 𝕜]
  [IsTopologicalSemiring 𝕜] [ContinuousInv₀ 𝕜] (a b c : 𝕜) {d : 𝕜},
  d ≠ 0 → Filter.Tendsto (fun k ↦ (a + c * ↑k) / (b + d * ↑k)) Filter.atTop (nhds (c / d))

theorem tendsto_mod_div_atTop_nhds_zero_nat E1 #

∀ {m : ℕ}, 0 < m → Filter.Tendsto (fun n ↦ ↑(n % m) / ↑n) Filter.atTop (nhds 0)

For any positive m : ℕ, ((n % m : ℕ) : ℝ) / (n : ℝ) tends to 0 as n tends to ∞.

theorem tendsto_mul_add_inv_atTop_nhds_zero E1 #

∀ (a c : ℝ), a ≠ 0 → Filter.Tendsto (fun x ↦ (a * x + c)⁻¹) Filter.atTop (nhds 0)

If a ≠ 0, (a * x + c)⁻¹ tends to 0 as x tends to ∞.

theorem Filter.EventuallyEq.div_mul_cancel E1 #

∀ {α : Type u_4} {G : Type u_5} [inst : GroupWithZero G] {f g : α → G} {l : Filter α},
  Filter.Tendsto g l (Filter.principal {0}ᶜ) → (fun x ↦ f x / g x * g x) =ᶠ[l] fun x ↦ f x

theorem Filter.EventuallyEq.div_mul_cancel_atTop E1 #

∀ {α : Type u_4} {K : Type u_5} [inst : DivisionSemiring K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K]
  {f g : α → K} {l : Filter α}, Filter.Tendsto g l Filter.atTop → (fun x ↦ f x / g x * g x) =ᶠ[l] fun x ↦ f x

If g tends to ∞, then eventually for all x we have (f x / g x) * g x = f x.

theorem Filter.Tendsto.num E1 #

∀ {α : Type u_4} {K : Type u_5} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K]
  [inst_3 : TopologicalSpace K] [OrderTopology K] {f g : α → K} {l : Filter α},
  Filter.Tendsto g l Filter.atTop →
    ∀ {a : K}, 0 < a → Filter.Tendsto (fun x ↦ f x / g x) l (nhds a) → Filter.Tendsto f l Filter.atTop

If when x tends to ∞, g tends to ∞ and f x / g x tends to a positive constant, then f tends to ∞.

theorem Filter.Tendsto.den E1 #

∀ {α : Type u_4} {K : Type u_5} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K]
  [inst_3 : TopologicalSpace K] [OrderTopology K] [ContinuousInv K] {f g : α → K} {l : Filter α},
  Filter.Tendsto f l Filter.atTop →
    ∀ {a : K}, 0 < a → Filter.Tendsto (fun x ↦ f x / g x) l (nhds a) → Filter.Tendsto g l Filter.atTop

If when x tends to ∞, g tends to ∞ and f x / g x tends to a positive constant, then f tends to ∞.

theorem Filter.Tendsto.num_atTop_iff_den_atTop E1 #

∀ {α : Type u_4} {K : Type u_5} [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K]
  [inst_3 : TopologicalSpace K] [OrderTopology K] [ContinuousInv K] {f g : α → K} {l : Filter α} {a : K},
  0 < a →
    Filter.Tendsto (fun x ↦ f x / g x) l (nhds a) → (Filter.Tendsto f l Filter.atTop ↔ Filter.Tendsto g l Filter.atTop)

If when x tends to ∞, f x / g x tends to a positive constant, then f tends to ∞ if and only if g tends to ∞.

theorem tendsto_add_one_pow_atTop_atTop_of_pos E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] [Archimedean α] {r : α},
  0 < r → Filter.Tendsto (fun n ↦ (r + 1) ^ n) Filter.atTop Filter.atTop

theorem tendsto_pow_atTop_atTop_of_one_lt E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] [ExistsAddOfLE α] [Archimedean α]
  {r : α}, 1 < r → Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop Filter.atTop

theorem tendsto_pow_atTop_nhds_zero_of_lt_one E1 #

∀ {𝕜 : Type u_4} [inst : Semifield 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [ExistsAddOfLE 𝕜] [Archimedean 𝕜]
  [inst_5 : TopologicalSpace 𝕜] [OrderTopology 𝕜] {r : 𝕜},
  0 ≤ r → r < 1 → Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0)

theorem tendsto_pow_atTop_nhds_zero_iff E0 #

∀ {𝕜 : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [Archimedean 𝕜]
  [inst_4 : TopologicalSpace 𝕜] [OrderTopology 𝕜] {r : 𝕜},
  Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0) ↔ |r| < 1

theorem tendsto_pow_atTop_nhdsWithin_zero_of_lt_one E1 #

∀ {𝕜 : Type u_4} [inst : Semifield 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [ExistsAddOfLE 𝕜] [Archimedean 𝕜]
  [inst_5 : TopologicalSpace 𝕜] [OrderTopology 𝕜] {r : 𝕜},
  0 < r → r < 1 → Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhdsWithin 0 (Set.Ioi 0))

theorem uniformity_basis_dist_pow_of_lt_one E1 #

∀ {α : Type u_4} [inst : PseudoMetricSpace α] {r : ℝ},
  0 < r → r < 1 → (uniformity α).HasBasis (fun x ↦ True) fun k ↦ {p | dist p.1 p.2 < r ^ k}

theorem geom_lt E1 #

∀ {u : ℕ → ℝ} {c : ℝ}, 0 ≤ c → ∀ {n : ℕ}, 0 < n → (∀ k < n, c * u k < u (k + 1)) → c ^ n * u 0 < u n

theorem geom_le E1 #

∀ {u : ℕ → ℝ} {c : ℝ}, 0 ≤ c → ∀ (n : ℕ), (∀ k < n, c * u k ≤ u (k + 1)) → c ^ n * u 0 ≤ u n

theorem lt_geom E1 #

∀ {u : ℕ → ℝ} {c : ℝ}, 0 ≤ c → ∀ {n : ℕ}, 0 < n → (∀ k < n, u (k + 1) < c * u k) → u n < c ^ n * u 0

theorem le_geom E1 #

∀ {u : ℕ → ℝ} {c : ℝ}, 0 ≤ c → ∀ (n : ℕ), (∀ k < n, u (k + 1) ≤ c * u k) → u n ≤ c ^ n * u 0

theorem tendsto_atTop_of_geom_le E1 #

∀ {v : ℕ → ℝ} {c : ℝ}, 0 < v 0 → 1 < c → (∀ (n : ℕ), c * v n ≤ v (n + 1)) → Filter.Tendsto v Filter.atTop Filter.atTop

If a sequence v of real numbers satisfies k * v n ≤ v (n+1) with 1 < k, then it goes to +∞.

theorem NNReal.tendsto_pow_atTop_nhds_zero_of_lt_one E1 #

∀ {r : NNReal}, r < 1 → Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0)

theorem NNReal.tendsto_pow_atTop_nhds_zero_iff E0 #

∀ {r : NNReal}, Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0) ↔ r < 1

theorem ENNReal.tendsto_pow_atTop_nhds_zero_of_lt_one E1 #

∀ {r : ENNReal}, r < 1 → Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0)

theorem ENNReal.tendsto_pow_atTop_nhds_zero_iff E0 #

∀ {r : ENNReal}, Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds 0) ↔ r < 1

theorem ENNReal.tendsto_pow_atTop_nhds_top_iff E0 #

∀ {r : ENNReal}, Filter.Tendsto (fun n ↦ r ^ n) Filter.atTop (nhds ⊤) ↔ 1 < r

theorem hasSum_geometric_of_lt_one E1 #

∀ {r : ℝ}, 0 ≤ r → r < 1 → HasSum (fun n ↦ r ^ n) (1 - r)⁻¹

theorem summable_geometric_of_lt_one E1 #

∀ {r : ℝ}, 0 ≤ r → r < 1 → Summable fun n ↦ r ^ n

theorem tsum_geometric_of_lt_one E1 #

∀ {r : ℝ}, 0 ≤ r → r < 1 → ∑' (n : ℕ), r ^ n = (1 - r)⁻¹

theorem hasSum_geometric_two E1 #

HasSum (fun n ↦ (1 / 2) ^ n) 2

theorem summable_geometric_two E1 #

Summable fun n ↦ (1 / 2) ^ n

theorem summable_geometric_two_encode E1 #

∀ {ι : Type u_4} [inst : Encodable ι], Summable fun i ↦ (1 / 2) ^ Encodable.encode i

theorem tsum_geometric_two E1 #

∑' (n : ℕ), (1 / 2) ^ n = 2

theorem sum_geometric_two_le E1 #

∀ (n : ℕ), ∑ i ∈ Finset.range n, (1 / 2) ^ i ≤ 2

theorem tsum_geometric_inv_two E1 #

∑' (n : ℕ), 2⁻¹ ^ n = 2

theorem tsum_geometric_inv_two_ge E1 #

∀ (n : ℕ), (∑' (i : ℕ), if n ≤ i then 2⁻¹ ^ i else 0) = 2 * 2⁻¹ ^ n

The sum of 2⁻¹ ^ i for n ≤ i equals 2 * 2⁻¹ ^ n.

theorem hasSum_geometric_two' E1 #

∀ (a : ℝ), HasSum (fun n ↦ a / 2 / 2 ^ n) a

theorem summable_geometric_two' E1 #

∀ (a : ℝ), Summable fun n ↦ a / 2 / 2 ^ n

theorem tsum_geometric_two' E1 #

∀ (a : ℝ), ∑' (n : ℕ), a / 2 / 2 ^ n = a

theorem NNReal.hasSum_geometric E3 #

∀ {r : NNReal}, r < 1 → HasSum (fun n ↦ r ^ n) (1 - r)⁻¹

Sum of a Geometric Series

theorem NNReal.summable_geometric E1 #

∀ {r : NNReal}, r < 1 → Summable fun n ↦ r ^ n

theorem NNReal.tsum_geometric E1 #

∀ {r : NNReal}, r < 1 → ∑' (n : ℕ), r ^ n = (1 - r)⁻¹

theorem ENNReal.tsum_geometric E0 #

∀ (r : ENNReal), ∑' (n : ℕ), r ^ n = (1 - r)⁻¹

The series pow r converges to (1-r)⁻¹. For r < 1 the RHS is a finite number, and for 1 ≤ r the RHS equals ∞.

theorem ENNReal.tsum_geometric_add_one E1 #

∀ (r : ENNReal), ∑' (n : ℕ), r ^ (n + 1) = r * (1 - r)⁻¹

theorem ENNReal.tsum_two_zpow_neg_add_one E1 #

∑' (m : ℕ), 2 ^ (-1 - ↑m) = 1

theorem ENNReal.tsum_geometric_two E1 #

∑' (n : ℕ), 2⁻¹ ^ n = 2

theorem ENNReal.tsum_geometric_two_encode_le_two E1 #

∀ {ι : Type u_4} [inst : Encodable ι], ∑' (i : ι), 2⁻¹ ^ Encodable.encode i ≤ 2

theorem tsum_geometric_lt_top E1 #

∀ {r : ENNReal}, ∑' (n : ℕ), r ^ n < ⊤ ↔ r < 1

theorem tsum_geometric_encode_lt_top E1 #

∀ {r : ENNReal}, r < 1 → ∀ {ι : Type u_4} [inst : Encodable ι], ∑' (i : ι), r ^ Encodable.encode i < ⊤

theorem cauchySeq_of_edist_le_geometric E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (r C : ENNReal),
  r < 1 → C ≠ ⊤ → ∀ {f : ℕ → α}, (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C * r ^ n) → CauchySeq f

If edist (f n) (f (n+1)) is bounded by C * r^n, C ≠ ∞, r < 1, then f is a Cauchy sequence.

theorem edist_le_of_edist_le_geometric_of_tendsto E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (r C : ENNReal) {f : ℕ → α},
  (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C * r ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → ∀ (n : ℕ), edist (f n) a ≤ C * r ^ n / (1 - r)

If edist (f n) (f (n+1)) is bounded by C * r^n, then the distance from f n to the limit of f is bounded above by C * r^n / (1 - r).

theorem edist_le_of_edist_le_geometric_of_tendsto₀ E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (r C : ENNReal) {f : ℕ → α},
  (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C * r ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → edist (f 0) a ≤ C / (1 - r)

If edist (f n) (f (n+1)) is bounded by C * r^n, then the distance from f 0 to the limit of f is bounded above by C / (1 - r).

theorem cauchySeq_of_edist_le_geometric_two E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (C : ENNReal),
  C ≠ ⊤ → ∀ {f : ℕ → α}, (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C / 2 ^ n) → CauchySeq f

If edist (f n) (f (n+1)) is bounded by C * 2^-n, then f is a Cauchy sequence.

theorem edist_le_of_edist_le_geometric_two_of_tendsto E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (C : ENNReal) {f : ℕ → α},
  (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C / 2 ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → ∀ (n : ℕ), edist (f n) a ≤ 2 * C / 2 ^ n

If edist (f n) (f (n+1)) is bounded by C * 2^-n, then the distance from f n to the limit of f is bounded above by 2 * C * 2^-n.

theorem edist_le_of_edist_le_geometric_two_of_tendsto₀ E1 #

∀ {α : Type u_1} [inst : PseudoEMetricSpace α] (C : ENNReal) {f : ℕ → α},
  (∀ (n : ℕ), edist (f n) (f (n + 1)) ≤ C / 2 ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → edist (f 0) a ≤ 2 * C

If edist (f n) (f (n+1)) is bounded by C * 2^-n, then the distance from f 0 to the limit of f is bounded above by 2 * C.

theorem aux_hasSum_of_le_geometric E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {r C : ℝ} {f : ℕ → α},
  r < 1 → (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C * r ^ n) → HasSum (fun n ↦ C * r ^ n) (C / (1 - r))

If dist (f n) (f (n+1)) is bounded by C * r^n, r < 1, then f is a Cauchy sequence.

theorem cauchySeq_of_le_geometric E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (r C : ℝ) {f : ℕ → α},
  r < 1 → (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C * r ^ n) → CauchySeq f

If dist (f n) (f (n+1)) is bounded by C * r^n, r < 1, then f is a Cauchy sequence. Note that this lemma does not assume 0 ≤ C or 0 ≤ r.

theorem dist_le_of_le_geometric_of_tendsto₀ E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (r C : ℝ) {f : ℕ → α},
  r < 1 →
    (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C * r ^ n) →
      ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → dist (f 0) a ≤ C / (1 - r)

If dist (f n) (f (n+1)) is bounded by C * r^n, r < 1, then the distance from f n to the limit of f is bounded above by C * r^n / (1 - r).

theorem dist_le_of_le_geometric_of_tendsto E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (r C : ℝ) {f : ℕ → α},
  r < 1 →
    (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C * r ^ n) →
      ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → ∀ (n : ℕ), dist (f n) a ≤ C * r ^ n / (1 - r)

If dist (f n) (f (n+1)) is bounded by C * r^n, r < 1, then the distance from f 0 to the limit of f is bounded above by C / (1 - r).

theorem cauchySeq_of_le_geometric_two E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {C : ℝ} {f : ℕ → α},
  (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C / 2 / 2 ^ n) → CauchySeq f

If dist (f n) (f (n+1)) is bounded by (C / 2) / 2^n, then f is a Cauchy sequence.

theorem dist_le_of_le_geometric_two_of_tendsto₀ E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {C : ℝ} {f : ℕ → α},
  (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C / 2 / 2 ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → dist (f 0) a ≤ C

If dist (f n) (f (n+1)) is bounded by (C / 2) / 2^n, then the distance from f 0 to the limit of f is bounded above by C.

theorem dist_le_of_le_geometric_two_of_tendsto E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {C : ℝ} {f : ℕ → α},
  (∀ (n : ℕ), dist (f n) (f (n + 1)) ≤ C / 2 / 2 ^ n) →
    ∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → ∀ (n : ℕ), dist (f n) a ≤ C / 2 ^ n

If dist (f n) (f (n+1)) is bounded by (C / 2) / 2^n, then the distance from f n to the limit of f is bounded above by C / 2^n.

theorem summable_one_div_pow_of_le E1 #

∀ {m : ℝ} {f : ℕ → ℕ}, 1 < m → (∀ (i : ℕ), i ≤ f i) → Summable fun i ↦ 1 / m ^ f i

A series whose terms are bounded by the terms of a converging geometric series converges.

def posSumOfEncodable E1 #

{ε : ℝ} → 0 < ε → (ι : Type u_4) → [Encodable ι] → { ε' // (∀ (i : ι), 0 < ε' i) ∧ ∃ c, HasSum ε' c ∧ c ≤ ε }

For any positive ε, define on an encodable type a positive sequence with sum less than ε

theorem Set.Countable.exists_pos_hasSum_le E1 #

∀ {ι : Type u_4} {s : Set ι},
  s.Countable → ∀ {ε : ℝ}, 0 < ε → ∃ ε', (∀ (i : ι), 0 < ε' i) ∧ ∃ c, HasSum (fun i ↦ ε' ↑i) c ∧ c ≤ ε

theorem Set.Countable.exists_pos_forall_sum_le E1 #

∀ {ι : Type u_4} {s : Set ι},
  s.Countable → ∀ {ε : ℝ}, 0 < ε → ∃ ε', (∀ (i : ι), 0 < ε' i) ∧ ∀ (t : Finset ι), ↑t ⊆ s → ∑ i ∈ t, ε' i ≤ ε

theorem NNReal.exists_pos_sum_of_countable E1 #

∀ {ε : NNReal}, ε ≠ 0 → ∀ (ι : Type u_4) [Countable ι], ∃ ε', (∀ (i : ι), 0 < ε' i) ∧ ∃ c, HasSum ε' c ∧ c < ε

theorem ENNReal.exists_pos_sum_of_countable E1 #

∀ {ε : ENNReal}, ε ≠ 0 → ∀ (ι : Type u_4) [Countable ι], ∃ ε', (∀ (i : ι), 0 < ε' i) ∧ ∑' (i : ι), ↑(ε' i) < ε

theorem ENNReal.exists_pos_sum_of_countable' E1 #

∀ {ε : ENNReal}, ε ≠ 0 → ∀ (ι : Type u_4) [Countable ι], ∃ ε', (∀ (i : ι), 0 < ε' i) ∧ ∑' (i : ι), ε' i < ε

theorem ENNReal.exists_pos_tsum_mul_lt_of_countable E1 #

∀ {ε : ENNReal},
  ε ≠ 0 →
    ∀ {ι : Type u_4} [Countable ι] (w : ι → ENNReal),
      (∀ (i : ι), w i ≠ ⊤) → ∃ δ, (∀ (i : ι), 0 < δ i) ∧ ∑' (i : ι), w i * ↑(δ i) < ε

theorem factorial_tendsto_atTop E1 #

Filter.Tendsto Nat.factorial Filter.atTop Filter.atTop

theorem tendsto_factorial_div_pow_self_atTop E1 #

Filter.Tendsto (fun n ↦ ↑n.factorial / ↑n ^ n) Filter.atTop (nhds 0)

theorem tendsto_nat_floor_atTop E1 #

∀ {α : Type u_4} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] [inst_3 : FloorSemiring α],
  Filter.Tendsto (fun x ↦ ⌊x⌋₊) Filter.atTop Filter.atTop

theorem tendsto_nat_ceil_atTop E1 #

∀ {α : Type u_4} [inst : Semiring α] [inst_1 : LinearOrder α] [inst_2 : FloorSemiring α],
  Filter.Tendsto (fun x ↦ ⌈x⌉₊) Filter.atTop Filter.atTop

theorem tendsto_nat_floor_mul_atTop E1 #

∀ {α : Type u_4} [inst : Semifield α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] [inst_3 : FloorSemiring α]
  [Archimedean α] (a : α), 0 < a → Filter.Tendsto (fun x ↦ ⌊a * ↑x⌋₊) Filter.atTop Filter.atTop

theorem tendsto_nat_floor_mul_div_atTop E1 #

∀ {R : Type u_4} [inst : TopologicalSpace R] [inst_1 : Field R] [inst_2 : LinearOrder R] [IsStrictOrderedRing R]
  [OrderTopology R] [inst_5 : FloorRing R] {a : R}, 0 ≤ a → Filter.Tendsto (fun x ↦ ↑⌊a * x⌋₊ / x) Filter.atTop (nhds a)

theorem tendsto_nat_floor_div_atTop E1 #

∀ {R : Type u_4} [inst : TopologicalSpace R] [inst_1 : Field R] [inst_2 : LinearOrder R] [IsStrictOrderedRing R]
  [OrderTopology R] [inst_5 : FloorRing R], Filter.Tendsto (fun x ↦ ↑⌊x⌋₊ / x) Filter.atTop (nhds 1)

theorem tendsto_nat_ceil_mul_div_atTop E1 #

∀ {R : Type u_4} [inst : TopologicalSpace R] [inst_1 : Field R] [inst_2 : LinearOrder R] [IsStrictOrderedRing R]
  [OrderTopology R] [inst_5 : FloorRing R] {a : R}, 0 ≤ a → Filter.Tendsto (fun x ↦ ↑⌈a * x⌉₊ / x) Filter.atTop (nhds a)

theorem tendsto_nat_ceil_div_atTop E1 #

∀ {R : Type u_4} [inst : TopologicalSpace R] [inst_1 : Field R] [inst_2 : LinearOrder R] [IsStrictOrderedRing R]
  [OrderTopology R] [inst_5 : FloorRing R], Filter.Tendsto (fun x ↦ ↑⌈x⌉₊ / x) Filter.atTop (nhds 1)

theorem Nat.tendsto_div_const_atTop E1 #

∀ {n : ℕ}, n ≠ 0 → Filter.Tendsto (fun x ↦ x / n) Filter.atTop Filter.atTop