In set theory and other branches of mathematics, two kinds of complements are defined, the relative complement and the absolute complement.
The relative complement of A in B is usually written B − A (also B \ A).
Formally:
Examples:
The following proposition lists some notable properties of relative complements in relation to the set-theoretic operations of union and intersection.
PROPOSITION 1: If A, B, and C are sets, then the following identities hold:
The Matlab programming language implements the operation with the setdiff function.
For example, if the universal set is the set of natural numbers, then the complement of the set of odd numbers is the set of even numbers.
The following proposition lists some important properties of absolute complements in relation to the set-theoretic operations of union and intersection.
PROPOSITION 2: If A and B are subsets of a universal set U, then the following identities hold:
The first two complement laws above shows that if A is a non-empty subset of U, then {A, AC} is a partition of U.
Set theory | Binary operations
Rozdíl množin | Komplement (Mengenlehre) | 여집합 | Fyllimengi | Insieme complemento | משלים (מתמטיקה) | 差集合 | Dopełnienie zbioru | Complementar | Rozdiel množín | Komplement | Доповнення множин | 补集
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Complement (set theory)".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world