6.4  Uniformly Continuous Implies Continuous, Rule by Rule

Chapter 5 opened with a question. Continuity and uniform continuity differ only in where one quantifier stands; why does one imply the other in a few lines, while the converse is false? Section 5.1 gave the informal answer: a variable may depend on the variables quantified to its left, and only on them. Exercise (C1: Where the ∀x stands) of Section 6.1 asked for both translations into formulas, and Section 6.2 negated uniform continuity (Example (Three negations from analysis) (c)). This section answers the question with the rules. It derives “uniformly continuous implies continuous” in full, line by line, with the bounded rules of Proposition 6.1.1. It then reads off the derivation the one thing this section adds: which boxes are open where a constant is chosen, and what that says about what the constant may depend on. The same reading locates the exact lines at which the converse breaks down, and the function x2 shows that the converse is not merely unproved but false.

6.4.1. Two definitions that differ in one place

Let A be a set of real numbers and f a function defined on A. We work over the domain R, with f a one-place function symbol, ∈A a one-place predicate symbol (Section 5.2), and |⋅| the absolute value. Here the two definitions are only quantifier patterns, and nothing is used about f except that f(x) is a term. (A function symbol has a value at every real number; the values outside A are never used, because f is only applied to variables bounded by ∈A, as with sequences in Section 5.1.)

f is uniformly continuous on A (UC) when ∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε). f is continuous at every point of A (C) when ∀x∈A∀ε>0∃δ>0∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε).

The two formulas have the same matrix and the same four bounded quantifiers. Only ∀x∈A has moved: in C it stands before ∃δ>0, in UC after it. In the game of Section 5.1, the defender chooses δ in C after seeing x and ε, and in UC after seeing only ε. So in UC a single δ must serve every point of A at once: that is what uniformly means.

Quick check. Swap the first two quantifiers of UC, to get ∃δ>0∀ε>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε). What does the new formula say about two points of A closer than δ? Does f(x)=x on R satisfy it?

Solution. Now δ is chosen before ε, so it must work for every ε>0 at once. For two points x,y∈A with |x−y|<δ, this says |f(x)−f(y)|<ε for every ε>0, and by Proposition 6.2.5, f(x)=f(y). So the formula says: for some δ>0, any two points of A closer than δ have the same value. The function f(x)=x on R fails it: whatever δ>0 is proposed, the points 0 and δ/2 are closer than δ and have different values. Yet f(x)=x is uniformly continuous, with δ=ε. Swapping ∀ε and ∃δ asks far too much.

6.4.2. The skeleton first

Hold ε fixed, and write K(x,δ) for “δ works at x”, the formula ∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε). Drop the bounds on δ and x for a moment. Then UC at this ε says ∃δ∀xK(x,δ), one δ for every point, and C at this ε says ∀x∃δK(x,δ), a δ for each point. The step from the first to the second is Proposition 5.6.2 with other letters:

1∃δ∀xK(x,δ)
2x0δ0∀xK(x,δ0)asm, for ∃E
3K(x0,δ0)∀E 2
4∃δK(x0,δ)∃I 3
5∃δK(x0,δ)∃E 1, 2–4
6∀x∃δK(x,δ)∀I 2–5

Fix a point, obtain the one δ that works everywhere, choose it for this point. The converse, from ∀x∃δK to ∃δ∀xK, is the swap whose search stalled in Section 5.6. The rest of this section puts ε and the bounds back and writes K out. That costs five lines: the premise UC itself (line 1), the assumptions x0∈A, ε0>0 and δ0>0 (lines 2, 3 and 5), and the line that closes the box of ε0 (line 10). The skeleton’s line 1 becomes line 4 of the derivation below (UC at ε0), its lines 2–5 become lines 6–9, and its line 6 becomes line 11, which closes the box of x0.

Quick check. Why may line 5 of the skeleton close the box of δ0?

Solution. δ0 does not appear in line 5, ∃δK(x0,δ), nor in the existential of line 1, which is also the only premise, and the one box still open, that of x0, has no assumption. Every clause of ∃E holds.

6.4.3. The derivation

Example (Uniformly continuous implies continuous)

Derive C from UC, with the bounded rules of Proposition 6.1.1.

Idea. Run the search method of Section 6.3. The goal C begins ∀x∈A, then ∀ε>0: the goal-directed steps open two bounded ∀I boxes, “let x0∈A” and “let ε0>0”, and write the last two lines. The new goal begins ∃δ>0, and no witness is in sight, so it is postponed (Section 5.5). Turn to the premise UC. It begins ∀ε>0, and the term the goal mentions is ε0, whose bound ε0>0 is on a line: ∀E at ε0 (Section 5.3). That gives an ∃δ>0 line, and its ∃E box is opened at once, with a witness δ0 (Section 5.6), aiming for the postponed goal as its last line. Inside, the premise has become “δ0 works for all x,y∈A”; instantiate it at the point we have, x0. Now the postponed goal has its witness: δ0 itself.

Before reading on: which lines does the line introducing δ0 rest on, and does any of them mention x0?

Solution.

1∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)
2x0x0∈Aasm, for ∀I
3ε0ε0>0asm, for ∀I
4∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε0)∀E 1, 3
5δ0δ0>0asm, for ∃E
6∀x∈A∀y∈A(|x−y|<δ0→|f(x)−f(y)|<ε0)asm, for ∃E
7∀y∈A(|x0−y|<δ0→|f(x0)−f(y)|<ε0)∀E 6, 2
8∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0)∃I 5, 7
9∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0)∃E 4, 5–8
10∀ε>0∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε)∀I 3–9
11∀x∈A∀ε>0∃δ>0∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)∀I 2–10

