I am having trouble figuring out how this notation works, specifically how the intersection relates to the rest of the summation. It's just stuck there after it.
I would greatly appreciate any help you can give in explaining it to me!
$$\left\vert \bigcup^{n}_{i=1} A_{i} \right\vert = \sum_{\substack{J \neq Ø \\ J \subseteq {[} n {]}}} (-1)^{\left\vert J \right\vert -1} {} \left\vert \bigcap_{i \in J} A_{i} {} \right\vert$$
From the context, it seems $[n]$ is the power set of $\{1,2,3,....,n\}$, so its summing over all nonempty subsets $J$ of the power set. So, for subsets of length 1 (that's the $|J|$), you ADD the order of each $A_i$, then for subsets of length 2, it's saying to subtract each pairwise intersection, then add each triple-wise intersection, etc.