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.Asymptotics.SpecificAsymptotics

20 declarations. Mathlib docs ยท Source

A collection of specific asymptotic results

This file contains specific lemmas about asymptotics which don't have their place in the general theory developed in Mathlib/Analysis/Asymptotics/Defs.lean and Mathlib/Analysis/Asymptotics/Lemmas.lean.

Bounded Range versus IsBigO Asymptotics

For a continuous function f into a seminormed space, having bounded range is equivalent to being O(1) along the cocompact filter (Continuous.isBounded_range_iff_isBigO). On an unbounded linear order whose order topology has compact intervals, this means being O(1) along both atTop and atBot (Continuous.isBounded_range_iff_isBigO_atTop_atBot). For an even function a single O(1) bound along atTop already suffices (Continuous.isBounded_range_iff_isBigO_atTop_of_even).

theorem Filter.IsBoundedUnder.isLittleO_sub_self_inv E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : NormedField ๐•œ] [inst_1 : Norm E] {a : ๐•œ} {f : ๐•œ โ†’ E},
  Filter.IsBoundedUnder (fun x1 x2 โ†ฆ x1 โ‰ค x2) (nhdsWithin a {a}แถœ) (norm โˆ˜ f) โ†’ f =o[nhdsWithin a {a}แถœ] fun x โ†ฆ (x - a)โปยน

If f : ๐•œ โ†’ E is bounded in a punctured neighborhood of a, then f(x) = o((x - a)โปยน) as x โ†’ a, x โ‰  a.

theorem Asymptotics.isLittleO_pow_pow_cobounded_of_lt E1 #

โˆ€ {R : Type u_1} [inst : NormedRing R] [NormMulClass R] {p q : โ„•},
  p < q โ†’ (fun x โ†ฆ x ^ p) =o[Bornology.cobounded R] fun x โ†ฆ x ^ q

theorem Asymptotics.isBigO_pow_pow_cobounded_of_le E1 #

โˆ€ {R : Type u_1} [inst : NormedRing R] [NormMulClass R] {p q : โ„•},
  p โ‰ค q โ†’ (fun x โ†ฆ x ^ p) =O[Bornology.cobounded R] fun x โ†ฆ x ^ q

theorem pow_div_pow_eventuallyEq_atTop E1 #

โˆ€ {๐•œ : Type u_1} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] {p q : โ„•},
  (fun x โ†ฆ x ^ p / x ^ q) =แถ [Filter.atTop] fun x โ†ฆ x ^ (โ†‘p - โ†‘q)

theorem pow_div_pow_eventuallyEq_atBot E1 #

โˆ€ {๐•œ : Type u_1} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] {p q : โ„•},
  (fun x โ†ฆ x ^ p / x ^ q) =แถ [Filter.atBot] fun x โ†ฆ x ^ (โ†‘p - โ†‘q)

theorem tendsto_pow_div_pow_atTop_atTop E1 #

โˆ€ {๐•œ : Type u_1} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] {p q : โ„•},
  q < p โ†’ Filter.Tendsto (fun x โ†ฆ x ^ p / x ^ q) Filter.atTop Filter.atTop

theorem tendsto_pow_div_pow_atTop_zero E1 #

โˆ€ {๐•œ : Type u_1} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] [inst_3 : TopologicalSpace ๐•œ]
  [OrderTopology ๐•œ] {p q : โ„•}, p < q โ†’ Filter.Tendsto (fun x โ†ฆ x ^ p / x ^ q) Filter.atTop (nhds 0)

theorem Asymptotics.isLittleO_pow_pow_atTop_of_lt E1 #

โˆ€ {๐•œ : Type u_1} [inst : NormedField ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ] [OrderTopology ๐•œ] {p q : โ„•},
  p < q โ†’ (fun x โ†ฆ x ^ p) =o[Filter.atTop] fun x โ†ฆ x ^ q

theorem Asymptotics.IsBigO.trans_tendsto_norm_atTop E1 #

โˆ€ {๐•œ : Type u_1} [inst : NormedField ๐•œ] {ฮฑ : Type u_2} {u v : ฮฑ โ†’ ๐•œ} {l : Filter ฮฑ},
  u =O[l] v โ†’ Filter.Tendsto (fun x โ†ฆ โ€–u xโ€–) l Filter.atTop โ†’ Filter.Tendsto (fun x โ†ฆ โ€–v xโ€–) l Filter.atTop

theorem Asymptotics.IsEquivalent.rpow E1 #

โˆ€ {ฮฑ : Type u_1} {u v : ฮฑ โ†’ โ„} {l : Filter ฮฑ},
  0 โ‰ค v โ†’ Asymptotics.IsEquivalent l u v โ†’ โˆ€ {r : โ„}, Asymptotics.IsEquivalent l (u ^ r) (v ^ r)

theorem Asymptotics.IsEquivalent.log E1 #

โˆ€ {ฮฑ : Type u_1} {l : Filter ฮฑ} {f g : ฮฑ โ†’ โ„},
  Asymptotics.IsEquivalent l f g โ†’
    Filter.Tendsto g l Filter.atTop โ†’ Asymptotics.IsEquivalent l (fun n โ†ฆ Real.log (f n)) fun n โ†ฆ Real.log (g n)