Every line is tagged with its rule; lines 4, 7 and 8 are the one-line bounded rules, and lines 9, 10 and 11 close bounded boxes. The terms and the side conditions:

  • Line 4: ∀E at ε0, with its bound on line 3. The term ε0 is a variable that does not appear in line 1, so it is free for ε.
  • Line 7: ∀E at x0, with its bound on line 2, which is available because the box of line 2 is still open.
  • Line 8: ∃I with the witness δ0, its bound on line 5 and the instance on line 7.
  • Line 9 (∃E, flag δ0): δ0 does not appear in line 9 (the witness was forgotten at line 8), in line 4, in the premise, or in the assumptions still open at line 9, lines 2 and 3.
  • Line 10 (∀I, flag ε0): ε0 does not appear in the premise, in line 10, or in the assumption still open at line 10, line 2.
  • Line 11 (∀I, flag x0): x0 does not appear in the premise or in line 11, and no assumption is open.

The answer to the prompt: line 5 is the assumption of the ∃E box, so it rests on line 4, which rests on lines 1 and 3. None of the three mentions x0. The witness δ0 was obtained from the premise at ε0 alone, before x0 played any part. That is uniformity, read off the lines.

The derivation has 11 lines. Written with the unbounded rules it has 17, since each of its six bounded steps (lines 4, 7, 8, 9, 10 and 11) costs one line more (Section 6.1). The bounded rules keep it at the level at which a mathematician thinks, and the same argument in prose is three sentences, each aligned with the lines it abbreviates:

Let x∈A and ε>0 [lines 2, 3, 10, 11]. By uniform continuity there is δ>0 such that |u−v|<δ implies |f(u)−f(v)|<ε for all u,v∈A; choose such a δ [4, 5, 6, 9]. Applied with u=x, this gives |f(x)−f(y)|<ε for every y∈A with |x−y|<δ, so this δ works for x and ε [7, 8].

The prose renames the bound variables of UC to u,v, so that “x” can name the fixed point; a derivation needs no such care, because ∀E handles bound variables by substitution.

6.4.4. Reading dependence off the boxes

The derivation shows something the informal proof leaves unsaid: the exact place where δ is chosen, and what surrounds it there.

A constant chosen in a box may depend on the names of the boxes open around that box, and it does depend only on the names in the line it comes from.

Quick check. In the derivation above, which flagged boxes surround the box of δ0, opened at line 5? What may δ0 therefore depend on, and what does it in fact depend on?

Solution. The boxes of x0 (opened at line 2) and of ε0 (opened at line 3). So δ0 may depend on x0 and on ε0, as C allows. In fact it depends only on ε0: it comes from line 4, which mentions ε0 and not x0.

Why “may”? Inside the boxes of x0 and ε0, every term built from x0 and ε0 is available, so a premise could have been instantiated at such a term, and a witness obtained from the resulting ∃ line would depend on both names. The side conditions permit that here, because the goal C puts ∃δ inside both ∀’s: the witness is forgotten by ∃I (line 8) before either box closes. Why “does”? Because everything known about δ0 is what its ∃ line says, and line 4 mentions ε0 alone.

Second readingChoosing the delta before the point

So δ0 could have been obtained before x0 entered at all: fix ε0, obtain δ0, and only then let x0∈A. That is the order of UC itself. A derivation in that order nests the boxes as ε0, δ0, x0 (the box of δ0 rests on line 4, so it stays inside the box of ε0), and it ends in ∀ε>0∀x∈A∃δ>0∀y∈A(…), which is C with its first two quantifiers exchanged. C follows by exchanging them back, as in the swap of Example (Flagged boxes at work) (c), here with the bounded rules: boxes for x1∈A and ε1>0, ∀E at ε1 and then at x1, and two ∀I lines. C’s order of choices allows more dependence than this proof uses.

The limit derivation of Section 6.1 showed the same thing on a smaller scale: its witness N0 came from a line obtained at ε0/2, inside the box of ε0 only, and so it depended on ε0.

6.4.5. The converse breaks at a side condition

The converse, from C to UC, is the interesting direction. The search for it fails, and the failure has an exact address.

Example (The search from C to UC)

Run the search method on the sequent with premise C and goal UC, and find where it stops.

Try it first (ten minutes): start the search. Where does a δ come from, and at what moment can you get one?

Idea. The obvious plan copies the derivation above: fix ε0, obtain δ0 from the premise, choose it as the witness. It runs into an obstacle at the second step. In C, ∃δ stands behind ∀x∈A, so to reach it the premise must first be instantiated at a point, and the bounded ∀E needs a line t∈A. No such line exists until we assume one, in a box for some x0. The δ0 obtained inside that box comes from a line that mentions x0, and both side conditions then hold it in: it cannot leave its own box while a line about it still mentions it, and x0 cannot be generalized while a line about δ0 still mentions x0.

Solution. The goal UC begins ∀ε>0, so open a box for ε0. The new goal ∃δ>0∀x∈A∀y∈A(…) is postponed. The premise C begins ∀x∈A, and no line t∈A is available; the only way to get one is to assume it, so open a bounded box “let x0∈A”. Then the premise yields a δ. Here is how far the search gets, every line legal:

1∀x∈A∀ε>0∃δ>0∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)
2ε0ε0>0asm, for ∀I
3x0x0∈Aasm, for ∀I
4∀ε>0∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε)∀E 1, 3
5∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0)∀E 4, 2
6δ0δ0>0asm, for ∃E
7∀y∈A(|x0−y|<δ0→|f(x0)−f(y)|<ε0)asm, for ∃E
8∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0)∃I 6, 7
9∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0)∃E 5, 6–8
10∀x∈A∃δ>0∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε0)∀I 3–9
11∀ε>0∀x∈A∃δ>0∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)∀I 2–10

