Lably
Skip to content

Complement (set theory)

Set of the elements not in a given subset

  • 4 min read
  • 4 chapters

Related on Lably

Through Set theory, Element of a set and Integer

When all elements in the universe, i.e. all elements under consideration, are considered to be members of a given set U, the absolute complement of A is the set of elements in U that are not in A.

The relative complement of A with respect to a set B, also termed the set difference of B and A, written B∖A, is the set of elements in B that are not in A.

Absolute complement

Definition

If A is a set, then the absolute complement of A (or simply the complement of A) is the set of elements not in A (within a larger set that is implicitly defined). In other words, let U be a set that contains all the elements under study; if there is no need to mention U, either because it has been previously specified, or it is obvious and unique, then the absolute complement of A is the relative complement of A in U: Ac=U∖A={x∈U:x∉A}.

The absolute complement of A is usually denoted by Ac. Other notations include A¯, A′, ∁UA, and ∁A.

Examples

  • Assume that the universe is the set of integers. If A is the set of odd numbers, then the complement of A is the set of even numbers. If B is the set of multiples of 3, then the complement of B is the set of numbers congruent to 1 or 2 modulo 3 (or, in simpler terms, the integers that are not multiples of 3).
  • Assume that the universe is the standard 52-card deck. If the set A is the suit of spades, then the complement of A is the union of the suits of clubs, diamonds, and hearts. If the set B is the union of the suits of clubs and diamonds, then the complement of B is the union of the suits of hearts and spades.
  • When the universe is the universe of sets described in formalized set theory, the absolute complement of a set is generally not itself a set, but rather a proper class. For more info, see universal set.

Properties

Let A and B be two sets in a universe U. The following identities capture important properties of absolute complements:

De Morgan's laws:

  • (A∪B)c=Ac∩Bc.
  • (A∩B)c=Ac∪Bc.

Complement laws:

  • A∪Ac=U.
  • A∩Ac=∅.
  • ∅c=U.
  • Uc=∅.
  • If A⊆B, then Bc⊆Ac.
    (this follows from the equivalence of a conditional with its contrapositive).

Involution or double complement law:

  • (Ac)c=A.

Relationships between relative and absolute complements:

  • A∖B=A∩Bc.
  • (A∖B)c=Ac∪B=Ac∪(B∩A).

Relationship with a set difference:

  • Ac∖Bc=B∖A.

The first two complement laws above show that if A is a non-empty, proper subset of U, then {A, Ac} is a partition of U.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Foundations