Let $\mathcal{P}(S)$ denote the power set of $S$. Why is $\mathcal{P}(S) = 2^S$?
I know that the power set of $S = \{x,y,z\}$ is
$$\mathcal{P}(S) = \{\{\}, \{x\}, \{y\}, \{z\}, \{x, y\}, \{x, z\}, \{y, z\}, \{x, y, z\}\},$$
so how does this relate to $\mathcal{P}(S) = 2^S$? I cannot understand why
$$\mathcal{P}(S) = \mathcal{P}(\{x,y,z\}) = 2^{\{x,y,z\}} = \{\{\}, \{x\}, \{y\}, \{z\}, \{x, y\}, \{x, z\}, \{y, z\}, \{x, y, z\}\},$$
I assume it is somehow related tot he fact that the set $\{x,y,z\}$ has 3 elements, and $\mathcal{P}(\{x,y,z\})$ is a set of $2^3 = 8$ sets.