2.2. General case and further notation
The definition underlying the notation introduced above is IsBigO. This definition applies
to functions whose domain carries a filter and whose codomains carry a norm. For simplicity here
we will assume the functions take values in the same codomain and this this is actually a normed
group.
variable {α E : Type*}
(l : Filter α) [NormedAddCommGroup E]
(f g : α → E)
In this setting, we can witness Mathlib's support for further Landau notation as follows:
-
f =O[l] gnotation forIsBigO -
f =Θ[l] gnotation forIsTheta -
f =o[l] gnotation forIsLittleO -
f ~[l] gnotation forIsEquivalent
We note some familiar properties:
example : f =Θ[l] g ↔ f =O[l] g ∧ g =O[l] f := Iff.rfl
example : f ~[l] g ↔ (f - g) =o[l] g := Iff.rfl
We also note that there exists a more quantiative variant of IsBigO which
allows control over the constant, this is IsBigOWith.