Euler diagram showing A is asubset ofB (denoted) and, conversely,B is a superset ofA (denoted)
In mathematics, asetA is asubset of a setB if allelements ofA are also elements ofB;B is then asuperset ofA. It is possible forA andB to be equal; if they are unequal, thenA is aproper subset ofB. The relationship of one set being a subset of another is calledinclusion (or sometimescontainment).A is a subset ofB may also be expressed asB includes (or contains)A orA is included (or contained) inB. Ak-subset is a subset withk elements.
One can prove the statement by applying a proof technique known as the element argument[2]:
Let setsA andB be given. To prove that
suppose thata is a particular but arbitrarily chosen element of A
show thata is an element ofB.
The validity of this technique can be seen as a consequence ofuniversal generalization: the technique shows for an arbitrarily chosen elementc. Universal generalisation then implies which is equivalent to as stated above.
Some authors use the symbols and to indicatesubset andsuperset respectively; that is, with the same meaning as and instead of the symbols and.[4] For example, for these authors, it is true of every setA that (areflexive relation).
Other authors prefer to use the symbols and to indicateproper (also called strict) subset andproper superset respectively; that is, with the same meaning as and instead of the symbols and[5] This usage makes and analogous to theinequality symbols and For example, if thenx may or may not equaly, but if thenx definitely does not equaly, andis less thany (anirreflexive relation). Similarly, using the convention that is proper subset, if thenA may or may not equalB, but if thenA definitely does not equalB.
The set A = {1, 2} is a proper subset of B = {1, 2, 3}, thus both expressions and are true.
The set D = {1, 2, 3} is a subset (butnot a proper subset) of E = {1, 2, 3}, thus is true, and is not true (false).
The set {x:x is aprime number greater than 10} is a proper subset of {x:x is an odd number greater than 10}
The set ofnatural numbers is a proper subset of the set ofrational numbers; likewise, the set of points in aline segment is a proper subset of the set of points in aline. These are two examples in which both the subset and the whole set are infinite, and the subset has the samecardinality (the concept that corresponds to size, that is, the number of elements, of a finite set) as the whole; such cases can run counter to one's initial intuition.
The set ofrational numbers is a proper subset of the set ofreal numbers. In this example, both sets are infinite, but the latter set has a larger cardinality (orpower) than the former set.
The set of all subsets of is called itspower set, and is denoted by.[6]
The inclusionrelation is apartial order on the set defined by. We may also partially order by reverse set inclusion by defining
For the power set of a setS, the inclusion partial order is—up to anorder isomorphism—theCartesian product of (thecardinality ofS) copies of the partial order on for which This can be illustrated by enumerating, and associating with each subset (i.e., each element of) thek-tuple from of which theith coordinate is 1 if and only if is amember ofT.
The set of all-subsets of is denoted by, in analogue with the notation forbinomial coefficients, which count the number of-subsets of an-element set. Inset theory, the notation is also common, especially when is atransfinitecardinal number.
Inclusion is the canonicalpartial order, in the sense that every partially ordered set isisomorphic to some collection of sets ordered by inclusion. Theordinal numbers are a simple example: if each ordinaln is identified with the set of all ordinals less than or equal ton, then if and only if
^Epp, Susanna S. (2011).Discrete Mathematics with Applications (Fourth ed.). Cengage Learning. p. 337.ISBN978-0-495-39132-6.
^Stoll, Robert R. (1963).Set Theory and Logic. San Francisco, CA: Dover Publications.ISBN978-0-486-63829-4.{{cite book}}:ISBN / Date incompatibility (help)