Definition

A subset FF of a partial order LL is called a filter if it is upward-closed and downward directed, i.e.

  1. if ABA \leq B in LL and AFA \in F, then BFB \in F (upward closed)
  2. for some AA in LL, AFA \in F (nonempty)
  3. if AFA \in F and BFB \in F, then for some CFC \in F, CAC \leq A and CBC \leq B (downward directed)

Notes

Lean4 definition

A filter F on 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

See also


References

  1. https://mathworld.wolfram.com/Filter.html
  2. https://ncatlab.org/nlab/show/filter
  3. https://math.stackexchange.com/questions/5045043/is-the-empty-filter-a-filter