The complement of a subset of a set is the set of all elements of not contained in :
(Besides , there are many other notations, such as , , , , and so forth.)
Notice that , while by the principle of excluded middle.
A complement of an element of a lattice is an element such that and . Note that in general, complements need not be unique; for example, in the lattice of vector subspaces of a 2-dimensional vector space over a field , a 1-dimensional subspace will have as many complements as there are elements of . However, in some cases complements will be unique, for example in a distributive lattice, in which case it is denoted (or , etc.).
If every element has a complement, one speaks of a complemented lattice. Examples are Boolean algebras, and in fact complemented distributive lattices are the same thing as Boolean algebras (in the sense that the category of Boolean algebras is equivalent to the category of complemented distributive lattices).
More generally, the pseudocomplement of an element of a Heyting algebra is given by . This satisfies but not in general. This case includes the complement of a subset even in constructive mathematics.
In another direction, the complement of a complemented subobject of an object in a coherent category is the unique subobject such that is the initial object and .
The complement of a truth value (seen as a subset of the point) is called its negation.
In constructive mathematics, the denial inequality is not a tight apartness relation, and sets in general do not have a tight apartness relation. This means that every set with a tight apartness relation has two notions of inequality, the normal denial inequality and the tight apartness relation . Thus, there are two notions of complement. There is the usual notion of complement, where given a set , every element in the complement of a subset is not equal to any element in . Then there are strict complements, where given a set with a tight inequality relation , every element in the strict complement of a subset is apart from every element in .
Last revised on August 24, 2024 at 18:29:06. See the history of this page for a list of all contributions to it.