Algebra of sets
The algebra of sets defines the properties and laws of sets, the set-theoretic operations of union, intersection, and complementation and the relations of set equality and set inclusion. It also provides systematic procedures for evaluating expressions, and performing calculations, involving these operations and relations.
Any set of sets closed under the set-theoretic operations forms a Boolean algebra with the join operator being union, the meet operator being intersection, the complement operator being set complement, the bottom being and the top being the universe set under consideration.
Fundamentals
The algebra of sets is the set-theoretic analogue of the algebra of numbers. Just as arithmetic addition and multiplication are associative and commutative, so are set union and intersection; just as the arithmetic relation "less than or equal" is reflexive, antisymmetric and transitive, so is the set relation of "subset".It is the algebra of the set-theoretic operations of union, intersection and complementation, and the relations of equality and inclusion. For a basic introduction to sets see the article on sets, for a fuller account see naive set theory, and for a full rigorous axiomatic treatment see axiomatic set theory.
The fundamental properties of set algebra
The binary operations of set union and intersection satisfy many identities. Several of these identities or "laws" have well established names.The union and intersection of sets may be seen as analogous to the addition and multiplication of numbers. Like addition and multiplication, the operations of union and intersection are commutative and associative, and intersection distributes over union. However, unlike addition and multiplication, union also distributes over intersection.
Two additional pairs of properties involve the special sets called the empty set Ø and the universe set ; together with the complement operator. The empty set has no members, and the universe set has all possible members.
The identity expressions say that, just like 0 and 1 for addition and multiplication, Ø and U are the identity elements for union and intersection, respectively.
Unlike addition and multiplication, union and intersection do not have inverse elements. However the complement laws give the fundamental properties of the somewhat inverse-like unary operation of set complementation.
The preceding five pairs of formulae—the commutative, associative, distributive, identity and complement formulae—encompass all of set algebra, in the sense that every valid proposition in the algebra of sets can be derived from them.
Note that if the complement formulae are weakened to the rule, then this is exactly the algebra of propositional linear logic.
The principle of duality
Each of the identities stated above is one of a pair of identities such that each can be transformed into the other by interchanging ∪ and ∩, and also Ø and U.These are examples of an extremely important and powerful property of set algebra, namely, the principle of duality for sets, which asserts that for any true statement about sets, the dual statement obtained by interchanging unions and intersections, interchanging U and Ø and reversing inclusions is also true. A statement is said to be self-dual if it is equal to its own dual.
Some additional laws for unions and intersections
The following proposition states six more important laws of set algebra, involving unions and intersections.PROPOSITION 3: For any subsets A and B of a universe set U, the following identities hold:
As noted above, each of the laws stated in proposition 3 can be derived from the five fundamental pairs of laws stated above. As an illustration, a proof is given below for the idempotent law for union.
Proof:
The following proof illustrates that the dual of the above proof is the proof of the dual of the idempotent law for union, namely the idempotent law for intersection.
Proof:
Intersection can be expressed in terms of set difference :
Intersection and unions of arbitrary collections of sets
Let be a collection of sets.- In particular,
- More generally, suppose that for each i ∈ I, Ji is some non-empty index set and for each j ∈ Ji, Si,j is a set. Let be the set of all functions f on I such that for each i ∈ I, f ∈ Ji. Then
Some additional laws for complements
The following proposition states five more important laws of set algebra, involving complements.PROPOSITION 4: Let A and B be subsets of a universe U, then:
Notice that the double complement law is self-dual.
The next proposition, which is also self-dual, says that the complement of a set is the only set that satisfies the complement laws. In other words, complementation is characterized by the complement laws.
PROPOSITION 5: Let A and B be subsets of a universe U, then:
The algebra of inclusion
The following proposition says that inclusion, that is the binary relation of one set being a subset of another, is a partial order.PROPOSITION 6: If A, B and C are sets then the following hold:
The following proposition says that for any set S, the power set of S, ordered by inclusion, is a bounded lattice, and hence together with the distributive and complement laws above, show that it is a Boolean algebra.
PROPOSITION 7: If A, B and C are subsets of a set S then the following hold:
The following proposition says that the statement is equivalent to various other statements involving unions, intersections and complements.
PROPOSITION 8: For any two sets A and B, the following are equivalent:
The algebra of relative complements
The following proposition lists several identities concerning relative complements and set-theoretic differences.PROPOSITION 9: For any universe U and subsets A, B, and C of U, the following identities hold:
- So if C ⊆ B, then
Sets and maps
Throughout, f : X → Y will be a function between two sets, S, S2, and will be subsets of X, and T, T2, and will be subsets of X, where we assume that A and B are not empty.Recall that S is said to be f-saturated or simply saturated if.
Images and preimages of unions and intersections
- .
- * If all Sa are f-saturated then equality holds and be will be f-saturated.
Images and preimages
- with equality if T ⊆ Im f. Thus:
- .
- .
- For equality to hold, it suffices for f to be injective.
Complements
- .
- f ∖ f ⊆ f with equality if . Thus:
- , or written differently,.
- If f is surjective then Y ∖ f ⊆ f or written differently, fC ⊆ f.
Restrictions
If is the restriction of f to S, then:- .
Products
Let be a collection of sets and for each c ∈ B, let denote the canonical projection onto Yc and let Fc : X → Yc be a map.Let be the unique map such that for all b ∈ B,.
- For any,.
- If there is a B-indexed collection of subsets Ub ⊆ Yb such that then equality holds; that is,.