The (relative) complement of set A in B is in turn a subset of B and is colored blue here.
If and are sets and is a subset of , then the relative complement, also called set- theoretic complement or set- theoretic difference , is the set of precisely those elements which are not contained in. The formal definition of relative complement is
and you say "B without A". The complement only differs from the normal subtraction of sets in that the subset relationship must exist between the sets under consideration. It is called relative because one can not specify the complement for a set without knowing the context. If, on the other hand, the set is fixed, then instead of “the relative complement of A in B” one can simply name “the complement of A”.
Examples
For (real numbers) and (rational numbers), is the set of irrational numbers.
properties
Below are some properties of relative complements related to the set-theoretic operations union and intersection . Be , and sets, then the following identities hold:
Absolute complement
definition
The complement of A in U
If a universe is defined, the relative complement of in is also called the absolute complement (or simply complement) of for every set and is noted as (sometimes also as , or also as , or if is fixed), so it is:
example
For example, if the universe is the set of natural numbers, then the (absolute) complement of the set of even numbers is the set of odd numbers.
properties
Below are some properties of absolute complements related to the set-theoretic operations union and intersection . Be and subsets of the universe , then the following identities apply:
Oliver Deiser: Introduction to set theory. Georg Cantor's set theory and its axiomatization by Ernst Zermelo. 2nd, improved and enlarged edition. Springer, Berlin et al. 2004, ISBN 3-540-20401-6 .