S01 · implies
Before
A\cup B\cup C
After
\{1,2,3,4,5\},\quad|A\cup B\cup C|=5Conditions: none
Rule: work · Uses: G1, work
Leaf basis: work
First compute the union directly from the complete element lists as an independent check.
derivation-mko-inclusion-exclusion-principle-01 · ocme-new142-reader-adoption-20261021
Audit the full alternating sum and each element's multiplicity.
A finite indexed family, retaining separate indices for repeated sets.
workG1 — A={1,2,3}, B={2,3,4}, C={3,4,5}.r — number of indexed sets containing an elementSome rule statements have reader clarifications in this revision: they are paraphrases, not verbatim quotations. Referenced original source bytes and hashes are unchanged.
mko_definition · cited — For each nonempty index subset I use sign (−1)^(|I|+1): odd-order intersections add and even-order intersections subtract. Equal sets at different indices remain distinct indexed entries, and empty intersections contribute 0. For an empty family, the union is empty and both its cardinality and the inclusion-exclusion sum are 0. Singles-minus-pairs alone is not a general exact formula for three or more sets; it is a separately identified Bonferroni truncation. · mko-inclusion-exclusion-principlework · prerequisite — Set unions and intersections, finite summation by element multiplicity; the binomial identity(1-1)^r=sum_j(-1)^j comb(r,j) is an explicit prerequisite.Before
A\cup B\cup C
After
\{1,2,3,4,5\},\quad|A\cup B\cup C|=5Conditions: none
Rule: work · Uses: G1, work
Leaf basis: work
First compute the union directly from the complete element lists as an independent check.
Before
|A|,|B|,|C|
After
3,3,3
Conditions: none
Rule: work · Uses: G1, S01, work
Leaf basis: work
The three positive first-order terms sum to 9.
Before
A\cap B,A\cap C,B\cap C
After
\{2,3\},\{3\},\{3,4\}Conditions: none
Rule: work · Uses: G1, S02, work
Leaf basis: work
List all three second-order intersections, of sizes2,1,2.
Before
A\cap B\cap C
After
\{3\},\quad|A\cap B\cap C|=1Conditions: none
Rule: work · Uses: G1, S03, work
Leaf basis: work
The sole third-order intersection must be added back.
Before
3+3+3-2-1-2+1
After
5=|A\cup B\cup C|
Conditions: none
Rule: work · Uses: G1, S04, work
Leaf basis: work
All seven nonempty index subsets are included.
Before
x\text{ belongs to }r\ge1\text{ indexed sets}After
\sum_{j=1}^{r}(-1)^{j+1}\binom rj=1-(1-1)^r=1Conditions: none
Rule: work · Uses: G1, S05, work
Leaf basis: work
Each union element has net multiplicity one, proving the finite formula elementwise.
Before
\text{singles minus pairs only}After
9-5=4\ne5
Conditions: none
Rule: work · Uses: G1, S06, work
Leaf basis: work
This example explicitly shows the missing third-order term; pairwise truncation is not exact.
Before
(A,A)\text{ indexed twice};\quad n=0After
|A|+|A|-|A|=|A|;\quad|\bigcup\varnothing|=0
Conditions: none
Rule: work · Uses: G1, S07, work
Leaf basis: work
Indexed repetition still cancels correctly; the empty-family sum and union size are both zero.
No substeps in this guide.
S08 · premise_audit · G1, S07, work — Equal sets do not mean an indexed obligation may be ignored.S07 · premise_audit · G1, S06, work — A Bonferroni bound must be separately labeled, not asserted as equality.S06 · premise_audit · G1, S05, work — Elements outside the union have r=0 and contribute zero separately.S05 · premise_audit · G1, S04, work — Three singles, three pairs and one triple equal2³-1.S04 · premise_audit · G1, S03, work — Listing pairwise intersections does not permit omitting the triple.S03 · premise_audit · G1, S02, work — Second-order terms carry negative signs.S02 · premise_audit · G1, S01, work — Each indexed entry is counted once.S01 · premise_audit · G1, work — The expected result is not merely assumed from the formula.Enumerate index subsets, not distinct set values.
Use1-(1-1)^r for r≥1 and zero separately for r=0.
reject — Here4 differs from union size 5.reject — Order three is odd and has positive sign.reject — The second-order intersection subtracts the duplicate copy.All seven terms give union size 5; elementwise multiplicity proves the finite-family formula.
3 declared checks for this guide; only the listed expressions are covered.
b1b2f1dcf8c50d67a93fe52d95f8eef7b3abba9fea75129552baa4d33afae410265a8e2ec2eda5b1a8669c83da8afed4efc43c95d12d13f29453c49f15f41deea45201369e57e7476d15786a97750ca414dc608aSCOPED_LEAD_AND_BILINGUAL_CONTEXT_REVIEWSame-source full JSON (formulas, ASTs, controls and revision log)