Set Theory Foundations


Set Theory Foundations

Corey
Welcome to the first lecture on content in Real Analysis 1. Before we build an axiomatic structure for the real numbers, we need a clear understanding of sets, especially subsets of the real number line. This is a preliminary lecture, but the notation and proof techniques we introduce will appear throughout the course.

Anna
So what exactly is a set? A set is a collection of objects, and those objects are called elements. We usually use capital letters such as A or B for sets, and lowercase letters such as x for elements.

Corey
Right. If x is an element of A, we write x belongs to A. The symbol means exactly that x is one of the objects in the set. For example, if A is a set of real numbers containing 3, then 3 belongs to A.

Anna
And if x is not in A, we can write that directly. We can also say that x belongs to the complement of A, written A complement. The complement consists of everything that is not in A, relative to the larger setting we are working in.

Corey
Since this course focuses mainly on subsets of the real numbers, that surrounding setting will generally be the real number line. Later, sets could involve objects such as functions, but for now our examples will be ordinary collections of real numbers.

Anna
There are several ways to describe a set. One is to list its elements explicitly. For instance, A could be the set containing pi, e, and 1. This is a finite set, and its cardinality is three because it has three elements.

Corey
Another way is to describe a property that all the elements satisfy. For example, A could be the set of all real numbers between 0 and 1, inclusive. We could also describe a pattern by listing positive even numbers: 2, 4, 6, 8, 10, and so on.

Anna
A more algebraic description of the positive even numbers is useful. We can write A as the set of real numbers x such that x equals 2j, where j is a natural number. The colon, or alternatively a vertical bar, means 'such that.'

Corey
Because the natural numbers in this course begin with 1, the expression 2j gives 2, 4, 6, 8, and so forth. So this notation describes the whole set without having to list every element individually.

Anna
There is an important logical warning about the informal idea that a set is just any collection of objects. Russell's paradox illustrates the problem. Imagine a collection R consisting of all objects that are not elements of themselves.

Corey
Now ask whether R is an element of itself. If R is in R, then by the definition of R it should not be in R. But if R is not in R, then it satisfies the condition for belonging to R, so it should be in R. The answer seems to be both yes and no.

Anna
That contradiction is Russell's paradox, named after Bertrand Russell. It shows that set theory requires more careful rules than simply putting any imaginable objects into a box. We will not study axiomatic set theory here, because subsets of the real line do not produce this particular problem.

Corey
Let's now establish the famous sets of numbers. In this course, the natural numbers are the counting numbers: 1, 2, 3, 4, and so on. Some books include zero in the natural numbers, and that is a valid convention, but here zero is excluded.

Anna
Excluding zero is also convenient when expressions such as 1 over n appear, because we do not need to keep reminding ourselves that n cannot be zero. So whenever this course uses the symbol for the natural numbers, it means the positive counting numbers.

Corey
The integers include the natural numbers, zero, and the negative counting numbers. So the integers include numbers such as negative 3, negative 2, negative 1, 0, 1, 2, and 3.

Anna
The rational numbers are numbers that can be written as ratios of integers. In other words, they have the form p over q, where p is an integer and q is a natural number, so the denominator is never zero. Examples include 3 over 5, negative 7, which is negative 7 over 1, and 22 over 11.

Corey
The word rational is related to ratio, which is a helpful way to remember the definition. Every integer is rational because it can be written with denominator 1.

Anna
The real numbers form the real number line, including numbers such as pi, e, and the square root of 2. The structure of the real numbers will be developed in later lectures, so for now we treat them as the large set from which our other examples are built.

Corey
The irrational numbers are the real numbers that cannot be written as ratios of integers. Equivalently, they are the real numbers that are not rational. In set notation, the irrational numbers are the real numbers minus the rational numbers, or the complement of the rational numbers within the real numbers.

Anna
At this stage, we will later prove that irrational numbers really do exist and that there are many more of them than rational numbers. Also remember the empty set: it is the set with no elements. It is not the same thing as the irrational numbers; the irrational numbers are a genuine collection of real numbers.

