Chapter 1. Sets and foundations of real analysis
This chapter moves from counting sets to filling gaps in the rational line, then from completeness to the functions built on the real numbers. The sequence of arguments matters. Counting reveals how large is. Completeness explains why the limits and roots we need exist.
§ 1.1–§ 1.3 compare sets and identify gaps in . § 1.4 introduces distance, limit rules, and the motivation for iteration. § 1.5–§ 1.7 develop order and completeness, including the Archimedean property before the proof chain uses it. § 1.8–§ 1.11 apply these tools to approximation, missing limits, functions, and roots. The iteration proofs return at the end, when their prerequisites are in place. § 1.12 closes the chapter with an overview of the number systems and their infinite cardinalities.
1.1 Sets and countable sets
How do we count an infinite set? We cannot finish listing its elements, but we can ask whether every element has a place on a list. Throughout these notes, .
Sets, operations, and maps
We write when belongs to , and when every element of belongs to . Two sets are equal precisely when each is a subset of the other. The empty set is denoted by . For sets and in a universe , the basic operations are
Figure 1.1 shows the union, and Figure 1.2 shows their common part. The complement is taken relative to a specified universe , so . Figure 1.3 shades the part of outside . The distributive laws and De Morgan’s laws follow by checking membership. For example,
For a family , membership in means membership in at least one . Membership in means membership in every . For an empty family, the union is and the intersection is the specified universe .

The next exercise extends De Morgan’s laws to an arbitrary family.
Exercise 1.1.1
Let be a collection of sets. Prove De Morgan’s laws
The Cartesian product is the set of ordered pairs
A function, also called a map, assigns exactly one output to each input . The set is its domain, and is its codomain. Different inputs may have the same output, and some elements of may never be reached.
The map is injective if implies , and surjective if every equals for some . A map with both properties is a bijection. § B.1 recalls these definitions with finite-set diagrams and examples in Euclidean spaces.
Definition 1.1.2. Two sets have the same cardinality, written , when there is a bijection between them. A set is countably infinite if it has the same cardinality as . It is countable if it is finite or countably infinite, and uncountable otherwise.
The notation is read “aleph zero.” Infinite does not mean uncountable. For example, the even positive integers form a proper subset of , yet is a bijection between these two sets. 2
Remark 1.1.3 (Cardinality comparisons from functions). We write when there is an injection from into . For a function , the following comparisons hold, with the axiom of choice understood for the surjective line when the sets are arbitrary and infinite.
An injection gives each input a distinct place in . Its image is therefore a copy of inside , even if some outputs are unused.
A surjection may send several inputs to the same output, but it cannot leave any element of unreached. Choose one preimage for each , so that . The map is an injection from into , since distinct outputs cannot have the same chosen preimage. Making all these choices for arbitrary infinite sets invokes the axiom of choice. No such assumption is needed for finite sets.
If is both injective and surjective, every has exactly one preimage. The pairing can therefore be reversed uniquely, giving the inverse and . Uniqueness means that this case needs no axiom of choice. Figure 1.5 illustrates the three properties.
The inequalities need not be strict. In the even-integer example above, both domain and codomain are , although the odd outputs are missed. Equal cardinalities describe the two sets. They do not make every function between those sets bijective.
Induction and the least natural number
Mathematical induction proves a statement for every by proving and proving that implies . For example, holds at . If it holds at , then , which establishes the next case. We will also use the identity
It holds at , and adding to the formula for gives , proving the induction step.
The well-ordering principle says that every nonempty subset of has a least element. It is equivalent to induction. For the direction needed here, a subset with no least element cannot contain . If it contains none of , it cannot contain either, since that would be its least element. Induction would make it empty. In particular, an infinite subset of can be enumerated by repeatedly choosing the least remaining element. Each member is eventually reached, because only finitely many natural numbers precede it.
Combining countable sets
If and , interleave the lists by setting
Every element of appears. If the sets overlap, discard repeated appearances. Thus the union of two countable sets is countable, and repeating this argument proves the same for every finite union.
What happens when there are two indices? The sum alone will not distinguish from . The following encoding retains both pieces of information.
Proposition 1.1.4. The map given by
is injective. Consequently, the Cartesian product of two countable sets is countable.
Proof. Put . Since , we have . These intervals are disjoint for distinct integer values of . Hence first gives and then , so also . Every subset of is countable, by listing its elements in increasing order. The image of therefore lists . Enumerations of two countable sets then give a list of their pairs. ◻
For the next argument, we use the axiom of countable choice to select one enumeration for each nonempty set in a countable family.
Proposition 1.1.5. A countable union of countable sets is countable.
Proof. Choose a list for each nonempty set in the family, repeating elements if the set is finite. List the pairs in increasing order of , and within each such group in increasing order of . Every pair is reached after finitely many steps. Listing in this order reaches every element of the union. Discard repeated appearances to obtain the required enumeration. ◻
Figure 1.6 shows the order of traversal.
Counting the rationals
Every positive rational has a unique reduced representation with . Thus is encoded by a subset of and is countable. Adding zero and the negatives gives a countable set . Since , it is infinite, and therefore
The encoding is a map into pairs of integers. It does not assert that rational numbers themselves are a subset of .
Exercise on enumeration
The following exercise makes the diagonal enumeration of a countable union explicit.
Exercise 1.1.6
Let be a set such that for . Prove where
1.2 Rational gaps and irrational numbers
Counting is only one part of the story. The rational numbers are closed under the usual arithmetic operations, with division by zero excluded. Yet even a simple geometric construction leads outside . The right triangle in Figure 1.7 has legs of length one, so its hypotenuse has square equal to two.
Proposition 1.2.1. The number is irrational.
Proof. Suppose , where have no common factor. Then , so is even. An odd integer has an odd square, hence for some integer . Substitution gives , so is even as well. This contradicts the choice of and . ◻
The parity argument above is a special case of a general fact about prime divisors. We write when for some integer . A prime is an integer whose only positive divisors are and .
Lemma 1.2.2 (Euclid’s lemma on prime divisors). Let be prime and let . If divides a product , then it divides at least one factor.
In particular, implies , since .
Proof. Suppose . By well-ordering, there is a least positive integer of the form , with . Such positive integers exist because is one of them.
Divide by with remainder, writing with . The remainder is another integer combination of and . If , it contradicts the minimality of . Thus and . The same argument applied to division of by gives .
Since is prime, is either or . The second possibility would give , contrary to our assumption. Hence , so there are integers with . Multiplying by gives
Both terms on the right are divisible by , since . Therefore , as required. ◻
Repeated application gives the consequence used in the root arguments, 4
Consequently, coprime integers have coprime positive powers. To see this, every integer has a prime divisor, since its least divisor greater than must be prime. Otherwise a proper factor would be a smaller divisor greater than . A common divisor of two powers would therefore supply a prime dividing both bases, contradicting coprimality.
The prime hypothesis matters. For example, , although and .
The same divisibility argument extends to other primes and higher roots. We take up that exercise in § 1.11, after establishing existence of the roots themselves.
A gap in the rational line
We can describe the location of without naming a rational number at that location. Partition into
Both sets are nonempty, every rational belongs to one of them, and every element of is less than every element of . There is no rational boundary between them. Indeed, if a rational boundary satisfied , a sufficiently small positive rational increment would leave its square below two, contradicting its being a boundary. If , a sufficiently small rational decrement gives the opposite contradiction. The case has just been ruled out. Here a boundary must be positive, since . The small increments can be checked directly from .