The goal inside the box of ε0 needs a δ that works for all points: the line ∀x∈A∀y∈A(|x−y|<δ0→|f(x)−f(y)|<ε0), so that ∃I at δ0 could finish. Line 7 says this only for the point x0. There are two ways to try to generalize it, and each is stopped by a side condition.

  • Generalize inside the box of δ0. After line 7, open a new flagged box with the name x0 and the assumption x0∈A, repeat line 7 in it, and close it by ∀I with the conclusion ∀x∈A∀y∈A(|x−y|<δ0→…). That line breaks the side condition of ∀I: x0 appears in assumptions still open there, line 3 and line 7. (With a different name x1 the box is legal, but line 7 says nothing about x1, so the box cannot reach its last line.)
  • Leave the box of δ0 first, carrying line 7. Close the ∃E box with line 7 itself as its conclusion, in order to generalize over x0 outside it. That line breaks the side condition of ∃E: its conclusion mentions the witness δ0.

The only legal way out of the box of δ0 is to forget δ0, as line 8 does with ∃I before line 9 closes the box. Then ∀I on x0 is legal, and line 10 is what it gives: ∀x∈A∃δ>0, with δ still behind x. That is C at ε0 again, not UC, and closing the box of ε0 gives line 11, which is C with its first two quantifiers exchanged. The search has gone round in a circle.

These are the same two blocks that stopped the converse of Proposition 5.6.2: a ∀I blocked by an open assumption that mentions its name, and an ∃E box that cannot close on a line mentioning its witness. That is no coincidence: with the bounds and the matrix stripped away, C to UC is the swap ∀x∃δ to ∃δ∀x.

A failed search proves nothing about all derivations; a counter-reading does, and the next subsection gives one: a function for which C is true and UC false. Section 7.2 explains why that settles the question.

6.4.6. A function that is continuous and not uniformly continuous

Here is the picture first; the example proves it.

Diagram. Labels: x, y, y = x^2

With ε=1, the largest δ that works at x≥0 is x2+1−x: 1 at 0, about 0.41 at 1, 0.24 at 2, 0.16 at 3. It shrinks as x grows, and no single positive δ works at every x.

Example (The square function on the real line)

Let f(x)=x2 on A=R. Show that f satisfies C and does not satisfy UC.

Solution. C holds. Let x∈R and ε>0. Let δ:=min(1,ε2|x|+1), which is positive, since ε>0 and 2|x|+1≥1>0. It depends on ε and on x. Let y∈R with |x−y|<δ. By the triangle inequality (Example (The triangle inequality by cases)), used twice, and since δ≤1, |y|≤|x|+|y−x|<|x|+1, so |x+y|≤|x|+|y|<2|x|+1. Hence |x2−y2|=|x−y|⋅|x+y|≤|x−y|(2|x|+1)<δ(2|x|+1)≤ε, where the strict step uses 2|x|+1>0, and the last step uses δ≤ε/(2|x|+1). So this δ works for x and ε.

UC fails. By the negation of uniform continuity in Example (Three negations from analysis) (c), with the bounds x∈R and y∈R dropped because they always hold, we must show ∃ε>0∀δ>0∃x∃y(|x−y|<δ∧|x2−y2|≥ε). Take ε=1. Let δ>0 be arbitrary, and take x:=1/δ and y:=1/δ+δ/2, which depend on δ. Then |x−y|=δ/2<δ, and, since y>x>0 (so y−x and y+x are both positive), |x2−y2|=(y−x)(y+x)=δ2(2δ+δ2)=1+δ24≥1. Since δ was arbitrary, UC fails.

The δ for C grows smaller as |x| grows, and no single δ serves the whole line. The proof of failure says why: however small δ is, far enough out (at x=1/δ) the graph is so steep that two points δ/2 apart have values more than 1 apart. Read in the real numbers, with f as squaring, the premise C is true and the conclusion UC is false: a counter-reading, and by Section 7.2 no derivation of UC from C exists.

Warning. “Depending on ε” is a claim, and it can be false. When a proof says “choose δ (depending on ε)”, the parenthesis records which boxes are open where δ is chosen, and which names its formula uses. This is the logical origin of the book’s rule that every chosen constant says what it depends on: the dependence is a record of the open boxes, and a reader can check it. A proof of uniform continuity must be able to write “depending on ε” truthfully. A “proof” that x2 is uniformly continuous on R that takes δ=min(1,ε/(2|x|+1)) “(depending on ε)” has a formula for δ that mentions x: the δ was chosen inside the box of x, so the proof shows only C, and Example (The square function on the real line) shows that UC is false.

The proof that UC fails for x2 established, with numbers, the positive form of the negation from Section 6.2. That form, taken before its last order fact, refutes UC by logic alone, and a derivation shows how; one TAUT line (Section 6.3) carries its propositional core.

Example (The negation at work, in one derivation)

Let E be ∃ε>0∀δ>0∃x∈A∃y∈A(|x−y|<δ∧¬(|f(x)−f(y)|<ε)), the form of Example (Three negations from analysis) (c) before its last order fact. Derive E⊢¬UC, with the bounded rules of Section 6.1.

Solution.

1∃ε>0∀δ>0∃x∈A∃y∈A(|x−y|<δ∧¬(|f(x)−f(y)|<ε))
2∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)asm, for ¬I
3ε1ε1>0asm, for ∃E
4∀δ>0∃x∈A∃y∈A(|x−y|<δ∧¬(|f(x)−f(y)|<ε1))asm, for ∃E
5∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε1)∀E 2, 3
6δ1δ1>0asm, for ∃E
7∀x∈A∀y∈A(|x−y|<δ1→|f(x)−f(y)|<ε1)asm, for ∃E
8∃x∈A∃y∈A(|x−y|<δ1∧¬(|f(x)−f(y)|<ε1))∀E 4, 6
9x1x1∈Aasm, for ∃E
10∃y∈A(|x1−y|<δ1∧¬(|f(x1)−f(y)|<ε1))asm, for ∃E
11y1y1∈Aasm, for ∃E
12|x1−y1|<δ1∧¬(|f(x1)−f(y1)|<ε1)asm, for ∃E
13∀y∈A(|x1−y|<δ1→|f(x1)−f(y)|<ε1)∀E 7, 9
14|x1−y1|<δ1→|f(x1)−f(y1)|<ε1∀E 13, 11
15⊥TAUT 12, 14
16⊥∃E 10, 11–15
17⊥∃E 8, 9–16
18⊥∃E 5, 6–17
19⊥∃E 1, 3–18
20¬∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)¬I 2–19

