Complement (set theory)

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Multiple image

In set theory, the complement of a set Template:Mvar, often denoted by Ac (or Template:Math),[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

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 Template:Math is a non-empty, proper subset of Template:Math, then Template:Math is a partition of Template:Math.

Relative complement

Definition

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

File:Relative compliment.svg
The relative complement of Template:Math in Template:Math: BAc=BA

The relative complement of Template:Math in Template:Math 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 Template:Math is taken from Template:Math and Template:Math from Template:Math.

Formally: BA={xB:xA}.

Examples

Properties

Template:See also

Let Template:Math, Template:Math, and Template:Math 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

Template:See also

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

Template:Reflist Template:Reflist

References

Template:Set theory Template:Mathematical logic

  1. Template:Cite web
  2. 2.0 2.1 Template:Cite web
  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. Template:Harvnb.
  5. 5.0 5.1 5.2 Template:Harvnb.
  6. Template:Harvnb.
  7. [1] Template:Webarchive The Comprehensive LaTeX Symbol List