{
  "id": "subset",
  "title": "Subset",
  "lang": "en",
  "source_lang": "en",
  "summary": "A subset is a set whose every element also belongs to another specified set, with equality permitted unless the subset is required to be proper.",
  "category": "mathematics",
  "subcategory": "discrete-logic",
  "type": "concept",
  "aliases": [
    "Included set",
    "Contained set"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/subset/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/subset/",
      "json": "https://aiwiki.page/zh/subset.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "In set theory, a subset of a set \\(B\\) is a set \\(A\\) such that every element of \\(A\\) also belongs to \\(B\\). This relationship, called inclusion, is written \\(A\\subseteq B\\). It permits \\(A=B\\): a subset need not be smaller than the containing set. If \\(A\\subseteq B\\) and \\(A\\ne B\\), then \\(A\\) is a proper subset of \\(B\\). Inclusion expresses containment between sets, rather than membership of an individual object in a set. (abstractmath.org)"
    },
    {
      "heading": "Definition and notation",
      "text": "The definition can be expressed using first-order logic:\n\n\\[A\\subseteq B \\quad\\Longleftrightarrow\\quad \\forall x\\,(x\\in A\\Rightarrow x\\in B).\\]\n\nThus, there must be no element of \\(A\\) outside \\(B\\). Equivalently, \\(A\\not\\subseteq B\\) means that some \\(x\\) satisfies \\(x\\in A\\) and \\(x\\notin B\\). The reverse relation is written \\(B\\supseteq A\\), read “\\(B\\) is a superset of \\(A\\).” These formulations describe the same containment relationship from opposite directions. (web.stanford.edu)\n\nProper inclusion is unambiguously written \\(A\\subsetneq B\\). The symbol \\(\\subset\\) has differing conventions: some authors use it for proper inclusion, while others allow equality. Consequently, the surrounding definitions determine its meaning. For example, the integers form a proper subset of the real numbers, since every integer is real but some real numbers are not integers. (abstractmath.org)"
    },
    {
      "heading": "Examples and membership",
      "text": "For \\(A=\\{2,4\\}\\) and \\(B=\\{1,2,3,4\\}\\), every element of \\(A\\) occurs in \\(B\\), so \\(A\\subsetneq B\\). By contrast, \\(\\{2,5\\}\\not\\subseteq B\\), because \\(5\\notin B\\). A set-builder expression specifies a subset through a condition:\n\n\\[A=\\{x\\in B\\mid x\\text{ is even}\\}.\\]\n\nThe restriction \\(x\\in B\\) supplies the containing set; the additional condition selects its elements. This construction also works when listing every element is impractical. (abstractmath.org)\n\nInclusion must be distinguished from membership, denoted \\(\\in\\). If \\(B=\\{1,2\\}\\), then \\(1\\in B\\) and \\(\\{1\\}\\subseteq B\\), but \\(\\{1\\}\\notin B\\): its listed elements are numbers, not singleton sets. Sets may themselves be elements of other sets, so membership and inclusion can both apply to the same objects, but neither relation generally implies the other. (web.stanford.edu)"
    },
    {
      "heading": "Basic properties and proofs",
      "text": "Every set is a subset of itself. The empty set \\(\\varnothing\\) is a subset of every set, because it has no element that could violate the defining condition. This does not mean that the empty set is an element of every set. (abstractmath.org)\n\nInclusion is reflexive, antisymmetric, and transitive:\n\n- Reflexive: \\(A\\subseteq A\\).\n- Antisymmetric: \\(A\\subseteq B\\) and \\(B\\subseteq A\\) imply \\(A=B\\).\n- Transitive: \\(A\\subseteq B\\) and \\(B\\subseteq C\\) imply \\(A\\subseteq C\\).\n\nIt therefore defines a partial order on any set of sets. It is not generally a total order: \\(\\{1\\}\\) and \\(\\{2\\}\\), for example, are incomparable under inclusion. (ocw.mit.edu)\n\nA standard proof of \\(A\\subseteq B\\) takes an arbitrary element \\(x\\in A\\) and establishes \\(x\\in B\\). To disprove inclusion, one counterexample suffices. Set equality is often proved by establishing both \\(A\\subseteq B\\) and \\(B\\subseteq A\\), rather than comparing descriptions or enumerating elements. (web.stanford.edu)"
    },
    {
      "heading": "Relationship to set operations",
      "text": "The intersection \\(A\\cap B\\) consists of elements common to both sets, while the union \\(A\\cup B\\) contains elements belonging to either. These definitions give useful equivalent tests:\n\n\\[A\\subseteq B \\Longleftrightarrow A\\cap B=A \\Longleftrightarrow A\\cup B=B.\\]\n\nLikewise, \\(A\\subseteq B\\) precisely when the difference \\(A\\setminus B\\) is empty. These equivalences follow by checking which elements each expression contains. (people.csail.mit.edu)\n\nIf both sets lie inside a fixed set \\(U\\), their complements are taken relative to \\(U\\). Inclusion reverses under complementation:\n\n\\[A\\subseteq B \\quad\\Longleftrightarrow\\quad U\\setminus B\\subseteq U\\setminus A.\\]\n\nThe containing set matters: changing \\(U\\) changes the complement, although it does not change whether \\(A\\subseteq B\\). (people.csail.mit.edu)"
    },
    {
      "heading": "Power sets and finite counting",
      "text": "The power set \\(\\mathcal P(B)\\) is the set of all subsets of \\(B\\). It converts inclusion into membership:\n\n\\[A\\subseteq B\\quad\\Longleftrightarrow\\quad A\\in\\mathcal P(B).\\]\n\nFor example,\n\n\\[\\mathcal P(\\{a,b\\}) =\\{\\varnothing,\\{a\\},\\{b\\},\\{a,b\\}\\}.\\]\n\nBoth the empty set and the original set are included. (people.csail.mit.edu)\n\nIf \\(B\\) has \\(n\\) elements, it has exactly \\(2^n\\) subsets: each element is independently included or excluded. There are \\(2^n-1\\) proper subsets, since only \\(B\\) itself is removed from the count. In combinatorics, the number of subsets containing exactly \\(k\\) elements is the binomial coefficient \\(\\binom nk\\). Unlike an ordered selection, a subset does not record the order in which its elements were chosen. (mathworld.wolfram.com)"
    },
    {
      "heading": "Inclusion and infinite size",
      "text": "Inclusion and cardinality are distinct. A subset cannot have greater cardinality than its containing set, but a proper subset of an infinite set may have equal cardinality. For example, the even natural numbers form a proper subset of the natural numbers, yet \\(n\\mapsto 2n\\) gives a bijection between them. Both are countably infinite. (ocw.mit.edu)\n\nBy Cantor’s theorem, however, \\(\\mathcal P(B)\\) always has strictly greater cardinality than \\(B\\), even when \\(B\\) is infinite. Thus, the natural numbers have uncountably many subsets, despite having only countably many individual elements. The number of subsets is not determined by treating proper inclusion as ordinary numerical inequality. (ocw.mit.edu)"
    }
  ],
  "links": [
    "set-theory",
    "set-mathematics",
    "first-order-logic",
    "integer",
    "real-number",
    "set-builder-notation",
    "empty-set",
    "partial-order",
    "mathematical-proof",
    "set-intersection",
    "set-union",
    "set-difference",
    "set-complement",
    "power-set",
    "combinatorics",
    "binomial-coefficient",
    "cardinality",
    "natural-number",
    "bijective-function",
    "countable-set",
    "cantors-theorem"
  ],
  "sources": [
    {
      "title": "abstractmath.org/MM/MMSetSubset.htm",
      "url": "https://abstractmath.org/MM/MMSetSubset.htm"
    },
    {
      "title": "web.stanford.edu/class/archive/cs/cs103/cs103.1256/guide_to_proofs_on_sets",
      "url": "https://web.stanford.edu/class/archive/cs/cs103/cs103.1256/guide_to_proofs_on_sets"
    },
    {
      "title": "ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_04…",
      "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook.pdf"
    },
    {
      "title": "people.csail.mit.edu/meyer/mcs-ftl-edit-6-17-10-reordered-chapters.pdf",
      "url": "https://people.csail.mit.edu/meyer/mcs-ftl-edit-6-17-10-reordered-chapters.pdf"
    },
    {
      "title": "mathworld.wolfram.com/Subset.html",
      "url": "https://mathworld.wolfram.com/Subset.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}