nLab
inclusion-exclusion

The inclusion-exclusion principle

Idea

The principle of inclusion and exclusion is essentially a sheaf condition for measures; it allows one to calculate the total measure of a space in terms of a cover. It applies also to cardinality, that is to counting measure?.

Statement

Let X be a measure space with measure μ. Typical examples are a probability space or subprobability space, or an arbitrary set with counting measure?. (In the latter case, we may let the measure take values in all cardinal numbers, so that the measure of a subset is its cardinality.)

Now let U be a measurable finite cover? of X. (That is, we have a finite index set I and a function mapping an index j in I to a measurable subspace U j of X, such that the union jU j of all of these subspaces is all of X.) Then given any natural number k and any k-combination? σ from I (a subset of I of cardinality k), let the measure of σ be μ( jσU j), the measure of the intersection of the subspaces assigned to the indexes in σ. We will call k the size of the k-combination σ. Note that for k=0 (so σ=), jU j=X.

Theorem

The sum of the measures of the combinations of even size equals the sum of the measures of the combinations of odd size.

If we drop the requirement that U be a cover of X (that the union of U be X), we simply have that U is a cover of the actual union of U; the only difference is that the measure of the 0-combination is now the measure of this union instead of the measure of all of X. Then the principle for small values of n looks like this:

  • μ()=0,
  • μ(A)=μ(A),
  • μ(AB)+μ(AB)=μ(A)+μ(B) (*),
  • μ(ABC)+μ(AB)+μ(AC)+μ(BC)=μ(A)+μ(B)+μ(C)+μ(ABC),
  • etc.

If subtraction is available (as when μ is a finite measure), we may solve for the first term on the left (the term from the 0-combination, that is the measure of the union):

  • μ()=0,
  • μ(A)=μ(A),
  • μ(AB)=μ(A)+μ(B)μ(AB),
  • μ(ABC)=μ(A)+μ(B)+μ(C)μ(AB)μ(AC)μ(BC)+μ(ABC),
  • etc.

This explains the term ‘inclusion-exclusion’; we are alternately adding (including) and subtracting (excluding) various intersections.

Proof

The proof is for all subspaces of a given measure space, by induction on the cardinality n of the index set I. Although it is atypical, one may take, as one of the basic axioms of a measure, the formula (*), that is the inclusion-exclusion formula (on all measurable subspaces) for n=2; in any case, this is easy to prove. Then the formula for n>2 may be proved by induction. (The formula for n=0 is the axiom that the measure of the empty set is zero, and the formula for n=1 is trivial.)

As a definition of measure

The principle applies perfectly well to finitely additive measures (charges) taking values in any abelian monoid. On the other hand, the statement of inclusion-exclusion makes sense even when the cover U is not finite; and if we require it whenever U is countable, then we force the measure to be countably additive. If we require inclusion-exclusion for arbitrary (even uncountable) U, then we get the definition of a normal measure?.

In constructive mathematics, the inclusion-exclusion principle fails in that μ may satisfy μ(AB)=μ(A)μ(B) when A and B are disjoint but (*) fails. On the other hand, we may adopt (*) as the proper clause in the definition of measure. For measures on a Cheng space (which is what we need to employ the usual concepts of measure theory), inclusion-exclusion follows from finite additivity (in the usual sense, for disjoint sets) and the principle that intersection with full sets (which are specified for a Cheng space before any measure is given) preserves measure, so in that sense it makes no difference. But (*) is not valid constructively for cardinality in general; counting measure is a measure constructively only on sets with decidable equality.

In both cases, we see that we can adopt the principle of inclusion-exclusion (which ultimately is motivated by cardinality of finite sets) as the only principle necessary to define what we mean by a measure (although we must already have a measurable space to define it on).

Created on July 30, 2012 14:22:50 by Toby Bartels (98.16.162.107)