Article · Wikipedia archive · Last revised Jun 3, 2026

Algebra of sets

In mathematics, particularly in the study of set theory, the algebra of sets defines the properties and laws of sets, the set-theoretic operations of union, intersection, and complementation and the relations of set equality and set inclusion. It also provides systematic procedures for evaluating expressions and performing calculations involving these operations and relations.

Last revised
Jun 3, 2026
Read time
≈ 12 min
Length
2,860 w
Citations
15
Source

In mathematics, particularly in the study of set theory, the algebra of setsa defines the properties and laws of sets, the set-theoretic operations of union, intersection, and complementation and the relations of set equality and set inclusion. It also provides systematic procedures for evaluating expressions and performing calculations involving these operations and relations.

Any set of sets closed under the set-theoretic operations forms a Boolean algebra with the join operator being union, the meet operator being intersection, the complement operator being set complement,1 the bottom being {\displaystyle \varnothing } and the top being the universe set under consideration.

Fundamentals

A set is a collection of many mathematical objects. Examples of such objects are numbers, symbols, points in space, lines, other geometric shapes, variables, functions, or even other sets.2 A set is usually denote a upper-case letter and curly braces, as in A = { 1 , 2 , 3 , 4 } {\displaystyle A=\{1,2,3,4\}} and B = { a , b , c , x , y , z } {\displaystyle B=\{a,b,c,x,y,z\}} .

Union and intersection

The algebra of sets studies the properties and laws of sets algebraically. Foundationally, there are two set-theoretic operations of union ( {\displaystyle \cup } ), intersection and ( {\displaystyle \cap } ). A union is a set-theoretic operation that collects all members of two or more sets into a single set. An intersection collects the common elements of two or more sets. For instance, let A = { 1 , 2 , 3 , 5 } {\displaystyle A=\{1,2,3,5\}} and B = { 2 , 4 , 6 } {\displaystyle B=\{2,4,6\}} . Then A B = { 1 , 2 , 3 , 4 , 5 , 6 } {\displaystyle A\cup B=\{1,2,3,4,5,6\}} , A B = { 2 } {\displaystyle A\cap B=\{2\}} . Analogically, the algebra of sets can be interpreted as the algebra of numbers. Just as arithmetic addition and multiplication are associative and commutative, so are set union and intersection.3b Similarly for the arithmetic relation "less than or equal" is reflexive, antisymmetric and transitive, so is the set relation of "subset".4 Several of these identities or "laws" are the following.5

Commutative property
  • A B = B A {\displaystyle A\cup B=B\cup A}
  • A B = B A {\displaystyle A\cap B=B\cap A}
Associative property
  • ( A B ) C = A ( B C ) {\displaystyle (A\cup B)\cup C=A\cup (B\cup C)}
  • ( A B ) C = A ( B C ) {\displaystyle (A\cap B)\cap C=A\cap (B\cap C)}
Distributive property
  • A ( B C ) = ( A B ) ( A C ) {\displaystyle A\cup (B\cap C)=(A\cup B)\cap (A\cup C)}
  • A ( B C ) = ( A B ) ( A C ) {\displaystyle A\cap (B\cup C)=(A\cap B)\cup (A\cap C)}

The union and intersection of sets may be seen as analogous to the addition and multiplication of numbers. Like addition and multiplication, the operations of union and intersection are commutative and associative, and intersection distributes over union.3 However, unlike addition and multiplication, union also distributes over intersection.

Empty set, universe set, and the complement of a set

