Cardinality and products and sums [01HT]

We have the following laws of cardinality for products and sums of families of sets, which explains the chosen notations:

\begin {aligned} \mathord {\#}{\prod _{i:I}A_i} &= \prod _{i:I} \mathord {\#}{A_i} \\ \mathord {\#}{\sum _{i:I}A_i} &= \sum _{i:I} \mathord {\#}{A_i} \end {aligned}

In the case of binary products and binary sums we have the following:

\begin {aligned} \mathord {\#}{\mathopen {}\left (A\times B\right )\mathclose {}} &= \mathord {\#}{A}\times \mathord {\#}{B} \\ \mathord {\#}{\mathopen {}\left (A+B\right )\mathclose {}} &= \mathord {\#}{A} + \mathord {\#}{B} \end {aligned}

Recalling the reconstruction of function sets in terms of products, we have:

\mathord {\#}{\mathopen {}\left (A\to B\right )\mathclose {}} = \mathord {\#}\prod _{a:A}B = \prod _{a:A}\mathord {\#}{B} = {\mathord {\#}{B}}^{\mathord {\#}{A}}