
In
set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), 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 mathema ...
, the union (denoted by ∪) of a collection of
sets is the set of all
elements in the collection. It is one of the fundamental operations through which sets can be combined and related to each other.
A refers to a union of
zero () sets and it is by definition equal to the
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
.
For explanation of the symbols used in this article, refer to the
table of mathematical symbols
A mathematical symbol is a figure or a combination of figures that is used to represent a mathematical object, an action on mathematical objects, a relation between mathematical objects, or for structuring the other symbols that occur in a formula ...
.
Binary union
The union of two sets ''A'' and ''B'' is the set of elements which are in ''A'', in ''B'', or in both ''A'' and ''B''.
In
set-builder notation
In mathematics and more specifically in set theory, set-builder notation is a notation for specifying a set by a property that characterizes its members.
Specifying sets by member properties is allowed by the axiom schema of specification. Th ...
,
:
.
For example, if ''A'' = and ''B'' = then ''A'' ∪ ''B'' = . A more elaborate example (involving two infinite sets) is:
: ''A'' =
: ''B'' =
:
As another example, the number 9 is ''not'' contained in the union of the set of
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s and the set of
even number
In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is divisible by 2, and odd if it is not.. For example, −4, 0, and 82 are even numbers, while −3, 5, 23, and 69 are odd numbers.
The ...
s , because 9 is neither prime nor even.
Sets cannot have duplicate elements,
so the union of the sets and is . Multiple occurrences of identical elements have no effect on the
cardinality
The thumb is the first digit of the hand, next to the index finger. When a person is standing in the medical anatomical position (where the palm is facing to the front), the thumb is the outermost digit. The Medical Latin English noun for thum ...
of a set or its contents.
Finite unions
One can take the union of several sets simultaneously. For example, the union of three sets ''A'', ''B'', and ''C'' contains all elements of ''A'', all elements of ''B'', and all elements of ''C'', and nothing else. Thus, ''x'' is an element of ''A'' ∪ ''B'' ∪ ''C'' if and only if ''x'' is in at least one of ''A'', ''B'', and ''C''.
A finite union is the union of a finite number of sets; the phrase does not imply that the union set is a
finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
is a finite set with five elements. Th ...
.
Notation
The notation for the general concept can vary considerably. For a finite union of sets
one often writes
or
. Various common notations for arbitrary unions include
,
, and
. The last of these notations refers to the union of the collection
, where ''I'' is an
index set
In mathematics, an index set is a set whose members label (or index) members of another set. For instance, if the elements of a set may be ''indexed'' or ''labeled'' by means of the elements of a set , then is an index set. The indexing consists ...
and
is a set for every . In the case that the index set ''I'' is the set of
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s, one uses the notation
, which is analogous to that of the
infinite sum
In mathematics, a series is, roughly speaking, an addition of infinitely many terms, one after the other. The study of series is a major part of calculus and its generalization, mathematical analysis. Series are used in most areas of mathemati ...
s in series.
When the symbol "∪" is placed before other symbols (instead of between them), it is usually rendered as a larger size.
Notation encoding
In
Unicode
Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
, union is represented by the character . In
TeX
Tex, TeX, TEX, may refer to:
People and fictional characters
* Tex (nickname), a list of people and fictional characters with the nickname
* Tex Earnhardt (1930–2020), U.S. businessman
* Joe Tex (1933–1982), stage name of American soul singer ...
,
is rendered from
\cup
and
is rendered from
\bigcup
.
Arbitrary union
The most general notion is the union of an arbitrary collection of sets, sometimes called an ''infinitary union''. If M is a set or
class
Class, Classes, or The Class may refer to:
Common uses not otherwise categorized
* Class (biology), a taxonomic rank
* Class (knowledge representation), a collection of individuals or objects
* Class (philosophy), an analytical concept used d ...
whose elements are sets, then ''x'' is an element of the union of M
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
there is
at least one element ''A'' of M such that ''x'' is an element of ''A''.
In symbols:
:
This idea subsumes the preceding sections—for example, ''A'' ∪ ''B'' ∪ ''C'' is the union of the collection . Also, if M is the empty collection, then the union of M is the empty set.
Formal derivation
In
Zermelo–Fraenkel set theory
In set theory, Zermelo–Fraenkel set theory, named after mathematicians Ernst Zermelo and Abraham Fraenkel, is an axiomatic system that was proposed in the early twentieth century in order to formulate a theory of sets free of paradoxes suc ...
(ZFC) and other set theories, the ability to take the arbitrary union of any sets is granted by the
axiom of union
An axiom, postulate, or assumption is a statement (logic), statement that is taken to be truth, true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that whi ...
, which states that, given any set of sets
, there exists a set
, whose elements are exactly those of the elements of
. Sometimes this axiom is less specific, where there exists a
which contains the elements of the elements of
, but may be larger. For example if
then it may be that
since
contains 1 and 2. This can be fixed by using the
axiom of specification
In many popular versions of axiomatic set theory, the axiom schema of specification, also known as the axiom schema of separation (''Aussonderungsaxiom''), subset axiom, axiom of class construction, or axiom schema of restricted comprehension is ...
to get the subset of
whose elements are exactly those of the elements of
. Then one can use the
axiom of extensionality
The axiom of extensionality, also called the axiom of extent, is an axiom used in many forms of axiomatic set theory, such as Zermelo–Fraenkel set theory. The axiom defines what a Set (mathematics), set is. Informally, the axiom means that the ...
to show that this set is unique. For readability, define the binary
predicate
Predicate or predication may refer to:
* Predicate (grammar), in linguistics
* Predication (philosophy)
* several closely related uses in mathematics and formal logic:
**Predicate (mathematical logic)
**Propositional function
**Finitary relation, o ...
meaning "
is the union of
" or "
" as:
Then, one can prove the statement "for all
, there is a unique
, such that
is the union of
":
Then, one can use an
extension by definition
In mathematical logic, more specifically in the proof theory of first-order theories, extensions by definitions formalize the introduction of new symbols by means of a definition. For example, it is common in naive set theory to introduce a symbo ...
to add the union operator
to the
language of ZFC as:
or equivalently:
After the union operator has been defined, the binary union
can be defined by showing there exists a unique set
using the
axiom of pairing
In axiomatic set theory and the branches of logic, mathematics, and computer science that use it, the axiom of pairing is one of the axioms of Zermelo–Fraenkel set theory. It was introduced by as a special case of his axiom of elementary sets ...
, and defining
. Then, finite unions can be defined inductively as:
Algebraic properties
Binary union is an
associative
In mathematics, the associative property is a property of some binary operations that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement for express ...
operation; that is, for any sets ,
Thus, the parentheses may be omitted without ambiguity: either of the above can be written as . Also, union is
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
, so the sets can be written in any order.
The
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
is an
identity element
In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
for the operation of union. That is, , for any set . Also, the union operation is idempotent: . All these properties follow from analogous facts about
logical disjunction
In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is ...
.
Intersection distributes over union
and union distributes over intersection
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 a set , together with the operations given by union,
intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
, and
complementation, is 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 variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
. In this Boolean algebra, union can be expressed in terms of intersection and complementation by the formula
where the superscript
denotes the complement in the
universal set
In set theory, a universal set is a set which contains all objects, including itself. In set theory as usually formulated, it can be proven in multiple ways that a universal set does not exist. However, some non-standard variants of set theory inc ...
. Alternatively, intersection can be expressed in terms of union and complementation in a similar way:
. These two expressions together are called
De Morgan's laws
In propositional calculus, propositional logic and Boolean algebra, De Morgan's laws, also known as De Morgan's theorem, are a pair of transformation rules that are both Validity (logic), valid rule of inference, rules of inference. They are nam ...
.
History and etymology
The english word ''union'' comes from the term in
middle French
Middle French () is a historical division of the French language that covers the period from the mid-14th to the early 17th centuries. It is a period of transition during which:
* the French language became clearly distinguished from the other co ...
meaning "coming together", which comes from the
post-classical Latin ''unionem'', "oneness". The original term for union in set theory was ''Vereinigung'' (in german), which was introduced in 1895 by
Georg Cantor
Georg Ferdinand Ludwig Philipp Cantor ( ; ; – 6 January 1918) was a mathematician who played a pivotal role in the creation of set theory, which has become a foundations of mathematics, fundamental theory in mathematics. Cantor establi ...
. The english use of ''union'' of two sets in mathematics began to be used by at least 1912, used by
James Pierpont. The symbol
used for union in mathematics was introduced by
Giuseppe Peano
Giuseppe Peano (; ; 27 August 1858 – 20 April 1932) was an Italian mathematician and glottologist. The author of over 200 books and papers, he was a founder of mathematical logic and set theory, to which he contributed much Mathematical notati ...
in his ''
Arithmetices principia'' in 1889, along with the notations for intersection
, set membership
, and subsets
.
See also
*
* − the union of sets of strings
*
*
*
*
*
*
*
*
Notes
External links
*
Infinite Union and Intersection at ProvenMathDe Morgan's laws formally proven from the axioms of set theory.
{{Mathematical logic
Basic concepts in set theory
Boolean algebra
Operations on sets
Set theory