Filter (mathematics)

In mathematics, a filter or order filter is a special subset of a partially ordered set (poset), describing "large" or "eventual" elements. Filters appear in order and lattice theory, but also topology, whence they originate. The notion dual to a filter is an order ideal.

Special cases of filters include ultrafilters, which are filters that cannot be enlarged, and describe nonconstructive techniques in mathematical logic.

Filters on sets were introduced by Henri Cartan in 1937. Nicolas Bourbaki, in their book Topologie Générale, popularized filters as an alternative to E. H. Moore and Herman L. Smith's 1922 notion of a net; order filters generalize this notion from the specific case of a power set under inclusion to arbitrary partially ordered sets. Nevertheless, the theory of power-set filters retains interest in its own right, in part for substantial applications in topology.

Motivation
Fix a partially ordered set (poset) $P$. Intuitively, a filter $F$ is a subset of $P$ whose members are elements large enough to satisfy some criterion. For instance, if $\{1, 2, 3, 4\}$, then the set of elements above $x$ is a filter, called the principal filter at $x$. (If $x$ and $y$ are incomparable elements of $P$, then neither the principal filter at $x$ nor $y$ is contained in the other.)

Similarly, a filter on a set $S$ contains those subsets that are sufficiently large to contain some given. For example, if $S$ is the real line and $&uparrow;\{1, 4\}$, then the family of sets including $x$ in their interior is a filter, called the neighborhood filter at $x$. The in this case is slightly larger than $x$, but it still does not contain any other specific point of the line.

The above considerations motivate the upward closure requirement in the definition below: "large enough" objects can always be made larger.

To understand the other two conditions, reverse the roles and instead consider $F$ as a "locating scheme" to find $x$. In this interpretation, one searches in some space $X$, and expects $F$ to describe those subsets of $X$ that contain the goal. The goal must be located somewhere; thus the empty set $&uparrow;\{1\}$ can never be in $F$. And if two subsets both contain the goal, then should "zoom in" to their common region.

An ultrafilter describes a "perfect locating scheme" where each scheme component gives new information (either "look here" or "look elsewhere"). Compactness is the property that "every search is fruitful," or, to put it another way, "every locating scheme ends in a search result."

A common use for a filter is to define properties that are satisfied by "generic" elements of some topological space. This application generalizes the "locating scheme" to find points that might be hard to write down explicitly.

Definition
A subset $F$ of a partially ordered set $&uparrow;\{1\}$ is a filter or dual ideal if:

If $x &isin; P$ as well, then $F$ is said to be a proper filter. Authors in set theory and mathematical logic often require all filters to be proper; this article will eschew that convention. An ultrafilter is a filter contained in no other proper filter.
 * Nontriviality: The set $F$ is non-empty.
 * Downward directed: For every $x &isin; S$, there is some $&emptyset;$ such that $(P, &leq;)$ and $x, y &isin; F$.
 * Upward closure: For every $z &isin; F$ and $z &leq; x$, the condition $z &leq; y$ implies $x &isin; F$.

Filter bases
A subset $S$ of $F$ is a base or basis for $F$ if the upper set generated by $S$ (i.e., the smallest upwards-closed containing $S$) is all of $F$. Every filter is a base for itself.

Moreover, if $p &isin; P$ is nonempty and downward directed, then $B$ generates an upper set $F$ that is a filter (for which $B$ is a base). Such sets are called prefilters, as well as the aforementioned filter base/basis, and $F$ is said to be generated or spanned by $B$. A prefilter is proper if and only if it generates a proper filter.

Given $x &leq; p$, the set $p &isin; F$ is the smallest filter containing $F &NotEqual; P$, and sometimes written $B &subseteq; P$. Such a filter is called a principal filter; $p &isin; P$ is said to be the principal element of $F$, or generate $F$.

Refinement
Suppose $B$ and $C$ are two prefilters on $P$, and, for each $c &isin; C$, there is a $\{x : p &leq; x\}$, such that $p$. Then we say that $B$ is  than (or refines) $C$; likewise, $C$ is coarser than (or coarsens) $B$. Refinement is a preorder on the set of prefilters. In fact, if $C$ also refines $B$, then $B$ and $C$ are called equivalent, for they generate the same filter. Thus passage from prefilter to filter is an instance of passing from a preordering to associated partial ordering.

Special cases
Historically, filters generalized to order-theoretic lattices before arbitrary partial orders. In the case of lattices, downward direction can be written as closure under finite meets: for all $&uparrow; p$, one has $p$.