This is the idea behind a Dedekind cut. Completing the rational line means supplying its missing boundaries. An equivalent approach supplies limits of rational Cauchy sequences. We will formulate both versions of completeness in § 1.6. 6
Limits can reveal further gaps
The irrational number is obtained as a limit of rational factorial partial sums. This is a different source of a gap from the geometric example above. Its construction and irrationality proof appear in § 1.9, where monotone convergence and geometric-tail estimates are available. For now it motivates the question of which limits a number system contains.
1.3 Power sets and the size of the real line
The power set is the set of all subsets of . For a finite set with elements, a subset is specified by deciding, independently for each element, whether to include it. Thus
The smallest case distinguishes the empty set from the set containing it.
Exercise 1.3.1
List all the elements in the set and verify the cardinality formula.
Cantor’s theorem extends the strict increase in size to every set. 7
Theorem 1.3.2 (Cantor). There is no surjection from onto .
Proof. Let be any map, and form
If for some , then the definition gives if and only if . This is impossible, so is missing from the image of . ◻
The map is injective, so the theorem is expressed as . In particular, is uncountable.
Theorem 1.3.3 (Cantor–Bernstein). 8 If there are injections and , then there is a bijection .


Proof. Let and be injections. Start with the points of that have no preimage under , and repeatedly apply . More precisely, define
We use on and reverse on the remaining points. Define
Here is the inverse from to . This branch is well-defined because , so every point outside belongs to .
Each branch is injective. Their images are disjoint as well. Indeed, if , , and , then . Some contains , so , a contradiction. Thus is injective.
To prove surjectivity, let . If , then . Otherwise, but , so for some . Hence for some . Injectivity of gives . Every point of is therefore reached, and is a bijection. ◻
Digits as subsets
For these counting arguments, we use the usual positional representation of real numbers as background. We state precisely the representation facts needed before using them.
Theorem 1.3.4 (Positional representation). Let be an integer. Every digit string with digits in represents a number in , and every number in has such a representation. Two distinct strings represent the same number only when a terminating expansion is replaced by one ending in repeated digits . In , choosing the expansion that is not eventually all makes the digits unique. The tail after position is at most , attained by taking every later digit to be .
The endpoint is represented by . We justify these familiar representation facts from completeness in § 1.9. Their statement is enough for the digit constructions in this section.
Decimal notation is a sum of place values. For example,
More generally, a base- expansion of a number in has the form
Successively subdividing an interval into equal parts supplies these digits. The remaining interval has length after steps.
A binary sequence records a subset of by putting in the subset exactly when . Thus
Here denotes all infinite sequences of zeros and ones.
Proposition 1.3.5. The unit interval has cardinality
Proof. Fix . Bisect , recording if we keep its left half and if we keep its right half. At each stage keep a half containing and repeat. When is the shared midpoint, choose the right half. This makes the choice unique. After halvings, the chosen interval has length
and has been assigned an infinite binary sequence . Figure 1.11 shows one such sequence of choices.
Suppose that were assigned the same sequence. Both would then lie in the same interval for every . Since , choose so large that . An interval of length cannot contain both points, a contradiction. Hence the encoding is injective, and .
To prove the reverse inequality, first consider reading an arbitrary binary sequence as a number
The evaluation exists by Theorem 1.3.4. For example, . This map need not be injective, since
Also . Thus different binary sequences can represent the same real number.
Geometrically, the closed halves touch at their common midpoint. The intervals with prefixes and shrink onto from opposite sides. Each path determines one point, but two different paths can determine the same point. Choosing one code for each real number makes the earlier encoding injective. It does not make evaluation of all binary sequences injective.
Instead, use ternary digits and to encode a subset by
To see why this helps, divide into thirds, remove the open middle third, and retain the two closed outer thirds. Repeat this operation inside every interval retained. Let denote the union of the intervals remaining after steps, so
Figure 1.12 shows the first stages of this construction. The gaps separate the retained intervals at every stage.
A left choice records the ternary digit and a right choice the digit . Now different children are separated by a gap rather than sharing a boundary.
The corresponding expansions are separated more widely. In particular,
More generally, the largest possible tail after position is
If and first differ at position , their contribution there differs by , which is larger than this entire tail.
Even if every later digit opposes that difference, it follows that
Thus is injective, and .
The Cantor–Bernstein theorem now gives . ◻
The points that survive every removal form the middle-thirds Cantor set, denoted here by . 10

