The inclusion–exclusion principle describes the cardinality of the union of 2 sets as

For 3 sets:

In general,

Theorem

suppose are finite sets,