{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $X$ be a finite set. Let $\\mathcal{P} = \\{p_1, \\dots, p_m\\}$ be a set of $m$ properties that each element of $X$ may or may not have.\n\nFor a subset $S \\subseteq [m] = \\{1, \\dots, m\\}$, let $N(S)$ be the number of elements of $X$ that have every property $p_i$ with $i \\in S$. In particular $N(\\varnothing) = |X|$.\n\nThen the number of elements of $X$ that have none of the properties in $\\mathcal{P}$ is\n$$\\sum_{S \\subseteq [m]} (-1)^{|S|} N(S).$$\n\n## Remarks\n\nThis is the sieve form of the [[inclusion–exclusion principle|0FF7726C7P]]. The sizes are [[cardinalities of finite sets|05099E1NMJ]].\n\nTake $A_i$ to be the set of elements of $X$ with property $p_i$. Then $N(S)$ is the size of the intersection of the $A_i$ for $i \\in S$, and the formula counts the complement of the union of the $A_i$ in $X$.\n",
  "commit": "bdea0329dc328964ec62566e23a0159c6ce93f2d",
  "front": {
    "kind": "statement",
    "msc": [
      "05A05"
    ],
    "name": "Inclusion–exclusion formula for elements with none of the properties",
    "role": "theorem",
    "sources": [
      {
        "locator": "source/s_inclusion-exclusion_statement.ptx:41",
        "url": "https://github.com/mitchkeller/applied-combinatorics/blob/ebd95d6bd59e23c633c65cf560bcb93efa912aae/source/s_inclusion-exclusion_statement.ptx#L41"
      }
    ],
    "tag": "XJPVHVVKD9",
    "uses": [
      "05099E1NMJ",
      "0FF7726C7P"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/XJPVHVVKD9/",
  "links": [
    {
      "field": "uses",
      "target": "05099E1NMJ"
    },
    {
      "field": "uses",
      "target": "0FF7726C7P"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/XJPVHVVKD9.md",
  "msc": [
    "05A05"
  ],
  "name": "Inclusion–exclusion formula for elements with none of the properties",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/XJP/XJPVHVVKD9.md",
  "status": null,
  "tag": "XJPVHVVKD9",
  "uri": "m2://XJPVHVVKD9",
  "url": "https://math2.tamnd.com/wiki/inclusion-exclusion-formula-for-elements-with-none-of-the-properties/",
  "writing": {
    "tag": "XJPVHVVKD9",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
