Union (set theory): Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>Tea2min
Undid revision 1289064208 by 212.139.59.194 (talk)
 
In math the term "greater" is used not "larger
 
Line 9: Line 9:
For explanation of the symbols used in this article, refer to the [[List of mathematical symbols|table of mathematical symbols]].
For explanation of the symbols used in this article, refer to the [[List of mathematical symbols|table of mathematical symbols]].


== Binary union ==
== Union of two sets ==
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''.<ref name=":3">{{Cite web |title=Set Operations {{!}} Union {{!}} Intersection {{!}} Complement {{!}} Difference {{!}} Mutually Exclusive {{!}} Partitions {{!}} De Morgan's Law {{!}} Distributive Law {{!}} Cartesian Product |url=https://www.probabilitycourse.com/chapter1/1_2_2_set_operations.php |access-date=2020-09-05 |website=Probability Course}}</ref>  In [[set-builder notation]],
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''.<ref name=":3">{{Cite web |title=Set Operations {{!}} Union {{!}} Intersection {{!}} Complement {{!}} Difference {{!}} Mutually Exclusive {{!}} Partitions {{!}} De Morgan's Law {{!}} Distributive Law {{!}} Cartesian Product |url=https://www.probabilitycourse.com/chapter1/1_2_2_set_operations.php |access-date=2020-09-05 |website=Probability Course}}</ref>  In [[set-builder notation]],
: <math>A  \cup B = \{ x: x \in A \text{  or  } x \in B\}</math>.<ref name=":0">{{Cite book|url=https://books.google.com/books?id=LBvpfEMhurwC|title=Basic Set Theory|last=Vereshchagin|first=Nikolai Konstantinovich|last2=Shen|first2=Alexander|date=2002-01-01|publisher=American Mathematical Soc.|isbn=9780821827314|language=en}}</ref>
: <math>A  \cup B = \{ x: x \in A \text{  or  } x \in B\}</math>.<ref name=":0">{{Cite book|url=https://books.google.com/books?id=LBvpfEMhurwC|title=Basic Set Theory|last=Vereshchagin|first=Nikolai Konstantinovich|last2=Shen|first2=Alexander|date=2002-01-01|publisher=American Mathematical Soc.|isbn=9780821827314|language=en}}</ref>


For example, if ''A'' = {1, 3, 5, 7} and ''B'' = {1, 2, 4, 6, 7} then ''A'' ∪ ''B'' = {1, 2, 3, 4, 5, 6, 7}.  A more elaborate example (involving two infinite sets) is:
For example, if ''A'' = {1, 3, 5, 7} and ''B'' = {1, 2, 4, 6, 7} then ''A'' ∪ ''B'' = {1, 2, 3, 4, 5, 6, 7}.  A more elaborate example (involving two infinite sets) is:
: ''A'' = {{mset|''x'' is an even [[integer]] larger than 1}}
: ''A'' = {{mset|''x'' is an even [[integer]] greater than 1}}
: ''B'' = {{mset|''x'' is an odd integer larger than 1}}
: ''B'' = {{mset|''x'' is an odd integer greater than 1}}
: <math>A \cup B = \{2,3,4,5,6, \dots\}</math>
: <math>A \cup B = \{2,3,4,5,6, \dots\}</math>


As another example, the number 9 is ''not'' contained in the union of the set of [[prime number]]s {{mset|2, 3, 5, 7, 11, ...}} and the set of [[even number]]s {{mset|2, 4, 6, 8, 10, ...}}, because 9 is neither prime nor even.
As another example, the number 9 is ''not'' contained in the union of the set of [[prime number]]s {{mset|2, 3, 5, 7, 11, ...}} and the set of [[even number]]s {{mset|2, 4, 6, 8, 10, ...}}, because 9 is neither prime nor even.


Sets cannot have duplicate elements,<ref name=":0" /><ref>{{Cite book|url=https://books.google.com/books?id=2hM3-xxZC-8C&pg=PA24|title=Applied Mathematics for Database Professionals|last=deHaan|first=Lex|last2=Koppelaars|first2=Toon|date=2007-10-25|publisher=Apress|isbn=9781430203483|language=en}}</ref> so the union of the sets {{mset|1, 2, 3}} and {{mset|2, 3, 4}} is {{mset|1, 2, 3, 4}}. Multiple occurrences of identical elements have no effect on the [[cardinality]] of a set or its contents.
Sets cannot have duplicate elements,<ref name=":0" /><ref>{{Cite book|url=https://books.google.com/books?id=2hM3-xxZC-8C&pg=PA24|title=Applied Mathematics for Database Professionals|last=deHaan|first=Lex|last2=Koppelaars|first2=Toon|date=2007-10-25|publisher=Apress|isbn=9781430203483|language=en}}</ref> so the union of the sets {{mset|1, 2, 3}} and {{mset|2, 3, 4}} is {{mset|1, 2, 3, 4}}.


=== Finite unions ===
=== Finite unions ===

Latest revision as of 16:45, 10 September 2025

Template:Short description

File:Venn0111.svg
Union of two sets:
AB
File:Venn 0111 1111.svg
Union of three sets:
ABC
File:Example of a non pairwise disjoint family of sets.svg
The union of A, B, C, D, and E is everything except the white area.

In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection.[1] It is one of the fundamental operations through which sets can be combined and related to each other. A Template:Visible anchor refers to a union of [[Zero|zero (Template:Tmath)]] sets and it is by definition equal to the empty set.

For explanation of the symbols used in this article, refer to the table of mathematical symbols.

Union of two sets

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.[2] In set-builder notation,

AB={x:xA or xB}.[3]

For example, if A = {1, 3, 5, 7} and B = {1, 2, 4, 6, 7} then AB = {1, 2, 3, 4, 5, 6, 7}. A more elaborate example (involving two infinite sets) is:

A = Template:Mset
B = Template:Mset
AB={2,3,4,5,6,}

As another example, the number 9 is not contained in the union of the set of prime numbers Template:Mset and the set of even numbers Template:Mset, because 9 is neither prime nor even.

Sets cannot have duplicate elements,[3][4] so the union of the sets Template:Mset and Template:Mset is Template:Mset.

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 ABC 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.[5][6]

Notation

The notation for the general concept can vary considerably. For a finite union of sets S1,S2,S3,,Sn one often writes S1S2S3Sn or i=1nSi. Various common notations for arbitrary unions include 𝐌, A𝐌A, and iIAi. The last of these notations refers to the union of the collection {Ai:iI}, where I is an index set and Ai is a set for every Template:Tmath. In the case that the index set I is the set of natural numbers, one uses the notation i=1Ai, which is analogous to that of the infinite sums in series.[7]

When the symbol "∪" is placed before other symbols (instead of between them), it is usually rendered as a larger size.

Notation encoding

In Unicode, union is represented by the character Template:Unichar.[8] In TeX, 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 whose elements are sets, then x is an element of the union of M if and only if there is at least one element A of M such that x is an element of A.[7] In symbols:

x𝐌A𝐌, xA.

This idea subsumes the preceding sections—for example, ABC is the union of the collection Template:Mset. Also, if M is the empty collection, then the union of M is the empty set.

Formal derivation

In Zermelo–Fraenkel set theory (ZFC) and other set theories, the ability to take the arbitrary union of any sets is granted by the axiom of union, which states that, given any set of sets A, there exists a set B, whose elements are exactly those of the elements of A. Sometimes this axiom is less specific, where there exists a B which contains the elements of the elements of A, but may be larger. For example if A={{1},{2}}, then it may be that B={1,2,3} since B contains 1 and 2. This can be fixed by using the axiom of specification to get the subset of B whose elements are exactly those of the elements of A. Then one can use the axiom of extensionality to show that this set is unique. For readability, define the binary predicate Union(X,Y) meaning "X is the union of Y" or "X=Y" as:

Union(X,Y)x(xXyY(xy))

Then, one can prove the statement "for all Y, there is a unique X, such that X is the union of Y":

Y!X(Union(X,Y))

Then, one can use an extension by definition to add the union operator A to the language of ZFC as:

B=AUnion(B,A)x(xByY(xy))

or equivalently:

xAyA(xy)

After the union operator has been defined, the binary union AB can be defined by showing there exists a unique set C={A,B} using the axiom of pairing, and defining AB={A,B}. Then, finite unions can be defined inductively as:

i=10Ai=, and i=1nAi=(i=1n1Ai)An

Algebraic properties

Script error: No such module "Labelled list hatnote".

Binary union is an associative operation; that is, for any sets Template:Tmath, A(BC)=(AB)C. Thus, the parentheses may be omitted without ambiguity: either of the above can be written as Template:Tmath. Also, union is commutative, so the sets can be written in any order.[9] The empty set is an identity element for the operation of union. That is, Template:Tmath, for any set Template:Tmath. Also, the union operation is idempotent: Template:Tmath. All these properties follow from analogous facts about logical disjunction.

Intersection distributes over union A(BC)=(AB)(AC) and union distributes over intersection[2] A(BC)=(AB)(AC). The power set of a set Template:Tmath, together with the operations given by union, intersection, and complementation, is a Boolean algebra. In this Boolean algebra, union can be expressed in terms of intersection and complementation by the formula AB=(AB), where the superscript denotes the complement in the universal set Template:Tmath. Alternatively, intersection can be expressed in terms of union and complementation in a similar way: AB=(AB). These two expressions together are called De Morgan's laws.[10][11][12]

History and etymology

Script error: No such module "labelled list hatnote". The english word union comes from the term in middle French meaning "coming together", which comes from the post-classical Latin unionem, "oneness".[13] The original term for union in set theory was Vereinigung (in german), which was introduced in 1895 by Georg Cantor.[14] The english use of union of two sets in mathematics began to be used by at least 1912, used by James Pierpont.[15][16] The symbol used for union in mathematics was introduced by Giuseppe Peano in his Arithmetices principia in 1889, along with the notations for intersection , set membership , and subsets .[17]

See also

Script error: No such module "Portal".

Notes

Template:Reflist

External links

Template:Set theory Template:Mathematical logic

  1. Script error: No such module "citation/CS1".
  2. a b Script error: No such module "citation/CS1".
  3. a b Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. a b Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. Script error: No such module "citation/CS1".
  14. Script error: No such module "Citation/CS1".
  15. Script error: No such module "citation/CS1".
  16. Oxford English Dictionary, “union (n.2), sense III.17,” March 2025, https://doi.org/10.1093/OED/1665274057
  17. Script error: No such module "citation/CS1".