Line 15’s propositional skeleton is p∧¬q, p→q⊨⊥, so the line replaces ∧E twice, →E and ¬E, four lines. The boxes on the witness lines 5, 8 and 10 are opened as soon as those lines exist, the move “name the witness early” (Section 5.6), which Section 6.3 puts first. Every closing line’s witness (y1, x1, δ1, ε1) is absent from ⊥, from the ∃ line it cites, from the premise, and from the assumptions still open.

6.4.7. Witness functions

UC says that for every ε>0 some δ>0 works for all points. A rule that picks such a δ for each ε is a function, δ(ε): a witness function for UC. For f(x)=x/2 on R, δ(ε)=2ε works, since |x/2−y/2|=|x−y|/2<ε when |x−y|<2ε.

For C the witness may depend on the point too: δ(x,ε). For x2, Example (The square function on the real line) gave δ(x,ε)=min(1,ε/(2|x|+1)).

A derivation shows which arguments a witness function needs. A witness obtained inside the boxes of ε0 and x0 may be a function of both, and one obtained inside the box of ε0 alone is a function of ε0 alone. “May depend” and “does depend” are exactly the two readings of “Reading dependence off the boxes”. So UC holds when some witness function for C ignores its point argument, and the derivation of Example (Uniformly continuous implies continuous) does the reverse: it turns a δ(ε) for UC into a δ(x,ε):=δ(ε) for C, one that ignores x.

In the game of Section 5.1, a witness function is a strategy for the defender: a rule that answers every challenge, and the defender wins by following it.

A formula of this book cannot say “there is a function”: its variables range over numbers. A function symbol can stand for one chosen function, and that is how Sections 5.1 and 6.1 wrote sequences.

A tempting “proof” of the converse tries to build a witness function for UC out of one for C, by taking the smallest of its values.

Example (A “proof” that continuity gives uniform continuity)

Find the error in this argument, which claims that every function continuous at every point of A is uniformly continuous on A.

Let ε>0. For each x∈A, continuity at x gives δx>0 with |f(x)−f(y)|<ε whenever y∈A and |x−y|<δx. Let δ be the smallest of the numbers δx. Then δ>0, and it works at every point, so f is uniformly continuous.

Solution.

  • The conclusion is false for x2 on R (Example (The square function on the real line)), so some step fails, and it is the third sentence.
  • Infinitely many positive numbers need not have a smallest, and they may come arbitrarily close to 0. With ε=1, the largest δ that works for x2 at x≥0 is x2+1−x (the figure above), which is 1/(x2+1+x)<1/(2x) for x>0, and so smaller than any given positive number once x is large.
  • In the rules: each δx is the witness of an ∃E box inside the box of x0, and “the smallest of them” would be a line about all the witnesses at once. Using it needs a δ that works at every point, the line ∀x∈A∀y∈A(|x−y|<δ→…) whose two routes Example (The search from C to UC) found blocked by side conditions.
  • For finite A={a1,…,ak} the proof is right: k uses of ∃E give δ1,…,δk (the subsection “Two witnesses” of Section 5.6, repeated), and min(δ1,…,δk)>0 works at every point.

The search stalls at the same side condition that stopped Example (The search from C to UC); that x2 is a counter-reading for the converse is the evidence that no other route exists (Section 7.2).

Quick check. For which sets A does the step “let δ be the smallest of the δx” make sense, and give a positive δ?

Solution. For finite non-empty A. Finitely many positive numbers have a smallest, and it is positive. For empty A, UC holds outright, since its ∀x∈A is vacuous.

Remark (Looking ahead). Chapter 8 shows how the eleven lines of Example (Uniformly continuous implies continuous) become the three sentences of a written proof, at several levels of detail.

6.4.8. Exercises

A. Check your understanding

Exercise (A1)

These parts are about the derivation of Example (Uniformly continuous implies continuous).

  • (a) Why is line 7 legal? Name the rule, the term, and the lines it cites, and say why those lines are available.
  • (b) At which line is the premise’s “for all x∈A” used, and at which term?
  • (c) State the idea of the derivation in two sentences.
  • (d) Run the derivation for f(x)=3x+1 on A=R, where UC holds with δ=ε/3. For a given x0 and ε0>0, which δ does the derivation hand to C at line 8, and does it depend on x0? Check that it works.

Solution. (a) Line 7 is the bounded ∀E at the term x0. It cites line 6, ∀x∈A∀y∈A(…), and line 2, x0∈A, the bound’s instance. Line 6 is the assumption of the ∃E box that contains line 7, and line 2 is the assumption of the box of x0, which also contains line 7; both boxes are still open at line 7. The term x0 is a variable not appearing in line 6, so it is free for x.

(b) At line 7, at the term x0. Line 6 says that δ0 works for all pairs of points of A, and line 7 uses that for pairs with first point x0.

(c) Uniform continuity at ε supplies one δ that works for all points at once, and it is supplied before any point is named. Continuity at a point x then takes that same δ, specialized to the point x.

(d) Line 4 says that some δ>0 works at ε0, and line 8 hands C that witness δ0, whatever it is; the derivation knows only lines 5 and 6 about it. Here ε0/3 is such a witness (so is any δ with 0<δ≤ε0/3). Reading the derivation with the witness the exercise names, δ0=ε0/3, the δ handed to C is ε0/3. It does not depend on x0. It works: for every real y with |x0−y|<ε0/3, |f(x0)−f(y)|=|(3x0+1)−(3y+1)|=3|x0−y|<3⋅ε03=ε0.

Exercise (A2: Drill)

