|
|
|
|
Quelle TVS.lean
Sprache: Lean
|
|
/-
Copyright (c) 2023 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Eric Wieser
-/
module
public import Mathlib.Analysis.Asymptotics.Defs
public import Mathlib.Analysis.Convex.EGauge
import Mathlib.Analysis.LocallyConvex.BalancedCoreHull
import Mathlib.Tactic.Peel
/-!
# Asymptotics in a Topological Vector Space
This file defines `Asymptotics.IsLittleOTVS`, `Asymptotics.IsBigOTVS`, and `Asymptotics.IsThetaTVS`
as generalizations of `Asymptotics.IsLittleO`, `Asymptotics.IsBigO`, and `Asymptotics.IsTheta`
from normed spaces to topological vector spaces.
Given two functions `f` and `g` taking values in topological vector spaces
over a normed field `K`,
we say that $f = o(g)$ (resp., $f = O(g)$)
if for any neighborhood of zero `U` in the codomain of `f`
there exists a neighborhood of zero `V` in the codomain of `g`
such that $\operatorname{gauge}_{K, U} (f(x)) = o(\operatorname{gauge}_{K, V} (g(x)))$
(resp., $\operatorname{gauge}_{K, U} (f(x)) = O(\operatorname{gauge}_{K, V} (g(x)))$),
where $\operatorname{gauge}_{K, U}(y) = \inf \{‖c‖ \mid y ∈ c • U\}$.
We say that $f=Θ(g)$, if both $f=O(g)$ and $g=O(f)$.
In a normed space, we can use balls of positive radius as both `U` and `V`,
thus reducing the definition to the classical one.
These modifications of the definitions free the user from having to chose a canonical norm,
at the expense of having to pick a specific base field.
This is exactly the tradeoff we want in `HasFDerivAtFilter`,
as there the base field is already chosen,
and this removes the choice of norm being part of the statement.
These definitions were added to the library in order to migrate Fréchet derivatives
from normed vector spaces to topological vector spaces.
The definitions are motivated by
https://en.wikipedia.org/wiki/Fr%C3%A9chet_derivative#Generalization_to_topological_vector_spaces
but the definition there doesn't work for topological vector spaces over general normed fields.
[This Zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/116395-maths/topic/generalizing.20deriv.20to.20TVS)
led to the current choice of the definition of `Asymptotics.IsLittleOTVS`,
and `Asymptotics.IsBigOTVS` was defined in a similar manner.
## Main results
* `isLittleOTVS_iff_isLittleO`: the equivalence between these two definitions in the case of a
normed space.
* `isLittleOTVS_iff_tendsto_inv_smul`: the equivalence to convergence of the ratio to zero
in case of a topological vector space.
## TODO
- Add `Asymptotics.IsEquivalentTVS`.
- Prove a version of `Asymptotics.isBigO_one` for `IsBigOTVS`.
-/
@[expose] public section
open Set Filter Asymptotics Metric
open scoped Topology Pointwise ENNReal NNReal
namespace Asymptotics
section Defs
variable ( : Type*) {α E F : Type*}
[ENorm ] [TopologicalSpace E] [TopologicalSpace F] [Zero E] [Zero F] [SMul E] [SMul F]
/-- `f =o[; l] g` (`IsLittleOTVS l f g`) is a generalization of `f =o[l] g` (`IsLittleO l f g`)
that works in topological ``-vector spaces.
Given two functions `f` and `g` taking values in topological vector spaces
over a normed field `K`,
we say that $f = o(g)$ if for any neighborhood of zero `U` in the codomain of `f`
there exists a neighborhood of zero `V` in the codomain of `g`
such that $\operatorname{gauge}_{K, U} (f(x)) = o(\operatorname{gauge}_{K, V} (g(x)))$,
where $\operatorname{gauge}_{K, U}(y) = \inf \{‖c‖ \mid y ∈ c • U\}$.
We use an `ENNReal`-valued function `egauge` for the gauge,
so we unfold the definition of little o instead of reusing it. -/
@[mk_iff]
structure IsLittleOTVS (l : Filter α) (f : α → E) (g : α → F) : Prop where
exists_eventuallyLE_mul : ∀ U ∈ (0 : E), ∃ V ∈ (0 : F), ∀ ε ≠ (0 : ℝ≥0),
(fun x ↦ egauge U (f x)) ≤ᶠ[l] (fun x ↦ ε * egauge V (g x))
@[inherit_doc]
notation:100 f " =o[" "; " l "] " g:100 => IsLittleOTVS l f g
/-- `f =O[; l] g` (`IsBigOTVS l f g`) is a generalization of `f =O[l] g` (`IsBigO l f g`)
that works in topological ``-vector spaces.
Given two functions `f` and `g` taking values in topological vector spaces
over a normed field ``,
we say that $f = O(g)$ if for any neighborhood of zero `U` in the codomain of `f`
there exists a neighborhood of zero `V` in the codomain of `g`
such that $\operatorname{gauge}_{K, U} (f(x)) \le \operatorname{gauge}_{K, V} (g(x))$,
where $\operatorname{gauge}_{K, U}(y) = \inf \{‖c‖ \mid y ∈ c • U\}$.
-/
@[mk_iff]
structure IsBigOTVS (l : Filter α) (f : α → E) (g : α → F) : Prop where
exists_eventuallyLE : ∀ U ∈ (0 : E), ∃ V ∈ (0 : F),
(egauge U <| f ·) ≤ᶠ[l] (egauge V <| g ·)
@[inherit_doc]
notation:100 f " =O[" "; " l "] " g:100 => IsBigOTVS l f g
/-- We say that `f =Θ[; l] g` (`IsThetaTVS l f g`), if `f =O[; l] g` and `g =O[; l] f`.
It is a generalization of `f =Θ[l] g` that works in topological ``-vector spaces. -/
def IsThetaTVS (l : Filter α) (f : α → E) (g : α → F) : Prop :=
(f =O[; l] g) ∧ (g =O[; l] f)
@[inherit_doc]
notation:100 f " =Θ[" "; " l "] " g:100 => IsThetaTVS l f g
end Defs
variable {α β E F G : Type*}
section TopologicalSpace
variable [NontriviallyNormedField ]
[AddCommGroup E] [TopologicalSpace E] [Module E]
[AddCommGroup F] [TopologicalSpace F] [Module F]
[AddCommGroup G] [TopologicalSpace G] [Module G]
section congr
variable {f f₁ f₂ : α → E} {g g₁ g₂ : α → F} {l : Filter α}
theorem isLittleOTVS_iff_tendsto_div :
f =o[; l] g ↔ ∀ U ∈ 0, ∃ V ∈ 0,
Tendsto (fun x ↦ egauge U (f x) / egauge V (g x)) l ( 0) := by
simp only [isLittleOTVS_iff, ← ENNReal.coe_zero, ENNReal.nhds_coe, ← NNReal.bot_eq_zero,
(nhds_bot_basis_Iic.map _).tendsto_right_iff]
simp +contextual [ENNReal.div_le_iff_le_mul, pos_iff_ne_zero, EventuallyLE]
alias ⟨IsLittleOTVS.tendsto_div, IsLittleOTVS.of_tendsto_div⟩ := isLittleOTVS_iff_tendsto_div
/-- A version of `IsLittleOTVS.exists_eventuallyLE_mul`
where `ε` is quantified over `ℝ≥0∞` instead of `ℝ≥0`. -/
theorem IsLittleOTVS.exists_eventuallyLE_mul_ennreal (h : f =o[; l] g) {U : Set E} (hU : U ∈ 0) :
∃ V ∈ (0 : F), ∀ ε ≠ 0, (fun x ↦ egauge U (f x)) ≤ᶠ[l] (fun x ↦ ε * egauge V (g x)) := by
obtain ⟨V, hV₀, hV⟩ := h.exists_eventuallyLE_mul U hU
refine ⟨V, hV₀, fun ε hε ↦ ?_⟩
cases ε with
| top => exact (hV 1 one_ne_zero).trans <| .of_forall fun _ ↦ by dsimp; grw [← le_top]
| coe ε => exact hV ε (mod_cast hε)
theorem isLittleOTVS_congr (hf : f₁ =ᶠ[l] f₂) (hg : g₁ =ᶠ[l] g₂) :
f₁ =o[; l] g₁ ↔ f₂ =o[; l] g₂ := by
simp only [isLittleOTVS_iff_tendsto_div]
congr! 5 with U hU V hV
exact tendsto_congr' (hf.comp₂ (egauge _ _ · / egauge _ _ ·) hg)
/-- A stronger version of `IsLittleOTVS.congr` that requires the functions only agree along the
filter. -/
theorem IsLittleOTVS.congr' (h : f₁ =o[; l] g₁) (hf : f₁ =ᶠ[l] f₂) (hg : g₁ =ᶠ[l] g₂) :
f₂ =o[; l] g₂ :=
(isLittleOTVS_congr hf hg).mp h
theorem IsLittleOTVS.congr (h : f₁ =o[; l] g₁) (hf : ∀ x, f₁ x = f₂ x) (hg : ∀ x, g₁ x = g₂ x) :
f₂ =o[; l] g₂ :=
h.congr' (univ_mem' hf) (univ_mem' hg)
theorem IsLittleOTVS.congr_left (h : f₁ =o[; l] g) (hf : ∀ x, f₁ x = f₂ x) : f₂ =o[; l] g :=
h.congr hf fun _ ↦ rfl
theorem IsLittleOTVS.congr_right (h : f =o[; l] g₁) (hg : ∀ x, g₁ x = g₂ x) : f =o[; l] g₂ :=
h.congr (fun _ ↦ rfl) hg
theorem isBigOTVS_congr (hf : f₁ =ᶠ[l] f₂) (hg : g₁ =ᶠ[l] g₂) :
f₁ =O[; l] g₁ ↔ f₂ =O[; l] g₂ := by
simp only [isBigOTVS_iff]
congr! 5 with U hU V hV
exact eventuallyLE_congr (hf.fun_comp (egauge U)) (hg.fun_comp (egauge V))
/-- A stronger version of `IsBigOTVS.congr` that requires the functions only agree along the
filter. -/
theorem IsBigOTVS.congr' (h : f₁ =O[; l] g₁) (hf : f₁ =ᶠ[l] f₂) (hg : g₁ =ᶠ[l] g₂) :
f₂ =O[; l] g₂ :=
(isBigOTVS_congr hf hg).mp h
theorem IsBigOTVS.congr (h : f₁ =O[; l] g₁) (hf : ∀ x, f₁ x = f₂ x) (hg : ∀ x, g₁ x = g₂ x) :
f₂ =O[; l] g₂ :=
h.congr' (univ_mem' hf) (univ_mem' hg)
theorem IsBigOTVS.congr_left (h : f₁ =O[; l] g) (hf : ∀ x, f₁ x = f₂ x) : f₂ =O[; l] g :=
h.congr hf fun _ ↦ rfl
theorem IsBigOTVS.congr_right (h : f =O[; l] g₁) (hg : ∀ x, g₁ x = g₂ x) : f =O[; l] g₂ :=
h.congr (fun _ ↦ rfl) hg
end congr
variable {l l₁ l₂ : Filter α} {f : α → E} {g : α → F}
protected theorem IsBigOTVS.refl (f : α → E) (l : Filter α) : f =O[; l] f := by
rw [isBigOTVS_iff]
exact fun U hU ↦ ⟨U, hU, EventuallyLE.rfl⟩
protected theorem IsBigOTVS.rfl : f =O[; l] f := .refl f l
protected theorem IsThetaTVS.refl (f : α → E) (l : Filter α) : f =Θ[; l] f :=
⟨.rfl, .rfl⟩
protected theorem IsThetaTVS.rfl : f =Θ[; l] f := .refl f l
theorem IsLittleOTVS.isBigOTVS (h : f =o[; l] g) : f =O[; l] g := by
refine ⟨fun U hU ↦ ?_⟩
rcases h.1 U hU with ⟨V, hV₀, hV⟩
use V, hV₀
simpa using hV 1 one_ne_zero
theorem IsThetaTVS.isBigOTVS (h : f =Θ[; l] g) : f =O[; l] g := h.left
@[symm]
theorem IsThetaTVS.symm (h : f =Θ[; l] g) : g =Θ[; l] f := And.symm h
theorem isThetaTVS_comm : f =Θ[; l] g ↔ g =Θ[; l] f := and_comm
/-!
### Transitivity lemmas
-/
section Trans
variable {k : α → G}
@[trans]
theorem IsBigOTVS.trans (hfg : f =O[; l] g) (hgk : g =O[; l] k) : f =O[; l] k := by
refine ⟨fun U hU₀ ↦ ?_⟩
obtain ⟨V, hV₀, hV⟩ := hfg.1 U hU₀
obtain ⟨W, hW₀, hW⟩ := hgk.1 V hV₀
refine ⟨W, hW₀, ?_⟩
filter_upwards [hV, hW] with x hx₁ hx₂ using hx₁.trans hx₂
instance instTransIsBigOTVSIsBigOTVS :
@Trans (α → E) (α → F) (α → G) (IsBigOTVS l) (IsBigOTVS l) (IsBigOTVS l) where
trans := IsBigOTVS.trans
theorem IsBigOTVS.trans_isThetaTVS (hfg : f =O[; l] g) (hgk : g =Θ[; l] k) :
f =O[; l] k :=
hfg.trans hgk.isBigOTVS
instance instTransIsBigOTVSIsThetaTVS :
@Trans (α → E) (α → F) (α → G) (IsBigOTVS l) (IsThetaTVS l) (IsBigOTVS l) where
trans := IsBigOTVS.trans_isThetaTVS
theorem IsThetaTVS.trans_isBigOTVS (hfg : f =Θ[; l] g) (hgk : g =O[; l] k) :
f =O[; l] k :=
hfg.isBigOTVS.trans hgk
instance instTransIsThetaOTVSIsBigOTVS :
@Trans (α → E) (α → F) (α → G) (IsThetaTVS l) (IsBigOTVS l) (IsBigOTVS l) where
trans := IsThetaTVS.trans_isBigOTVS
@[trans]
theorem IsThetaTVS.trans (hfg : f =Θ[; l] g) (hgk : g =Θ[; l] k) : f =Θ[; l] k :=
⟨hfg.1.trans hgk.1, hgk.2.trans hfg.2⟩
instance instTransIsThetaOTVS :
@Trans (α → E) (α → F) (α → G) (IsThetaTVS l) (IsThetaTVS l) (IsThetaTVS l) where
trans := IsThetaTVS.trans
theorem IsLittleOTVS.trans_isBigOTVS (hfg : f =o[; l] g) (hgk : g =O[; l] k) :
f =o[; l] k := by
refine ⟨fun U hU₀ ↦ ?_⟩
obtain ⟨V, hV₀, hV⟩ := hfg.1 U hU₀
obtain ⟨W, hW₀, hW⟩ := hgk.1 V hV₀
refine ⟨W, hW₀, fun ε hε ↦ ?_⟩
filter_upwards [hV ε hε, hW] with x hx₁ hx₂ using hx₁.trans <| by gcongr
instance instTransIsLittleOTVSIsBigOTVS :
@Trans (α → E) (α → F) (α → G) (IsLittleOTVS l) (IsBigOTVS l) (IsLittleOTVS l) where
trans := IsLittleOTVS.trans_isBigOTVS
theorem IsLittleOTVS.trans_isThetaTVS (hfg : f =o[; l] g) (hgk : g =Θ[; l] k) :
f =o[; l] k :=
hfg.trans_isBigOTVS hgk.isBigOTVS
instance instTransIsLittleOTVSIsThetaTVS :
@Trans (α → E) (α → F) (α → G) (IsLittleOTVS l) (IsThetaTVS l) (IsLittleOTVS l) where
trans := IsLittleOTVS.trans_isThetaTVS
theorem IsBigOTVS.trans_isLittleOTVS (hfg : f =O[; l] g) (hgk : g =o[; l] k) :
f =o[; l] k := by
refine ⟨fun U hU₀ ↦ ?_⟩
obtain ⟨V, hV₀, hV⟩ := hfg.1 U hU₀
obtain ⟨W, hW₀, hW⟩ := hgk.1 V hV₀
refine ⟨W, hW₀, fun ε hε ↦ ?_⟩
filter_upwards [hV, hW ε hε] with x hx₁ hx₂ using hx₁.trans hx₂
instance instTransIsBigOTVSIsLittleOTVS :
@Trans (α → E) (α → F) (α → G) (IsBigOTVS l) (IsLittleOTVS l) (IsLittleOTVS l) where
trans := IsBigOTVS.trans_isLittleOTVS
theorem IsThetaTVS.trans_isLittleOTVS (hfg : f =Θ[; l] g) (hgk : g =o[; l] k) :
f =o[; l] k :=
hfg.isBigOTVS.trans_isLittleOTVS hgk
instance instTransIsThetaTVSIsLittleOTVS :
@Trans (α → E) (α → F) (α → G) (IsThetaTVS l) (IsLittleOTVS l) (IsLittleOTVS l) where
trans := IsThetaTVS.trans_isLittleOTVS
@[trans]
theorem IsLittleOTVS.trans (hfg : f =o[; l] g) (hgk : g =o[; l] k) : f =o[; l] k :=
hfg.trans_isBigOTVS hgk.isBigOTVS
instance instTransIsLittleOTVSIsLittleOTVS :
@Trans (α → E) (α → F) (α → G) (IsLittleOTVS l) (IsLittleOTVS l) (IsLittleOTVS l) where
trans := IsLittleOTVS.trans
end Trans
protected theorem _root_.Filter.HasBasis.isLittleOTVS_iff
{ιE ιF : Sort*} {pE : ιE → Prop} {pF : ιF → Prop}
{sE : ιE → Set E} {sF : ιF → Set F} (hE : HasBasis ( (0 : E)) pE sE)
(hF : HasBasis ( (0 : F)) pF sF) :
f =o[; l] g ↔ ∀ i, pE i → ∃ j, pF j ∧ ∀ ε ≠ (0 : ℝ≥0),
∀ᶠ x in l, egauge (sE i) (f x) ≤ ε * egauge (sF j) (g x) := by
rw [isLittleOTVS_iff]
refine (hE.forall_iff ?_).trans <| forall₂_congr fun _ _ ↦ hF.exists_iff ?_
· rintro s t hsub ⟨V, hV₀, hV⟩
exact ⟨V, hV₀, fun ε hε ↦ (hV ε hε).mono fun x ↦ le_trans <| egauge_anti _ hsub _⟩
· refine fun s t hsub h ε hε ↦ (h ε hε).mono fun x hx ↦ hx.trans ?_
simp only
gcongr
protected theorem _root_.Filter.HasBasis.isBigOTVS_iff
{ιE ιF : Sort*} {pE : ιE → Prop} {pF : ιF → Prop}
{sE : ιE → Set E} {sF : ιF → Set F} (hE : HasBasis ( (0 : E)) pE sE)
(hF : HasBasis ( (0 : F)) pF sF) :
f =O[; l] g ↔ ∀ i, pE i → ∃ j, pF j ∧
∀ᶠ x in l, egauge (sE i) (f x) ≤ egauge (sF j) (g x) := by
rw [isBigOTVS_iff]
refine (hE.forall_iff ?_).trans <| forall₂_congr fun _ _ ↦ hF.exists_iff ?_
· rintro s t hsub ⟨V, hV₀, hV⟩
exact ⟨V, hV₀, hV.mono fun x ↦ le_trans <| egauge_anti _ hsub _⟩
· exact fun s t hsub h ↦ h.mono fun x hx ↦ hx.trans <| egauge_anti hsub (g x)
/-- The definition of `IsBigOTVS` says that
for each neighborhood `U` of the origin in the codomain of `f`,
there exists a neighborhood `V` of the origin in the codomain of `g` such that
`egauge U (f x) ≤ egauge V (g x)` eventually along `l`.
This lemma shows that it suffices to make this inequality work up to a constant multiplier. -/
theorem IsBigOTVS.of_egauge_le_mul [ContinuousConstSMul F] {ι} {p : ι → Prop} {U : ι → Set E}
(hb : ( 0).HasBasis p U)
(h : ∀ i, p i → ∃ C : ℝ≥0, ∃ V ∈ (0 : F),
(egauge (U i) <| f ·) ≤ᶠ[l] (fun x ↦ C * egauge V (g x))) :
f =O[; l] g := by
rw [hb.isBigOTVS_iff (basis_sets _)]
intro i hi
rcases h i hi with ⟨C, V, hV₀, hV⟩
rcases NormedField.exists_lt_nnNorm C with ⟨c, hc⟩
have hc₀ : c ≠ 0 := by rintro rfl; simp at hc
refine ⟨c⁻¹ • V, (set_smul_mem_nhds_zero_iff <| inv_ne_zero hc₀).mpr hV₀, ?_⟩
refine hV.trans <| .of_forall fun x ↦ ?_
simp only
grw [hc]
simp [egauge_smul_left, hc₀, eNorm_eq_nnNorm, ENNReal.div_eq_inv_mul]
theorem isLittleOTVS_iff_smallSets :
f =o[; l] g ↔ ∀ U ∈ 0, ∀ᶠ V in ( 0).smallSets, ∀ ε ≠ (0 : ℝ≥0),
∀ᶠ x in l, egauge U (f x) ≤ ε * egauge V (g x) :=
(isLittleOTVS_iff ..).trans <| forall₂_congr fun U hU ↦ .symm <|
eventually_smallSets' fun V₁ V₂ hV hV₂ ε hε ↦ (hV₂ ε hε).mono fun x hx ↦ hx.trans <| by gcongr
alias ⟨IsLittleOTVS.eventually_smallSets, _⟩ := isLittleOTVS_iff_smallSets
theorem isBigOTVS_iff_smallSets :
f =O[; l] g ↔ ∀ U ∈ 0, ∀ᶠ V in ( 0).smallSets,
∀ᶠ x in l, egauge U (f x) ≤ egauge V (g x) :=
(isBigOTVS_iff ..).trans <| forall₂_congr fun U hU ↦ .symm <|
eventually_smallSets' fun V₁ V₂ hV hV₂ ↦ hV₂.mono fun x hx ↦ hx.trans <| by gcongr
alias ⟨IsBigOTVS.eventually_smallSets, _⟩ := isBigOTVS_iff_smallSets
@[simp]
theorem isLittleOTVS_map {k : β → α} {l : Filter β} :
f =o[; map k l] g ↔ (f ∘ k) =o[; l] (g ∘ k) := by
simp [isLittleOTVS_iff, EventuallyLE]
@[simp]
theorem isBigOTVS_map {k : β → α} {l : Filter β} :
f =O[; map k l] g ↔ (f ∘ k) =O[; l] (g ∘ k) := by
simp [isBigOTVS_iff, EventuallyLE]
lemma IsLittleOTVS.mono (hf : f =o[; l₁] g) (h : l₂ ≤ l₁) : f =o[; l₂] g :=
⟨fun U hU ↦ let ⟨V, hV0, hV⟩ := hf.1 U hU; ⟨V, hV0, fun ε hε ↦ (hV ε hε).filter_mono h⟩⟩
lemma IsBigOTVS.mono (hf : f =O[; l₁] g) (h : l₂ ≤ l₁) : f =O[; l₂] g :=
⟨fun U hU ↦ let ⟨V, hV0, hV⟩ := hf.1 U hU; ⟨V, hV0, hV.filter_mono h⟩⟩
lemma IsLittleOTVS.comp_tendsto {k : β → α} {lb : Filter β} (h : f =o[; l] g)
(hk : Tendsto k lb l) : (f ∘ k) =o[; lb] (g ∘ k) :=
isLittleOTVS_map.mp (h.mono hk)
lemma IsBigOTVS.comp_tendsto {k : β → α} {lb : Filter β} (h : f =O[; l] g)
(hk : Tendsto k lb l) : (f ∘ k) =O[; lb] (g ∘ k) :=
isBigOTVS_map.mp (h.mono hk)
lemma isLittleOTVS_sup : f =o[; l₁ ⊔ l₂] g ↔ f =o[; l₁] g ∧ f =o[; l₂] g := by
simp only [isLittleOTVS_iff_smallSets, ← forall_and, ← eventually_and, eventually_sup]
lemma IsLittleOTVS.sup (hf₁ : f =o[; l₁] g) (hf₂ : f =o[; l₂] g) : f =o[; l₁ ⊔ l₂] g :=
isLittleOTVS_sup.mpr ⟨hf₁, hf₂⟩
lemma _root_.ContinuousLinearMap.isBigOTVS_id {l : Filter E} (f : E →L[] F) : f =O[; l] id :=
⟨fun U hU ↦ ⟨f ⁻¹' U, (map_continuous f).tendsto' 0 0 (map_zero f) hU, .of_forall <|
(mapsTo_preimage f U).egauge_le f⟩⟩
lemma _root_.ContinuousLinearMap.isBigOTVS_comp (g : E →L[] F) : (g ∘ f) =O[; l] f :=
g.isBigOTVS_id.comp_tendsto tendsto_top
lemma _root_.ContinuousLinearMap.isBigOTVS_fun_comp (g : E →L[] F) : (g <| f ·) =O[; l] f :=
g.isBigOTVS_comp
lemma _root_.LinearMap.isBigOTVS_rev_comp (g : E →ₗ[] F) (hg : comap g ( 0) ≤ 0) :
f =O[; l] (g ∘ f) := by
constructor
intro U hU
rcases mem_comap.1 (hg hU) with ⟨V, hV, hgV⟩
use V, hV
filter_upwards with a
refine le_egauge_of_forall_ne_zero (mem_of_mem_nhds hV) fun c hc₀ hc ↦ ?_
apply egauge_le_of_mem_smul
grw [← hgV, ← (IsUnit.mk0 _ hc₀).preimage_smul_set]
exact hc
lemma _root_.ContinuousLinearMap.isThetaTVS_comp (g : E →L[] F) (hg : Topology.IsInducing g) :
(g ∘ f) =Θ[; l] f :=
⟨g.isBigOTVS_comp, g.isBigOTVS_rev_comp <| by simp [hg.nhds_eq_comap]⟩
@[simp]
lemma IsLittleOTVS.zero (g : α → F) (l : Filter α) : (0 : α → E) =o[; l] g := by
refine ⟨fun U hU ↦ ?_⟩
use univ
simp [egauge_zero_right _ (Filter.nonempty_of_mem hU), EventuallyLE]
lemma isLittleOTVS_insert [TopologicalSpace α] {x : α} {s : Set α} (h : f x = 0) :
f =o[; [insert x s] x] g ↔ f =o[; ([s] x)] g := by
rw [nhdsWithin_insert, isLittleOTVS_sup, and_iff_right]
exact .congr' (.zero g _) h.symm .rfl
lemma IsLittleOTVS.insert [TopologicalSpace α] {x : α} {s : Set α}
(h : f =o[; [s] x] g) (hf : f x = 0) :
f =o[; [insert x s] x] g :=
(isLittleOTVS_insert hf).2 h
@[simp]
lemma IsLittleOTVS.bot : f =o[; ⊥] g :=
⟨fun u hU ↦ ⟨univ, by simp [EventuallyLE]⟩⟩
theorem IsLittleOTVS.prodMk [ContinuousSMul E] [ContinuousSMul F] {k : α → G}
(hf : f =o[; l] k) (hg : g =o[; l] k) : (fun x ↦ (f x, g x)) =o[; l] k := by
rw [((nhds_basis_balanced E).prod_nhds (nhds_basis_balanced F)).isLittleOTVS_iff
(basis_sets _)]
rintro ⟨U, V⟩ ⟨⟨hU, hUb⟩, hV, hVb⟩
rcases ((hf.eventually_smallSets U hU).and (hg.eventually_smallSets V hV)).exists_mem_of_smallSets
with ⟨W, hW, hWf, hWg⟩
refine ⟨W, hW, fun ε hε ↦ ?_⟩
filter_upwards [hWf ε hε, hWg ε hε] with x hfx hgx
simp [egauge_prod_mk, *]
protected theorem IsLittleOTVS.fst {f : α → E × F} {g : α → G} (h : f =o[; l] g) :
(f · |>.fst) =o[; l] g :=
ContinuousLinearMap.fst E F |>.isBigOTVS_comp |>.trans_isLittleOTVS h
protected theorem IsLittleOTVS.snd {f : α → E × F} {g : α → G} (h : f =o[; l] g) :
(f · |>.snd) =o[; l] g :=
ContinuousLinearMap.snd E F |>.isBigOTVS_comp |>.trans_isLittleOTVS h
@[simp]
theorem isLittleOTVS_prodMk_left [ContinuousSMul E] [ContinuousSMul F] {k : α → G} :
(fun x ↦ (f x, g x)) =o[; l] k ↔ f =o[; l] k ∧ g =o[; l] k :=
⟨fun h ↦ ⟨h.fst, h.snd⟩, fun h ↦ h.elim .prodMk⟩
theorem IsBigOTVS.prodMk [ContinuousSMul E] [ContinuousSMul F] {k : α → G}
(hf : f =O[; l] k) (hg : g =O[; l] k) : (fun x ↦ (f x, g x)) =O[; l] k := by
rw [((nhds_basis_balanced E).prod_nhds (nhds_basis_balanced F)).isBigOTVS_iff (basis_sets _)]
rintro ⟨U, V⟩ ⟨⟨hU, hUb⟩, hV, hVb⟩
rcases ((hf.eventually_smallSets U hU).and (hg.eventually_smallSets V hV)).exists_mem_of_smallSets
with ⟨W, hW, hWf, hWg⟩
refine ⟨W, hW, ?_⟩
filter_upwards [hWf, hWg] with x hfx hgx
simp [egauge_prod_mk, *]
protected theorem IsBigOTVS.fst {f : α → E × F} {g : α → G} (h : f =O[; l] g) :
(f · |>.fst) =O[; l] g :=
ContinuousLinearMap.fst E F |>.isBigOTVS_comp |>.trans h
protected theorem IsBigOTVS.snd {f : α → E × F} {g : α → G} (h : f =O[; l] g) :
(f · |>.snd) =O[; l] g :=
ContinuousLinearMap.snd E F |>.isBigOTVS_comp |>.trans h
@[simp]
theorem isBigOTVS_prodMk_left [ContinuousSMul E] [ContinuousSMul F] {k : α → G} :
(fun x ↦ (f x, g x)) =O[; l] k ↔ f =O[; l] k ∧ g =O[; l] k :=
⟨fun h ↦ ⟨h.fst, h.snd⟩, fun h ↦ h.elim .prodMk⟩
section Add
variable [ContinuousAdd E] [ContinuousSMul E] {f₁ f₂ f₃ : α → E}
@[to_fun]
theorem IsLittleOTVS.add (h₁ : f₁ =o[; l] g) (h₂ : f₂ =o[; l] g) : (f₁ + f₂) =o[; l] g :=
ContinuousLinearMap.fst E E + ContinuousLinearMap.snd E E |>.isBigOTVS_comp
|>.trans_isLittleOTVS <| h₁.prodMk h₂
theorem IsLittleOTVS.listSum {L : List (α → E)} (h : ∀ f ∈ L, f =o[; l] g) :
L.sum =o[; l] g := by
induction L with
| nil => simp
| cons f L ihL =>
rw [List.sum_cons]
exact (h f (.head _)).add (ihL fun f' hf' ↦ h f' (.tail _ hf'))
theorem IsLittleOTVS.multisetSum {s : Multiset (α → E)} (h : ∀ f ∈ s, f =o[; l] g) :
s.sum =o[; l] g := by
cases s using Quotient.inductionOn with
| _ L => exact listSum h
@[to_fun]
theorem IsLittleOTVS.sum {ι : Type*} {s : Finset ι} {f : ι → α → E} (h : ∀ i ∈ s, f i =o[; l] g) :
(∑ i ∈ s, f i) =o[; l] g := by
rw [Finset.sum_eq_multiset_sum]
apply multisetSum
simpa using h
@[to_fun]
theorem IsBigOTVS.add (h₁ : f₁ =O[; l] g) (h₂ : f₂ =O[; l] g) : (f₁ + f₂) =O[; l] g :=
ContinuousLinearMap.fst E E + ContinuousLinearMap.snd E E |>.isBigOTVS_comp
|>.trans <| h₁.prodMk h₂
theorem IsBigOTVS.listSum {L : List (α → E)} (h : ∀ f ∈ L, f =O[; l] g) :
L.sum =O[; l] g := by
induction L with
| nil => simpa using (IsLittleOTVS.zero g l).isBigOTVS
| cons f L ihL =>
rw [List.sum_cons]
exact (h f (.head _)).add (ihL fun f' hf' ↦ h f' (.tail _ hf'))
theorem IsBigOTVS.multisetSum {s : Multiset (α → E)} (h : ∀ f ∈ s, f =O[; l] g) :
s.sum =O[; l] g := by
cases s using Quotient.inductionOn with
| _ L => exact listSum h
@[to_fun]
theorem IsBigOTVS.sum {ι : Type*} {s : Finset ι} {f : ι → α → E} (h : ∀ i ∈ s, f i =O[; l] g) :
(∑ i ∈ s, f i) =O[; l] g := by
rw [Finset.sum_eq_multiset_sum]
apply multisetSum
simpa using h
theorem IsLittleOTVS.triangle (h₁ : (f₁ - f₂) =o[; l] g) (h₂ : (f₂ - f₃) =o[; l] g) :
(f₁ - f₃) =o[; l] g := by
simpa using h₁.add h₂
theorem IsBigOTVS.triangle (h₁ : (f₁ - f₂) =O[; l] g) (h₂ : (f₂ - f₃) =O[; l] g) :
(f₁ - f₃) =O[; l] g := by
simpa using h₁.add h₂
end Add
section NegLeft
variable [ContinuousNeg E]
theorem IsBigOTVS.neg_left (h : f =O[; l] g) : (-f) =O[; l] g :=
.trans ((ContinuousLinearMap.mk (-.id (R := )) continuous_neg).isBigOTVS_comp) h
@[simp]
theorem isBigOTVS_neg_left : (-f) =O[; l] g ↔ f =O[; l] g :=
⟨fun h ↦ by simpa using h.neg_left, .neg_left⟩
@[simp]
theorem isBigOTVS_fun_neg_left : (-f ·) =O[; l] g ↔ f =O[; l] g :=
isBigOTVS_neg_left
theorem IsLittleOTVS.neg_left (h : f =o[; l] g) : (-f) =o[; l] g :=
IsBigOTVS.rfl.neg_left.trans_isLittleOTVS h
@[simp]
theorem isLittleOTVS_neg_left : (-f) =o[; l] g ↔ f =o[; l] g :=
⟨fun h ↦ by simpa using h.neg_left, .neg_left⟩
@[simp]
theorem isLittleOTVS_fun_neg_left : (-f ·) =o[; l] g ↔ f =o[; l] g :=
isLittleOTVS_neg_left
@[to_fun]
protected theorem IsLittleOTVS.symm {f₁ f₂ : α → E} (h : (f₁ - f₂) =o[; l] g) :
(f₂ - f₁) =o[; l] g := by
simpa using h.neg_left
theorem isLittleOTVS_comm {f₁ f₂ : α → E} :
(f₁ - f₂) =o[; l] g ↔ (f₂ - f₁) =o[; l] g :=
⟨.symm, .symm⟩
theorem isLittleOTVS_fun_comm {f₁ f₂ : α → E} :
(fun a ↦ f₁ a - f₂ a) =o[; l] g ↔ (fun a ↦ f₂ a - f₁ a) =o[; l] g :=
isLittleOTVS_comm
@[to_fun]
protected theorem IsBigOTVS.symm {f₁ f₂ : α → E} (h : (f₁ - f₂) =O[; l] g) :
(f₂ - f₁) =O[; l] g := by
simpa using h.neg_left
theorem isBigOTVS_comm {f₁ f₂ : α → E} :
(f₁ - f₂) =O[; l] g ↔ (f₂ - f₁) =O[; l] g :=
⟨.symm, .symm⟩
theorem isBigOTVS_fun_comm {f₁ f₂ : α → E} :
(fun a ↦ f₁ a - f₂ a) =O[; l] g ↔ (fun a ↦ f₂ a - f₁ a) =O[; l] g :=
isBigOTVS_comm
end NegLeft
section NegRight
variable [ContinuousNeg F]
theorem IsBigOTVS.neg_right (h : f =O[; l] g) : f =O[; l] (-g) :=
h.trans <| by simpa using (IsBigOTVS.refl (-g) l).neg_left
@[simp]
theorem isBigOTVS_neg_right : f =O[; l] (-g) ↔ f =O[; l] g :=
⟨fun h ↦ by simpa using h.neg_right, .neg_right⟩
@[simp]
theorem isBigOTVS_fun_neg_right : f =O[; l] (-g ·) ↔ f =O[; l] g :=
isBigOTVS_neg_right
theorem IsLittleOTVS.neg_right (h : f =o[; l] g) : f =o[; l] (-g) :=
h.trans_isBigOTVS (.neg_right .rfl)
@[simp]
theorem isLittleOTVS_neg_right : f =o[; l] (-g) ↔ f =o[; l] g :=
⟨fun h ↦ by simpa using h.neg_right, .neg_right⟩
@[simp]
theorem isLittleOTVS_fun_neg_right : f =o[; l] (-g ·) ↔ f =o[; l] g :=
isLittleOTVS_neg_right
end NegRight
protected theorem IsLittleOTVS.pi {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] [∀ i, ContinuousSMul (E i)]
{f : ∀ i, α → E i} (h : ∀ i, f i =o[; l] g) : (fun x i ↦ f i x) =o[; l] g := by
have := hasBasis_pi fun i ↦ nhds_basis_balanced (E i)
rw [← nhds_pi, ← Pi.zero_def] at this
simp only [this.isLittleOTVS_iff (basis_sets _), forall_and, Prod.forall, id]
rintro I U ⟨hIf, hU, Ub⟩
have := fun i hi ↦ (h i).eventually_smallSets (U i) (hU i hi)
rcases (hIf.eventually_all.mpr this).exists_mem_of_smallSets with ⟨V, hV₀, hV⟩
refine ⟨V, hV₀, fun ε hε ↦ ?_⟩
refine (hIf.eventually_all.mpr (hV · · ε hε)).mono fun x hx ↦ ?_
simpa only [id, egauge_pi hIf Ub, iSup₂_le_iff]
theorem IsLittleOTVS.proj {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] {f : α → ∀ i, E i}
(h : f =o[; l] g) (i : ι) : (f · i) =o[; l] g :=
ContinuousLinearMap.proj i |>.isBigOTVS_fun_comp |>.trans_isLittleOTVS h
theorem isLittleOTVS_pi {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] [∀ i, ContinuousSMul (E i)]
{f : α → ∀ i, E i} : f =o[; l] g ↔ ∀ i, (f · i) =o[; l] g :=
⟨.proj, .pi⟩
protected theorem IsBigOTVS.pi {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] [∀ i, ContinuousSMul (E i)]
{f : ∀ i, α → E i} (h : ∀ i, f i =O[; l] g) : (fun x i ↦ f i x) =O[; l] g := by
have := hasBasis_pi fun i ↦ nhds_basis_balanced (E i)
rw [← nhds_pi, ← Pi.zero_def] at this
simp only [this.isBigOTVS_iff (basis_sets _), forall_and, Prod.forall, id]
rintro I U ⟨hIf, hU, Ub⟩
have := fun i hi ↦ (h i).eventually_smallSets (U i) (hU i hi)
rcases (hIf.eventually_all.mpr this).exists_mem_of_smallSets with ⟨V, hV₀, hV⟩
use V, hV₀
refine (hIf.eventually_all.mpr hV).mono fun x hx ↦ ?_
simpa only [id, egauge_pi hIf Ub, iSup₂_le_iff]
theorem IsBigOTVS.proj {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] {f : α → ∀ i, E i}
(h : f =O[; l] g) (i : ι) : (f · i) =O[; l] g :=
ContinuousLinearMap.proj i |>.isBigOTVS_fun_comp |>.trans h
theorem isBigOTVS_pi {ι : Type*} {E : ι → Type*} [∀ i, AddCommGroup (E i)]
[∀ i, Module (E i)] [∀ i, TopologicalSpace (E i)] [∀ i, ContinuousSMul (E i)]
{f : α → ∀ i, E i} : f =O[; l] g ↔ ∀ i, (f · i) =O[; l] g :=
⟨.proj, .pi⟩
protected lemma IsLittleOTVS.smul_left (h : f =o[; l] g) (c : α → ) :
(fun x ↦ c x • f x) =o[; l] (fun x ↦ c x • g x) := by
simp only [isLittleOTVS_iff, EventuallyLE] at *
gconvert h using 7 with U hU V hV ε hε x hx
rw [egauge_smul_right, egauge_smul_right, mul_left_comm]
· gcongr
all_goals exact fun _ ↦ Filter.nonempty_of_mem ‹_›
lemma isLittleOTVS_one [ContinuousSMul E] : f =o[; l] (1 : α → ) ↔ Tendsto f l ( 0) := by
constructor
· intro hf
rw [(basis_sets _).isLittleOTVS_iff nhds_basis_ball] at hf
rw [(nhds_basis_balanced E).tendsto_right_iff]
rintro U ⟨hU, hUb⟩
rcases hf U hU with ⟨r, hr₀, hr⟩
lift r to ℝ≥0 using hr₀.le
norm_cast at hr₀
rcases NormedField.exists_one_lt_norm with ⟨c, hc⟩
obtain ⟨ε, hε₀, hε⟩ : ∃ ε : ℝ≥0, 0 < ε ∧ (ε * ‖c‖₊ / r : ℝ≥0∞) < 1 := by
apply Eventually.exists_gt
refine Continuous.tendsto' ?_ _ _ (by simp) |>.eventually_lt_const zero_lt_one
fun_prop (disch := intros; first | apply ENNReal.coe_ne_top | positivity)
filter_upwards [hr ε hε₀.ne'] with x hx
refine mem_of_egauge_lt_one hUb (hx.trans_lt ?_)
calc
(ε : ℝ≥0∞) * egauge (ball (0 : ) r) 1 ≤ (ε * ‖c‖₊ / r : ℝ≥0∞) := by
rw [mul_div_assoc]
gcongr
simpa using! egauge_ball_le_of_one_lt_norm (r := r) (x := (1 : )) hc (by simp)
_ < 1 := ‹_›
· simp only [isLittleOTVS_iff]
intro hf U hU
refine ⟨ball 0 1, ball_mem_nhds _ one_pos, fun ε hε ↦ ?_⟩
rcases NormedField.exists_norm_lt hε.bot_lt with ⟨c, hc₀, hcε⟩
replace hc₀ : c ≠ 0 := by simpa using! hc₀
filter_upwards [hf ((set_smul_mem_nhds_zero_iff hc₀).2 hU)] with a ha
calc
egauge U (f a) ≤ ‖c‖₊ := egauge_le_of_mem_smul ha
_ ≤ ε := mod_cast hcε.le
_ ≤ ε * egauge (ball (0 : ) 1) 1 := by
apply le_mul_of_one_le_right'
simpa using! le_egauge_unitBall (1 : )
lemma IsLittleOTVS.tendsto_inv_smul [ContinuousSMul E] {f : α → } {g : α → E}
(h : g =o[; l] f) : Tendsto (fun x ↦ (f x)⁻¹ • g x) l ( 0) := by
rw [← isLittleOTVS_one ( := ), isLittleOTVS_iff]
intro U hU
rcases (h.smul_left f⁻¹).1 U hU with ⟨V, hV₀, hV⟩
refine ⟨V, hV₀, fun ε hε ↦ (hV ε hε).mono fun x hx ↦ hx.trans ?_⟩
by_cases hx₀ : f x = 0 <;> simp [hx₀, egauge_zero_right _ (Filter.nonempty_of_mem hV₀)]
lemma isLittleOTVS_iff_tendsto_inv_smul [ContinuousSMul E] {f : α → } {g : α → E} {l : Filter α}
(h₀ : ∀ᶠ x in l, f x = 0 → g x = 0) :
g =o[; l] f ↔ Tendsto (fun x ↦ (f x)⁻¹ • g x) l ( 0) := by
refine ⟨IsLittleOTVS.tendsto_inv_smul, fun h ↦ ?_⟩
refine (((isLittleOTVS_one ( := )).mpr h).smul_left f).congr' (h₀.mono fun x hx ↦ ?_) (by simp)
by_cases h : f x = 0 <;> simp [h, hx]
variable () in
/-- If `f` converges along `l` to a finite limit `x`, then `f =O[, l] 1`. -/
lemma Filter.Tendsto.isBigOTVS_one [ContinuousAdd E] [ContinuousSMul E] {x : E}
(h : Tendsto f l ( x)) : f =O[; l] (fun _ ↦ 1 : α → ) := by
replace h : Tendsto (f · - x) l ( 0) := by
simpa [sub_eq_add_neg] using h.add (tendsto_const_nhds (x := -x))
rw [(nhds_basis_balanced E).add_self.isBigOTVS_iff nhds_basis_ball]
rintro U ⟨hU₀, hUb⟩
obtain ⟨r, hr₀, hr₁, hr⟩ : ∃ r : ℝ≥0, 0 < r ∧ r ≤ 1 ∧ (r : ℝ≥0∞) ≤ (egauge U x)⁻¹ := by
apply Eventually.exists_gt
refine .and (eventually_le_nhds one_pos) ?_
refine (ENNReal.tendsto_coe.mpr tendsto_id).eventually_le_const ?_
suffices ∃ c : , x ∈ c • U by simpa [egauge_eq_top]
simpa using (absorbent_nhds_zero ( := ) hU₀ x).exists
use r, by positivity
filter_upwards [h.eventually_mem hU₀] with a ha
calc
egauge (U + U) (f a) ≤ max (egauge U (f a - x)) (egauge U x) := by
simpa using egauge_add_add_le hUb hUb (f a - x) x
_ ≤ (r : ℝ≥0∞)⁻¹ := by
apply max_le
· refine (egauge_le_one _ ha).trans ?_
simp [hr₁]
· rwa [ENNReal.le_inv_iff_le_inv]
_ ≤ egauge (ball (0 : ) _) 1 := by simpa using div_le_egauge_ball r (1 : )
end TopologicalSpace
section NormedSpace
variable [NontriviallyNormedField ]
variable [SeminormedAddCommGroup E] [SeminormedAddCommGroup F] [NormedSpace E] [NormedSpace F]
variable {f : α → E} {g : α → F} {l : Filter α}
lemma isLittleOTVS_iff_isLittleO : f =o[; l] g ↔ f =o[l] g := by
rcases NormedField.exists_one_lt_norm with ⟨c, hc : 1 < ‖c‖₊⟩
have hc₀ : 0 < ‖c‖₊ := one_pos.trans hc
simp only [isLittleO_iff, nhds_basis_ball.isLittleOTVS_iff nhds_basis_ball]
refine ⟨fun h ε hε ↦ ?_, fun h ε hε ↦ ⟨1, one_pos, fun δ hδ ↦ ?_⟩⟩
· rcases h ε hε with ⟨δ, hδ₀, hδ⟩
lift ε to ℝ≥0 using hε.le; lift δ to ℝ≥0 using hδ₀.le; norm_cast at hε hδ₀
filter_upwards [hδ (δ / ‖c‖₊) (div_pos hδ₀ hc₀).ne'] with x hx
suffices (‖f x‖₊ / ε : ℝ≥0∞) ≤ ‖g x‖₊ by
rw [← ENNReal.coe_div hε.ne'] at this
rw [← div_le_iff₀' (NNReal.coe_pos.2 hε)]
exact mod_cast this
calc
(‖f x‖₊ / ε : ℝ≥0∞) ≤ egauge (ball 0 ε) (f x) := div_le_egauge_ball _ _
_ ≤ ↑(δ / ‖c‖₊) * egauge (ball 0 ↑δ) (g x) := hx
_ ≤ (δ / ‖c‖₊) * (‖c‖₊ * ‖g x‖₊ / δ) := by
gcongr
exacts [ENNReal.coe_div_le, egauge_ball_le_of_one_lt_norm hc (.inl <| ne_of_gt hδ₀)]
_ = (δ / δ) * (‖c‖₊ / ‖c‖₊) * ‖g x‖₊ := by simp only [div_eq_mul_inv]; ring
_ ≤ 1 * 1 * ‖g x‖₊ := by gcongr <;> exact ENNReal.div_self_le_one
_ = ‖g x‖₊ := by simp
· filter_upwards [@h ↑(ε * δ / ‖c‖₊) (by positivity)] with x (hx : ‖f x‖₊ ≤ ε * δ / ‖c‖₊ * ‖g x‖₊)
lift ε to ℝ≥0 using hε.le
calc
egauge (ball 0 ε) (f x) ≤ ‖c‖₊ * ‖f x‖₊ / ε :=
egauge_ball_le_of_one_lt_norm hc (.inl <| ne_of_gt hε)
_ ≤ ‖c‖₊ * (↑(ε * δ / ‖c‖₊) * ‖g x‖₊) / ε := by gcongr; exact mod_cast hx
_ = (‖c‖₊ / ‖c‖₊) * (ε / ε) * δ * ‖g x‖₊ := by
simp only [div_eq_mul_inv, ENNReal.coe_inv hc₀.ne', ENNReal.coe_mul]; ring
_ ≤ 1 * 1 * δ * ‖g x‖₊ := by gcongr <;> exact ENNReal.div_self_le_one
_ = δ * ‖g x‖₊ := by simp
_ ≤ δ * egauge (ball 0 1) (g x) := by gcongr; apply le_egauge_unitBall
alias ⟨isLittleOTVS.isLittleO, IsLittleO.isLittleOTVS⟩ := isLittleOTVS_iff_isLittleO
lemma isBigOTVS_iff_isBigO : f =O[; l] g ↔ f =O[l] g := by
rcases NormedField.exists_one_lt_norm with ⟨c, hc : 1 < ‖c‖₊⟩
constructor
· rw [nhds_basis_ball.isBigOTVS_iff nhds_basis_ball, isBigO_iff]
intro h
rcases h 1 one_pos with ⟨r, hr₀, hr⟩
lift r to ℝ≥0 using hr₀.le
norm_cast at hr₀
refine ⟨(‖c‖₊ / r : ℝ≥0), hr.mono fun x hx ↦ ?_⟩
suffices ‖f x‖ₑ ≤ (‖c‖₊ / r : ℝ≥0) * ‖g x‖ₑ by
simp only [eNorm_eq_nnNorm, ← coe_nnNorm] at this ⊢
exact mod_cast this
calc
‖f x‖ₑ ≤ egauge (ball 0 1) (f x) := le_egauge_unitBall ..
_ ≤ egauge (ball 0 r) (g x) := hx
_ ≤ ‖c‖ₑ * ‖g x‖ₑ / ↑r :=
egauge_ball_le_of_one_lt_norm hc <| .inl hr₀.ne'
_ = (‖c‖₊ / r : ℝ≥0) * ‖g x‖ₑ := by
simp [hr₀.ne', ENNReal.mul_div_right_comm, eNorm_eq_nnNorm]
· rw [nhds_basis_ball.isBigOTVS_iff nhds_basis_ball, isBigO_iff']
have hc₀ : 0 < ‖c‖₊ := one_pos.trans hc
rintro ⟨C, hC₀, hC⟩ r hr₀
lift C to ℝ≥0 using hC₀.le; norm_cast at hC₀
lift r to ℝ≥0 using hr₀.le; norm_cast at hr₀
refine ⟨r / (C * ‖c‖₊), by positivity, hC.mono fun x hx ↦ ?_⟩
calc
egauge (ball 0 r) (f x) ≤ ‖c‖ₑ * ‖f x‖ₑ / r :=
egauge_ball_le_of_one_lt_norm hc <| .inl hr₀.ne'
_ ≤ ‖c‖ₑ * (C * ‖g x‖ₑ) / r := by
gcongr
simp only [eNorm_eq_nnNorm, ← coe_nnNorm] at hx ⊢
exact mod_cast hx
_ = ‖g x‖ₑ / (r / (C * ‖c‖₊) : ℝ≥0) := by
simp_all [pos_iff_ne_zero, ENNReal.div_eq_inv_mul, ENNReal.mul_inv]
ac_rfl
_ ≤ _ := div_le_egauge_ball _ _ _
alias ⟨IsBigOTVS.isBigO, IsBigO.isBigOTVS⟩ := isBigOTVS_iff_isBigO
lemma isThetaTVS_iff_isTheta : f =Θ[; l] g ↔ f =Θ[l] g :=
.and isBigOTVS_iff_isBigO isBigOTVS_iff_isBigO
alias ⟨IsThetaTVS.isTheta, IsTheta.isThetaTVS⟩ := isThetaTVS_iff_isTheta
end NormedSpace
end Asymptotics
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|