Corey
These familiar number systems form a chain of containment. Every natural number is an integer, every integer is rational, and every rational number is real. Symbolically, the natural numbers are a subset of the integers, which are a subset of the rationals, which are a subset of the reals.

Anna
Now let's define containment carefully. A set A is a subset of a set B if every element of A is also an element of B. In symbols, if x belongs to A, then x belongs to B. You can picture A as sitting inside B.

Corey
In this course, the ordinary subset symbol means general, non-strict containment. So A can be a subset of B even when A equals B. Some books use a subset-or-equal symbol for this idea, while reserving a different symbol for proper containment.

Anna
Proper containment means A is contained in B but A is not equal to B. In that case, there is at least one element in B that is not in A. For example, a set is always a subset of itself, but it is never a proper subset of itself.

Corey
A key proof strategy follows directly from the definition. To prove that one set is a subset of another, take an arbitrary element of the first set and show that it belongs to the second set. Set containment proofs should usually be carried out at the level of individual elements.

Anna
For example, suppose A is a subset of B. We want to prove that the complement of B is a subset of the complement of A. Take an arbitrary x in the complement of B. That means x is not in B.

Corey
Since every element of A is in B, an element that is not in B cannot be in A. Therefore x is not in A, which means x belongs to the complement of A. We have shown that every element of the complement of B belongs to the complement of A, so the containment is proved.

Anna
This is a direct proof because we simply unpacked the definitions and followed their logical consequences. It is important to finish by stating the set-level conclusion, rather than stopping after showing what happens to one arbitrary element.

Corey
Two sets are equal when each is a subset of the other. Thus, to prove A equals B, we prove both that A is a subset of B and that B is a subset of A. This is analogous to proving two numbers are equal by showing each is less than or equal to the other.

Anna
Consider the complement of the complement of A. First, take x in the complement of A complement. That means x is not in A complement, so x is in A. Therefore the complement of A complement is a subset of A.

Corey
For the reverse direction, take y in A. Then y is not in A complement, which means y belongs to the complement of A complement. So A is a subset of the complement of A complement. Since both containments hold, the complement of the complement of A equals A.

Anna
There is also a shorter equality-proof method. To show two sets are equal, show that an arbitrary element belongs to the first set if and only if it belongs to the second. For the double complement, x belongs to the complement of A complement if and only if x is not in A complement, which is true if and only if x belongs to A.

Corey
The final topic is union, intersection, and De Morgan's law. An element belongs to A union B when it belongs to A or to B, or possibly to both. An element belongs to A intersection B only when it belongs to both A and B.

Anna
The distinction between 'or' and 'and' is essential. A union is easier to belong to because membership in just one of the sets is enough. An intersection is more restrictive because membership in both sets is required.

Corey
One version of De Morgan's law says that the complement of a union equals the intersection of the complements. In words: the complement of a union is the intersection of the complements.

Anna
To prove the first containment, take x in the complement of A union B. Then x is not in A union B. Since membership in the union means being in A or B, not being in the union means x is not in A and x is not in B.

Corey
Those two statements mean that x is in A complement and in B complement. Therefore x is in the intersection of A complement and B complement, proving that the complement of the union is a subset of the intersection of the complements.

Anna
For the reverse containment, take y in the intersection of A complement and B complement. Then y is not in A and y is not in B. Therefore y is not in A or B, which means y is not in the union of A and B. Hence y belongs to the complement of that union.

Corey
The two containments establish De Morgan's law. The other version has the operations reversed: the complement of an intersection equals the union of the complements. Similar laws can also be extended to larger collections of sets.

Anna
So the central habits from this lecture are clear: understand membership and complements, recognize the standard number sets, read subset notation according to its definition, and prove containment by taking arbitrary elements.

Corey
And for equality, prove containment in both directions, or use an if-and-only-if chain when that is convenient. These set ideas matter because the next lecture will begin describing the axiomatic structure of the real number line, and those assumptions will be stated using sets.

Ask anything
We've read this whole study set, so questions about it get the best answers.