Each part takes a line or two. The parts run from single steps, through a missing line, a justification column and a step to judge, to witness functions, a negation and one short derivation. UC and C are the formulas of “Two definitions that differ in one place”.

  • (a) Line 1 is UC and line 2 is 1>0. Write the line that the bounded ∀E 1, 2 gives.
  • (b) The available lines are δ1>0 and ∀y∈A(|x0−y|<δ1→|f(x0)−f(y)|<ε0). Write the line that the bounded ∃I with witness δ1 gives.
  • (c) In Example (The negation at work, in one derivation), line 13 is the bounded ∀E from line 7 at x1. Which second line must be available?
  • (d) In the six-line derivation of “The skeleton first”, give the rule and the cited lines of lines 3 and 4.
  • (e) In Example (The search from C to UC), give the rule and the cited lines of line 10.
  • (f) Is this correct? Inside the boxes of ε0 and x0, a witness δ0 obtained from C at x0 is used in ∃I to write ∃δ>0∀x∈A∀y∈A(…).
  • (g) Give a witness function for UC of f(x)=5x on R.
  • (h) For x2, what does the witness function min(1,ε/(2|x|+1)) give at x=3, ε=1?
  • (i) For x2 and ε=1, what is the largest δ that works at x=4, by the formula under the figure?
  • (j) Negate C, “continuous at every point of A”, into positive form.
  • (k) Which quantifier of C must move, and past which, to turn C into UC?
  • (l) Derive ∀ε>0∃δ>0(δ≤ε) with the bounded rules, given the arith line ε0≤ε0.

Solution.

  • (a) ∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<1).

  • (b) ∃δ>0∀y∈A(|x0−y|<δ→|f(x0)−f(y)|<ε0).

  • (c) Line 9, x1∈A.

  • (d) Line 3: ∀E 2, at x0. Line 4: ∃I 3, with witness δ0.

  • (e) The bounded ∀I, 3–9.

  • (f) No. That ∃I needs the line ∀x∈A∀y∈A(|x−y|<δ0→…), and that line needs ∀I over x0 while an open assumption about δ0 mentions x0: the side condition of ∀I.

  • (g) δ(ε)=ε/5, since |5x−5y|=5|x−y|<ε when |x−y|<ε/5.

  • (h) min(1,1/7)=1/7.

  • (i) 17−4≈0.123.

  • (j) ∃x∈A∃ε>0∀δ>0∃y∈A(|x−y|<δ∧|f(x)−f(y)|≥ε).

  • (k) ∀x∈A moves to the right, past ∃δ>0. Passing ∀ε>0 is harmless (two ∀’s exchange); passing ∃δ is the swap that fails.

  • (l) The witness function is δ(ε)=ε:

1ε0ε0>0asm, for ∀I
2ε0≤ε0arith
3∃δ>0(δ≤ε0)∃I 1, 2
4∀ε>0∃δ>0(δ≤ε)∀I 1–3

B. Practice

Exercise (B1: Lipschitz implies uniformly continuous)

A function f is Lipschitz on A when ∃L≥0∀x∈A∀y∈A(|f(x)−f(y)|≤L⋅|x−y|). Prove that a function that is Lipschitz on A is uniformly continuous on A, first as a derivation with the bounded rules (lines of arithmetic justified “arith”), then as a short proof in prose. Say what your δ depends on. (The bound L≥0 is part of the definition: if A has at most one point, then x=y in the matrix, and any L, even L=−1, would satisfy it. The bound rules this out, so a proof may use L≥0, for instance to divide by L+1.)

Solution. The goal UC begins ∀ε>0: open a box for ε0. The new goal ∃δ>0… is postponed until a witness is in hand. The premise begins ∃L≥0: open its ∃E box at once, with a witness L0, aiming for the postponed goal, which does not mention L0. Work backwards from what the boxes for x0 and y0 will need: from |x0−y0|<δ we want |f(x0)−f(y0)|<ε0, and the premise gives |f(x0)−f(y0)|≤L0|x0−y0|<L0δ when L0>0. So δ=ε0/L0 is the natural guess, but L0=0 is allowed and then ε0/L0 is undefined. Take δ=ε0/(L0+1) instead: L0+1≥1>0, and L0δ=ε0⋅L0/(L0+1)<ε0.

1∃L≥0∀x∈A∀y∈A(|f(x)−f(y)|≤L⋅|x−y|)
2ε0ε0>0asm, for ∀I
3L0L0≥0asm, for ∃E
4∀x∈A∀y∈A(|f(x)−f(y)|≤L0⋅|x−y|)asm, for ∃E
5ε0/(L0+1)>0arith 2, 3
6x0x0∈Aasm, for ∀I
7y0y0∈Aasm, for ∀I
8|x0−y0|<ε0/(L0+1)asm, for →I
9∀y∈A(|f(x0)−f(y)|≤L0⋅|x0−y|)∀E 4, 6
10|f(x0)−f(y0)|≤L0⋅|x0−y0|∀E 9, 7
11|f(x0)−f(y0)|<ε0arith 2, 3, 8, 10
12|x0−y0|<ε0/(L0+1)→|f(x0)−f(y0)|<ε0→I 8–11
13∀y∈A(|x0−y|<ε0/(L0+1)→|f(x0)−f(y)|<ε0)∀I 7–12
14∀x∈A∀y∈A(|x−y|<ε0/(L0+1)→|f(x)−f(y)|<ε0)∀I 6–13
15∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε0)∃I 5, 14
16∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε0)∃E 1, 3–15
17∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)∀I 2–16

Line 11 is arithmetic from lines 2, 3, 8 and 10: |f(x0)−f(y0)|≤L0|x0−y0|≤L0⋅ε0/(L0+1), where the second step uses L0≥0, and L0/(L0+1)<1 with ε0>0 gives L0ε0/(L0+1)<ε0. Line 15 is the bounded ∃I at the term ε0/(L0+1), with its bound on line 5. At line 16, L0 does not appear in line 16 (the witness term was forgotten at line 15), in line 1, which is the premise, or in the assumption ε0>0 still open there. At lines 13, 14 and 17 the flags y0, x0, ε0 do not appear in the premise, in the line itself, or in the assumptions then open (among lines 2, 3, 4 and 6).

