S.Albayrak Anasayfa Kategoriler

3.2 Preliminaries: set theory

  Definition of set and power set
  Operations between sets
  Relations, partitions, and quotients

In this section, we will quickly review the first chapter of Algebra: Chapter 0.1 As explicitly stated there, this will not be a proper treatment; in fact, we will even further simplify (and make it even somewhat less rigorous) what is contained in that chapter.

Definition of set and power set

A set is a collection of objects, and its elements determine what the set is. What an element is a deep question that we will avoid, but clearly not everything can be an element. For instance, not all sets can be elements for other sets; if they could, then we would construct a set A of “all sets that do not contain themselves”. Clearly such a set has to contain itself, which leads to a contradiction: infamous Russell’s paradox! The resolution is that A is not a set to begin with: indeed, we will consider category of sets, but not set of sets in general.

The reader should be familiar with the following basics, but for the sake of completeness, let us spell them out:

  1. Sets can be denoted as explicit list of elements within curly brackets, e.g. A = {1, 2, 3}.
  2. Sets are orderless: {1, 2, 3} = {1, 3, 2}.
  3. Ordered sets are denoted with round brackets: (1, 2, 3)(1, 3, 2). In fact, an ordered set can be constructed via the standard sets as well, e.g.

    (1, 2, 3) {{1},{1, 2},{1, 2, 3}} (3.1) (1, 3, 2) {{1},{1, 3},{1, 2, 3}} (3.2)
  4. Duplication of elements do not change a set: {1, 2, 3} = {1, 1, 2, 3} = {1, 3, 2, 1, 2, 3}
  5. Three dots are used to infer infinitely many more elements that would belong to the obvious pattern: {,1, 1, 3, 5,} denotes the set of all odd integers.
  6. Despite being mostly obvious, the inferred pattern is inherently ambiguous. A more rigorous way is to use a predicate in the set comprehension2; there are two ways to do this:

    For example, the first way to denote odd integers (instead of {,1, 1, 3, 5,}) would be {a |(n )a = 2n + 1}, whereas the second one is {2n + 1|n }.

  7. In the last item above, we used two well-known mathematical objects: common set notation (i.e. for integers) and quantifiers (i.e. for there exists...). For completeness, we will need to know

    1. ,N,Z,Q,R,C denote the empty set and the set of natural, integral, rational, real, and complex numbers respectively.
    2. ,,! denote there exists …, for all …, and there exists a unique … respectively.

      It is no coincidence that I put the dots to the right of the expressions for the quantifiers; one should read them as in a sentence, hence their order matters. For instance

      (a )(b )b = 2a  For all integers, there exists another integer which is twice the former. (b )(a )b = 2a  There exists an integer that is twice all integers.

      Obviously, the first expression is correct whereas the second one is false; but more importantly, they are different expressions!

  8. The standard notation to show that a set A is a subset of set B is A B or A B. The possibility of A = B is ruled out in the first notation (and hence A is called a proper subset), whereas it is still possible in the second notation.3 In terms of logic, A B (i.e. inclusion of sets) corresponds to the relation (x)x A x B. Clearly, we have the relations A and A A; likewise, A B B A means A = B.
  9. |S| denotes the number of elements in the set S: if the set is infinite, we write |S| = . As expected, S T |S| |T |.
  10. 𝒫(S) denotes the power set of S: the set whose elements are the subsets of the set S. If S is finite, we have |𝒫(S)| = 2 |S|, which is why power sets are loosely denoted as 2S as well.

Operations between sets

There will be 6 important operations on sets that we need to know:

  1. The union denoted by , e.g. {1, 2, 3}{3, 4, 5} = {1, 2, 3, 4, 5}
  2. The intersection denoted by , e.g. {1, 2, 3}{3, 4, 5} = {3}. S and T are called disjoint if S T =
  3. The difference denoted by , e.g. {1, 2, 3}{3, 4, 5} = {1, 2}. It is also called the complement of a subset T in a set S, i.e. S T.
  4. The disjoint union denoted by , e.g. {1, 2, 3}{3, 4, 5} = {(1, 1), (2, 1), (3, 1), (3, 2), (4, 2), (5, 2)}
  5. The Cartesian product denoted by ×, e.g.

    {1, 2, 3}×{3, 4, 5} = {(1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5), (3, 3), (3, 4), (3, 5)}

    The product of a set with itself is often denoted as if it is a regular number, i.e. A × A = A2, A × A × A = A3, etc.

  6. Quotient by an equivalence relation (more on this below).

Relations, partitions, and quotients

1See https://books.google.com.tr/books?id=h4dNEAAAQBAJ.

2Set comprehension, or set abstraction means the way to build a set. See https://en.wikipedia.org/wiki/Set-builder_notation.

3This differs from the notation and explanation of Algebra: Chapter 0 (see page 3), but we will stick to this notation instead.