Complement (set theory)

From Wikipedia, the free encyclopedia
(Redirected from Relative complement)
Jump to navigation Jump to search

Template:Short description Script error: No such module "Multiple image".

In set theory, the complement of a set Template:Mvar, often denoted by Ac (or AScript error: No such module "Check for unknown parameters".),[1] is the set of elements not in Template:Mvar.[2]

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

The relative complement of Template:Mvar with respect to a set Template:Mvar, also termed the set difference of Template:Mvar and Template:Mvar, written BA, is the set of elements in Template:Mvar that are not in Template:Mvar.

Absolute complement

File:Venn10.svg
The absolute complement of the white disc is the red region

Definition

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

The absolute complement of Template:Mvar is usually denoted by Ac. Other notations include A,A,[2] UA, and A.[4]

Examples

Properties

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

De Morgan's laws:[5]

  • (AB)c=AcBc.
  • (AB)c=AcBc.

Complement laws:[5]

  • AAc=U.
  • AAc=.
  • c=U.
  • Uc=.
  • If AB, then BcAc.
    (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:

  • AB=ABc.
  • (AB)c=AcB=Ac(BA).

Relationship with a set difference:

  • AcBc=BA.

The first two complement laws above show that if AScript error: No such module "Check for unknown parameters". is a non-empty, proper subset of UScript error: No such module "Check for unknown parameters"., then {A, A}Script error: No such module "Check for unknown parameters". is a partition of UScript error: No such module "Check for unknown parameters"..

Relative complement

Definition

If AScript error: No such module "Check for unknown parameters". and BScript error: No such module "Check for unknown parameters". are sets, then the relative complement of AScript error: No such module "Check for unknown parameters". in BScript error: No such module "Check for unknown parameters".,[5] also termed the set difference of BScript error: No such module "Check for unknown parameters". and AScript error: No such module "Check for unknown parameters".,[6] is the set of elements in BScript error: No such module "Check for unknown parameters". but not in AScript error: No such module "Check for unknown parameters"..

File:Relative compliment.svg
The relative complement of AScript error: No such module "Check for unknown parameters". in BScript error: No such module "Check for unknown parameters".: BAc=BA

The relative complement of AScript error: No such module "Check for unknown parameters". in BScript error: No such module "Check for unknown parameters". is denoted BA according to the ISO 31-11 standard. It is sometimes written BA, 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 ba, where bScript error: No such module "Check for unknown parameters". is taken from BScript error: No such module "Check for unknown parameters". and aScript error: No such module "Check for unknown parameters". from AScript error: No such module "Check for unknown parameters"..

Formally: BA={xB:xA}.

Examples

Properties

Script error: No such module "Labelled list hatnote".

Let AScript error: No such module "Check for unknown parameters"., BScript error: No such module "Check for unknown parameters"., and CScript error: No such module "Check for unknown parameters". be three sets in a universe Template:Mvar. The following identities capture notable properties of relative complements:

  • C(AB)=(CA)(CB).
  • C(AB)=(CA)(CB).
  • C(BA)=(CA)(CB),
    with the important special case C(CA)=(CA) demonstrating that intersection can be expressed using only the relative complement operation.
  • (BA)C=(BC)A=B(CA).
  • (BA)C=(BC)(AC).
  • AA=.
  • A=.
  • A=A.
  • AU=.
  • If AB, then CACB.
  • ABC is equivalent to CBA.

Complementary relation

A binary relation R is defined as a subset of a product of sets X×Y. The complementary relation R¯ is the set complement of R in X×Y. The complement of relation R can be written R¯ = (X×Y)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

Script error: No such module "Labelled list hatnote".

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 (as opposed to C) is produced by \complement. (It corresponds to the Unicode symbol Template:Unichar.)

See also

Notes

<templatestyles src="Reflist/styles.css" />

  1. Script error: No such module "citation/CS1".
  2. a b Script error: No such module "citation/CS1".
  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. Script error: No such module "Footnotes"..
  5. a b c Script error: No such module "Footnotes"..
  6. Script error: No such module "Footnotes"..
  7. [1] Template:Webarchive The Comprehensive LaTeX Symbol List

Script error: No such module "Check for unknown parameters". <templatestyles src="Reflist/styles.css" />

Script error: No such module "Check for unknown parameters".

References

  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".

External links

  • Script error: No such module "Template wrapper".
  • Script error: No such module "Template wrapper".

Template:Set theory Template:Mathematical logic