Definition
The union of two Sets X,Y is the set of all elements that belong to X or Y
Formally:
X∪Y={x:x∈X or x∈Y}
This notion of "or" is foundational to computer programming and logic gates.
Properties
For arbitrary sets: X,Y,Z, and the Empty Set ∅:
i) X∪X=X
ii) X∪Y=Y∪X
iii) X∪(Y∪Z)=(X∪Y)∪Z
iv) X∪∅=X
Example
Let X={a,b,c,d}, Y={a,e,f}
Then:
X∪Y={a,b,c,d,e,f}