All Topics  
Complement (set theory)

 

   Email Print
   Bookmark   Link






 

Complement (set theory)



 
 
In discrete mathematics
Discrete mathematics

Discrete mathematics, also called finite mathematics, is the study of mathematical structures that are fundamentally discrete in the sense that its objects can assume only distinct, separate values, rather than a values on a continuum ....
 and predominantly in set theory
Set theory

Set theory is the branch of mathematics that studies Set , which are collections of objects. Although any type of object can be collected into a set, set theory is applied most often to objects that are relevant to mathematics....
, a complement is a concept used in comparisons of sets to refer to the unique values of one set in relation to another. The terms "absolute" and "relative" complement refer to more specific applications of the concept, with universal complements referring to elements unique to the universal set
Universal set

In set theory, a universal set is a Set which contains all objects, including itself. The most widely-studied set theory with a universal set is Willard Van Orman Quine?s New Foundations, but Alonzo Church and :de:Arnold_Oberschelp also published work on such set theories....
 and the latter referring to the unique elements of one set in relation to another.

Absolute complement
If a universe
Universe (mathematics)

In mathematics, and particularly in set theory and the foundations of mathematics, a universe is a class that contains all the entities one wishes to consider in a given situation....
 U is defined, then the relative complement of A in U is called the absolute complement (or simply complement) of A, and is denoted by AC or sometimes A′, also the same set often is denoted by or if U is fixed), that is:

AC  = U ∖ A.


For example, if the universe is the set of natural number
Natural number

In mathematics, a natural number can mean either an element of the Set = *n = = ? = ? ...
s, 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 operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
s of union and intersection
Intersection (set theory)

In mathematics, the intersection of two Set A and B is the set that contains all elements of A that also belong to B , but no other elements....
.

PROPOSITION 1: If A and B are subsets of a universe
Universe (mathematics)

In mathematics, and particularly in set theory and the foundations of mathematics, a universe is a class that contains all the entities one wishes to consider in a given situation....
 U, then the following identities hold:
De Morgan's laws
De Morgan's laws

In formal logic, De Morgan's laws are rules relating the logical operators 'and' and 'or' in terms of each other via logical negation.History...
:
Complement laws:
Involution
Involution

In mathematics, an involution, or an involutary function, is a function that is its own inverse function, so that...
 or double complement law:
Relationships between relative and absolute complements:


The first two complement laws above shows that if A is a non-empty subset of U, then is a partition
Partition of a set

In mathematics, a partition of a Set X is a division of X into non-overlapping "parts" or "blocks" or "cells" that cover all of X....
 of U.

relative complement of A in B is denoted B ∖ A (sometimes written B − A, but this notation is ambiguous, as in some contexts it can be interpreted as the set of all b − a, where b is taken from B and a from A).

Formally:

Examples:



The following proposition lists some notable properties of relative complements in relation to the set-theoretic operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
s of union
Union (set theory)

In set theory, the term Union refers to a set operation used in the convergence of set elements to form a resultant set containing the elements of both sets....
 and intersection
Intersection (set theory)

In mathematics, the intersection of two Set A and B is the set that contains all elements of A that also belong to B , but no other elements....
.

PROPOSITION 2: If A, B, and C are sets, then the following identities hold:


Other applications
In the LaTeX
LaTeX

LaTeX is a document markup language and Word processor for the TeX typesetting program. Within the typesetting system, its name is styled as ....
 typesetting language, the command \setminus is usually used for rendering a set difference symbol, which is similar to a backslash
Backslash

The backslash is a typographical mark used chiefly in computing. It was first introduced to computers in 1960 by Bob Bemer. Sometimes called a reverse solidus or an oblique, it is the mirror image of the common slash ....
 symbol.






Discussion
Ask a question about 'Complement (set theory)'
Start a new discussion about 'Complement (set theory)'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In discrete mathematics
Discrete mathematics

Discrete mathematics, also called finite mathematics, is the study of mathematical structures that are fundamentally discrete in the sense that its objects can assume only distinct, separate values, rather than a values on a continuum ....
 and predominantly in set theory
Set theory

Set theory is the branch of mathematics that studies Set , which are collections of objects. Although any type of object can be collected into a set, set theory is applied most often to objects that are relevant to mathematics....
, a complement is a concept used in comparisons of sets to refer to the unique values of one set in relation to another. The terms "absolute" and "relative" complement refer to more specific applications of the concept, with universal complements referring to elements unique to the universal set
Universal set

In set theory, a universal set is a Set which contains all objects, including itself. The most widely-studied set theory with a universal set is Willard Van Orman Quine?s New Foundations, but Alonzo Church and :de:Arnold_Oberschelp also published work on such set theories....
 and the latter referring to the unique elements of one set in relation to another.

Forms


Absolute complement


If a universe
Universe (mathematics)

In mathematics, and particularly in set theory and the foundations of mathematics, a universe is a class that contains all the entities one wishes to consider in a given situation....
 U is defined, then the relative complement of A in U is called the absolute complement (or simply complement) of A, and is denoted by AC or sometimes A′, also the same set often is denoted by or if U is fixed), that is:

AC  = U ∖ A.


For example, if the universe is the set of natural number
Natural number

In mathematics, a natural number can mean either an element of the Set = *n = = ? = ? ...
s, 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 operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
s of union and intersection
Intersection (set theory)

