4.1: Basic Notions of Set Theory

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$

( \newcommand{\kernel}{\mathrm{null}\,}\) $$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\id}{\mathrm{id}}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\kernel}{\mathrm{null}\,}$$

$$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$

$$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$

$$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

$$\newcommand{\vectorA}[1]{\vec{#1}} % arrow$$

$$\newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow$$

$$\newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vectorC}[1]{\textbf{#1}}$$

$$\newcommand{\vectorD}[1]{\overrightarrow{#1}}$$

$$\newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}$$

$$\newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}}$$

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\avec}{\mathbf a}$$ $$\newcommand{\bvec}{\mathbf b}$$ $$\newcommand{\cvec}{\mathbf c}$$ $$\newcommand{\dvec}{\mathbf d}$$ $$\newcommand{\dtil}{\widetilde{\mathbf d}}$$ $$\newcommand{\evec}{\mathbf e}$$ $$\newcommand{\fvec}{\mathbf f}$$ $$\newcommand{\nvec}{\mathbf n}$$ $$\newcommand{\pvec}{\mathbf p}$$ $$\newcommand{\qvec}{\mathbf q}$$ $$\newcommand{\svec}{\mathbf s}$$ $$\newcommand{\tvec}{\mathbf t}$$ $$\newcommand{\uvec}{\mathbf u}$$ $$\newcommand{\vvec}{\mathbf v}$$ $$\newcommand{\wvec}{\mathbf w}$$ $$\newcommand{\xvec}{\mathbf x}$$ $$\newcommand{\yvec}{\mathbf y}$$ $$\newcommand{\zvec}{\mathbf z}$$ $$\newcommand{\rvec}{\mathbf r}$$ $$\newcommand{\mvec}{\mathbf m}$$ $$\newcommand{\zerovec}{\mathbf 0}$$ $$\newcommand{\onevec}{\mathbf 1}$$ $$\newcommand{\real}{\mathbb R}$$ $$\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}$$ $$\newcommand{\laspan}[1]{\text{Span}\{#1\}}$$ $$\newcommand{\bcal}{\cal B}$$ $$\newcommand{\ccal}{\cal C}$$ $$\newcommand{\scal}{\cal S}$$ $$\newcommand{\wcal}{\cal W}$$ $$\newcommand{\ecal}{\cal E}$$ $$\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}$$ $$\newcommand{\gray}[1]{\color{gray}{#1}}$$ $$\newcommand{\lgray}[1]{\color{lightgray}{#1}}$$ $$\newcommand{\rank}{\operatorname{rank}}$$ $$\newcommand{\row}{\text{Row}}$$ $$\newcommand{\col}{\text{Col}}$$ $$\renewcommand{\row}{\text{Row}}$$ $$\newcommand{\nul}{\text{Nul}}$$ $$\newcommand{\var}{\text{Var}}$$ $$\newcommand{\corr}{\text{corr}}$$ $$\newcommand{\len}[1]{\left|#1\right|}$$ $$\newcommand{\bbar}{\overline{\bvec}}$$ $$\newcommand{\bhat}{\widehat{\bvec}}$$ $$\newcommand{\bperp}{\bvec^\perp}$$ $$\newcommand{\xhat}{\widehat{\xvec}}$$ $$\newcommand{\vhat}{\widehat{\vvec}}$$ $$\newcommand{\uhat}{\widehat{\uvec}}$$ $$\newcommand{\what}{\widehat{\wvec}}$$ $$\newcommand{\Sighat}{\widehat{\Sigma}}$$ $$\newcommand{\lt}{<}$$ $$\newcommand{\gt}{>}$$ $$\newcommand{\amp}{&}$$ $$\definecolor{fillinmathshade}{gray}{0.9}$$

In modern mathematics, there is an area called Category theory1 which studies the relationships between different areas of mathematics. More precisely, the founders of category theory noticed that essentially the same theorems and proofs could be found in many different mathematical fields – with only the names of the structures involved changed. In this sort of situation, one can make what is known as a categorical argument in which one proves the desired result in the abstract, without reference to the details of any particular field. In effect this allows one to prove many theorems at once – all you need to convert an abstract categorical proof into a concrete one relevant to a particular area is a sort of key or lexicon to provide the correct names for things. Now, category theory probably shouldn’t really be studied until you have a background that includes enough different fields that you can make sense of their categorical correspondences. Also, there are a good many mathematicians who deride category theory as “abstract nonsense.” But, as someone interested in developing a facility with proofs, you should be on the lookout for categorical correspondences. If you ever hear yourself utter something like “well, the proof of that goes just like the proof of the (insert weird technical-sounding name here) theorem” you are probably noticing a categorical correspondence.

Okay, so category theory won’t be of much use to you until much later in your mathematical career (if at all), and one could argue that it doesn’t really save that much effort. Why not just do two or three different proofs instead of learning a whole new field so we can combine them into one? Nevertheless, category theory is being mentioned here at the beginning of the chapter on sets. Why?

We are about to see our first example of a categorical correspondence. Logic and Set theory are different aspects of the same thing. To describe a set people often quote Kurt Gödel – “A set is a Many that allows itself to be thought of as a One.” (Note how the attempt at defining what is really an elemental, undefinable concept ends up sounding rather mystical.) A more practical approach is to think of a set as the collection of things that make some open sentence true.2 [11]

Recall that in Logic the atomic concepts were “true”, “false”, “sentence” and “statement.” In Set theory, they are “set”, “element” and “membership.” These concepts (more or less) correspond to one another. In most books, a set is denoted either using the letter $$M$$ (which stands for the German word “menge”) or early alphabet capital roman letters – $$A$$, $$B$$, $$C$$, et cetera. Here, we will often emphasize the connection between sets and open sentences in Logic by using a subscript notation. The set that corresponds to the open sentence $$P(x)$$ will be denoted $$S_P$$, we call $$S_P$$ the truth set of $$P(x)$$.

$$S_P = \{x | P(x)\}$$

On the other hand, when we have a set given in the absence of any open sentence, we’ll be happy to use the early alphabet, capital roman letters convention – or frankly, any other letters we feel like! Whenever we have a set $$A$$ given, it is easy to state a logical open sentence that would correspond to it. The membership question: $$M_A(x) =$$ “Is $$x$$ in the set $$A$$?” Or, more succinctly, $$M_A(x) = “x ∈ A”$$. Thus the atomic concept “true” from Logic corresponds to the answer “yes” to the membership question in Set theory (and of course “false” corresponds to “no”).

There are many interesting foundational issues which we are going to sidestep in our current development of Set theory. For instance, recall that in Logic we always worked inside some “universe of discourse.” As a consequence of the approach we are taking now, all of our set theoretic work will be done within some unknown “universal” set. Attempts at specifying (a priori) a universal set for doing mathematics within are doomed to failure. In the early days of the twentieth century they attempted to at least get Set theory itself on a firm footing by defining the universal set to be “the set of all sets” – an innocuous sounding idea that had funny consequences (we’ll investigate this in Section 4.5).

In Logic we had “sentences” and “statements,” the latter were distinguished as having definite truth values. The corresponding thing in Set theory is that sets have the property that we can always tell whether a given object is or is not in them. If it ever becomes necessary to talk about “sets” where we’re not really sure what’s in them we’ll use the term collection.

You should think of a set as being an unordered collection of things, thus $$\{\text{popover }, 1, \text{ froggy}\}$$ and $$\{1, \text{ froggy}, \text{ popover}\}$$ are two ways to represent the same set. Also, a set either contains, or doesn’t contain, a given element. It doesn’t make sense to have an element in a set multiple times. By convention, if an element is listed more than once when a set is listed we ignore the repetitions. So, the sets $$\{1, 1\}$$ and $$\{1\}$$ are really the same thing. If the notion of a set containing multiple instances of its elements is needed there is a concept known as a multiset that is studied in Combinatorics. In a multiset, each element is preceded by a so-called repetition number which may be the special symbol $$∞$$ (indicating an unlimited number of repetitions). The multiset concept is useful when studying puzzles like “How many ways can the letters of MISSISSIPPI be rearranged?” because the letters in MISSISSIPPI can be expressed as the multiset $$\{1 · M, 4 · I, 2 · P, 4 · S\}$$. With the exception of the following exercise, in the remainder of this chapter we will only be concerned with sets, never multisets

Practice

(Not for the timid!) How many ways can the letters of MISSISSIPPI be arranged?

If a computer scientist were seeking a data structure to implement the notion of “set,” he’d want a sorted list where repetitions of an entry were somehow disallowed. We’ve already noted that a set should be thought of as an unordered collection, and yet it’s been asserted that a sorted list would be the right vehicle for representing a set on a computer. Why? One reason is that we’d like to be able to tell (quickly) whether two sets are the same or not. If the elements have been presorted it’s easier.

Consider the difficulty in deciding whether the following two sets are equal.

$$S_1 = \{♠, 1, e, π, ♦, A, Ω, h, ⊕, \epsilon\}$$

$$S_2 = \{A, 1, \epsilon, π, e, s, ⊕, ♠, Ω, ♦\}$$

If instead we compare them after they’ve been sorted, the job is much easier.

$$S_1 = \{1, A, ♦, e, \epsilon, h, Ω, ⊕, π, ♠\}$$

$$S_2 = \{1, A, ♦, e, \epsilon, Ω, ⊕, π, s, ♠\}$$

This business about ordered versus unordered comes up fairly often so it’s worth investing a few moments to figure out how it works. If a collection of things that is inherently unordered is handed to us we generally put them in an order that is pleasing to us. Consider receiving five cards from the dealer in a card game, or extracting seven letters from the bag in a game of Scrabble. If, on the other hand, we receive a collection where order is important we certainly may not rearrange them. Imagine someone receiving the telephone number of an attractive other but writing it down with the digits sorted in increasing order!

Practice

Consider a universe consisting of just the first $$5$$ natural numbers $$U = \{1, 2, 3, 4, 5\}$$. How many different sets having $$4$$ elements are there in this universe? How many different ordered collections of $$4$$ elements are there?

The last exercise suggests an interesting question. If you have a universal set of some fixed (finite) size, how many different sets are there? Obviously, you can’t have any more elements in a set than are in your universe. What’s the smallest possible size for a set? Many people would answer $$1$$ – which isn’t unreasonable! – after all a set is supposed to be a collection of things, and is it really possible to have a collection with nothing in it? The standard answer is $$0$$ however, mostly because it makes a certain counting formula work out nicely. A set with one element is known as a singleton set (note the use of the indefinite article). A set with no elements is known as the empty set (note the definite article). There are as many singletons as there are elements in your universe. They aren’t the same though, for example $$1 \neq \{1\}$$. There is only one empty set and it is denoted $$∅$$ – irrespective of the universe we are working in.

Let’s have a look at a small example. Suppose we have a universal set with $$3$$ elements, without loss of generality, $$\{1, 2, 3\}$$. It’s possible to construct a set, whose elements are all the possible sets in this universe. This set is known as the power set of the universal set. Indeed, we can construct the power set of any set $$A$$ and we denote it with the symbol $$\mathcal{P}(A)$$. Returning to our example we have

$$\mathcal{P}(\{1, 2, 3\}) = \big\{ ∅, \{1\}, \{2\}, \{3\}, \{1, 2\}, \{1, 3\}, \{2, 3\}, \{1, 2, 3\} \big\}.$$

Practice

Find the power sets $$\mathcal{P}(\{1, 2\})$$ and $$P(\{1, 2, 3, 4\})$$.

Conjecture a formula for the number of elements (these are, of course, sets) in $$\mathcal{P}(\{1, 2, . . . n\})$$.

Hint: If your conjectured formula is correct you should see why these sets are named as they are.

One last thing before we end this section. The size (a.k.a. cardinality) of a set is just the number of elements in it. We use the very same symbol for cardinality as we do for the absolute value of a numerical entity. There should really never be any confusion. If $$A$$ is a set then $$|A|$$ means that we should count how many things are in $$A$$. If $$A$$ isn’t a set then we are talking about the ordinary absolute value

Exercises:

Exercise $$\PageIndex{1}$$

What is the power set of $$∅$$?

Hint

If you got the last exercise in the chapter you’d know that this power set has $$2^0 = 1$$ element.

Exercise $$\PageIndex{2}$$

Try iterating the power set operator. What is $$\mathcal{P}(\mathcal{P}(∅))$$? What is $$\mathcal{P}(\mathcal{P}(\mathcal{P}(∅)))$$?

Exercise $$\PageIndex{3}$$

Determine the following cardinalities.

1. $$A = \{1, 2, \{3, 4, 5\}\} |A| = \underline{\;\;\;\;\;\;\;\;\;\;\;}$$
2. $$B = \{\{1, 2, 3, 4, 5\}\} |B| = \underline{\;\;\;\;\;\;\;\;\;\;\;}$$
Exercise $$\PageIndex{4}$$

What, in Logic, corresponds the notion $$∅$$ in Set theory?

Exercise $$\PageIndex{5}$$

What, in Set theory, corresponds to the notion $$t$$ (a tautology) in Logic?

Exercise $$\PageIndex{6}$$

What is the truth set of the proposition $$P(x) =$$ “$$3$$ divides $$x$$ and $$2$$ divides $$x$$”?

Exercise $$\PageIndex{7}$$

Find a logical open sentence such that $$\{0, 1, 4, 9, . . .\}$$ is its truth set.

Exercise $$\PageIndex{8}$$

How many singleton sets are there in the power set of $$\{a, b, c, d, e\}$$? “Doubleton” sets?

Exercise $$\PageIndex{9}$$

How many $$8$$ element subsets are there in

$$P(\{a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p\})?$$

Exercise $$\PageIndex{10}$$

How many singleton sets are there in the power set of $$\{1, 2, 3, . . . n\}$$?

This page titled 4.1: Basic Notions of Set Theory is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Joseph Fields.