We generally use uppercase letters as labels for sets and lowercase letters as labels for their elements. We write to indicate that is an element of .
We may specify a set by enumeration, e.g., is a set of three natural numbers. Alternatively, we may specify the same set by the specification of a condition satisfied by all, and only its elements, e.g., is an even natural number less than
Definition 2.1 (Subset) A set is a subset of another set , written , if every element of is an element of . A set is a proper subset of if is a subset of but is not a subset of .
Proposition 2.1 (Extensionality) If is a subset of and is a subset of , then is the same set as . That is, .
Example 2.1 is perfect number less than . A perfect number is the sum of its proper divisors, e.g, 6 is perfect because it is a sum of 1, 2, and 3.
On the one hand,
is perfect natural number less than
because 6 is a perfect natural number, and
On the other,
is perfect natural number less than
because no other natural number less than 10 is perfect.
By Extensionality,
is perfect natural number less than
One may think that no mater what objects may be, there is a collection of them. Or, otherwise put, for each condition , there is a collection of all and only those objects satisfying the condition . That is, there is a set of the form . But that would be a mistake.
There is no set of objects such that . That is, there is no set of the from .
The argument is by indirect proof or reductio at adsurdum, namely, we reach a contradiction from the assumption that such a set exists, call it . That is, .
if , then does not satisfy the condition , which means that .
if , then satisfies the condition , which means that .
We conclude that if, and only if, , which leads to contradiction.
Exercise 2.1 Russell’s paradox relies on the validity of a first-order schema:
Russell substitutes for , but similar observations result from other substitutions. Justify the observation:
No website links to all and only those websites that do not link to themselves.
That is, some websites are such that there is no way for a website to link to them and only them.
In response to Russell’s paradox, we limit to collections we may construct from given collections in accordance to the axioms of modern set theory.
Proposition 2.2 (Separation) If is a set and is a condition on elements of , then there is a set of exactly those elements of which satisfy the condition . That is,
The axiom of separation yields the existence of certain sets conditional on the existence of a prior set of which they are subsets. To secure the inconditional existence of a set, we require another axiom.
Proposition 2.3 (Empty Set) There is a set without members which we label . That is, is the set .
We obtain further sets by means of further axioms:
Proposition 2.4 (Pair Set) Given two objects and , there is a set whose elements are exactly and . We write for the pair set of and .
Other axioms make sure that sets are closed under other familiar operations.
Relations
We will construe relations as sets of ordered pairs. But an ordered pair is not just a pair set. Instead, we define ordered pairs as special sets from which we can recover the two components of the pair in a certain order.
Definition 2.2 (Ordered Pair) An ordered pair is a doubleton set . We will write that its first element is and that its second element is .
There are alternative definitions of ordered pair, but what matters in all of them is to have the means to encode the fact that is the first element of the pair by the fact that it is the member of the singleton in the unordered pair.
Proposition 2.5 An ordered pair is the same as the ordered pair if, and only if, is the same object as and is the same object as .
Proof. We first unfold the definition of as \(\{\{a\}\,{a, b\}\}\) and as . We now argue that if is the same set as , then and .
We distinguish two cases:
If , then is , which is just . So, if is the same set as , then is the same set as , which means that and and .
If , then the singleton and the doubleton must correspond to and , respectively, which requires that and .
We can now identify a relation with a set of ordered pairs.
Proposition 2.6 The Cartesian Product of two sets and is the set of ordered pairs whose first element belongs to and whose second element belongs to . That is, the Cartesian Product of two sets and is:
Definition 2.3 (Relation) If is a set, is a binary relation on if, and only if, is a subset of .
Exercise 2.2 How many binary relations are there on a given set ?
If is a relation on , we sometimes write or for .
Properties of Relations
We now specify a variety of properties a relation may exemplify.
Definition 2.4 If is a binary relation on a set ,
is reflexive on iff for every element ,
is irreflexive on iff for every element , for every element in .
is non-reflexive on iff for some element , .
Example 2.2 Consider the set of English words . Then:
shares at least one letter with is a reflexive relation on .
is an antonym of is an irreflexive relation on .
is backwards is a non-reflexive relation on .2 Consider the word ‘radar’ for example.
Definition 2.5 If is a binary relation on a set ,
is symmetric on iff for all elements , if , then .
is asymmetric on iff for all elements , if , then .
is non-symmetric on iff for some elements , and .
is antisymmetric on iff for all elements , if , then only if
Example 2.3 Consider the set of English words . Then:
shares at least one letter with is a symmetric relation on .
has fewer letters than is an asymmetric relation on .
is no later than in the lexicographical order is an anti-symmetric relation on .
Definition 2.6 If is a binary relation on a set ,
is transitive on iff for all elements , if and , then .
is intransitive on iff for all elements , if and , then .
is non-transitive on iff for some elements , if and , then .
Example 2.4 Consider the set of English words . Then:
is no later than in the lexicographical order is a transitive relation on .
is an antonym of is an intransitive relation on .
is backwards is a non-transitive relation on .3 Consider the words ‘flow’ and ‘wolf’, for example.
Definition 2.7 (Equivalence Relation) A binary relation on a set is an equivalence relation on iff
is reflexive on ,
is symmetric on , and
is transitive on .
Exercise 2.3 Which of the following binary relations on the set of English words is an equivalence relation on ?
is a synonym for
is an antonym of
Given an equivalence relation on a set , we will write that two elements are -equivalent when . Equivalence relations induce a partition of the relevant set into equivalence classes.
Definition 2.8 (Equivalence Class) If a binary relation is an equivalence relation on a set , for each , the equivalence class of , written is the set of elements of that are -equivalent to it:
The quotient of under is the set of equivalence classes induced by :
Example 2.5 Given a set of undergraduate students enrolled at USC, consider the following binary relation on :
is in the same year as .
is an equivalence relation on : is reflexive, symmetric, and transitive on .
Given a student , the equivalence class is the set of students in the same year as . If is a freshman, then will be the set of freshman students, if is a sophomore, then will be the set of sophomore students, etc.
The quotient of under , , consists of four sets: freshman, sophomore, junior, and senior students.
It will later prove important to note that there is a further characterization of equivalence relations in terms of an alternative structural feature of binary relations:
Definition 2.9 If is a binary relation on a set , then:
is euclidean on iff for all elements , if if and , then .
Here is the alternative characterization of an equivalence relation we seek:
Proposition 2.7 If is a binary relation on a set , then is an equivalence relation on if, and only if, is reflexive on and is euclidean on .
This is one of the goals for your first assignment. We close with three more structural features of binary relations we will eventually consider:
Definition 2.10 If is a binary relation on a set , then:
is serial on iff for every , there is some such that .
is convergent on iff for every , if and , then for some , and .
is connected on iff for every , if and , then or .