theorem Asymptotics.IsLittleO.sum_range E1 #

โˆ€ {ฮฑ : Type u_1} [inst : NormedAddCommGroup ฮฑ] {f : โ„• โ†’ ฮฑ} {g : โ„• โ†’ โ„},
  f =o[Filter.atTop] g โ†’
    0 โ‰ค g โ†’
      Filter.Tendsto (fun n โ†ฆ โˆ‘ i โˆˆ Finset.range n, g i) Filter.atTop Filter.atTop โ†’
        (fun n โ†ฆ โˆ‘ i โˆˆ Finset.range n, f i) =o[Filter.atTop] fun n โ†ฆ โˆ‘ i โˆˆ Finset.range n, g i

theorem Asymptotics.isLittleO_sum_range_of_tendsto_zero E1 #

โˆ€ {ฮฑ : Type u_1} [inst : NormedAddCommGroup ฮฑ] {f : โ„• โ†’ ฮฑ},
  Filter.Tendsto f Filter.atTop (nhds 0) โ†’ (fun n โ†ฆ โˆ‘ i โˆˆ Finset.range n, f i) =o[Filter.atTop] fun n โ†ฆ โ†‘n

theorem Filter.Tendsto.cesaro_smul E1 #

โˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ„ E] {u : โ„• โ†’ E} {l : E},
  Filter.Tendsto u Filter.atTop (nhds l) โ†’
    Filter.Tendsto (fun n โ†ฆ (โ†‘n)โปยน โ€ข โˆ‘ i โˆˆ Finset.range n, u i) Filter.atTop (nhds l)

The Cesaro average of a converging sequence converges to the same limit.

theorem Filter.Tendsto.cesaro E1 #

โˆ€ {u : โ„• โ†’ โ„} {l : โ„},
  Filter.Tendsto u Filter.atTop (nhds l) โ†’
    Filter.Tendsto (fun n โ†ฆ (โ†‘n)โปยน * โˆ‘ i โˆˆ Finset.range n, u i) Filter.atTop (nhds l)

The Cesaro average of a converging sequence converges to the same limit.

theorem Asymptotics.isEquivalent_nat_floor E1 #

โˆ€ {R : Type u_1} [inst : NormedField R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] [OrderTopology R]
  [inst_4 : FloorRing R], Asymptotics.IsEquivalent Filter.atTop (fun x โ†ฆ โ†‘โŒŠxโŒ‹โ‚Š) fun x โ†ฆ x

theorem Asymptotics.isEquivalent_nat_ceil E1 #

โˆ€ {R : Type u_1} [inst : NormedField R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] [OrderTopology R]
  [inst_4 : FloorRing R], Asymptotics.IsEquivalent Filter.atTop (fun x โ†ฆ โ†‘โŒˆxโŒ‰โ‚Š) fun x โ†ฆ x

theorem Continuous.isBounded_range_iff_isBigO E1 #

โˆ€ {E : Type u_1} [inst : SeminormedAddCommGroup E] {D : Type u_2} [inst_1 : TopologicalSpace D] {f : D โ†’ E},
  Continuous f โ†’ (Bornology.IsBounded (Set.range f) โ†” f =O[Filter.cocompact D] 1)

A continuous function f has bounded range if and only if it is O(1) with respect to the cocompact filter.

theorem Continuous.isBounded_range_iff_isBigO_atTop_atBot E1 #

โˆ€ {E : Type u_1} [inst : SeminormedAddCommGroup E] {ฮฒ : Type u_3} [inst_1 : TopologicalSpace ฮฒ] [inst_2 : LinearOrder ฮฒ]
  [OrderClosedTopology ฮฒ] [CompactIccSpace ฮฒ] [NoMaxOrder ฮฒ] [NoMinOrder ฮฒ] {f : ฮฒ โ†’ E},
  Continuous f โ†’ (Bornology.IsBounded (Set.range f) โ†” f =O[Filter.atTop] 1 โˆง f =O[Filter.atBot] 1)

A continuous function f on an unbounded linear order with compact intervals has bounded range if and only if it is O(1) at both atTop and atBot.

theorem Continuous.isBounded_range_iff_isBigO_atTop_of_even E1 #

โˆ€ {E : Type u_1} [inst : SeminormedAddCommGroup E] {ฮฒ : Type u_3} [inst_1 : TopologicalSpace ฮฒ] [inst_2 : LinearOrder ฮฒ]
  [OrderClosedTopology ฮฒ] [CompactIccSpace ฮฒ] [NoMaxOrder ฮฒ] [NoMinOrder ฮฒ] [inst_7 : AddCommGroup ฮฒ]
  [IsOrderedAddMonoid ฮฒ] {f : ฮฒ โ†’ E},
  Continuous f โ†’ Function.Even f โ†’ (Bornology.IsBounded (Set.range f) โ†” f =O[Filter.atTop] 1)

A continuous even function has bounded range if and only if f =O[atTop] 1.