Complement (set theory) explained

In set theory, the complement of a set, often denoted by

A\complement

(or),[1] is the set of elements not in .[2]

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

The relative complement of with respect to a set, also termed the set difference of and, written

B\setminusA,

is the set of elements in that are not in .

Absolute complement

Definition

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

The absolute complement of is usually denoted by

A\complement

. Other notations include

\overlineA,A',

\complementUA,and\complementA.

[4]

Examples

Properties

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

De Morgan's laws

\left(A\cupB\right)\complement=A\complement\capB\complement.

\left(A\capB\right)\complement=A\complement\cupB\complement.

Complement laws:

A\cupA\complement=U.

A\capA\complement=\empty.

\empty\complement=U.

U\complement=\empty.

IfA\subseteqB,thenB\complement\subseteqA\complement.

(this follows from the equivalence of a conditional with its contrapositive).

Involution or double complement law:

\left(A\complement\right)\complement=A.

Relationships between relative and absolute complements:

A\setminusB=A\capB\complement.

(A\setminusB)\complement=A\complement\cupB=A\complement\cup(B\capA).

Relationship with a set difference:

A\complement\setminusB\complement=B\setminusA.

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

Relative complement

Definition

If and are sets, then the relative complement of in,[5] also termed the set difference of and,[6] is the set of elements in but not in .The relative complement of in is denoted

B\setminusA

according to the ISO 31-11 standard. It is sometimes written

B-A,

but this notation is ambiguous, as in some contexts (for example, Minkowski set operations in functional analysis) it can be interpreted as the set of all elements

b-a,

where is taken from and from .

Formally:B \setminus A = \.

Examples

\{1,2,3\}\setminus\{2,3,4\}=\{1\}.

\{2,3,4\}\setminus\{1,2,3\}=\{4\}.

R

is the set of real numbers and

Q

is the set of rational numbers, then

R\setminusQ

is the set of irrational numbers.

Properties

See also: List of set identities and relations and Algebra of sets.

Let,, and be three sets. The following identities capture notable properties of relative complements:

C\setminus(A\capB)=(C\setminusA)\cup(C\setminusB).

C\setminus(A\cupB)=(C\setminusA)\cap(C\setminusB).

C\setminus(B\setminusA)=(C\capA)\cup(C\setminusB),

with the important special case

C\setminus(C\setminusA)=(C\capA)

demonstrating that intersection can be expressed using only the relative complement operation.

(B\setminusA)\capC=(B\capC)\setminusA=B\cap(C\setminusA).

(B\setminusA)\cupC=(B\cupC)\setminus(A\setminusC).

A\setminusA=\emptyset.

\empty\setminusA=\empty.

A\setminus\empty=A.

A\setminusU=\empty.

A\subsetB

, then

C\setminusA\supsetC\setminusB

.

A\supseteqB\setminusC

is equivalent to

C\supseteqB\setminusA

.

Complementary relation

R

is defined as a subset of a product of sets

X x Y.

The complementary relation

\bar{R}

is the set complement of

R

in

X x Y.

The complement of relation

R

can be written\bar \ = \ (X \times Y) \setminus R.Here,

R

is often viewed as a logical matrix with rows representing the elements of

X,

and columns elements of

Y.

The truth of

aRb

corresponds to 1 in row

a,

column

b.

Producing the complementary relation to

R

then corresponds to switching all 1s to 0s, and 0s to 1s for the logical matrix of the complement.

Together with composition of relations and converse relations, complementary relations and the algebra of sets are the elementary operations of the calculus of relations.

LaTeX notation

See also: List of mathematical symbols by subject.

In the LaTeX typesetting language, the command \setminus[7] is usually used for rendering a set difference symbol, which is similar to a backslash symbol. When rendered, the \setminus command looks identical to \backslash, except that it has a little more space in front and behind the slash, akin to the LaTeX sequence \mathbin{\backslash}. A variant \smallsetminus is available in the amssymb package, but this symbol is not included separately in Unicode. The symbol

\complement

(as opposed to

C

) is produced by \complement. (It corresponds to the Unicode symbol .)

References

Notes and References

  1. Web site: Complement and Set Difference. 2020-09-04. web.mnstate.edu.
  2. Web site: Complement (set) Definition (Illustrated Mathematics Dictionary). 2020-09-04. www.mathsisfun.com.
  3. The set in which the complement is considered is thus implicitly mentioned in an absolute complement, and explicitly mentioned in a relative complement.
  4. .
  5. .
  6. .
  7. http://ctan.unsw.edu.au/info/symbols/comprehensive/symbols-a4.pdf