In mathematics, given a set S, the power set of S, written P(S) or 2S, is the set of all subsets of S. In formal language, the existence of power set of any set is presupposed by the axiom of power set.
For example, if S is the set {A, B, C} then the complete list of subsets of S is as follows:
One can also consider the power set of infinite sets. Cantor's diagonal argument shows that the power set of an infinite set always has strictly higher cardinality than the set itself (informally the power set must be 'more infinite' than the original set). The power set of the natural numbers for instance can be put in a one-to-one correspondence with the set of real numbers (by identifying an infinite 0-1 sequence with the set of indices where the ones occur).
The power set of a set S, together with the operations of union, intersection and complement forms the prototypical example of a boolean algebra. In fact, one can show that any finite boolean algebra is isomorphic to the boolean algebra of the power set of a finite set S. For infinite boolean algebras this is no longer true, but every infinite boolean algebra is a subalgebra of a power set boolean algebra.
The notation 2S
In set theory, XY is the set of all functions from Y to X. As 2 can be defined as {0,1} (see natural number), 2S is the set of all functions from S to {0,1}. By identifying a function in 2S with the corresponding preimage of 0, we see that there is a bijection between 2S and P(S), hence 2S and P(S) could be considered identical set-theoretically.