Two additional pairs of properties involve the special sets called the empty set {\displaystyle \varnothing } and the universe set U {\displaystyle {\boldsymbol {U}}} . These sets have no members, and the universe set has all possible members (in a particular context), respectively. A set where the members are not in a set A {\displaystyle A} is the complement; the operator denotes A {\displaystyle A^{\complement }} or A {\displaystyle A'} (read as "A prime"). Equivalently, the complement of a set A {\displaystyle A^{\complement }} is a set that is included in a universe set U {\displaystyle {\boldsymbol {U}}} and not in A {\displaystyle A} ; i.e., A = U A {\displaystyle A^{\complement }={\boldsymbol {U}}\setminus A} .6

Identity
  • A = A {\displaystyle A\cup \varnothing =A}
  • A U = A {\displaystyle A\cap {\boldsymbol {U}}=A}
Complement
  • A A = U {\displaystyle A\cup A^{\complement }={\boldsymbol {U}}}
  • A A = {\displaystyle A\cap A^{\complement }=\varnothing }

The identity expressions (together with the commutative expressions) say that, just like 0 and 1 for addition and multiplication,7 {\displaystyle \varnothing } and U {\displaystyle {\boldsymbol {U}}} are the identity elements for union and intersection, respectively.

Unlike addition and multiplication, union and intersection do not have inverse elements. However, the complement laws give the fundamental properties of the somewhat inverse-like unary operation of set complementation.

The preceding five pairs of formulae—the commutative, associative, distributive, identity, and complement formulae—encompass all of set algebra, in the sense that every valid proposition in the algebra of sets can be derived from them.

If the complement formulae are weakened to the rule ( A ) = A {\displaystyle (A^{\complement })^{\complement }=A} , then this is exactly the algebra of propositional linear logic.

Principle of duality

Each of the identities stated above is one of a pair of identities such that each can be transformed into the other by interchanging {\displaystyle \cup } and {\displaystyle \cap } , while also interchanging {\displaystyle \varnothing } and U {\displaystyle {\boldsymbol {U}}} .

These are examples of an extremely important and powerful property of set algebra, namely, the principle of duality for sets, which asserts that for any true statement about sets, the dual statement obtained by interchanging unions and intersections, interchanging U {\displaystyle {\boldsymbol {U}}} and {\displaystyle \varnothing } and reversing inclusions is also true. A statement is said to be self-dual if it is equal to its own dual.

Some additional laws for unions and intersections

For any subsets A {\displaystyle A} and B {\displaystyle B} of a universe set U {\displaystyle {\boldsymbol {U}}} , the following identities hold:

idempotent laws
  • A A = A {\displaystyle A\cup A=A} proof 1
  • A A = A {\displaystyle A\cap A=A} proof 2
domination laws
  • A U = U {\displaystyle A\cup {\boldsymbol {U}}={\boldsymbol {U}}}
  • A = {\displaystyle A\cap \varnothing =\varnothing }
absorption laws
  • A ( A B ) = A {\displaystyle A\cup (A\cap B)=A} proof 3
  • A ( A B ) = A {\displaystyle A\cap (A\cup B)=A} proof 4

Intersection can be expressed in terms of set difference:

A B = A ( A B ) {\displaystyle A\cap B=A\setminus (A\setminus B)}

Some additional laws for complements

Let A {\displaystyle A} and B {\displaystyle B} be subsets of a universe U {\displaystyle {\boldsymbol {U}}} , then:

de Morgan's laws
  • ( A B ) = A B {\displaystyle (A\cup B)^{\complement }=A^{\complement }\cap B^{\complement }}
  • ( A B ) = A B {\displaystyle (A\cap B)^{\complement }=A^{\complement }\cup B^{\complement }}
double complement or involution law
  • ( A ) = A {\displaystyle (A^{\complement })^{\complement }=A}
complement laws for the universe set and the empty set
  • = U {\displaystyle \varnothing ^{\complement }={\boldsymbol {U}}}
  • U = {\displaystyle {\boldsymbol {U}}^{\complement }=\varnothing }

Notice that the double complement law is self-dual. The following is also self-dual, saying that the complement of a set is the only set that satisfies the complement laws. In other words, complementation is characterized by the complement laws: Let A {\displaystyle A} and B {\displaystyle B} be subsets of a universe U {\displaystyle {\boldsymbol {U}}} ,

uniqueness of complements
  • If A B = U {\displaystyle A\cup B={\boldsymbol {U}}} , and A B = {\displaystyle A\cap B=\varnothing } , then B = A {\displaystyle B=A^{\complement }}

Algebra of inclusion

The algebra of sets include the inclusion of sets. That is, the binary relation of one set being a subset of another, which is a partial order. If A {\displaystyle A} , B {\displaystyle B} and C {\displaystyle C} are sets then the following hold:

reflexivity
  • A A {\displaystyle A\subseteq A}
antisymmetry
  • A B {\displaystyle A\subseteq B} and B A {\displaystyle B\subseteq A} if and only if A = B {\displaystyle A=B}
transitivity
  • If A B {\displaystyle A\subseteq B} and B C {\displaystyle B\subseteq C} , then A C {\displaystyle A\subseteq C}

For any set S {\displaystyle S} , the power set of S {\displaystyle S} , ordered by inclusion, is a bounded lattice, and hence together with the distributive and complement laws above, shows that it is a Boolean algebra. That is, if A {\displaystyle A} , B {\displaystyle B} and C {\displaystyle C} are subsets of a set S {\displaystyle S} then the following hold:

existence of a least element and a greatest element
  • A S {\displaystyle \varnothing \subseteq A\subseteq S}
existence of joins
  • A A B {\displaystyle A\subseteq A\cup B}
  • If A C {\displaystyle A\subseteq C} and B C {\displaystyle B\subseteq C} , then A B C {\displaystyle A\cup B\subseteq C}
existence of meets
  • A B A {\displaystyle A\cap B\subseteq A}
  • If C A {\displaystyle C\subseteq A} and C B {\displaystyle C\subseteq B} , then C A B {\displaystyle C\subseteq A\cap B}

The inclusion set A B {\displaystyle A\subseteq B} is equivalent to various other statements involving unions, intersections, and complements. That is, for any two sets A {\displaystyle A} and B {\displaystyle B} , the following are equivalent:

  • A B {\displaystyle A\subseteq B}
  • A B = A {\displaystyle A\cap B=A}
  • A B = B {\displaystyle A\cup B=B}
  • A B = {\displaystyle A\setminus B=\varnothing }
  • B A {\displaystyle B^{\complement }\subseteq A^{\complement }}

This shows that the relation of set inclusion can be characterized by either of the operations of set union or set intersection, meaning that the notion of set inclusion is axiomatically superfluous.

Algebra of relative complements

The following proposition lists several identities concerning relative complements and set-theoretic differences.

PROPOSITION 9: For any universe U {\displaystyle {\boldsymbol {U}}} and subsets A {\displaystyle A} , B {\displaystyle B} and C {\displaystyle C} of U {\displaystyle {\boldsymbol {U}}} , the following identities hold:

  • C ( A B ) = ( C A ) ( C B ) {\displaystyle C\setminus (A\cap B)=(C\setminus A)\cup (C\setminus B)}
  • C ( A B ) = ( C A ) ( C B ) {\displaystyle C\setminus (A\cup B)=(C\setminus A)\cap (C\setminus B)}
  • C ( B A ) = ( A C ) ( C B ) {\displaystyle C\setminus (B\setminus A)=(A\cap C)\cup (C\setminus B)}
  • ( B A ) C = ( B C ) ( A C ) = ( B C ) A = B ( C A ) {\displaystyle (B\setminus A)\cap C=(B\cap C)\setminus (A\cap C)=(B\cap C)\setminus A=B\cap (C\setminus A)}
  • ( B A ) C = ( B C ) ( A C ) {\displaystyle (B\setminus A)\cup C=(B\cup C)\setminus (A\setminus C)}
  • ( B A ) C = B ( A C ) {\displaystyle (B\setminus A)\setminus C=B\setminus (A\cup C)}
  • A A = {\displaystyle A\setminus A=\varnothing }
  • A = {\displaystyle \varnothing \setminus A=\varnothing }
  • A = A {\displaystyle A\setminus \varnothing =A}
  • B A = A B {\displaystyle B\setminus A=A^{\complement }\cap B}
  • ( B A ) = A B {\displaystyle (B\setminus A)^{\complement }=A\cup B^{\complement }}
  • U A = A {\displaystyle {\boldsymbol {U}}\setminus A=A^{\complement }}
  • A U = {\displaystyle A\setminus {\boldsymbol {U}}=\varnothing }
See also

See also

Notes

Notes

Explanatory

  1. Not to be confused with the mathematical structure of an algebra of sets
  2. Some sources use A + B {\displaystyle A+B} and A B {\displaystyle AB} to denote the union and intersection of two sets A {\displaystyle A} and B {\displaystyle B} , respectively. This regards the analogy of how union and intersection operators work, as do the addition and multiplication.3

Notes on proofs

  1. A proof is given below for the idempotent law for union.
    A A {\displaystyle A\cup A} = ( A A ) U {\displaystyle =(A\cup A)\cap {\boldsymbol {U}}} by the identity law of intersection
    = ( A A ) ( A A ) {\displaystyle =(A\cup A)\cap (A\cup A^{\complement })} by the complement law for union
    = A ( A A ) {\displaystyle =A\cup (A\cap A^{\complement })} by the distributive law of union over intersection
    = A {\displaystyle =A\cup \varnothing } by the complement law for intersection
    = A {\displaystyle =A} by the identity law for union
  2. The following proof illustrates that the dual of the above proof is the proof of the dual of the idempotent law for union, namely the idempotent law for intersection.
    A A {\displaystyle A\cap A} = ( A A ) {\displaystyle =(A\cap A)\cup \varnothing } by the identity law for union
    = ( A A ) ( A A ) {\displaystyle =(A\cap A)\cup (A\cap A^{\complement })} by the complement law for intersection
    = A ( A A ) {\displaystyle =A\cap (A\cup A^{\complement })} by the distributive law of intersection over union
    = A U {\displaystyle =A\cap {\boldsymbol {U}}} by the complement law for union
    = A {\displaystyle =A} by the identity law for intersection
  3. A proof is given below for the absorption law for union.
    A ( A B ) {\displaystyle A\cup (A\cap B)} = ( A U ) ( A B ) {\displaystyle =(A\cap {\boldsymbol {U}})\cup (A\cap B)} by the identity law of intersection
    = A ( U B ) {\displaystyle =A\cap ({\boldsymbol {U}}\cup B)} by the distributive law of intersection over union
    = A U {\displaystyle =A\cap {\boldsymbol {U}}} by the domination law for union
    = A {\displaystyle =A} by the identity law of intersection
  4. A proof is given below for the absorption law for intersection.
    A ( A B ) {\displaystyle A\cap (A\cup B)} = ( A ) ( A B ) {\displaystyle =(A\cup \varnothing )\cap (A\cup B)} by the identity law for union
    = A ( B ) {\displaystyle =A\cup (\varnothing \cap B)} by the distributive law of union over intersection
    = A {\displaystyle =A\cup \varnothing } by the domination law for intersection
    = A {\displaystyle =A} by the identity law for union

References

  1. Halmos (2018), p. 3–8.
  2. Halmos (1960), p. 1.
  3. Courant, Robbins & Stewart (1996), p. 110.
  4. Courant, Robbins & Stewart (1996), p. 109.
  5. Halmos (1960), pp. 14–15.
  6. Halmos (1960), p. 17.
  7. Courant, Robbins & Stewart (1996), p. 110–111, I and O denote a universe set and an empty set, respectively. See pp. 108–109.
External links