The areas / V15. Real analysis in one variable
Mathlib.Analysis.Asymptotics.Ring
43 declarations. Mathlib docs · Source
Ring and field operations on asymptotic relations
This file develops the behavior of IsBigOWith, IsBigO, and IsLittleO under
multiplication by constants, multiplication of functions, powers, inversion, and division.
Multiplication by a constant
Multiplication
Inverse
Eventually (u / v) * v = u
If u and v are linked by an IsBigOWith relation, then we
eventually have (u / v) * v = u, even if v vanishes.
theorem Asymptotics.isBigOWith_const_mul_self E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] (c : R) (f : α → R) (l : Filter α),
Asymptotics.IsBigOWith ‖c‖ l (fun x ↦ c * f x) f
theorem Asymptotics.isBigO_const_mul_self E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] (c : R) (f : α → R) (l : Filter α), (fun x ↦ c * f x) =O[l] f
theorem Asymptotics.IsBigOWith.const_mul_left E1 #
∀ {α : Type u_1} {F : Type u_3} {R : Type u_4} [inst : Norm F] [inst_1 : SeminormedRing R] {c : ℝ} {g : α → F}
{l : Filter α} {f : α → R},
Asymptotics.IsBigOWith c l f g → ∀ (c' : R), Asymptotics.IsBigOWith (‖c'‖ * c) l (fun x ↦ c' * f x) g
theorem Asymptotics.IsBigO.const_mul_left E1 #
∀ {α : Type u_1} {F : Type u_3} {R : Type u_4} [inst : Norm F] [inst_1 : SeminormedRing R] {g : α → F} {l : Filter α}
{f : α → R}, f =O[l] g → ∀ (c' : R), (fun x ↦ c' * f x) =O[l] g
theorem Asymptotics.isBigOWith_self_const_mul' E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] (u : Rˣ) (f : α → R) (l : Filter α),
Asymptotics.IsBigOWith ‖↑u⁻¹‖ l f fun x ↦ ↑u * f x
theorem Asymptotics.isBigOWith_self_const_mul E1 #
∀ {α : Type u_1} {S : Type u_7} [inst : NormedRing S] [NormMulClass S] {c : S},
c ≠ 0 → ∀ (f : α → S) (l : Filter α), Asymptotics.IsBigOWith ‖c‖⁻¹ l f fun x ↦ c * f x
theorem Asymptotics.isBigO_self_const_mul' E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {c : R},
IsUnit c → ∀ (f : α → R) (l : Filter α), f =O[l] fun x ↦ c * f x
theorem Asymptotics.isBigO_self_const_mul E1 #
∀ {α : Type u_1} {S : Type u_7} [inst : NormedRing S] [NormMulClass S] {c : S},
c ≠ 0 → ∀ (f : α → S) (l : Filter α), f =O[l] fun x ↦ c * f x
theorem Asymptotics.isBigO_const_mul_left_iff' E1 #
∀ {α : Type u_1} {F : Type u_3} {R : Type u_4} [inst : Norm F] [inst_1 : SeminormedRing R] {g : α → F} {l : Filter α}
{f : α → R} {c : R}, IsUnit c → ((fun x ↦ c * f x) =O[l] g ↔ f =O[l] g)
theorem Asymptotics.isBigO_const_mul_left_iff E0 #
∀ {α : Type u_1} {F : Type u_3} [inst : Norm F] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {g : α → F}
{l : Filter α} {f : α → S} {c : S}, c ≠ 0 → ((fun x ↦ c * f x) =O[l] g ↔ f =O[l] g)
theorem Asymptotics.IsLittleO.const_mul_left E1 #
∀ {α : Type u_1} {F : Type u_3} {R : Type u_4} [inst : Norm F] [inst_1 : SeminormedRing R] {g : α → F} {l : Filter α}
{f : α → R}, f =o[l] g → ∀ (c : R), (fun x ↦ c * f x) =o[l] g
theorem Asymptotics.isLittleO_const_mul_left_iff' E1 #
∀ {α : Type u_1} {F : Type u_3} {R : Type u_4} [inst : Norm F] [inst_1 : SeminormedRing R] {g : α → F} {l : Filter α}
{f : α → R} {c : R}, IsUnit c → ((fun x ↦ c * f x) =o[l] g ↔ f =o[l] g)
theorem Asymptotics.isLittleO_const_mul_left_iff E0 #
∀ {α : Type u_1} {F : Type u_3} [inst : Norm F] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {g : α → F}
{l : Filter α} {f : α → S} {c : S}, c ≠ 0 → ((fun x ↦ c * f x) =o[l] g ↔ f =o[l] g)
theorem Asymptotics.IsBigOWith.of_const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {c' : ℝ} {f : α → E}
{l : Filter α} {g : α → R} {c : R},
0 ≤ c' → (Asymptotics.IsBigOWith c' l f fun x ↦ c * g x) → Asymptotics.IsBigOWith (c' * ‖c‖) l f g
theorem Asymptotics.IsBigO.of_const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, (f =O[l] fun x ↦ c * g x) → f =O[l] g
theorem Asymptotics.IsBigOWith.const_mul_right' E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {u : Rˣ} {c' : ℝ},
0 ≤ c' → Asymptotics.IsBigOWith c' l f g → Asymptotics.IsBigOWith (c' * ‖↑u⁻¹‖) l f fun x ↦ ↑u * g x
theorem Asymptotics.IsBigOWith.const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} [inst : Norm E] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {f : α → E}
{l : Filter α} {g : α → S} {c : S},
c ≠ 0 → ∀ {c' : ℝ}, 0 ≤ c' → Asymptotics.IsBigOWith c' l f g → Asymptotics.IsBigOWith (c' * ‖c‖⁻¹) l f fun x ↦ c * g x
theorem Asymptotics.IsBigO.const_mul_right' E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, IsUnit c → f =O[l] g → f =O[l] fun x ↦ c * g x
theorem Asymptotics.IsBigO.const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} [inst : Norm E] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {f : α → E}
{l : Filter α} {g : α → S} {c : S}, c ≠ 0 → f =O[l] g → f =O[l] fun x ↦ c * g x
theorem Asymptotics.isBigO_const_mul_right_iff' E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, IsUnit c → ((f =O[l] fun x ↦ c * g x) ↔ f =O[l] g)
theorem Asymptotics.isBigO_const_mul_right_iff E0 #
∀ {α : Type u_1} {E : Type u_2} [inst : Norm E] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {f : α → E}
{l : Filter α} {g : α → S} {c : S}, c ≠ 0 → ((f =O[l] fun x ↦ c * g x) ↔ f =O[l] g)
theorem Asymptotics.IsLittleO.of_const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, (f =o[l] fun x ↦ c * g x) → f =o[l] g
theorem Asymptotics.IsLittleO.const_mul_right' E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, IsUnit c → f =o[l] g → f =o[l] fun x ↦ c * g x
theorem Asymptotics.IsLittleO.const_mul_right E1 #
∀ {α : Type u_1} {E : Type u_2} [inst : Norm E] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {f : α → E}
{l : Filter α} {g : α → S} {c : S}, c ≠ 0 → f =o[l] g → f =o[l] fun x ↦ c * g x
theorem Asymptotics.isLittleO_const_mul_right_iff' E1 #
∀ {α : Type u_1} {E : Type u_2} {R : Type u_4} [inst : Norm E] [inst_1 : SeminormedRing R] {f : α → E} {l : Filter α}
{g : α → R} {c : R}, IsUnit c → ((f =o[l] fun x ↦ c * g x) ↔ f =o[l] g)
theorem Asymptotics.isLittleO_const_mul_right_iff E0 #
∀ {α : Type u_1} {E : Type u_2} [inst : Norm E] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S] {f : α → E}
{l : Filter α} {g : α → S} {c : S}, c ≠ 0 → ((f =o[l] fun x ↦ c * g x) ↔ f =o[l] g)
theorem Asymptotics.IsBigOWith.mul E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f₁ f₂ : α → R} {g₁ g₂ : α → S} {c₁ c₂ : ℝ},
Asymptotics.IsBigOWith c₁ l f₁ g₁ →
Asymptotics.IsBigOWith c₂ l f₂ g₂ → Asymptotics.IsBigOWith (c₁ * c₂) l (fun x ↦ f₁ x * f₂ x) fun x ↦ g₁ x * g₂ x
theorem Asymptotics.IsBigO.mul E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f₁ f₂ : α → R} {g₁ g₂ : α → S},
f₁ =O[l] g₁ → f₂ =O[l] g₂ → (fun x ↦ f₁ x * f₂ x) =O[l] fun x ↦ g₁ x * g₂ x
theorem Asymptotics.IsBigO.mul_isLittleO E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f₁ f₂ : α → R} {g₁ g₂ : α → S},
f₁ =O[l] g₁ → f₂ =o[l] g₂ → (fun x ↦ f₁ x * f₂ x) =o[l] fun x ↦ g₁ x * g₂ x
theorem Asymptotics.IsLittleO.mul_isBigO E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f₁ f₂ : α → R} {g₁ g₂ : α → S},
f₁ =o[l] g₁ → f₂ =O[l] g₂ → (fun x ↦ f₁ x * f₂ x) =o[l] fun x ↦ g₁ x * g₂ x
theorem Asymptotics.IsLittleO.mul E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f₁ f₂ : α → R} {g₁ g₂ : α → S},
f₁ =o[l] g₁ → f₂ =o[l] g₂ → (fun x ↦ f₁ x * f₂ x) =o[l] fun x ↦ g₁ x * g₂ x
theorem Asymptotics.IsBigOWith.pow' E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{c : ℝ} {l : Filter α} [NormOneClass S] {f : α → R} {g : α → S},
Asymptotics.IsBigOWith c l f g →
∀ (n : ℕ), Asymptotics.IsBigOWith (Nat.casesOn n ‖1‖ fun n ↦ c ^ (n + 1)) l (fun x ↦ f x ^ n) fun x ↦ g x ^ n
theorem Asymptotics.IsBigOWith.pow E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{c : ℝ} {l : Filter α} [NormOneClass R] [NormOneClass S] {f : α → R} {g : α → S},
Asymptotics.IsBigOWith c l f g → ∀ (n : ℕ), Asymptotics.IsBigOWith (c ^ n) l (fun x ↦ f x ^ n) fun x ↦ g x ^ n
theorem Asymptotics.IsBigOWith.of_pow E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{c c' : ℝ} {l : Filter α} [NormOneClass S] {n : ℕ} {f : α → S} {g : α → R},
Asymptotics.IsBigOWith c l (f ^ n) (g ^ n) → n ≠ 0 → c ≤ c' ^ n → 0 ≤ c' → Asymptotics.IsBigOWith c' l f g
theorem Asymptotics.IsBigO.pow E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} [NormOneClass S] {f : α → R} {g : α → S},
f =O[l] g → ∀ (n : ℕ), (fun x ↦ f x ^ n) =O[l] fun x ↦ g x ^ n
theorem Asymptotics.IsLittleO.pow E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} {f : α → R} {g : α → S}, f =o[l] g → ∀ {n : ℕ}, 0 < n → (fun x ↦ f x ^ n) =o[l] fun x ↦ g x ^ n
theorem Asymptotics.IsLittleO.of_pow E1 #
∀ {α : Type u_1} {R : Type u_4} [inst : SeminormedRing R] {S : Type u_7} [inst_1 : NormedRing S] [NormMulClass S]
{l : Filter α} [NormOneClass S] {f : α → S} {g : α → R} {n : ℕ}, (f ^ n) =o[l] (g ^ n) → n ≠ 0 → f =o[l] g
theorem Asymptotics.IsBigOWith.inv_rev E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} {𝕜' : Type u_6} [inst : NormedDivisionRing 𝕜] [inst_1 : NormedDivisionRing 𝕜'] {c : ℝ}
{l : Filter α} {f : α → 𝕜} {g : α → 𝕜'},
Asymptotics.IsBigOWith c l f g →
(∀ᶠ (x : α) in l, f x = 0 → g x = 0) → Asymptotics.IsBigOWith c l (fun x ↦ (g x)⁻¹) fun x ↦ (f x)⁻¹
theorem Asymptotics.IsBigO.inv_rev E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} {𝕜' : Type u_6} [inst : NormedDivisionRing 𝕜] [inst_1 : NormedDivisionRing 𝕜']
{l : Filter α} {f : α → 𝕜} {g : α → 𝕜'},
f =O[l] g → (∀ᶠ (x : α) in l, f x = 0 → g x = 0) → (fun x ↦ (g x)⁻¹) =O[l] fun x ↦ (f x)⁻¹
theorem Asymptotics.IsLittleO.inv_rev E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} {𝕜' : Type u_6} [inst : NormedDivisionRing 𝕜] [inst_1 : NormedDivisionRing 𝕜']
{l : Filter α} {f : α → 𝕜} {g : α → 𝕜'},
f =o[l] g → (∀ᶠ (x : α) in l, f x = 0 → g x = 0) → (fun x ↦ (g x)⁻¹) =o[l] fun x ↦ (f x)⁻¹
theorem Asymptotics.IsBigOWith.eventually_mul_div_cancel E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} [inst : NormedDivisionRing 𝕜] {c : ℝ} {l : Filter α} {u v : α → 𝕜},
Asymptotics.IsBigOWith c l u v → u / v * v =ᶠ[l] u
theorem Asymptotics.IsBigO.eventually_mul_div_cancel E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} [inst : NormedDivisionRing 𝕜] {l : Filter α} {u v : α → 𝕜},
u =O[l] v → u / v * v =ᶠ[l] u
If u = O(v) along l, then (u / v) * v = u eventually at l.
theorem Asymptotics.IsLittleO.eventually_mul_div_cancel E1 #
∀ {α : Type u_1} {𝕜 : Type u_5} [inst : NormedDivisionRing 𝕜] {l : Filter α} {u v : α → 𝕜},
u =o[l] v → u / v * v =ᶠ[l] u
If u = o(v) along l, then (u / v) * v = u eventually at l.