In mathematics, the intersection of two Set A and B is the set that contains all elements of A that also belong to B , but no other elements....
.

PROPOSITION 1: If A and B are subsets of a universe
Universe (mathematics)

In mathematics, and particularly in set theory and the foundations of mathematics, a universe is a class that contains all the entities one wishes to consider in a given situation....
 U, then the following identities hold:
De Morgan's laws
De Morgan's laws

In formal logic, De Morgan's laws are rules relating the logical operators 'and' and 'or' in terms of each other via logical negation.History...
:
  • (AB)C  = ACBC
  • (AB)C  = ACBC
Complement laws:
  • AAC  =  U
  • AAC  =  Ø
  • ØC  =  U
  • UC  =  Ø
  • If A?B, then BC?AC (this follows from the equivalence of a conditional with its contrapositive)
Involution
Involution

In mathematics, an involution, or an involutary function, is a function that is its own inverse function, so that...
 or double complement law:
  • ACC  =  A.
Relationships between relative and absolute complements:
  • A ∖ B = A n BC
  • (A ∖ B)C = AC ? B


The first two complement laws above shows that if A is a non-empty subset of U, then is a partition
Partition of a set

In mathematics, a partition of a Set X is a division of X into non-overlapping "parts" or "blocks" or "cells" that cover all of X....
 of U.

Relative complement


If A and B are sets, then the relative complement of A in B, also known as the set-theoretic difference of B and A, is the set of elements in B, but not in A.

The relative complement of A in B is denoted B ∖ A (sometimes written B − A, but this notation is ambiguous, as in some contexts it can be interpreted as the set of all b − a, where b is taken from B and a from A).

Formally:

Examples:

  •  ∖    =   
  •  ∖    =   
  • If is the set of real number
    Real number

    In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
    s and is the set of rational number
    Rational number

    In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
    s, then is the set of irrational number
    Irrational number

    In mathematics, an irrational number is any real number that is not a rational number ? that is, it is a number which cannot be expressed as a fraction m/n, where m and n are integers, with n non-zero....
    s.


The following proposition lists some notable properties of relative complements in relation to the set-theoretic operation
Operation (mathematics)

In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values....
s of union
Union (set theory)

In set theory, the term Union refers to a set operation used in the convergence of set elements to form a resultant set containing the elements of both sets....
 and intersection
Intersection (set theory)

In mathematics, the intersection of two Set A and B is the set that contains all elements of A that also belong to B , but no other elements....
.

PROPOSITION 2: If A, B, and C are sets, then the following identities hold:

  • C ∖ (A n B)  =  (C ∖ A)?(C ∖ B)
  • C ∖ (A ? B)  =  (C ∖ A)n(C ∖ B)
  • C ∖ (B ∖ A)  =  (A n C)?(C ∖ B)
  • (B ∖ A) n C  =  (B n C) ∖ A  =  Bn(C ∖ A)
  • (B ∖ A) ? C  =  (B ? C) ∖ (A ∖ C)
  • A ∖ A  =  Ø
  • Ø ∖ A  =  Ø
  • A ∖ Ø  =  A

Other applications


In the LaTeX
LaTeX

LaTeX is a document markup language and Word processor for the TeX typesetting program. Within the typesetting system, its name is styled as ....
 typesetting language, the command \setminus is usually used for rendering a set difference symbol, which is similar to a backslash
Backslash

The backslash is a typographical mark used chiefly in computing. It was first introduced to computers in 1960 by Bob Bemer. Sometimes called a reverse solidus or an oblique, it is the mirror image of the common slash ....
 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. A variant \smallsetminus is available in the amssymb package.

Some programming languages allow for manipulation of sets as data structures
Set (computer science)

In computer science, a set is a collection of certain values, without any particular Canonical order, and no repeated values. It corresponds with a finite set in mathematics....
, using these operators or functions to construct the difference of sets a and b:

Mathematica
Mathematica

Mathematica is a computational software program used widely in scientific, engineering, and mathematical fields and other areas of technical computing....
Complement


MATLAB
MATLAB

MATLAB is a Numerical analysis environment and programming language. Maintained by The MathWorks, MATLAB allows easy matrix manipulation, plotting of function and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages....
setdiff


Python
Python (programming language)

Python is a general-purpose high-level programming language. Its design philosophy emphasizes code readability. Python's core syntax and semantics are Minimalism , while the standard library is large and comprehensive....
diff = a.difference(b)
diff = a - b


Java
Java (programming language)

Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
diff = a.clone; diff.removeAll(b);


See also

  • Algebra of sets
    Algebra of sets

    The algebra of sets develops and describes the basic properties and laws of Set , the set-theoretic operations of union , intersection , and complement and the binary relation of set equality and set subset....
  • Naive set theory
    Naive set theory

    Naive set theory is one of several theories of sets used in the discussion of the foundations of mathematics. The informal content of this naive set theory supports both the aspects of mathematical sets familiar in discrete mathematics , and the everyday usage of set theory concepts in most contemporary mathematics....
  • Symmetric difference
    Symmetric difference

    In mathematics, the symmetric difference of two Set is the set of elements which are in one of the sets, but not in both. This operation is the set-theoretic kin of the exclusive disjunction in Boolean logic....