In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
,
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
''A'' is a subset of a set ''B'' if all
elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset of ''B''. The relationship of one set being a subset of another is called inclusion (or sometimes containment). ''A'' is a subset of ''B'' may also be expressed as ''B'' includes (or contains) ''A'' or ''A'' is included (or contained) in ''B''. A ''k''-subset is a subset with ''k'' elements.
The subset relation defines a
partial order
In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
on sets. In fact, the subsets of a given set form a
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values ''true'' and ''false'', usually denoted 1 and 0, whereas in e ...
under the subset relation, in which the
join and meet
In mathematics, specifically order theory, the join of a subset S of a partially ordered set P is the supremum (least upper bound) of S, denoted \bigvee S, and similarly, the meet of S is the infimum (greatest lower bound), denoted \bigwedge S. I ...
are given by
intersection and
union
Union commonly refers to:
* Trade union, an organization of workers
* Union (set theory), in mathematics, a fundamental operation on sets
Union may also refer to:
Arts and entertainment
Music
* Union (band), an American rock group
** ''Un ...
, and the subset relation itself is the
Boolean inclusion relation.
Definition
If ''A'' and ''B'' are sets and every
element of ''A'' is also an element of ''B'', then:
:*''A'' is a subset of ''B'', denoted by
, or equivalently,
:* ''B'' is a superset of ''A'', denoted by
If ''A'' is a subset of ''B'', but ''A'' is not
equal to ''B'' (i.e.
there exists
In predicate logic, an existential quantification is a type of quantifier, a logical constant which is interpreted as "there exists", "there is at least one", or "for some". It is usually denoted by the logical operator symbol ∃, which, w ...
at least one element of B which is not an element of ''A''), then:
:*''A'' is a proper (or strict) subset of ''B'', denoted by
, or equivalently,
:* ''B'' is a proper (or strict) superset of ''A'', denoted by
.
The
empty set
In mathematics, the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, while in other ...
, written
or
is a subset of any set ''X'' and a proper subset of any set except itself, the inclusion
relation
Relation or relations may refer to:
General uses
*International relations, the study of interconnection of politics, economics, and law on a global level
*Interpersonal relationship, association or acquaintance between two or more people
*Public ...
is a
partial order
In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
on the set
(the
power set
In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
of ''S''—the set of all subsets of ''S'') defined by
. We may also partially order
by reverse set inclusion by defining
When quantified,
is represented as
We can prove the statement
by applying a proof technique known as the element argument:
Let sets ''A'' and ''B'' be given. To prove that
# suppose that ''a'' is a particular but arbitrarily chosen element of A
# show that ''a'' is an element of ''B''.
The validity of this technique can be seen as a consequence of
Universal generalization
In predicate logic, generalization (also universal generalization or universal introduction,Moore and Parker GEN) is a valid inference rule. It states that if \vdash \!P(x) has been derived, then \vdash \!\forall x \, P(x) can be derived.
Gener ...
: the technique shows
for an arbitrarily chosen element ''c''. Universal generalisation then implies
which is equivalent to
as stated above.
The set of all subsets of
is called its
powerset, and is denoted by
. The set of all
-subsets of
is denoted by
, in analogue with the notation for
binomial coefficients
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
, which count the number of
-subsets of an
-element set. In
set theory
Set theory is the branch of mathematical logic that studies sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory, as a branch of mathematics, is mostly conce ...
, the notation
is also common, especially when
is a
transfinite Transfinite may refer to:
* Transfinite number, a number larger than all finite numbers, yet not absolutely infinite
* Transfinite induction, an extension of mathematical induction to well-ordered sets
** Transfinite recursion
Transfinite inducti ...
cardinal number
In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality (size) of sets. The cardinality of a finite set is a natural number: the number of elements in the set. Th ...
.
Properties
* A set ''A'' is a subset of ''B''
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false.
The connective is bicondi ...
their intersection is equal to A.
:Formally:
:
* A set ''A'' is a subset of ''B'' if and only if their union is equal to B.
:Formally:
:
* A finite set ''A'' is a subset of ''B'', if and only if the
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
of their intersection is equal to the cardinality of A.
:Formally:
:
⊂ and ⊃ symbols
Some authors use the symbols
and
to indicate and respectively; that is, with the same meaning as and instead of the symbols
and
For example, for these authors, it is true of every set ''A'' that
Other authors prefer to use the symbols
and
to indicate (also called strict) subset and superset respectively; that is, with the same meaning as and instead of the symbols
and
This usage makes
and
analogous to the
inequality
Inequality may refer to:
Economics
* Attention inequality, unequal distribution of attention across users, groups of people, issues in etc. in attention economy
* Economic inequality, difference in economic well-being between population groups
* ...
symbols
and
For example, if
then ''x'' may or may not equal ''y'', but if
then ''x'' definitely does not equal ''y'', and ''is'' less than ''y''. Similarly, using the convention that
is proper subset, if
then ''A'' may or may not equal ''B'', but if
then ''A'' definitely does not equal ''B''.
Examples of subsets
* The set A = is a proper subset of B = , thus both expressions
and
are true.
* The set D = is a subset (but a proper subset) of E = , thus
is true, and
is not true (false).
* Any set is a subset of itself, but not a proper subset. (
is true, and
is false for any set X.)
* The set is a proper subset of
* The set of
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called ''Cardinal n ...
s is a proper subset of the set of
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ration ...
s; likewise, the set of points in a
line segment
In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. The length of a line segment is given by the Euclidean distance between ...
is a proper subset of the set of points in a
line. These are two examples in which both the subset and the whole set are infinite, and the subset has the same
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
(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 of
rational numbers
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all rat ...
is a proper subset of the set of
real number
In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every real ...
s. In this example, both sets are infinite, but the latter set has a larger cardinality (or ) than the former set.
Another example in an
Euler diagram
An Euler diagram (, ) is a diagrammatic means of representing sets and their relationships. They are particularly useful for explaining complex hierarchies and overlapping definitions. They are similar to another set diagramming technique, Ven ...
:
File:Example of A is a proper subset of B.svg, A is a proper subset of B
File:Example of C is no proper subset of B.svg, C is a subset but not a proper subset of B
Other properties of inclusion
Inclusion is the canonical
partial order
In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
, in the sense that every partially ordered set
is
isomorphic
In mathematics, an isomorphism is a structure-preserving mapping between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between them. The word is ...
to some collection of sets ordered by inclusion. The
ordinal number
In set theory, an ordinal number, or ordinal, is a generalization of ordinal numerals (first, second, th, etc.) aimed to extend enumeration to infinite sets.
A finite set can be enumerated by successively labeling each element with the least n ...
s are a simple example: if each ordinal ''n'' is identified with the set