In terms of the retained stages,
At each step, a surviving point lies in exactly one of the two separated children, so its choices give a ternary expansion using only and . Conversely, every such expansion remains in its chosen interval at every stage. The strict tail estimate above shows that this restricted code is unique. A point may also have an expansion using . For example, still belongs to .
Thus all binary sequences are represented once in , giving
11 The gaps preserve distinct codes while still leaving as many points as the whole interval.
From the unit interval to the real line
For the next explicit map, we use the usual strict monotonicity of the exponential and its inverse relation with the natural logarithm as elementary background.
Example 1.3.6 (The sigmoid bijection). Consider
The function is strictly increasing and therefore injective. Indeed, if , then , so . Its shape is shown in Figure 1.14.
For surjectivity, let and solve
Since , the number is positive, so this is a real preimage of . Hence is bijective and .
The next exercise asks for a bijection in the opposite direction. Inverting gives one construction. Another uses the elementary fact that maps bijectively onto , with inverse .
Exercise 1.3.7
Obtain a bijective map from to .
Example 1.3.8 (Freeing two places in an interval). Consider the sequence in . Sending each to shifts the sequence and frees the places and . Put the two endpoints there and leave all other points fixed. Figure 1.15 shows the two infinite chains that make this shift possible.
Explicitly, define by
The endpoints and the points for map bijectively onto the reciprocal sequence. Every other point of is fixed and lies outside that sequence. These two parts have disjoint images and exhaust the target.
Thus is bijective and .
Reversing the construction in Example 1.3.8 gives the bijection requested next.
Exercise 1.3.9
Obtain a bijective map from to .
Combining and with Proposition 1.3.5 gives
There is also an algebraic comparison that avoids the exponential and logarithm. The function injects into . To see injectivity, is strictly increasing on each side of zero by cross multiplication, and has the sign of . Together with the inclusion , Cantor–Bernstein gives the same comparison . 12
From an interval to a square
The next exercise extends the digit-encoding idea to a pair of points.
Here denotes . For the square, use the unique decimal expansions from Theorem 1.3.4 and injections in both directions. None of these exercises requires a continuity proof.
Exercise 1.3.10
Show that
(Corrected hint. For each number in , choose the decimal expansion that is not eventually all s. We can then write
Then define a map from to by
Show that this map is injective, then use injections in both directions.)
Algebraic and transcendental numbers
13 A polynomial is a finite sum . If , its degree is . A real number is algebraic if it is a root of a nonzero polynomial with rational coefficients. It is transcendental otherwise. 14 For instance, is algebraic because it satisfies . Rational numbers are algebraic as well, since satisfies . Clearing denominators shows that rational and integer coefficients give the same notion of algebraicity.
The elementary root bound follows from the identity for . If , apply this identity to to factor , where has degree one less. Induction then shows that a nonzero degree- polynomial has at most distinct real roots.
Proposition 1.3.11. The set of real algebraic numbers is countably infinite. The set has cardinality .
Proof. For each , polynomials of degree with rational coefficients are encoded by a subset of , which is countable by repeated products of countable sets. Each nonzero degree- polynomial has at most real roots. Its factorization by at a root, followed by induction on the degree, proves this bound. Thus the set of roots of all such polynomials is countable. Taking the union over shows that is countable. It is infinite because it contains .
If were countable, then would be countable, contrary to Cantor’s theorem. Choose distinct , and enumerate without repetition. Map to and to , and leave every other transcendental number fixed. This is a bijection from to , proving the cardinality assertion. ◻
Counting proves that transcendental numbers exist, without identifying a particular one. Specific examples include , , and the Liouville number
Their transcendence is stated here without proof. Including the term gives , which is transcendental as well. These stronger results belong to transcendental number theory (Waldschmidt 2017). The elementary factorial argument in § 1.9 will establish only the irrationality of .
Exercises on transcendence
The first exercise asks for the cardinality conclusion under CH, although the argument above establishes it without that additional hypothesis. The second applies the definition of transcendence to linear independence.
Exercise 1.3.12
Let and denote the cardinalities of and respectively. Recall that the Continuum Hypothesis (CH) states that there is no cardinality between and . Use CH to prove that the set of transcendental numbers, , has the same cardinality as that of .
Exercise 1.3.13
Let be a transcendental number whose existence is proven already. Show that for any , the numbers
are linearly independent over the field .
That is, if there are such that
then .
(In the language of Linear Algebra, this result indicates that the set viewed as a vector space over is infinitely dimensional.)
One further algebraic fact will be useful for the recurrences that follow. By Lemma 1.2.2, a prime dividing a product of integers divides at least one factor. In particular, coprime integers have coprime powers. If a rational number in lowest terms is a root of a monic integer polynomial, multiplying its equation by shows that divides . Since and are coprime, . Thus such a rational root is an integer, and its equation shows that it divides the constant term. This is the monic case of the rational root theorem.
The Jacobian conjecture
This optional excursion connects bijections with later calculus. It supplies no prerequisite for the exercises above or the completeness arguments that follow. A map is polynomial when each coordinate is a polynomial in . Its Jacobian matrix is the matrix of first derivatives,
Conjecture (Jacobian). If a polynomial map satisfies for every , where is constant, then it has a polynomial inverse. That is, there is a polynomial map such that
This is the classical formulation (Goursac, Sportiello, and Tanasa 2016).
The determinant condition makes the linear approximation invertible at every point. The inverse function theorem, a result from later differential calculus, gives an inverse on a neighborhood of each point. The conjecture asks for one inverse on all of , with polynomial coordinates.
Figure 1.16 illustrates a simple case, , on the real plane inside . Here
The inverse keeps the second coordinate and undoes the horizontal shift. This supplies a polynomial inverse for this particular map. The example illustrates the classical conjecture’s conclusion without establishing a general result (Goursac, Sportiello, and Tanasa 2016).
Motivation. Earlier we studied injectivity and surjectivity. A global inverse requires both. The Jacobian determinant tests behavior near each point, so the conjecture connects those global questions with local differential calculus. Requiring the inverse to be polynomial adds an algebraic constraint. It illustrates why the precise hypotheses of a theorem matter, just as existence by counting does not identify a particular transcendental number. None of the arguments here depends on its resolution.
1.4 Convergence and iteration
A sequence may approach a number that its terms never reach. This is why a field containing all the rational numbers can still be missing limits. We now make the meaning of “approach” precise.
Distance and the triangle inequality
For a real number , define
Figure 1.17 shows the graph of . It measures distance from zero, so measures distance between and . We have , with equality exactly when , and .
Proposition 1.4.1. For real ,
Proof. If either factor is zero, the product identity is immediate. Otherwise, writing each factor as its sign times its positive absolute value shows that the absolute value of the product is . For the second assertion, add the inequalities and to obtain
The definition of absolute value now gives the triangle inequality. ◻
Convergence and its elementary rules
Definition 1.4.2. A sequence of real numbers converges to if, for every , there exists such that
We write or .
The index may depend on . After that index, every term lies in the -neighborhood . For convergence in , the limit must belong to as well. We will later construct rational sequences with irrational real limits.
We will use two elementary consequences of this definition. Limits are unique, since if , the disjoint neighborhoods of radius cannot both contain all sufficiently late terms. Also, if , , and , then . Otherwise neighborhoods of radius contradict .
We also need the basic rules for calculating a limit.
Proposition 1.4.3. If and , then
If , then for all sufficiently large , and on that tail.
Proof. For the sum, the triangle inequality bounds the error by . Make each term smaller than . For the product, convergence gives on a tail, and
On a sufficiently late tail, the two errors are smaller than and , respectively. The displayed bound is then smaller than .
If , choose a tail with . The triangle inequality gives there. Hence
Apply the product rule to and to obtain the quotient rule. ◻
Changing or discarding finitely many terms does not affect a limit. In particular, whenever . We will also use the squeeze principle. If and , then , because sufficiently late and both lie between and .
Newton’s idea

