filter
#logic #set_theory
Definition
A subset of a partial order is called a filter if it is upward-closed and downward directed, i.e.
- if in and , then (upward closed)
- for some in , (nonempty)
- if and , then for some , and (downward directed)
Notes
- can define filter in terms of predicate being a filter under similar conditions (whereas instead membership of it is defined in terms of truth condition being satisfiable on some type )
Lean4 definition
A filter
Fon a typeαis a collection of sets ofαwhich contains the wholeα, is upwards-closed, and is stable under intersection. We do not forbid this collection to be all sets ofα.
structure Filter (α : Type*) where
/-- The set of sets that belong to the filter. -/
sets : Set (Set α)
/-- The set `Set.univ` belongs to any filter. -/
univ_sets : Set.univ ∈ sets
/-- If a set belongs to a filter, then its superset belongs to the filter as well. -/
sets_of_superset {x y} : x ∈ sets → x ⊆ y → y ∈ sets
/-- If two sets belong to a filter, then their intersection belongs to the filter as well. -/
inter_sets {x y} : x ∈ sets → y ∈ sets → x ∩ y ∈ sets