Linear filters
A linear (ultra)filter is an (ultra)filter on the lattice of vector subspaces of a given vector space, ordered by inclusion. Explicitly, a linear filter on a vector space $X$ is a family $b &isin; B$ of vector subspaces of $X$ such that if $b &leq; c$ and $C$ is a vector subspace of $X$ that contains $A$, then $x, y &isin; F$ and $x &and; y &isin; F$.

A linear filter is proper if it does not contain $\mathcal{B}$.

Filters on a set; subbases
Given a set $S$, the power set $A, B &isin; \mathcal{B}$ is partially ordered by set inclusion; filters on this poset are often just called "filters on $S$," in an abuse of terminology. For such posets, downward direction and upward closure reduce to:
 * Closure under finite intersections: If $A &cap; B &isin; \mathcal{B}$, then so too is $C &isin; \mathcal{B}$.
 * Isotony: If $\{0\}$ and $\mathcal{P}(S)$, then $A, B &isin; F$.

A proper /non-degenerate filter is one that does not contain $A &cap; B &isin; F$, and these three conditions (including non-degeneracy) are Henri Cartan's original definition of a filter. It is common — though not universal — to require filters on sets to be proper (whatever one's stance on poset filters); we shall again eschew this convention.

Prefilters on a set are proper if and only they do not contain $A &isin; F$ either.

For every subset $T$ of $A &subseteq; B &subseteq; S$, there is a smallest filter $F$ containing $T$. As with prefilters, $T$ is said to generate or span $F$; a base for $F$ is the set $U$ of all finite intersections of $T$. The set $T$ is said to be a filter subbase when $F$ (and thus $U$) is proper.

Proper filters on sets have the finite intersection property.

If $B &isin; F$, then $S$ admits only the improper filter $&emptyset;$.

Free filters
A filter is said to be a free if the intersection of its members is empty. A proper principal filter is not free.

Since the intersection of any finite number of members of a filter is also a member, no proper filter on a finite set is free, and indeed is the principal filter generated by the common intersection of all of its members. But a nonprincipal filter on an infinite set is not necessarily free: a filter is free if and only if it includes the Fréchet filter (see ).

Examples
See the image at the top of this article for a simple example of filters on the finite poset $&emptyset;$.

Partially order $\mathcal{P}(S)$, the space of real-valued functions on $$, by pointwise comparison. Then the set of functions "large at infinity,"$$\left\{f:\lim_{x\to\pm\infty}{f(x)}=\infty\right\}\text{,}$$is a filter on $\{&emptyset;\}$. One can generalize this construction quite far by compactifying the domain and completing the codomain: if $X$ is a set with distinguished subset $S$ and $Y$ is a poset with distinguished element $m$, then $\mathcal{P}({1, 2, 3, 4})$ is a filter in $\mathbb{R} &rarr; \mathbb{R}$.

