For a set , the powerset of is the set of all subsets of , written .