In prose: Let L≥0 be a constant with |f(x)−f(y)|≤L|x−y| for all x,y∈A. Let ε>0, and let δ:=ε/(L+1), which is positive and depends on ε (and on the constant L, which is fixed before ε), but not on any point. For x,y∈A with |x−y|<δ, |f(x)−f(y)|≤L|x−y|≤Lδ=εL/(L+1)<ε. So f is uniformly continuous on A. The box of L0 is open where δ is chosen, so δ may depend on L0. That is harmless: L0 is a constant of the function, not a point, and its box could as well have been opened first, outside the box of ε0.

Exercise (B2: Put the proof in order)

Below are ten sentences. Eight of them, in a suitable order, form a proof that a function f uniformly continuous on A is continuous at every point of A; two are distractors. Write down an order for the eight, and say why each distractor is wrong.

  • (i) Since x and y lie in A and |x−y|<δ, the choice of δ, applied to u=x and v=y, gives |f(x)−f(y)|<ε.
  • (ii) Let δ>0 be arbitrary.
  • (iii) Let ε>0.
  • (iv) Since ε>0 and x∈A were arbitrary, f is continuous at every point of A.
  • (v) Suppose f is uniformly continuous on A.
  • (vi) By uniform continuity, applied to ε, choose δ>0 such that for all u,v∈A, |u−v|<δ implies |f(u)−f(v)|<ε.
  • (vii) Choose δ>0 for this x and this ε, and then let x∈A be arbitrary.
  • (viii) Let x∈A.
  • (ix) So for every y∈A, |x−y|<δ implies |f(x)−f(y)|<ε: this δ works for x and ε.
  • (x) Let y∈A with |x−y|<δ.

Solution. An admissible order: (v), (viii), (iii), (vi), (x), (i), (ix), (iv).

  • (v) is the hypothesis of the implication being proved, so it opens the proof (its →I box is the outermost one). After it, other orders are admissible as long as each sentence comes after what it uses. (vi) uses the ε of (iii); (x) uses the δ of (vi) and the x of (viii); then (i), (ix), (iv) follow in that order. So exactly three orders are admissible: (viii), (iii), (vi); or (iii), (viii), (vi); or (iii), (vi), (viii), each preceded by (v) and followed by (x), (i), (ix), (iv). Only the first matches the derivation of Example (Uniformly continuous implies continuous) directly. The second and the third fix ε before x; the third even chooses δ before any point is given, which is possible because uniform continuity supplies δ from ε alone. They correspond to variants of that derivation in which the box of ε0 (in the third, also that of δ0) is opened outside the box of x0. Both variants end in ∀ε>0∀x∈A∃δ>0∀y∈A(…), and C follows by exchanging the two bounded universal quantifiers (the swap of Example (Flagged boxes at work) (c), with the bounded rules); sentence (iv), “since ε and x were arbitrary”, covers both steps in prose.

Distractor (ii) introduces δ as an arbitrary object, by ∀I. But in “continuous at x” the δ is under ∃: the proof must produce it, by a choice from the hypothesis, not receive it from a challenger. A proof that took δ arbitrary would have to show that every δ>0 works, which is false in general.

Distractor (vii) chooses δ and only afterwards lets x be arbitrary. It looks legitimate, because when (vii) is read after (viii), x is already fixed, and continuity at x does allow δ to depend on x. But the sentence reverses the order of the two steps: a δ fitted to one particular x is followed by “let x be arbitrary”, which claims that the same δ works for every x. In the rules: if δ really was chosen for this x, its ∃E box assumes a line that mentions x, and generalizing over x while that assumption is open breaks the side condition of ∀I, the first blocked line of Example (The search from C to UC). If δ does not depend on x, as here, then “for this x” is idle and the sentence should be (vi).

Exercise (B3: The square root)

Prove that f(x)=x is uniformly continuous on A=[0,∞). You may use the school inequality |x−y|≤|x−y| for all x,y≥0. State what your δ depends on.

Solution. Let ε>0, and let δ:=ε2, which is positive and depends on ε only. Let x,y∈[0,∞) with |x−y|<δ. Then, by the inequality given and because the square root is strictly increasing on [0,∞), |x−y|≤|x−y|<ε2=ε. Since x and y were arbitrary, this δ works for all pairs of points; since ε was arbitrary, f is uniformly continuous on [0,∞). The δ was chosen before the points: in a derivation of this proof, its ∃I line would lie inside the box of ε0 only.

Exercise (B4: Witness functions)

For each function, give a witness function for uniform continuity on the set named, say what it depends on, and prove that it works.

  • (a) f(x)=|x| on R.
  • (b) f(x)=x2 on [0,3].
  • (c) Say in one sentence why the formula of (b) gives no witness function on all of R.

Solution. (a) δ(ε)=ε, which depends on ε only. Let x,y∈R with |x−y|<ε. By the triangle inequality (Example (The triangle inequality by cases)), |x|≤|x−y|+|y| and |y|≤|y−x|+|x|, so |x|−|y|≤|x−y| and |y|−|x|≤|x−y|; hence ||x|−|y||≤|x−y|<ε.

(b) δ(ε)=ε/6. For x,y∈[0,3], |x+y|=x+y≤6, so if |x−y|<ε/6, then |x2−y2|=|x−y|⋅|x+y|≤6|x−y|<ε. It depends on ε and on the bound 3 of the set, and on no point.

(c) On R, |x+y| has no bound, so no constant can replace the 6, and Example (The square function on the real line) shows that no witness function exists there at all.

Marking scheme. (10 points) - 3: (a), with ||x|−|y||≤|x−y| proved (for instance by the triangle inequality twice). - 4: (b): 1 for the bound |x+y|≤6, 2 for the chain, 1 for the dependence. - 3: (c). Fatal error (0 for the step): a “witness” that mentions x or y.

C. Going deeper

Exercise (C1: Composition, half done)

