In the mathematical field of set theory, a generic filter is a kind of object used in the theory of forcing, a technique used for many purposes, but especially to establish the independence of certain propositions from certain formal theories, such as ZFC. For example, Paul Cohen used forcing to establish that ZFC, if consistent, cannot prove the continuum hypothesis, which states that there are exactly aleph-one real numbers. In the contemporary re-interpretation of Cohen's proof, it proceeds by constructing a generic filter that codes more than
\aleph1
\aleph1
Formally, let P be a partially ordered set, and let F be a filter on P; that is, F is a subset of P such that:
Now if D is a collection of dense open subsets of P, in the topology whose basic open sets are all sets of the form for particular p in P, then F is said to be D-generic if F meets all sets in D; that is,
F\capE\ne\varnothing,
Similarly, if M is a transitive model of ZFC (or some sufficient fragment thereof), with P an element of M, then F is said to be M-generic, or sometimes generic over M, if F meets all dense open subsets of P that are elements of M.