To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time. 4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds # Disjoint union

In mathematics, a disjoint union (or discriminated union) of a family $(A_{i}\colon i\in I)$ of sets is a set $A=\bigsqcup _{i\in I}A_{i},$ with an injective function of each $A_{i}$ into A, such that the images of these injections form a partition of A (that is, each element of A belongs to exactly one of these images). The disjoint union of a family of pairwise disjoint sets is their union. In terms of category theory, the disjoint union is the coproduct of the category of sets. The disjoint union is thus defined up to a bijection.

A standard way for building the disjoint union is to define A as the set of ordered pairs (x, i) such that $x\in A_{i},$ and the injective functions $A_{i}\to A$ by $x\mapsto (x,i).$ ## Example

Consider the sets $A_{0}=\{5,6,7\}$ and $A_{1}=\{5,6\}$ . We can index the set elements according to set origin by forming the associated sets

{\begin{aligned}A_{0}^{*}&=\{(5,0),(6,0),(7,0)\}\\A_{1}^{*}&=\{(5,1),(6,1)\},\end{aligned}} where the second element in each pair matches the subscript of the origin set (e.g., the $0$ in $(5,0)$ matches the subscript in $A_{0}$ , etc.). The disjoint union $A_{0}\sqcup A_{1}$ can then be calculated as follows:

$A_{0}\sqcup A_{1}=A_{0}^{*}\cup A_{1}^{*}=\{(5,0),(6,0),(7,0),(5,1),(6,1)\}.$ ## Set theory definition

Formally, let $\left\{A_{i}:i\in I\right\}$ be a family of sets indexed by $I.$ The disjoint union of this family is the set

$\bigsqcup _{i\in I}A_{i}=\bigcup _{i\in I}\left\{(x,i):x\in A_{i}\right\}.$ The elements of the disjoint union are ordered pairs $(x,i).$ Here $i$ serves as an auxiliary index that indicates which $A_{i}$ the element $x$ came from.

Each of the sets $A_{i}$ is canonically isomorphic to the set

$A_{i}^{*}=\left\{(x,i):x\in A_{i}\right\}.$ Through this isomorphism, one may consider that $A_{i}$ is canonically embedded in the disjoint union. For $i\neq j,$ the sets $A_{i}^{*}$ and $A_{j}^{*}$ are disjoint even if the sets $A_{i}$ and $A_{j}$ are not.

In the extreme case where each of the $A_{i}$ is equal to some fixed set $A$ for each $i\in I,$ the disjoint union is the Cartesian product of $A$ and $I$ :

$\bigsqcup _{i\in I}A_{i}=A\times I.$ One may occasionally see the notation

$\sum _{i\in I}A_{i}$ for the disjoint union of a family of sets, or the notation $A+B$ for the disjoint union of two sets. This notation is meant to be suggestive of the fact that the cardinality of the disjoint union is the sum of the cardinalities of the terms in the family. Compare this to the notation for the Cartesian product of a family of sets.

Disjoint unions are also sometimes written $\biguplus _{i\in I}A_{i}$ or $\ \cdot \!\!\!\!\!\bigcup _{i\in I}A_{i}.$ In the language of category theory, the disjoint union is the coproduct in the category of sets. It therefore satisfies the associated universal property. This also means that the disjoint union is the categorical dual of the Cartesian product construction. See coproduct for more details.

For many purposes, the particular choice of auxiliary index is unimportant, and in a simplifying abuse of notation, the indexed family can be treated simply as a collection of sets. In this case $A_{i}^{*}$ is referred to as a copy of $A_{i}$ and the notation ${\underset {A\in C}{\,\,\bigcup \nolimits ^{*}\!}}A$ is sometimes used.

## Category theory point of view

In category theory the disjoint union is defined as a coproduct in the category of sets.

As such, the disjoint union is defined up to an isomorphism, and the above definition is just one realization of the coproduct, among others. When the sets are pairwise disjoint, the usual union is another realization of the coproduct. This justifies the second definition in the lead.

This categorical aspect of the disjoint union explains why $\coprod$ is frequently used, instead of $\bigsqcup$ , to denote coproduct.