Theorems about map and comap on filters. #
Push-forwards, pull-backs, and the monad structure #
Filter as a Monad #
In this section we define Filter.monad, a Monad structure on Filters. This definition is not
an instance because its Seq projection is not equal to the Filter.seq function we use in the
Applicative instance on Filter.
The monad structure on filters.
Equations
Instances For
The variables in the following lemmas are used as in this diagram:
φ
α → β
θ ↓ ↓ ψ
γ → δ
ρ
The analog of Set.kernImage for filters.
A set s belongs to Filter.kernMap m f if either of the following equivalent conditions hold.
- There exists a set
t ∈ fsuch thats = Set.kernImage m t. This is used as a definition. - There exists a set
tsuch thattᶜ ∈ fandsᶜ = m '' t, seeFilter.mem_kernMap_iff_complandFilter.compl_mem_kernMap.
This definition is useful because it gives a right adjoint to Filter.comap, and because it has a
nice interpretation when working with co- filters (Filter.cocompact, Filter.cofinite, ...).
For example, kernMap m (cocompact α) is the filter generated by the complements of the sets
m '' K where K is a compact subset of α.
Equations
Instances For
bind equations #
Alias of the reverse direction of Filter.map_surjOn_Iic_iff_surjOn.
Alias of the reverse direction of Filter.filter_injOn_Iic_iff_injOn.