Let f be uniformly continuous on A, with f(x)∈B for every x∈A, and let g be uniformly continuous on B. Here is the start of a proof that the composite x↦g(f(x)) is uniformly continuous on A:

Fix ε>0. By the uniform continuity of g, choose η>0 such that |u−v|<η implies |g(u)−g(v)|<ε for all u,v∈B.

The rest is blank. Name the move, then complete it.

Solution (Hint 1). The goal asks for a δ. Which hypothesis can produce one, and at which positive number should it be applied?

Solution (Hint 2). “By the uniform continuity of f, applied to η, choose δ>0 such that …”

Solution. The move is fix, obtain, choose: ε was fixed (∀I), η obtained from the hypothesis on g (∀E at ε, then ∃E); now obtain δ from the hypothesis on f at the term the goal needs, η (∀E at η, then ∃E), and choose that δ as the witness (∃I).

Completion. Since η>0, the uniform continuity of f, applied to η, gives δ>0 such that |x−y|<δ implies |f(x)−f(y)|<η for all x,y∈A; choose such a δ. It depends on η, hence on ε, and on no point. Let x,y∈A with |x−y|<δ. Then |f(x)−f(y)|<η, and f(x),f(y)∈B, so the choice of η, applied to u=f(x) and v=f(y), gives |g(f(x))−g(f(y))|<ε. Since x,y were arbitrary, this δ works for all pairs of points of A; since ε>0 was arbitrary, x↦g(f(x)) is uniformly continuous on A.

Marking scheme. (10 points) - 2: names the move (fix, obtain, choose), or the rules ∀E at η, ∃E, ∃I. - 3: applies the uniform continuity of f at η (not at ε), using η>0, and chooses δ before any point. - 3: for arbitrary x,y∈A with |x−y|<δ, gets |f(x)−f(y)|<η and then |g(f(x))−g(f(y))|<ε, using f(x),f(y)∈B. - 2: concludes with the quantifiers in the order ε, δ, points, and says δ depends on ε only. Fatal errors (0 for the step): δ chosen after x or depending on x; the uniform continuity of g applied to points not known to lie in B.

Exercise (C2: Gluing two sets)

Let A and B be sets of real numbers and S the set of numbers that lie in A or in B. Suppose f is uniformly continuous on A and uniformly continuous on B.

  • (a) Show that f need not be uniformly continuous on S: take A=(0,1), B=(1,2), and f(x)=0 for x<1, f(x)=1 for x≥1.
  • (b) Prove that f is uniformly continuous on S when A=[a,b] and B=[b,c] with a<b<c.

Solution (Hint 1). For (b), the two sets share the point b. Two points on opposite sides of b are each close to b.

Solution (Hint 2). For (b), apply the two hypotheses at ε/2 and take δ=min(δ1,δ2).

Solution. (a) On A=(0,1), f is constantly 0, so every δ>0 works for every ε>0: |f(x)−f(y)|=0<ε. The same holds on B=(1,2), where f is constantly 1. On S we prove the negation of uniform continuity (Example (Three negations from analysis) (c)). Take ε=1. Let δ>0, and let η:=min(δ/4,12), x:=1−η, y:=1+η. Then 12≤x<1, so x∈A⊆S; 1<y≤32, so y∈B⊆S; |x−y|=2η≤δ/2<δ; and |f(x)−f(y)|=|0−1|=1≥ε. So f is not uniformly continuous on S. The gluing fails because the two sets come arbitrarily close at 1 but have no point in common: points close to 1 on opposite sides are each controlled only by their own set, and no common point links them.

(b) Let ε>0. By the uniform continuity on A at ε/2, choose δ1>0 such that |f(x)−f(y)|<ε/2 for all x,y∈A with |x−y|<δ1; likewise choose δ2>0 for B. Let δ:=min(δ1,δ2)>0, which depends on ε only. Let x,y∈S with |x−y|<δ. There are three cases.

  • Case 1: x,y∈A. Then |f(x)−f(y)|<ε/2<ε, since |x−y|<δ≤δ1.
  • Case 2: x,y∈B. The same, with δ2.
  • Case 3: one point in each set, say x∈A and y∈B (the other way round is the same with the letters exchanged). Then x≤b≤y, so |x−b|=b−x≤y−x=|x−y|<δ≤δ1, and b∈A; hence |f(x)−f(b)|<ε/2. Likewise |b−y|≤|x−y|<δ2 and b∈B, so |f(b)−f(y)|<ε/2. By the triangle inequality (Example (The triangle inequality by cases)), |f(x)−f(y)|≤|f(x)−f(b)|+|f(b)−f(y)|<ε.

Every point of S lies in A or in B, so the cases cover all pairs. So f is uniformly continuous on S. The common point b is what (a) lacked: there, A and B came arbitrarily close at 1 but had no point in common.

Marking scheme. (10 points) - 3: (a) uniform continuity on A and on B checked, and the negation on S proved: ε first, then for arbitrary δ two points depending on δ, with all three conditions checked. - 2: (b) δ1 for A at some ε1>0 and δ2 for B at some ε2>0 with ε1+ε2≤ε (the solution takes ε1=ε2=ε/2), and δ=min(δ1,δ2), depending on ε only. - 2: the cases with both points in one set. - 3: the mixed case, through the point b, with |x−b|,|b−y|≤|x−y| justified and the triangle inequality cited. Fatal errors (0 for the step): a δ depending on x or y; the mixed case omitted; in (a), points chosen before δ.

Exercise (C3: Exit check: a quantifier derivation)
  • (a) Give a full derivation of ∃x(P(x)∧∀yR(x,y))⊢∀y∃x(P(x)∧R(x,y)), and check the side condition of every line that closes a flagged box.
  • (b) For the converse, ∀y∃x(P(x)∧R(x,y))⊢∃x(P(x)∧∀yR(x,y)), give a domain with two elements and a reading of P and R under which the premise is true and the conclusion false, checking both with the informal reading of Section 5.1.

