+\newcommand*{\card}[1]{ \operatorname{card}\of{{#1}} }
+
+
+\newcommand*{\powerset}[1]{\mathpzc{P}\of{{#1}}}
+\ifdefined\newglossaryentry
+ \newglossaryentry{powerset}{
+ name={\ensuremath{\powerset{X}}},
+ description={the ``powerset,'' or set of all subsets of $X$},
+ sort=p
+ }
+\fi