A *filter* on a set $S$ is a special subset of $\mathcal{P}(S)$ that contains $S$ itself, does not contain the [empty set](Empty_set.md "Empty set"), and is closed under finite intersections and the superset relation. An *ideal* on $S$ is the dual of a filter: if $F$ is a filter, the set of the complements (in $S$) of $F