Solution. (a) The goal is a ∀: open a flagged box for y0. The premise is an ∃: open its ∃E box at once, with a witness x0, aiming for the goal’s instance. Inside, take the conjunction apart, instantiate ∀y at y0, and choose x0 as the witness:

1∃x(P(x)∧∀yR(x,y))
2y0x0P(x0)∧∀yR(x0,y)asm, for ∃E
3P(x0)∧E 2
4∀yR(x0,y)∧E 2
5R(x0,y0)∀E 4
6P(x0)∧R(x0,y0)∧I 3, 5
7∃x(P(x)∧R(x,y0))∃I 6
8∃x(P(x)∧R(x,y0))∃E 1, 2–7
9∀y∃x(P(x)∧R(x,y))∀I 2–8
  • Line 8 (∃E, flag x0): x0 does not appear in line 8, in line 1 (the premise), or in any assumption still open at line 8 (there is none: the box of y0 has no assumption). Line 7, the last line of the box of x0, is a line of that box itself and is the formula ∃x(P(x)∧R(x,y0)) that line 8 repeats (Definition 5.6.1).
  • Line 9 (∀I, flag y0): y0 does not appear in the premise or in line 9, and no assumption is open. Line 8, the last line of the box of y0, is the instance at y0 of ∃x(P(x)∧R(x,y)).

The other nesting, with the box of y0 inside the box of x0, works too: ∀I at the end of the inner box (its name y0 is in no open assumption, since the assumption on line 2 does not mention it), then ∃E on a conclusion without x0.

(b) Take a domain with two elements a, b; let P be true of both, and let R(x,y) mean “x is y”. The premise is true: for y=a the witness x=a has P(a) and R(a,a), and for y=b the witness x=b works. The conclusion is false: x=a fails ∀yR(a,y) at y=b, and x=b fails it at y=a. The witness in the premise depends on y; the conclusion asks for one x that serves every y. (Section 7.2 makes this informal reading a structure, and shows that it proves the converse is not derivable.)

Marking scheme. (10 points) - 2: a flagged box with a fresh name y0 for the ∀I, closed correctly. - 3: an ∃E box with a fresh witness x0, whose conclusion does not contain x0, with the side condition checked. - 2: ∧E, ∀E at y0 and ∃I with the witness x0, with the correct terms. - 3: the two-element reading: domain, meaning of P and R, the premise checked for each y and the conclusion refuted for each x. Either nesting of the two boxes earns full marks. Fatal errors (0 for the step): ∀I on a name that appears in an open assumption; an ∃E conclusion containing the witness.

R. Review

Exercise (R1)

Derive ∀x(f(x)=x)⊢∀x(f(f(x))=x).

Solution. The goal is a ∀: open a flagged box. The premise is instantiated twice, at the flag and at the compound term f(x0), the term the goal’s instance contains.

1∀x(f(x)=x)
2x0f(x0)=x0∀E 1
3f(f(x0))=f(x0)∀E 1
4f(f(x0))=x0=E 2, 3
5∀x(f(f(x))=x)∀I 2–4

Line 3 instantiates at f(x0), which is free for x. Line 4 is transitivity, Proposition 5.7.1 (b), written as its one =E step: the equation of line 2 rewrites the last f(x0) of line 3. At line 5, x0 is not in the premise or in line 5, and no assumption is open. The method is Section 5.3’s “instantiate at the term you need”, here a compound term, with the equality of Section 5.7.

Exercise (R2)

Show that the list P↔¬Q, Q↔¬R, R↔¬P is inconsistent.

Solution. A list is inconsistent when ⊥ is derivable from it (Definition 3.2.1). The derivation below uses no RAA: three ¬I boxes give ¬R, ¬P and ¬Q, and each ↔E is used in whichever of its two forms (Definition 2.4.1) the line needs.

1P↔¬Q
2Q↔¬R
3R↔¬P
4Pasm, for ¬I
5¬Q↔E 1, 4
6Rasm, for ¬I
7¬P↔E 3, 6
8⊥¬E 4, 7
9¬R¬I 6–8
10Q↔E 2, 9
11⊥¬E 10, 5
12¬P¬I 4–11
13R↔E 3, 12
14Qasm, for ¬I
15¬R↔E 2, 14
16⊥¬E 13, 15
17¬Q¬I 14–16
18P↔E 1, 17
19⊥¬E 18, 12

A TAUT line (Section 4.8) would do it in one step, since the three formulas have no row that makes them all true: an odd cycle of “is the negation of” is impossible.

Exercise (R3)

You have derived P∧(Q∨R)⊢(P∧Q)∨(P∧R). Derive ∃x(P(x)∧(Q(x)∨R(x)))⊢∃x(P(x)∧Q(x))∨∃x(P(x)∧R(x)), and say which line is the propositional law.

Solution.

1∃x(P(x)∧(Q(x)∨R(x)))
2x0P(x0)∧(Q(x0)∨R(x0))asm, for ∃E
3(P(x0)∧Q(x0))∨(P(x0)∧R(x0))TAUT 2
4P(x0)∧Q(x0)asm, for ∨E
5∃x(P(x)∧Q(x))∃I 4
6∃x(P(x)∧Q(x))∨∃x(P(x)∧R(x))∨I 5
7P(x0)∧R(x0)asm, for ∨E
8∃x(P(x)∧R(x))∃I 7
9∃x(P(x)∧Q(x))∨∃x(P(x)∧R(x))∨I 8
10∃x(P(x)∧Q(x))∨∃x(P(x)∧R(x))∨E 3, 4–6, 7–9
11∃x(P(x)∧Q(x))∨∃x(P(x)∧R(x))∃E 1, 2–10

Line 3, justified by TAUT on the skeleton p∧(q∨r)⊨(p∧q)∨(p∧r), is the propositional law Proposition 1.6.1 of Section 1.6; citing it as a derived rule (Definition 2.3.1) gives the same line. At line 11, x0 is not in line 11 or in line 1, the premise, and no assumption is open. The quantifier steps frame the law: this is the propositional core of Section 6.3.