For the calculus motivation here, denotes the limiting slope . The two slopes needed in our examples follow from the identities
Thus and for . These identities supply the tangent lines we use without requiring a general differentiation theory.
Suppose we want to solve . At a current approximation with , replace the graph by its tangent line
Its horizontal intercept supplies the next approximation,
Figure 1.19 illustrates one step. This is a motivation from calculus. A general convergence theorem for Newton’s method is not being assumed.
For , where , Equation 1.1 becomes
A positive limit , if it exists, must satisfy by the limit laws. A fixed-point calculation alone does not establish that such a limit exists. We return to its convergence proof and the iteration exercises in § 1.11, after proving monotone convergence and constructing the required roots.
What kind of limit can a recurrence produce?
Consider the recurrence
If this sequence converges, its limit is positive because for . The limit therefore satisfies
It is algebraic and irrational. Indeed, the rational root theorem would force a rational root of this monic polynomial to be an integer dividing , and neither nor is a root for . Repeated substitution also suggests a continued fraction. This example identifies a possible limit. It does not by itself prove convergence.
Limits of rational sequences need not be algebraic. The factorial partial sums will give in § 1.9. Another example is Euler’s identity
stated here without proof (Waldschmidt 2017). 16

The number is transcendental, since a nonzero rational polynomial vanishing there would, after substituting , give a nonzero rational polynomial vanishing at .
1.5 Fields and order
Before asking which limits exist, we separate the algebra from the order. A set acquires additional structure when operations are specified. A group is a set with an associative operation, an identity, and an inverse for each element. It is abelian when the operation commutes.
Definition 1.5.1. A field has two distinct elements and , and operations of addition and multiplication, such that and are abelian groups and multiplication distributes over addition.
These are structures on sets, rather than a literal containment chain of “sets inside groups inside fields.” The examples and have their usual arithmetic operations.
The characteristic of a field is the least positive integer such that , if there is one, and is zero otherwise. Here means adding to itself times.
Proposition 1.5.2. Every field of characteristic zero contains a unique smallest subfield, canonically isomorphic to .
Proof. Send an integer to , with the usual interpretation for zero and negative integers. Characteristic zero makes this map injective. For and , define
The denominator is nonzero. If , then , and the same equality holds after mapping the integers into . Multiplying by the inverses of the denominators shows that the definition is independent of the fraction chosen. The reverse argument shows injectivity. The usual common-denominator and product calculations show that preserves addition and multiplication, so its image is a subfield. Any subfield of contains , its integer multiples, their negatives, and the inverses of its nonzero elements. It therefore contains every , proving minimality and uniqueness. ◻
Ordering the arithmetic
A partial order is a reflexive, antisymmetric, transitive relation . It is a total order if any two elements are comparable. For example, coordinatewise order on is partial, but not total. The pairs and are incomparable. The usual order on is total.
Definition 1.5.3. An ordered field is a field with a total order satisfying
Every nonzero square is positive, so . Consequently every positive integer multiple of is positive, and an ordered field has characteristic zero. It therefore contains the rational subfield just constructed. The additional property distinguishing from is completeness.
1.6 Supremum and completeness
Definition 1.6.1. A number is an upper bound of if for all . The supremum, or least upper bound, is an upper bound such that for every upper bound . We write . Lower bounds and the infimum are defined with the inequalities reversed.
If a supremum belongs to , it is the maximum of . Membership is not required for a supremum. For example, has supremum , but no maximum. Also, whenever the infimum exists, .
We take the following completeness property as part of the description of the real numbers.
Property 1.6.2 (Least upper bound property (LUBP)). Every nonempty subset of that is bounded above has a supremum in .
For a nonempty bounded-above set , the assertion is equivalent to the following two requirements. First, every satisfies . Second, for every , there is an with . The second requirement says that every number below fails to be an upper bound.
The rational field does not have this property. The set
is nonempty and bounded above, but has no rational supremum. Its supremum in is . The gap argument in § 1.2 excludes a rational boundary.
An immediate consequence of LUBP
17 An ordered field is Archimedean if, for every and every , there is an with . We establish this property before using it to shrink intervals.
Theorem 1.6.3 (Archimedean property). For every and every , there is an such that .
Proof. Fix . Suppose were bounded above. By LUBP, it would have a supremum . Since , there would be an with . It would follow that , contradicting that bounds . Thus is unbounded above, which proves the assertion. ◻
In particular, is unbounded in . Given , choose . Then for every , so . Induction gives , and hence as well. For an integer , the bound also gives . These consequences require no later equivalence of completeness properties.
Six forms of completeness
The following properties express completeness through order, sequences, or intervals. A sequence is bounded if all its terms lie between two fixed numbers. It is monotone if it is nondecreasing or nonincreasing. A subsequence uses strictly increasing indices .
LUBP
Every nonempty set bounded above has a least upper bound.
MCT
Every bounded monotone sequence converges.
NIP
Every nested sequence of nonempty closed bounded intervals has nonempty intersection.
BWT
Every bounded sequence has a convergent subsequence (the Bolzano–Weierstrass theorem).
CC
Every Cauchy sequence converges. Here is Cauchy when, for every , there is an such that whenever . Both indices are chosen from the same tail. Equivalently, we may check only , since exchanging the indices preserves the absolute difference and equal indices give zero.
DC
Whenever the field is partitioned into nonempty sets with for every , , there is a boundary satisfying for all such .
The last statement is the Dedekind cut property. Since belongs to one side of the partition, it is either the greatest element of or the least element of . This is the precise sense in which there is no gap at the cut.
1.7 The completeness proof chain
The preceding section derives the Archimedean property directly from LUBP and proves and . Thus has the Archimedean hypothesis needed for the shrinking intervals in this chain. In any Archimedean ordered field the same estimates hold.
Theorem 1.7.1 (Completeness equivalences). In an Archimedean ordered field, the six completeness properties in § 1.6 are equivalent.
We follow the cycle in Figure 1.21. The final implication returns to LUBP and completes the equivalence. The Archimedean hypothesis ensures that the bisection lengths used below actually tend to zero.
LUBP implies MCT
Proof. Let be nondecreasing and bounded above, and set . For , the number is not an upper bound. There is therefore an with . For , monotonicity gives
Thus . Applying this argument to proves convergence of every nonincreasing sequence bounded below. ◻
MCT implies NIP
Proof. Write the nested intervals as . Their endpoints satisfy
By MCT, and . Passing to limits gives . For fixed , all later endpoints lie in , so . Hence is contained in every . Conversely, if for all , passage to the limit in gives . Therefore
◻
The intersection need not be a single point. If additionally , then and the intersection is a singleton.
NIP implies BWT
Proof. Let be bounded, with every term in a closed interval of positive length . Bisect . At least one closed half contains for infinitely many indices . Choose such a half as , and repeat. This constructs nested closed intervals of lengths , each containing infinitely many indexed terms. By NIP, choose .
Choose with . Having chosen , choose with , which is possible because infinitely many indices qualify. Then
Thus is a convergent subsequence. ◻
Figure 1.22 shows a possible sequence of choices.
BWT implies CC
First note that convergence always implies the Cauchy condition. If , choose so that for . For , the triangle inequality gives
The converse needs completeness.
Proof. Let be Cauchy. Choose so that for every . The tail is bounded by , and the finitely many earlier terms are bounded as well. For example, the maximum of bounds the whole sequence. BWT therefore gives a subsequence .
Given , choose so that for . Choose a subsequence index with . For every ,
Hence the full sequence converges to . ◻
CC implies DC
Proof. Let be a partition as in DC, and choose , . At step , take the midpoint . If , set and . Otherwise set and . The intervals are nested, their endpoints remain on the prescribed sides, and
For , both and lie in , so . The same holds for the right endpoints. Consequently both sequences are Cauchy. By CC they converge, and the vanishing difference shows that they share a limit .
Every is less than every , so on taking limits. Likewise every is greater than every , so . This is the required boundary. ◻
DC implies LUBP
Proof. Let be nonempty and bounded above. Let be the set of all upper bounds of , and let be its complement in the field. By assumption, is nonempty. If , then , so is nonempty too. If , there is an with . Thus, for every , . The partition satisfies DC, which supplies a number with for all , .
We claim that . Otherwise some satisfies . Its midpoint with satisfies
This midpoint cannot belong to , since it exceeds , and cannot belong to , since it is smaller than the element of . That contradicts the partition. Hence is an upper bound of . Since for every upper bound , it is the least upper bound.18 ◻
Exercise on the greatest lower bound property
The corresponding lower-bound argument can be made directly from DC, without passing through the least upper bound property.
Exercise 1.7.2
Use the existence of the Dedekind cut in to prove the greatest lower bound property. That is, if is a nonempty subset of which is bounded below, then there is a unique number such that
(Do not use LUBP.)
Exercises on the nested interval hypotheses
Closedness and boundedness each do work in the nested interval property. The following examples isolate these hypotheses. The Archimedean property from Theorem 1.6.3 supplies the indices needed to exclude any fixed point from the intersection.
Exercise 1.7.3
Give an example of a sequence of nested nonempty bounded intervals in such that for each but
Explain what goes “wrong”.
Exercise 1.7.4
Give an example of a sequence of nested nonempty closed intervals in such that for each but
Explain what goes “wrong”.
1.8 Induction and the Archimedean property
The natural-number tools
Induction and the well-ordering principle were introduced in § 1.1, before their use in enumeration. We now combine them with completeness. Induction controls each finite stage of an argument, while the Archimedean property lets us choose a stage beyond any prescribed real bound.
Small steps eventually pass any bound
Theorem 1.6.3 was proved directly from LUBP in § 1.6. Taking the step size to be shows that is unbounded in . Given , we can therefore choose . For every , we have , which is the estimate behind . The same estimate will give rational approximations with arbitrarily small error in the next section.
The integer part
Proposition 1.8.1. For every , there is a unique such that
This integer is the floor or integer part of , denoted by .
Proof. First suppose . By the Archimedean property, the set of natural numbers greater than is nonempty. Let be its least member. Then , so has the required property. For a general real , choose with . The first case gives an integer with , and works. Finally, two distinct integers differ by at least one, so they cannot both satisfy the displayed inequalities. This proves uniqueness. ◻
We use for the integer part to distinguish it from interval notation. For example, , whereas . The floor is not truncation toward zero.
Exercise on bounds and convergence
An explicit sequence connects the definitions of Cauchy convergence, infimum, and supremum. The Archimedean property supplies the indices needed in its estimates.
Exercise 1.8.2
Consider the seqeunce
-
(a) Show that it is monotone decreasing and bounded below.
-
(b) Show that it is Cauchy.
-
(c) Obtain the limit of .
-
(d) Let . Obtain both and .
1.9 Denseness, closure, and completion
Upper and lower limits
Before returning to sets, recall that means that all sufficiently late terms lie within every prescribed distance of .
Definition 1.9.1. A subsequence of is a sequence with . A real number is a limit point of the sequence if some subsequence converges to .
We form a subsequence by keeping infinitely many terms in their original order. The index counts the selected terms, while records their positions in the original sequence. Since , those positions go to infinity as does. Thus a subsequence samples arbitrarily late terms, rather than repeatedly choosing an early term.
If , every subsequence also converges to . Indeed, once all terms with lie within of , the selected terms with do too, because . A convergent subsequence describes the behaviour of its selected terms. Establishing a limit for the whole sequence requires controlling every sufficiently late term.
A sequence may have several limit points even though the whole sequence does not converge. For a bounded sequence, two useful quantities summarize what remains after its first terms are discarded,
The sequence is nondecreasing, and is nonincreasing. Removing a term from a tail cannot lower its infimum or raise its supremum. Both sequences are bounded, so their limits exist. Write
These are also written and . The intervals are nested, and contains every term with . Their endpoints approach and . Discarding finitely many initial terms changes neither limit.
Figure 1.23 shows this for . Choosing keeps the odd terms, while choosing keeps the even terms. Taking gives
The original sequence cannot converge, since its two subsequences would then have to share the same limit. These are the only limit points, since forces every subsequence limit to satisfy . The tail intervals shrink towards , but the numbers strictly between and are not limit points of this sequence.
The tail infima and suprema need not be terms of the original sequence. To show that their limits are limit points of , we must select actual terms approaching them. The following argument makes that connection explicit for every bounded real sequence (Rodriguez 2020).
Proposition 1.9.2. The numbers and are respectively the smallest and largest limit points of a bounded real sequence . Every limit point therefore satisfies .
Proof. Suppose . For each fixed , all sufficiently late subsequence indices satisfy . Thus . Taking limits first in and then in gives .
To reach the upper endpoint, set . At step , discard the terms through index . The supremum of the remaining tail is , so we can choose an actual term with and
The indices increase, so both bounds tend to . The squeeze theorem gives . Choosing increasing indices in the same way, with terms between the corresponding tail infimum and that infimum plus , gives a subsequence converging to . Hence both endpoints are limit points. ◻
For a bounded real sequence, showing that is its only limit point is enough to establish . By Proposition 1.9.2, both and are limit points, so they must then equal . Every original term satisfies , and the squeeze theorem gives . This is how information about subsequences controls the whole sequence.
Equivalently, convergence occurs precisely when the two extreme limit points agree. If , then for every , all sufficiently late tails lie in . Their infima and suprema do too, which proves that both limits equal . The converse is the squeeze argument just given. This is the bounded-sequence version. More general upper and lower limits are studied in § 3.4.
The next exercise uses the elementary identities
together with for integers .
Exercise 1.9.3
Consider the sequence
Find all limit points of and obtain
Which points can a set approach?
Definition 1.9.4. The closure of is
A point of already belongs to its closure. A point is an accumulation point if every such neighborhood contains a point of different from . This extra condition distinguishes accumulation points from general closure points.
Figure 1.24 compares these possibilities for . Every neighborhood of meets the interval, even though . A neighborhood of with radius less than meets only at . At , any radius less than misses entirely. The word every in the definition is decisive.
Proposition 1.9.5. A point belongs to if and only if there is a sequence in converging to .
Proof. If , choose with . The Archimedean property then gives . Conversely, if , every neighborhood of contains all sufficiently late , and therefore meets . ◻
For , we have . Interior points already lie in the interval, and every neighborhood of either endpoint meets it. If or , a neighborhood of radius less than its distance to the nearest endpoint misses the interval. Thus no other point enters the closure.
Rationals occur in every interval
Definition 1.9.6. A set is dense in if . Equivalently, every nonempty open interval contains a point of .
For the equivalence, apply the neighborhood condition at the midpoint of an open interval with radius half its length. Conversely, every neighborhood is itself an open interval.
Theorem 1.9.7 (Density of the rational numbers). The rational numbers are dense in the real numbers.
Proof. Given and , choose with . Set . The definition of the floor gives , and hence
Thus the rational number lies in the prescribed neighborhood of . Every real number belongs to the closure of . ◻
The grid in Figure 1.25 makes the estimate visible.
In particular, choosing gives an explicit rational sequence .
Irrational numbers also occur in every nonempty open interval. If , rational density supplies a rational with . Then is irrational, since subtracting the rational number from a rational sum would make rational. Thus a small neighbourhood can contain both types of number, a fact used in the discontinuity examples in § 5.1.
Second proof by decimal approximation. The decimal approximations of make the idea concrete,
Each displayed approximation is rational, and keeping more digits makes the error smaller. To prove density, apply this construction to an arbitrary nonnegative real number . Truncating after decimal places gives
Since , the Archimedean property lets us choose with for any prescribed . Then , so every neighbourhood of contains a rational number. For , apply the same construction to and negate the rational approximations. Thus every real number belongs to the closure of . ◻
This specializes the earlier grid argument to denominators . In fact, terminating decimals alone are dense in . Figure 1.26 shows the successive decimal cells containing .
Closure is relative to an ambient space
Closure and completion answer related but different questions. Closure adds points already present in a specified ambient space. Thus , whereas . A subset of an ambient space is closed in if it contains every point of its closure taken in . Neighborhoods in are intersections . For example, is closed in . A rational point outside it has a neighborhood missing , while its real limit points outside are not points of the ambient space.
A metric completion instead embeds a metric space into a complete one in which it is dense. For the usual distance , is a completion of .
More generally, is a completion of with its usual distance. To check completeness, a Cauchy sequence in converges in to some . Given , choose with , then choose with . The triangle inequality gives , so . Also, by the definition of closure, is dense in . This explains why closing to also completes that interval, while keeping the two notions distinct.
Exercises on the missing limits in
The floor function and rational density let us build nested rational intervals around a point missing from . This complements the real interval examples in § 1.7.
Exercise 1.9.8
Give an example of a sequence of nested nonempty bounded closed intervals in such that for each but
Explain what goes “wrong”.
Geometric sums and factorial limits
We need a simple estimate before the next two exercises. Multiplying a finite geometric sum by and cancelling consecutive terms gives
For , we have . If , put . Induction gives , and the Archimedean property shows that . The case is immediate. Taking limits in the finite identity gives
Here, and in the series below, an infinite sum means the limit of its finite partial sums. These particular sums need no general series theory.
Completeness justifies positional notation
We can now justify the representation facts used for cardinality in § 1.3.
Proof of Theorem 1.3.4. For digits , the partial sums increase and satisfy by the finite geometric identity. Monotone convergence supplies a limit in .
Conversely, let , put , and set . The floor inequalities give . Thus is an allowed digit, and telescoping gives
This constructs an expansion of . Its digits cannot be eventually all . If all digits after position were , the geometric tail would give , contrary to . The endpoint is represented by taking every digit to be .
Finally, suppose two strings first differ at position , with the first having the larger digit. Its advantage there is at least . The largest possible opposing tail is
Equal values therefore require a digit difference of exactly one, followed by all zeros in the first string and all in the second. These are precisely the two forms of a terminating expansion. Excluding eventual strings of gives uniqueness in . ◻
The irrationality of
Set . These partial sums increase. For , the bound gives
The monotone convergence theorem therefore supplies a real limit, denoted by
An alternative formula is . Its equivalence with the series formula is proved in Proposition 3.2.4. The series definition is enough for the present argument.
Proposition 1.9.9. The number is irrational.19
Proof. Suppose for integers with , and choose . Both and are integers. Their difference is
All terms are positive, and replacing each denominator factor by gives, by Equation 1.2,
The comparison is strict because the terms with are strictly smaller. Thus an integer lies strictly between zero and one, a contradiction. ◻
The factorial partial sums therefore give a bounded set of rationals with an irrational real supremum. The next exercise asks for its bounds and for the distinction between taking the supremum in and in .
Exercise 1.9.10
Consider the sequence
in and define which is a subset of .
-
(a) Show that is a bounded set.
-
(b) Find and .
-
(c) Is it true that and both lie in ? Explain why and why not.
Exercise on small interval covers
The next question combines countable enumeration, rational density, and Equation 1.2 to construct interval covers of small total length. Small covering length and metric incompleteness describe different properties. Completeness must be checked using Cauchy sequences and their limits.
Exercise 1.9.11
Let the rational numbers in be enumerated by . Let and cover this set by
That is, .
-
(a) Show that the sum of the lengths of the intervals satisfies the bound
-
(b) Since can be arbitrarily small, the set can be covered by intervals of arbitrarily small total length indicating that is a rather “sparse” subset of . In view of this fact, give your explanation regarding the “incompleteness” of in .
1.10 Polynomial functions and absolute value
A polynomial function has the form
If , its degree is . It is defined for every . A rational function is a quotient of polynomials, with not the zero polynomial. Its domain excludes the zeros of . For example, the expression equals on its domain, but the original quotient is undefined at .
Absolute value and distance
The absolute value function, introduced before convergence in § 1.4, is
It satisfies , with equality exactly when , and . Figure 1.17 shows its graph.
Proposition 1.4.1 established the product rule and triangle inequality before their use in limits. Applying the triangle inequality to , and then interchanging and , also gives the useful reverse triangle inequality .
The following exercise asks for this argument and its equality case.
Exercise 1.10.1
Use the triangle inequality to prove
When will this become an equality?
Positive and negative parts
Define two nonnegative quantities
Checking separately and gives
The negative part records the magnitude of the negative contribution, so it is nonnegative. For a real-valued function , apply these formulas pointwise to obtain and . Figure 1.27 illustrates these operations for a specific function.
1.11 Roots and rational powers
An inverse function needs a bijection. We use the notation , including zero. For , we will prove that is a bijection from to itself. Only after that proof can we define as its inverse.
A difference of powers
The finite geometric identity
follows by multiplying the sum by and cancelling consecutive terms. For , substitute and multiply by . This gives
The sum is positive and has terms, each at most . Consequently,
In particular, the power map is strictly increasing on , and hence injective. The upper bound controls how much the power changes when the input moves a short distance.
Completeness supplies every root
Theorem 1.11.1 (Existence and uniqueness of roots). For every and every , there is a unique such that .
Proof. Uniqueness follows from strict monotonicity. If , take . Suppose henceforth that , and put
The set contains zero and also a positive element, for example , since . It is bounded above by , because and the power map is increasing. LUBP therefore gives .
Suppose first that . Choose so small that
Using Equation 1.4 with and gives
Hence , contradicting that is an upper bound.
Suppose instead that . Choose with
Now Equation 1.4 with and yields , so . Every must then satisfy , by strict monotonicity. Thus is an upper bound of smaller than its least upper bound, again a contradiction. The only remaining possibility is . ◻
We may now define to be this unique nonnegative root.20 The inverse is strictly increasing too. Indeed, if but , taking th powers contradicts .
The cases and have familiar geometric interpretations. In , the square has area , as shown in Figure 1.28. The theorem supplies its side length for any prescribed area . For example, a square of area has side length . In , the cube has volume , as shown in Figure 1.29. A prescribed volume likewise determines its side length, and volume gives . These pictures illustrate the root theorem rather than replace its completeness argument.
Exercises on roots and boundaries
The existence of these roots lets us ask when they can be rational. For the prime-root exercise, recall Lemma 1.2.2. If a prime divides a product of integers, it divides at least one factor. Repeated application gives .
Exercise 1.11.2
Let be a prime. Prove that is irrational. Can this result be extended to for any integer ?
Exercise 1.11.3
Show that if is irrational, so is the th root of , , for any .
The root theorem also lets us identify a Dedekind boundary by a cubic equation. For the negative side of the cubic, implies . On the nonnegative side, use the strict monotonicity just established. In the next exercise, is the upper part of the partition. The letters are reversed from the lower-then-upper convention used in the proof chain.
Exercise 1.11.4
Consider .
-
(a) Find such that forms a Dedekind partition.
-
(b) Find the Dedekind cut for this partition.
-
(c) Show that is bounded below and is bounded above and find
A rational exponent must be well defined
For and , define
This agrees with , since its th power is and it is nonnegative. We must also check that choosing a different representation of the fraction gives the same number.
Proposition 1.11.5. If for positive integers , then for every .
Proof. Let and . Then
because . Both and are nonnegative, and the th power map is injective there. Therefore . ◻
Thus positive rational powers have a consistent meaning. At zero they equal zero. For , negative rational powers can subsequently be defined by reciprocals. Real exponents require a further limiting construction. The exponential series supplies this extension in Definition 8.6.6.
For the next exercise, denotes the positive rational numbers, and as above. Its second part revisits the equivalent definitions of rational powers before establishing their algebraic laws.
Exercise 1.11.6
For , we defined the function for .
-
(a) For , prove that .
-
(b) For , we defined for . Show that this is the same as .
-
(c) For and , prove the laws of exponents
Exercise on odd roots of real numbers
The preceding root construction was restricted to nonnegative inputs. The next exercise asks for its extension to the whole real line for odd powers.
Exercise 1.11.7
Show that for , the function is a well-defined monotone increasing function which is a bijection from to itself. (Hint: Study .)
Returning to iteration
We can now finish the square-root argument motivated in § 1.4. Let , let be the root supplied by Theorem 1.11.1, and start with . Define . Every iterate is positive, and
Thus for , and then . The monotone convergence theorem gives a limit . The limit laws from Proposition 1.4.3, applied to , give . Root uniqueness therefore gives . If and are rational, every iterate is rational. For prime , Exercise 1.11.2 shows that the limit is irrational.
The next exercise applies the tangent slopes from § 1.4 to . The root theorem, limit laws, and monotone convergence are now available for its fixed-point and convergence arguments. Its continued fraction denotes the positive solution of .
Exercise 1.11.8
Consider the iteration process
whose limit gives us the continuous fraction
That is, is a fixed point of the function
which is realized as a root of the function .
-
(a) Show that the iterative algorithm
arises from Newton’s method that may be used to approach of our problem.
-
(b) Assume that in (a) converges. Verify that the limit is indeed the continuous fraction defined above.
-
(c) Take . Prove for .
-
(d) Prove that increases for any and is constant when .
-
(e) Show that converges to with any initial state (thereby establishing the “global convergence” of the algorithm).
Exercise on Fibonacci ratios
21 The final recurrence connects an integer sequence with bounded ratios. Use induction for its growth and bounds, and the limit laws to identify a possible limit. The square root appearing in that calculation now has a rigorous construction. The last part assumes that the ratios converge. It does not ask for a convergence proof.
Exercise 1.11.9
The Fibonacci sequence is defined by
-
(a) Show that is an increasing sequence. Here increasing means nondecreasing.
-
(b) Show that is unbounded.
-
(c) Show that the Fibonacci ratios
is a bounded sequence.
-
(d) Assume the limit of exists. Find the limit (which happens to be the golden ratio).
1.12 Number systems and cardinalities
The roots just constructed are part of a larger picture. In § 1.11, completeness supplied as a real number. Its equation also identifies it as algebraic, in the sense of Subsection* 1.3. We now bring that classification together with the chapter’s counting results. The two questions are where a number belongs and how large each set is.
The familiar number systems satisfy
Here , consists of ratios of integers with nonzero denominator, and is the real line. A complex number is with and . We identify with . The examples , , and show, respectively, that each inclusion is strict.
Where algebraic and transcendental numbers belong
Recall the two sets from Subsection* 1.3. The set consists of the real algebraic numbers, and consists of the transcendental reals. Inserting the algebraic numbers into the chain gives
Every rational is algebraic, while roots such as show that also contains irrational numbers. The transcendental reals include and , whose transcendence was stated earlier without proof. Thus the irrational reals split into and . Complex numbers can also be algebraic. The number satisfies , but is outside the real algebraic set . Figure 1.30 shows these relationships with nested boxes. Inside the real box, every number is either in the algebraic box or in the transcendental region outside it.
Their infinite sizes
Cardinality compares sets by bijections, rather than by containment. The earlier algebraic/transcendental distinction also determines two different infinite sizes. Combining the counting results in § 1.1 with Proposition 1.3.11 gives
Here , read “aleph zero,” is the smallest infinite cardinality, and the continuum is strictly larger. Thus the step from to all real algebraic numbers adds numbers such as without increasing cardinality. The transcendental reals alone already have the cardinality of the whole real line.
Since corresponds to the pair , the square-cardinality result in Exercise 1.3.10 and a bijection give . A proper subset can therefore have the same cardinality as its containing set.
Aleph one and beyond
The next infinite cardinalities are written
The cardinal is the smallest uncountable cardinality. Each is the next cardinality after , with none strictly between them. The hierarchy continues beyond finite subscripts. There is no largest infinite cardinality.
The Continuum Hypothesis (CH) asserts that . Uncountability alone does not establish this equality. The bare used in some exercises denotes .