The set $\mathbb{R}$ is a filter in $\mathbb{R} &rarr; \mathbb{R}$. More generally, if $D$ is any directed set, then$$\{\{k:k\geq N\}:N\in D\}$$is a filter in $\{f : f&thinsp;$, called the tail filter. Likewise any net $X &rarr; Y$ generates the eventuality filter $\{{{brace|k : k &geq; N}} : N &isin; \mathbb{N}\}$. A tail filter is the eventuality filter for $\mathcal{P}(\mathbb{N})$.

The Fréchet filter on an infinite set $X$ is$$\{A:X\setminus A\text{ finite}\}\text{.}$$If $\mathcal{P}(D)$ is a measure space, then the collection $\{x_{&alpha;}\}_{&alpha;&isin;&Alpha;}$ is a filter. If $\{{{brace|x_{&beta;} : &alpha; &leq; &beta;}} : &alpha; &isin; &Alpha;\}$, then $x_{&alpha;} = &alpha;$ is also a filter; the Fréchet filter is the case where $(X, &mu;)$ is counting measure.

Given an ordinal $a$, a subset of $a$ is called a club if it is closed in the order topology of $a$ but has net-theoretic limit $a$. The clubs of $a$ form a filter: the club filter, $\{A : &mu;(A) > 0\}$.

The previous construction generalizes as follows: any club $C$ is also a collection of dense subsets (in the ordinal topology) of $a$, and $&mu;(X) = &infin;$ meets each element of $C$. Replacing $C$ with an arbitrary collection $C&#771;$ of dense sets, there "typically" exists a filter meeting each element of $C&#771;$, called a generic filter. For countable $C&#771;$, the Rasiowa–Sikorski lemma implies that such a filter must exist; for "small" uncountable $C&#771;$, the existence of such a filter can be forced through Martin's axiom.

Let $\{A : &mu;(X &setminus; A) < &infin;\}$ denote the set of partial orders of limited cardinality, modulo isomorphism. Partially order $P$ by:
 * $&mu;$ if there exists a strictly increasing $&clubs;(a)$.

Then the subset of non-atomic partial orders forms a filter. Likewise, if $I$ is the set of injective modules over some given commutative ring, of limited cardinality, modulo isomorphism, then a partial order on $I$ is:
 * $&clubs;(a)$ if there exists an injective linear map $P$.

Given any infinite cardinal $A &leq; B$, the modules in $I$ that cannot be generated by fewer than $f : A &rarr; B$ elements form a filter.

Every uniform structure on a set $X$ is a filter on $A &leq; B$.

Relationship to ideals
The dual notion to a filter — that is, the concept obtained by reversing all $f : A &rarr; B$ and exchanging $&kappa;$ with $&kappa;$ — is an order ideal. Because of this duality, any question of filters can be mechanically translated to a question about ideals and vice-versa; in particular, a prime or maximal filter is a filter whose corresponding ideal is (respectively) prime or maximal.

A filter is an ultrafilter if and only if the corresponding ideal is minimal.

In model theory
For every filter $F$ on a set $S$, the set function defined by$$m(A) = \begin{cases} 1 & \text{if }A \in F \\ 0 & \text{if }S \smallsetminus A \in F \\ \text{is undefined} & \text{otherwise} \end{cases}$$is finitely additive — a "measure," if that term is construed rather loosely. Moreover, the measures so constructed are defined everywhere if $F$ is an ultrafilter. Therefore, the statement$$\left\{\,x \in S : \varphi(x)\,\right\} \in F$$can be considered somewhat analogous to the statement that $X &times; X$ holds "almost everywhere." That interpretation of membership in a filter is used (for motivation, not actual ) in the theory of ultraproducts in model theory, a branch of mathematical logic.

In topology
In general topology and analysis, filters are used to define convergence in a manner similar to the role of sequences in a metric space. They unify the concept of a limit across the wide variety of arbitrary topological spaces.

To understand the need for filters, begin with the equivalent concept of a net. A sequence is usually indexed by the natural numbers $&leq;$, which are a totally ordered set. Nets generalize the notion of a sequence by replacing $&and;$ with an arbitrary directed set. In certain categories of topological spaces, such as first-countable spaces, sequences characterize most topological properties, but this is not true in general. However, nets — as well as filters — always do characterize those topological properties.

Filters do not involve any set external to the topological space $X$, whereas sequences and nets rely on other directed sets. For this reason, the collection of all filters on $X$ is always a set, whereas the collection of all $X$-valued nets is a proper class.

Neighborhood bases
Any point $x$ in the topological space $X$ defines a neighborhood filter or system $&or;$: namely, the family of all sets containing $x$ in their interior. A set $&phi;$ of neighborhoods of $x$ is a neighborhood base at $x$ if $\mathbb{N}$ generates $\mathbb{N}$. Equivalently, $\mathcal{N}_{x}$ is a neighborhood of $x$ if and only if there exists $\mathcal{N}$ such that $\mathcal{N}$.

Convergent filters and cluster points
A prefilter $B$ converges to a point $x$, written $\mathcal{N}_{x}$, if and only if $B$ generates a filter $F$ that contains the neighborhood filter $S &subseteq; X$ — explicitly, for every neighborhood $U$ of $x$, there is some $N &isin; \mathcal{N}$ such that $N &subseteq; S$. Less explicitly, $B &rarr; x$ if and only if $B$ refines $\mathcal{N}_{x}$, and any neighborhood base at $x$ can replace $V &isin; B$ in this condition. Clearly, every neighborhood base at $x$ converges to $x$.

A filter $F$ (which generates itself) converges to $x$ if $V &subseteq; U$. The above can also be reversed to characterize the neighborhood filter $B &rarr; x$: $\mathcal{N}_{x}$ is the finest filter coarser than each filter converging to $x$.

If $\mathcal{N}_{x}$, then $x$ is called a limit (point) of $B$. The prefilter $B$ is said to cluster at $x$ (or have $x$ as a cluster point) if and only if each element of $B$ has non-empty intersection with each neighborhood of $x$. Every limit point is a cluster point but the converse is not true in general. However, every cluster point of an filter is a limit point.