The Inclusion-Exclusion Principle
"To count a union, add the parts, subtract the overlaps, add back the triple overlaps, and so on."
"To count a union, add the parts, subtract the overlaps, add back the triple overlaps, and so on."
The inclusion-exclusion principle is a counting formula for the size of a union of sets. For two sets it says the size of their union is the sum of their sizes minus the size of their overlap; for three, one adds the three individual sizes, subtracts the three pairwise overlaps, and adds back the triple overlap. In general one adds the sizes of the single sets, subtracts all pairwise intersections, adds all triple intersections, and continues with strictly alternating signs to the full intersection. The rule corrects the double-counting that arises from naively summing sizes, and it is a fundamental tool of enumerative combinatorics and probability, turning a tangled overlapping count into an exact alternating sum.
Rated Empirical: grounded in studies or measurable evidence. The other 608.
The alternation is bookkeeping for over- and under-counting. Adding the sizes of the sets counts each element once for every set it belongs to, so elements in overlaps are counted too many times. Subtracting the pairwise intersections removes that excess, but it over-corrects for elements lying in three sets, which must then be added back; the correction for four-way elements over-shoots again, and so on, each layer of intersections flipping the sign. The upshot is that every element, whatever overlaps it lies in, is counted exactly once overall, which is why the signs must strictly alternate through the full intersection. The same principle holds for probabilities of unions of events, giving an exact expansion whose truncations yield the Bonferroni bounds.
The version for the probability of a union of events, an alternating sum of probabilities of intersections, also called Poincare's formula.
The bounds obtained by truncating the alternating sum after some terms, giving alternating over- and under-estimates that refine the simple union bound.
The inclusion-exclusion principle is a fundamental tool of combinatorics and probability, the standard way to count or measure a union when the parts overlap. It counts derangements and surjections, computes Euler's totient function, underlies the sieve methods of number theory from Eratosthenes to Brun, and in probability gives exact expansions whose truncations, the Bonferroni inequalities, provide practical bounds. Its idea, correcting a sum by alternately removing and restoring overlaps, is so general that it recurs across mathematics wherever overlapping cases must be counted without double-counting, making it one of the most broadly useful identities in enumeration.
The formula is exact, not an approximation, but its full form has a term for every subset of the sets, so for many sets the number of intersection terms grows explosively and the computation becomes impractical, which is why the truncated Bonferroni bounds are often used instead. It requires knowing the sizes of all the intersections, which may themselves be hard to determine. The signs must strictly alternate, and dropping a term or misplacing a sign is the usual error. It applies to finite sets and to probabilities of events, and its usefulness depends on the intersections being simpler to count than the union directly.
The principle is an exact equality, not an estimate; truncating it gives the Bonferroni inequalities, but the full formula is precise. The signs strictly alternate all the way to the full intersection, so it is not merely add-the-parts-subtract-the-overlaps and stop, which would be wrong for three or more sets. And no single person originated it: early uses trace to de Moivre, with independent nineteenth-century formulations by da Silva, Sylvester, and Poincare, so it is a shared discovery rather than one author's theorem.
Yes, as far as the evidence goes. The Inclusion-Exclusion Principle is rated Empirical here: it rests on studies or measurements rather than on a saying.
Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.
The best-known laws are the least likely to rest on measurement.
Used early by Abraham de Moivre in 1718 and given explicit general formulations independently in the nineteenth century by Daniel da Silva in 1854, J.J. Sylvester in 1883, and, in probabilistic form, Henri Poincare in 1896.
8 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.
Everything above traces to en.wikipedia.org and mathworld.wolfram.com: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.