Module docstring
{"# Definitions about filters
A filter on a type α is a collection of sets of α which contains the whole α,
is upwards-closed, and is stable under intersection. Filters are mostly used to
abstract two related kinds of ideas:
* limits, including finite or infinite limits of sequences, finite or infinite limits of functions
at a point or at infinity, etc...
* things happening eventually, including things happening for large enough n : ℕ, or near enough
a point x, or for close enough pairs of points, or things happening almost everywhere in the
sense of measure theory. Dually, filters can also express the idea of things happening often:
for arbitrarily large n, or at a point in any neighborhood of given a point etc...
Main definitions
Filter: filters on a set;Filter.principal,𝓟 s: filter of all sets containing a given set;Filter.map,Filter.comap: operations on filters;Filter.Tendsto: limit with respect to filters;Filter.Eventually:f.Eventually pmeans{x | p x} ∈ f;Filter.Frequently:f.Frequently pmeans{x | ¬p x} ∉ f;filter_upwards [h₁, ..., hₙ]: a tactic that takes a list of proofshᵢ : sᵢ ∈ f, and replaces a goals ∈ fwith∀ x, x ∈ s₁ → ... → x ∈ sₙ → x ∈ s;Filter.NeBot f: a utility class stating thatfis a non-trivial filter.Filter.IsBounded r f: the filterfis eventually bounded w.r.t. the relationr, i.e. eventually, it is bounded by some uniform bound.rwill be usually instantiated with(· ≤ ·)or(· ≥ ·).Filter.IsCobounded r fstates that the filterfdoes not tend to infinity w.r.t.r. This is also called frequently bounded. Will be usually instantiated with(· ≤ ·)or(· ≥ ·).
Notations
∀ᶠ x in f, p x:f.Eventually p;∃ᶠ x in f, p x:f.Frequently p;f =ᶠ[l] g:∀ᶠ x in l, f x = g x;f ≤ᶠ[l] g:∀ᶠ x in l, f x ≤ g x;𝓟 s:Filter.Principal s, localized inFilter.
Implementation Notes
Important note: Bourbaki requires that a filter on X cannot contain all sets of X,
which we do not require.
This gives Filter X better formal properties,
in particular a bottom element ⊥ for its lattice structure,
at the cost of including the assumption [NeBot f] in a number of lemmas and definitions.
References
- [N. Bourbaki, General Topology][bourbaki1966] "}