6.2  Negating and Moving Quantifiers

To prove that a sequence does not converge, or that a function is not uniformly continuous, we must use the negation of a definition, and a negation is only usable once the ¬ has been pushed all the way in. “It is not the case that for every ε>0 there is an N …” gives a proof nothing to hold. “There is an ε>0 such that for every N there is an n≥N with …” tells it what to find. Section 5.1 read the step from the first form to the second informally, as the challenger and the defender changing sides. This section derives the laws that make it exact, with the rules of Sections 5.3–5.6. Once they are proved, negating a definition is mechanical: one law per symbol, from the outside in. It then shows the laws at work, in an analysis proof in which a negation and a well-chosen ε do the work, and ends with the laws that move a quantifier across a connective, and with prenex form, where every quantifier stands at the front.

Remark (Looking back). Section 3.2 proved two statements equivalent by two derivations, one each way. Every law of this section is such a pair. What is new is that a law may now be used on a part of a formula buried under quantifiers, and the subsection on negating a definition says why that is safe.

6.2.1. Not every, and some not

Section 5.1 called the two quantifiers mirror images: a single counterexample refutes a “for every”, and a single witness confirms a “there exists”. The mirror suggests four sequents. “Not every x satisfies φ” should say the same as “some x fails φ”, and “no x satisfies φ” the same as “every x fails φ”. Three of the four directions come straight out of the search method. The fourth does not, and the reason it does not is worth a close look.

To negate a quantifier, flip it and move the ¬ inside.

In the derivations of this section, ¬φ[x0/x] means (¬φ)[x0/x], which is ¬(φ[x0/x]) by Definition 5.2.5; the two readings give the same formula. The fresh name x0 is always a variable different from x that does not appear in φ (or in ψ, when there is one); so it does not appear in ∀xφ or ∃xφ either. The side conditions of ∀I and ∃E need this, and it also makes x0 free for x in φ (Section 5.2).

Proposition 6.2.1 (Quantifier Negation)

Let φ be a formula and x a variable.

  • (a) ¬∀xφ⊢∃x¬φ, by a derivation that uses RAA;
  • (b) ∃x¬φ⊢¬∀xφ, by a derivation that does not;
  • (c) ¬∃xφ⊣⊢∀x¬φ, both directions by derivations that do not use RAA.

Try it first (ten minutes): run the search method of Section 3.1, with the quantifier steps of Sections 5.3–5.6, on (a). Which rule should give the last line, and what would that rule need from the premise?

Idea. Start with (a), and with the obstacle. The goal ∃x¬φ is an ∃, so the search postpones it until an available line shows an instance ¬φ[t/x]. None ever does. The premise ¬∀xφ is a negation, and a negation is used only by clashing it with what it negates, ∀xφ. It says that a counterexample exists and names none, so ∃I has nothing to act on. We are stuck, and the last step of the method applies: assume ¬∃x¬φ, “no x fails φ”, and hunt for a clash. The clash will be with the premise, so the new goal is ∀xφ. Open a flagged box for it, with the goal φ[x0/x]. That goal is again stuck (we know nothing about φ), so a second RAA assumes ¬φ[x0/x]; and now an instance of ¬φ is on a line, so ∃I produces ∃x¬φ, which clashes with the outer assumption.

For (b) and (c) the method runs without getting stuck. A negated goal opens a ¬I box (Section 2.2); an ∃ premise opens an ∃E box early (Section 5.6); a ∀ goal opens a flagged box (Section 5.4). The clash comes in one of two ways. In (b), and in (c) right to left, the instance assumed in the ∃E box clashes with the matching instance that ∀E takes from the ∀ line. In (c) left to right, ∃I turns the instance into ∃xφ, which meets the premise ¬∃xφ.

Proof. For (a), the derivation:

1¬∀xφ
2¬∃x¬φasm, for RAA
3x0¬φ[x0/x]asm, for RAA
4∃x¬φ∃I 3
5⊥¬E 4, 2
6φ[x0/x]RAA 3–5
7∀xφ∀I 3–6
8⊥¬E 7, 1
9∃x¬φRAA 2–8

Line 4 is ∃I at the term x0, which is free for x in ¬φ. At line 7 the side condition of ∀I holds: x0 does not appear in the premise, in the assumption ¬∃x¬φ still open at line 7, or in ∀xφ, since it is not x and does not appear in φ; and line 6 is the last line of the flagged box.

For (b):

1∃x¬φ
2∀xφasm, for ¬I
3x0¬φ[x0/x]asm, for ∃E
4φ[x0/x]∀E 2
5⊥¬E 4, 3
6⊥∃E 1, 3–5
7¬∀xφ¬I 2–6

At line 6, x0 does not appear in ⊥, in ∃x¬φ, in the premise, or in the assumption ∀xφ still open there.

For (c), left to right and right to left:

1¬∃xφ
2x0φ[x0/x]asm, for ¬I
3∃xφ∃I 2
4⊥¬E 3, 1
5¬φ[x0/x]¬I 2–4
6∀x¬φ∀I 2–5
1∀x¬φ
2∃xφasm, for ¬I
3x0φ[x0/x]asm, for ∃E
4¬φ[x0/x]∀E 1
5⊥¬E 3, 4
6⊥∃E 2, 3–5
7¬∃xφ¬I 2–6

In the first, line 5 is the instance of ¬φ at x0, as ∀I requires, and x0 appears neither in the premise nor in ∀x¬φ; no assumption is open at line 6. In the second, the side condition of ∃E at line 6 is checked as in (b). No line of the derivations of (b) and (c) is justified by RAA, and the derivation of (a) uses it twice, at lines 6 and 9. This proves the proposition.

So “not every” and “some not” are interderivable, and so are “none” and “every not”. The direction that cost two RAA boxes is the one that produces an existential statement from a negative one. That is not an accident of our derivation: no derivation of (a) avoids RAA. This is a claim about all derivations, which no search can establish, and we state it without proof (Chapter 4’s optional Theorem 4.7.4 proves the propositional analogue for ¬¬P⊢P).

Quick check. From the line ¬∀xP(x), may a derivation write ¬P(c) for a constant c? If not, what may it write, and what does a derivation do next to use it?

Solution. No. ¬∀xP(x) says that some element fails P, not that the element named c does: over Z, with P read as “is even” and c as 0, ¬∀xP(x) is true and ¬P(0) is false. By (a) the derivation may write ∃x¬P(x). To use that line it opens an ∃E box with a fresh witness x0 and the assumption ¬P(x0) (Section 5.6), and nothing about c follows.

The laws as one line. From now on a derivation may use any law of this section as one line, citing it, in the way Proposition 6.1.1 allows a bounded rule: the line abbreviates the derivation printed here, with φ (and ψ) replaced by the formulas at hand and the fresh name chosen so that it appears nowhere in the larger derivation. Then every side condition inside the pasted block still holds, since the block’s premises become lines of the larger derivation and the name is new to all of them. In a derivation the justification is a short tag: QN (a) for Proposition 6.2.1 (a), NIm for Proposition 6.2.2 below, and VI for Proposition 2.1.2.

6.2.2. The negation of an implication

Every definition with a bounded ∀ contains an implication, ∀x(x∈A→φ), so negating it means negating an implication. The answer is the one Section 5.1 found for the wrong translation of a bounded ∃: an implication fails exactly when its hypothesis holds and its conclusion does not. Chapter 3 met this law only as an exercise (Exercise (B1: Three searches) (b)), and a proof in the text may not rest on an exercise, so we prove it here.

Proposition 6.2.2 (Negated Implication)

For all formulas φ and ψ, ¬(φ→ψ)⊣⊢φ∧¬ψ. The direction ⊢ is derived with RAA, and the direction ⊣ without it.

Idea. For ⊢ the goal is a conjunction, so ∧I asks for φ and ¬ψ separately. The premise is a negation, usable only to clash with φ→ψ, so in each part we manufacture φ→ψ. For ¬ψ: open a ¬I box on ψ; then φ→ψ follows by →I, whose box repeats ψ. For φ we are stuck, since φ has no known main connective; so RAA assumes ¬φ, and ¬φ gives φ→ψ by Proposition 2.1.2. For ⊣, the goal is a negation: assume φ→ψ and clash ψ with ¬ψ.

Proof. The two derivations:

1¬(φ→ψ)
2¬φasm, for RAA
3φ→ψVI 2
4⊥¬E 3, 1
5φRAA 2–4
6ψasm, for ¬I
7φasm, for →I
8ψR 6
9φ→ψ→I 7–8
10⊥¬E 9, 1
11¬ψ¬I 6–10
12φ∧¬ψ∧I 5, 11
1φ∧¬ψ
2φ→ψasm, for ¬I
3φ∧E 1
4ψ→E 2, 3
5¬ψ∧E 1
6⊥¬E 4, 5
7¬(φ→ψ)¬I 2–6

Line 3 of the first derivation uses Proposition 2.1.2 as a derived rule (Definition 2.3.1), and line 8 repeats line 6 into the box, since →I needs ψ as a line of its own box. The only RAA is at line 5.

The derivations use only the rules of Chapters 1 and 2, so the law holds for statements as well as formulas, and it may be used as a derived rule in the sense of Definition 2.3.1. Over the real numbers: “if x>2 then x2>4” fails for a given x exactly when x>2 and x2≤4.

6.2.3. Bounded quantifiers keep their bounds

Analysis negates bounded quantifiers: ¬∀ε>0, ¬∃N∈N. The two laws so far combine into laws for them, and the combination has one surprise in it, which is no surprise once the bound is unfolded: the bound stays as it is.

Negating a bounded quantifier flips the quantifier and keeps the bound.

Proposition 6.2.3 (Negating Bounded Quantifiers)

Let A be a fixed set, so that ∈A is a one-place predicate symbol, let x be a variable and φ a formula. Then

  • (a) ¬∀x∈Aφ⊣⊢∃x∈A¬φ, where ⊢ is derived with RAA and ⊣ without;
  • (b) ¬∃x∈Aφ⊣⊢∀x∈A¬φ, both directions without RAA.

The same holds with x∈A replaced by x>a, or by x≥a, x<a, x≤a, for a term a in which x does not occur.

So ¬∀ε>0φ becomes ∃ε>0¬φ, and never ∃ε≤0¬φ.

Idea. Unfold the bounds (Definition 5.1.1): (a) is ¬∀x(x∈A→φ)⊣⊢∃x(x∈A∧¬φ). Push the ¬ through the quantifier by Proposition 6.2.1, and then through the implication by Proposition 6.2.2; the second step must happen under the ∃, so it happens inside an ∃E box. The negation lands on φ, and the bound x∈A comes out of the implication unnegated. For (b), the derivations of Proposition 6.2.1 (c) go through with the bounded rules of Proposition 6.1.1 in place of the unbounded ones.

Proof. For (a), ⊢ and ⊣, with the bounds unfolded:

1¬∀x(x∈A→φ)
2∃x¬(x∈A→φ)QN (a) 1
3x0¬(x0∈A→φ[x0/x])asm, for ∃E
4x0∈A∧¬φ[x0/x]NIm 3
5∃x(x∈A∧¬φ)∃I 4
6∃x(x∈A∧¬φ)∃E 2, 3–5
1∃x(x∈A∧¬φ)
2x0x0∈A∧¬φ[x0/x]asm, for ∃E
3¬(x0∈A→φ[x0/x])NIm 2
4∃x¬(x∈A→φ)∃I 3
5∃x¬(x∈A→φ)∃E 1, 2–4
6¬∀x(x∈A→φ)QN (b) 5

Line 3 on the left is the instance at x0 of ¬(x∈A→φ), since A is not a variable; line 4 is Proposition 6.2.2 with x0∈A and φ[x0/x] for φ and ψ. At line 6, x0 does not appear in the conclusion, in line 2 or in the premise, and no assumption is open. The right-hand derivation is checked the same way. The only use of RAA is inside the two cited laws on the left: in QN (a) and in the direction ⊢ of NIm.

For (b), with the bounded rules:

1¬∃x∈Aφ
2x0x0∈Aasm, for ∀I
3φ[x0/x]asm, for ¬I
4∃x∈Aφ∃I 2, 3
5⊥¬E 4, 1
6¬φ[x0/x]¬I 3–5
7∀x∈A¬φ∀I 2–6
1∀x∈A¬φ
2∃x∈Aφasm, for ¬I
3x0x0∈Aasm, for ∃E
4φ[x0/x]asm, for ∃E
5¬φ[x0/x]∀E 1, 3
6⊥¬E 4, 5
7⊥∃E 2, 3–6
8¬∃x∈Aφ¬I 2–7

At line 7 on the left, the box’s own assumption x0∈A has closed, and x0 is in neither the premise nor the conclusion; at line 7 on the right, x0 is not in ⊥, in line 2, in the premise, or in the open assumption on line 2. Neither derivation uses RAA.

For the bounds x>a and the others, the same four derivations work with x>a and x0>a in place of x∈A and x0∈A, choosing x0 not to appear in a; since x does not occur in a, (x>a)[x0/x] is x0>a. This proves the proposition.

Warning. Negate the quantifier, not the bound. The negation of “an→L” begins ∃ε>0, not ∃ε≤0. The wrong form, ∃ε≤0∀N∈N∃n∈N(n≥N∧|an−L|≥ε), is true for every sequence: ε=0 works, since |an−L|≥0 always. So it would “prove” that the constant sequence an=0 does not converge to 0.

6.2.4. Negating a definition, mechanically

With the laws in hand, negating a definition is a procedure.

Algorithm. Negating a formula.

  1. Rewrite ↔ as two implications, by Proposition 2.4.1.
  2. Push ¬ inward, one symbol at a time, from the outside, citing a law at each step:
  3. Stop at atomic formulas. In an ordered domain, replace ¬(s<t) by s≥t and ¬(s≤t) by s>t; these are facts about the order, not laws of logic.

Each step of 1 and 2 replaces a part of the formula by a part provably equivalent to it. Write that chain with ⊣⊢ between the stages, not ≡. Step 3 is not a law of logic: make its replacements after the chain, citing the order fact.

Why may a step act on a part buried inside the formula? Because a part may be replaced by a part provably equivalent to it, even under quantifiers that bind its variables, as long as the equivalence is derivable for every choice of those variables, that is, its closure is derivable.

Proposition 6.2.4 (Replacement of Provable Equivalents)

Let φ and ψ be formulas, and let z1,…,zk be the variables free in φ or in ψ. Suppose that ⊢∀z1⋯∀zk(φ↔ψ). If χ′ is obtained from a formula χ by replacing one occurrence of φ in χ by ψ, then ⊢∀w1⋯∀wm(χ↔χ′), where w1,…,wm are the variables free in χ or in χ′. In particular, χ⊣⊢χ′.

In words: swap a part for a provably equivalent part anywhere in a formula, provided the equivalence is derivable for every choice of its free variables, that is, its closure is derivable; every law of this section is.

The proof is an induction on the formula χ; its connective steps are short derivations with the rules of Chapters 1 and 2, its quantifier steps use a flagged box or an ∃E box with a fresh name, and it does not use truth tables or completeness. It is in the fold below, followed by a second fold that checks the hypothesis for the laws of this section.

Second readingThe proof of the replacement rule

Proof. For a formula θ, write ∀―θ for its closure: θ preceded by one ∀ for each variable free in θ. The order of these ∀’s does not matter, because the instance of ∀z1⋯∀zkθ at fresh flags comes by ∀E in that order, and k flagged boxes closed by ∀I in any other order give the ∀’s in that other order (this is the derivation of Example (Flagged boxes at work) (c), with k variables), so “the closure” means the closure in any one order. The hypothesis is ⊢∀―(φ↔ψ), and the claim is ⊢∀―(χ↔χ′). A derivable formula may stand as a line of any derivation: paste its derivation in, with its flags renamed to names new to the whole derivation, as “The laws as one line” allows.

We use strong induction (Theorem 4.2.2) on the number of connectives and quantifier symbols of χ: assume the claim for every formula with fewer such symbols, and prove it for χ.

Case 0: the occurrence is χ itself. Then χ is φ, χ′ is ψ, and the claim is the hypothesis.

Otherwise the occurrence lies in an immediate part of χ, which has fewer symbols; an atomic formula has no part other than itself.

Case 1: χ=¬χ0, with the occurrence in χ0, so χ′=¬χ0′. The induction hypothesis gives ⊢∀―(χ0↔χ0′). Open one flagged box for each variable of the closure of ¬χ0↔¬χ0′, nested in the closure’s order, with fresh flags. Inside, ∀E of the induction hypothesis at the flags, each variable at its own flag in the closure’s order, gives the instance α↔α′ of χ0↔χ0′ at the flags; every variable of that closure is free in χ or χ′, so it has a flag. The rules of Sections 2.2 and 2.4 give ¬α↔¬α′: each direction is a ¬I box (Definition 2.2.1) with ↔E inside, and ↔I (Definition 2.4.1) joins them. The flagged boxes then close by ∀I, the innermost first. Each side condition holds: the flag is fresh, and no assumption is open at the closing line.

Case 2: χ=χ1∘χ2, where ∘ is ∧, ∨, → or ↔, and the occurrence is in χ1 (in χ2, exchange the parts). As in case 1, with the propositional step α↔α′⊢(α∘γ)↔(α′∘γ), where γ is the instance of χ2 at the flags. For each ∘ it is a short derivation with that connective’s rules of Chapters 1 and 2 and ↔E on α↔α′. A variable free in χ but not in χ1 is flagged and never instantiated, which is harmless: the instance of the induction hypothesis is taken at the flags of its own variables only.

Case 3: χ=∀xχ0 or ∃xχ0, with the occurrence in χ0, so χ′ is ∀xχ0′ or ∃xχ0′. The induction hypothesis gives ⊢∀―(χ0↔χ0′), whose closure may include x. Let w¯ be the variables free in χ or χ′, so x is not among them, flag them with fresh names w¯0, and write θ0 for θ[w¯0/w¯]. Substitution passes ∀x and ∃x, because x is not among w¯; and all the flags are fresh, so the simultaneous and the step-by-step substitutions agree.

  • For ∀, left to right: assume ∀x(χ0)0 and open a flagged box with a fresh x1. Use ∀E at x1. Use ∀E of the induction hypothesis at w¯0 and x1, each variable at its own flag in the closure’s order. Then ↔E gives (χ0′)0[x1/x], and ∀I gives ∀x(χ0′)0. The flag x1 is in no premise, open assumption or conclusion.
  • Right to left is the same, and ↔I joins the two directions.
  • For ∃: an ∃E box with a fresh witness x1, ↔E inside, closed after ∃I.

The flagged boxes of w¯0 then close by ∀I, as in case 1.

The “in particular”. From ⊢∀―(χ↔χ′), ∀E at each wi itself (a variable is free for itself) gives χ↔χ′, and ↔E gives each direction. No truth table and no completeness theorem was used.

Second readingWhy the laws of this section meet the hypothesis

A law of this section is proved for every formula that meets its condition, so it holds for the instances at fresh names z1,0,…,zk,0, and ↔I (Definition 2.4.1) joins the two directions into α↔β at the fresh names, and k flagged boxes give its closure, as Proposition 6.2.4 asks. Take one variable x at a time, with sides α and β of the law, and a fresh x0: a variable other than x that appears in neither α nor β. The derivation of α[x0/x]⊢β[x0/x] is available because each law used holds for every formula that meets its condition, in particular for the instances at x0. The laws this book applies to parts have conditions of two kinds, and both survive, for the same reason; the passage laws at the end of this section have one kind, checked in the fold after them, and the bounded negation laws the other. A law of Proposition 6.2.3 with a bound such as z>a asks that its bound variable z not occur in the term a; since z appears in β, x0 is not z (as for the passage laws, in the fold after them). If z is x, substitution stops at the quantifier on x and the pair is unchanged; otherwise it passes the quantifier on z, and a[x0/x] contains no variable that a lacks except x0, so z does not occur in it. So the instance is again an instance of the same law, with its condition met.

Renaming a bound variable is a replacement of this kind: Section 5.4 derived ∀yφ⊣⊢∀zφ[z/y] for every formula φ in which z does not appear (the fold after Example (Flagged boxes at work)), and Section 5.6 did the same for ∃, so the convention of Section 5.2, that a renaming may be made anywhere inside a formula, is now a provable equivalence. Its closure is derivable, as Proposition 6.2.4 asks: for a variable x free in it and a fresh x0 (as in the fold above), x is neither y nor z, and x0 is not z, because z appears in ∀zφ[z/y], so z does not appear in φ[x0/x], and the instance is the renaming of ∀yφ[x0/x] to ∀zφ[x0/x][z/y]. Two formulas that differ only by renaming bound variables are joined by a chain of single renamings, each to a letter absent from the formula at that step (for ∀x∀yR(x,y) and ∀y∀xR(y,x): x to u, then y to x, then u to y), each applied to a part by Proposition 6.2.4 and chained by Lemma 2.3.3.

Example (Three negations from analysis)

Negate each statement into positive form: no ¬ in front of a quantifier, a connective or an inequality. Work over R.

  • (a) an→L: ∀ε>0∃N∈N∀n∈N(n≥N→|an−L|<ε).
  • (b) s is the supremum of A, in the two-clause form “s is an upper bound of A, and for every ε>0 some element of A exceeds s−ε”: ∀x∈A(x≤s)∧∀ε>0∃x∈A(s−ε<x).
  • (c) f is uniformly continuous on A: ∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε).

Solution. (a) Three quantifiers, then an implication, then an inequality: ¬∀ε>0∃N∈N∀n∈N(n≥N→|an−L|<ε)⊣⊢∃ε>0¬∃N∈N∀n∈N(n≥N→|an−L|<ε)⊣⊢∃ε>0∀N∈N¬∀n∈N(n≥N→|an−L|<ε)⊣⊢∃ε>0∀N∈N∃n∈N¬(n≥N→|an−L|<ε)⊣⊢∃ε>0∀N∈N∃n∈N(n≥N∧¬(|an−L|<ε)). The first three steps are Proposition 6.2.3, the fourth is Proposition 6.2.2. Last, the order fact turns ¬(|an−L|<ε) into |an−L|≥ε: ∃ε>0∀N∈N∃n∈N(n≥N∧|an−L|≥ε). In words: some ε>0 is such that, however far out we start, some later term is at least ε away from L. Every bound stayed, and the order of the quantifiers stayed: ε, then N, then n.

(b) The outer symbol is ∧. By De Morgan the negation becomes a disjunction, and each side is negated on its own: ¬(∀x∈A(x≤s)∧∀ε>0∃x∈A(s−ε<x))⊣⊢¬∀x∈A(x≤s)∨¬∀ε>0∃x∈A(s−ε<x)⊣⊢∃x∈A¬(x≤s)∨∃ε>0∀x∈A¬(s−ε<x). The first step is Proposition 2.5.5, (d) for ⊢ and (c) for ⊣; the second is Proposition 6.2.3, (a) on the left and (a) then (b) on the right. Last, the order facts turn ¬(x≤s) into s<x and ¬(s−ε<x) into x≤s−ε: ∃x∈A(s<x)∨∃ε>0∀x∈A(x≤s−ε). In words: s fails to be the supremum when some element of A lies above it (it is not an upper bound), or when some s−ε with ε>0 is still an upper bound (it is not the least).

(c) Four quantifiers and an implication: ¬∀ε>0∃δ>0∀x∈A∀y∈A(|x−y|<δ→|f(x)−f(y)|<ε)⊣⊢∃ε>0∀δ>0∃x∈A∃y∈A¬(|x−y|<δ→|f(x)−f(y)|<ε)⊣⊢∃ε>0∀δ>0∃x∈A∃y∈A(|x−y|<δ∧¬(|f(x)−f(y)|<ε)), where the first step is four uses of Proposition 6.2.3, and the second is Proposition 6.2.2. Last, the order fact turns ¬(|f(x)−f(y)|<ε) into |f(x)−f(y)|≥ε: ∃ε>0∀δ>0∃x∈A∃y∈A(|x−y|<δ∧|f(x)−f(y)|≥ε). In words: one ε>0 defeats every δ: however small δ>0 is, two points of A closer than δ have values at least ε apart. To prove that a function is not uniformly continuous, this is the statement to prove, and it says exactly what to exhibit: first ε; then, for an arbitrary δ, the two points x and y, which may depend on δ. Section 6.4 does this for x2 on R.

The same procedure finishes the rewriting promised in Section 6.1 for “there is no largest prime”. By Proposition 6.2.1 (c), ¬∃m(Prime(m)∧∀n(Prime(n)→n≤m))⊣⊢∀m¬(Prime(m)∧∀n(Prime(n)→n≤m)). A negated conjunction ¬(α∧β) is interderivable with α→¬β: De Morgan’s law (Proposition 2.5.5 (d)) and Proposition 2.5.6 (a) give one direction, and (b) of the latter with Proposition 2.5.5 (c) the other. Then Proposition 6.2.1 (a) and (b) turn ¬∀n(Prime(n)→n≤m) into ∃n¬(Prime(n)→n≤m), and Proposition 6.2.2, used under ∃n, pushes the last ¬ in; both steps act on a part, by Proposition 6.2.4: ∀m(Prime(m)→∃n(Prime(n)∧¬(n≤m))). The quantifier ∀n(Prime(n)→…) works like a bounded one, with the bound Prime(n). That bound is not one that Proposition 6.2.3 covers, but the same two steps work for it, and the bound stays unnegated.

Quick check. Negate “every non-empty set of reals that is bounded above has a supremum”, writing E(A) for “A is non-empty”, B(A) for “A is bounded above” and S(A) for “A has a supremum”, with the variable A ranging over sets of reals.

Solution. The statement is ∀A((E(A)∧B(A))→S(A)). By Proposition 6.2.1 (a) and (b) and then Proposition 6.2.2, its negation is ∃A((E(A)∧B(A))∧¬S(A)): there is a non-empty set of reals, bounded above, with no supremum. The two conditions are not negated: they stay as conditions on the counterexample, just as a bound stays with its quantifier.

Quick check. Negate “f is bounded on A”, ∃M∀x∈A(|f(x)|≤M), into positive form, and say it in words.

Solution. ∀M∃x∈A(|f(x)|>M): every proposed bound is beaten somewhere on A. The quantifiers flip, the bound x∈A stays, and the order fact turns ¬(|f(x)|≤M) into |f(x)|>M.

Warning. The negation of an implication is not an implication. “If x>2, then x2>4” is not negated by “if x>2, then x2≤4”, nor by “if x≤2, then x2≤4”. For x=0 the original is true (its hypothesis fails), and so is the second candidate, so the candidate cannot be its negation. The negation is x>2∧x2≤4 (Proposition 6.2.2), and it is false for every real x.

6.2.5. Four forms and their square

Four sentence shapes come up so often that they have names. Fix two one-place predicates S and P.

  • A, “every S is P”: ∀x(S(x)→P(x));
  • E, “no S is P”: ∀x(S(x)→¬P(x));
  • I, “some S is P”: ∃x(S(x)∧P(x));
  • O, “some S is not P”: ∃x(S(x)∧¬P(x)).
Diagram

The diagonals always hold: A and O are each the negation of the other, and so are E and I. The other three labels hold only when something is an S.

The diagonals, by the laws. A–O is the two steps of the proof of Proposition 6.2.3 (a), QN and then NIm under ∃, which work for the bound S(x) as for Prime(n) above. E–I is the same, followed by Proposition 2.5.1 under ∃x (by Proposition 6.2.4).

Contrary against contradictory. A and E are contrary: never both true when something is an S, but possibly both false. The negation of “every element of A is positive” is the O form “some element of A is not positive”, not the E form “every element of A is non-positive”.

Example (The square for multiples of 4 and squares)

Over N, let S be “is a multiple of 4” and P “is a perfect square”. Find the truth value of each corner. Then do the same with S read as “is an odd multiple of 4”.

Solution. A, “every multiple of 4 is a perfect square”, is false at 8. E, “no multiple of 4 is a perfect square”, is false at 4=22. I is true at 4, and O at 8. Each diagonal joins a true corner to a false one.

No number is an odd multiple of 4. Now A and E are both true, vacuously, and I and O both false. Contraries both true, subcontraries both false: this is why the outer labels need something to be an S (existential import, Section 5.1).

Quick check. Which corner is the negation of “no multiple of 4 is a perfect square”, and is that corner true?

Solution. I: “some multiple of 4 is a perfect square”. It is true, since 16=4⋅4=42. The negation of E is I, by the diagonal.

6.2.6. How the laws look in a mathematical proof

Chapter 2 proved, in Example (A number below every positive number), that a number x≥0 below every positive number is 0. Its key step chose ε:=x/2, and the reading after it called “the hypothesis applies to it” a step about “every”, used as ordinary reasoning until Chapter 5. The rule is ∀E, in its bounded form (Proposition 6.1.1), at a term built from the data. Here is the same move once more, the way it appears in analysis.

Two real numbers that are closer than every positive number are equal.

Proposition 6.2.5 (Arbitrarily Close Numbers Are Equal)

Let a and b be real numbers. If |a−b|<ε for every ε>0, then a=b.

Idea. The goal a=b is atomic, so no introduction rule applies, and the hypothesis is a ∀ whose instances are all inequalities, never an equation. We are stuck, so suppose a≠b. The hypothesis may be instantiated at any positive term, so choose the term that makes the numbers collide: ε:=|a−b|, which is positive exactly because a≠b.

Proof. Suppose that |a−b|<ε for every ε>0, and suppose, for a contradiction, that a≠b [an RAA box]. Then a−b≠0, so |a−b|>0, by the school fact that |u|>0 for every real u≠0. So the hypothesis applies to the term |a−b| [bounded ∀E, citing the line |a−b|>0] and gives |a−b|<|a−b|. No real number is less than itself, so this is a contradiction [¬E]. Hence a=b [RAA].

The last step is a genuine RAA: the box assumed ¬(a=b), written a≠b, and concluded a=b; ¬I would only have given ¬¬(a=b). The hypothesis cannot be weakened to “for some ε>0”: a=0, b=12, ε=1 satisfy |a−b|<ε and a≠b. The facts about |⋅| used here are school algebra.

Read the result through the negation laws. Its contrapositive says: if a≠b, then ¬∀ε>0(|a−b|<ε), which by Proposition 6.2.3 is interderivable with ∃ε>0¬(|a−b|<ε), that is, by the order fact, ∃ε>0(|a−b|≥ε). The proof did not search for that ε: it named it, |a−b|, from the data. A proof by contradiction in analysis is usually this shape. Negate the goal; the negation hands over an object (here the positive number |a−b|); feed it to a hypothesis that holds for every object of its kind.

6.2.7. Moving a quantifier across a connective

Negation is not the only thing that needs moving. A formula such as ∃xP(x)→ψ has its quantifier buried in a hypothesis, and proofs often want it outside, or the reverse. Two groups of laws do this. The distribution laws move a quantifier across ∧ or ∨ when both sides mention x; the passage laws move it across a connective when one side does not. The laws of this subsection are proved by the method’s short runs; the derivations are in a fold, and Section 7.2 returns to two of the one-way laws.

Proposition 6.2.6 (Distribution of Quantifiers)

For all formulas φ, ψ and every variable x:

  • (a) ∀x(φ∧ψ)⊣⊢∀xφ∧∀xψ;
  • (b) ∃x(φ∨ψ)⊣⊢∃xφ∨∃xψ;
  • (c) ∀xφ∨∀xψ⊢∀x(φ∨ψ);
  • (d) ∃x(φ∧ψ)⊢∃xφ∧∃xψ.

All four are derived without RAA.

The proposition collects laws that are mostly proved already. Its point is the comparison: ∀ goes across ∧ and ∃ across ∨ in both directions, while ∀ across ∨ and ∃ across ∧ go one way only.

Idea. Three of the four laws were derived in Sections 5.4 and 5.6 for P(x) and Q(x); only the fresh name’s instances were used there, so formulas can take their place. For (c), the goal is a ∀ and the premise a disjunction: open the flagged box first, then split on the premise inside it.

The converses of (c) and (d) are false. Over Z, every integer is even or odd, but neither “every integer is even” nor “every integer is odd” holds; some integer is even and some integer is odd, but none is both. These are counter-readings; Section 7.2 draws them as counter-models.

The passage laws need a condition: the quantified variable must not be free in the formula that the quantifier moves away from. Section 5.2 proved the fact that makes this work: if x is not free in ψ, then ψ[t/x]=ψ for every term t. So an instance of ψ→φ at x0 is ψ→φ[x0/x], with ψ untouched.

Proposition 6.2.7 (Passage Laws)

Let φ and ψ be formulas and x a variable that is not free in ψ. Then

  • (a) ∀x(ψ→φ)⊣⊢ψ→∀xφ;
  • (b) ∀x(φ→ψ)⊣⊢∃xφ→ψ;
  • (c) ∃x(φ∧ψ)⊣⊢∃xφ∧ψ;
  • (d) ∃x(φ→ψ)⊣⊢∀xφ→ψ;
  • (e) ∃x(ψ→φ)⊣⊢ψ→∃xφ.

Of the ten directions, two are derived here with RAA: ⊣ in (d), through LEM and the cited QN (a), and ⊣ in (e), through LEM. The other eight are derived without it.

Read (b) aloud: “everything with φ has ψ” says the same as “if something has φ, then ψ”. In (b) and (d) the quantifier changes from ∀ to ∃ or back as it leaves the hypothesis of an implication. That is the game reading of Section 5.1 once more: a quantifier in a hypothesis changes sides.

Idea. Each intuitionistic direction is a short run of the search method. A goal → opens a →I box; a goal ∀ a flagged box; a premise ∃ an ∃E box, early; a premise ∀ is instantiated at x0, where the condition on ψ keeps ψ unchanged; and the ∃ goal waits for its witness x0. The two classical directions get stuck. In (d), the premise ∀xφ→ψ is usable only once ∀xφ is in hand, and it may not be; so decide it, by LEM. If ∀xφ holds, then ψ holds, and φ→ψ holds at every x. If not, (a) of Proposition 6.2.1 supplies an x0 with ¬φ[x0/x], and φ[x0/x]→ψ is vacuously true. In (e), decide ψ: if ψ holds, the premise supplies a witness; if not, ψ→φ is vacuously true at every x.

Second readingThe derivations of the distribution and passage laws

Proof. For Proposition 6.2.6: (a) is Proposition 5.4.1, (d) is Proposition 5.6.1, and (b) is part (a) of Example (Derivations with existential elimination), the derivation of ∃ over ∨. Those derivations are written with P(x) and Q(x); they work word for word with φ and ψ in their place, because they use nothing about P(x) and Q(x) beyond the instances at the fresh name, which is chosen different from x and not appearing in φ or ψ.

For (c), the goal is a ∀: open a flagged box. Inside it the premise is a disjunction, so split on it; in each case one ∀E at x0 and one ∨I reach the instance of φ∨ψ:

1∀xφ∨∀xψ
2x0∀xφasm, for ∨E
3φ[x0/x]∀E 2
4φ[x0/x]∨ψ[x0/x]∨I 3
5∀xψasm, for ∨E
6ψ[x0/x]∀E 5
7φ[x0/x]∨ψ[x0/x]∨I 6
8φ[x0/x]∨ψ[x0/x]∨E 1, 2–4, 5–7
9∀x(φ∨ψ)∀I 2–8

Line 8 is the instance of φ∨ψ at x0 and the last line of the flagged box; at line 9, x0 is in neither the premise nor the conclusion, and no assumption is open. This proves Proposition 6.2.6.

Proof. In every derivation below, x0 is a variable other than x that does not appear in φ or ψ, and ψ[x0/x]=ψ because x is not free in ψ (Section 5.2). So the instance at x0 of ψ→φ is ψ→φ[x0/x], and likewise for the other combinations.

(a), ⊢ and ⊣:

1∀x(ψ→φ)
2ψasm, for →I
3x0ψ→φ[x0/x]∀E 1
4φ[x0/x]→E 3, 2
5∀xφ∀I 3–4
6ψ→∀xφ→I 2–5
1ψ→∀xφ
2x0ψasm, for →I
3∀xφ→E 1, 2
4φ[x0/x]∀E 3
5ψ→φ[x0/x]→I 2–4
6∀x(ψ→φ)∀I 2–5

At line 5 on the left the assumption ψ is open, and x0 does not appear in it: this is where the fresh name must avoid ψ.

(b), ⊢ and ⊣:

1∀x(φ→ψ)
2∃xφasm, for →I
3x0φ[x0/x]asm, for ∃E
4φ[x0/x]→ψ∀E 1
5ψ→E 4, 3
6ψ∃E 2, 3–5
7∃xφ→ψ→I 2–6
1∃xφ→ψ
2x0φ[x0/x]asm, for →I
3∃xφ∃I 2
4ψ→E 1, 3
5φ[x0/x]→ψ→I 2–4
6∀x(φ→ψ)∀I 2–5

At line 6 on the left, the conclusion ψ does not mention the witness x0: this is where ∃E’s side condition meets the condition on ψ.

(c), ⊢ and ⊣:

1∃x(φ∧ψ)
2x0φ[x0/x]∧ψasm, for ∃E
3φ[x0/x]∧E 2
4∃xφ∃I 3
5ψ∧E 2
6∃xφ∧ψ∧I 4, 5
7∃xφ∧ψ∃E 1, 2–6
1∃xφ∧ψ
2∃xφ∧E 1
3ψ∧E 1
4x0φ[x0/x]asm, for ∃E
5φ[x0/x]∧ψ∧I 4, 3
6∃x(φ∧ψ)∃I 5
7∃x(φ∧ψ)∃E 2, 4–6

(d), ⊢:

1∃x(φ→ψ)
2∀xφasm, for →I
3x0φ[x0/x]→ψasm, for ∃E
4φ[x0/x]∀E 2
5ψ→E 3, 4
6ψ∃E 1, 3–5
7∀xφ→ψ→I 2–6

(d), ⊣, with LEM on ∀xφ:

1∀xφ→ψ
2∀xφ∨¬∀xφLEM
3∀xφasm, for ∨E
4ψ→E 1, 3
5φasm, for →I
6ψR 4
7φ→ψ→I 5–6
8∃x(φ→ψ)∃I 7
9¬∀xφasm, for ∨E
10∃x¬φQN (a) 9
11x0¬φ[x0/x]asm, for ∃E
12φ[x0/x]→ψVI 11
13∃x(φ→ψ)∃I 12
14∃x(φ→ψ)∃E 10, 11–13
15∃x(φ→ψ)∨E 2, 3–8, 9–14

Line 8 is ∃I at the term x itself: (φ→ψ)[x/x] is φ→ψ, as in Proposition 5.5.1, and as there the step is sound because every domain is non-empty (Section 7.1). At line 14, x0 is in neither the conclusion nor line 10, nor in the premise or the open assumption ¬∀xφ.

(e), ⊢ and ⊣, the second with LEM on ψ:

1∃x(ψ→φ)
2ψasm, for →I
3x0ψ→φ[x0/x]asm, for ∃E
4φ[x0/x]→E 3, 2
5∃xφ∃I 4
6∃xφ∃E 1, 3–5
7ψ→∃xφ→I 2–6
1ψ→∃xφ
2ψ∨¬ψLEM
3ψasm, for ∨E
4∃xφ→E 1, 3
5x0φ[x0/x]asm, for ∃E
6ψasm, for →I
7φ[x0/x]R 5
8ψ→φ[x0/x]→I 6–7
9∃x(ψ→φ)∃I 8
10∃x(ψ→φ)∃E 4, 5–9
11¬ψasm, for ∨E
12ψ→φVI 11
13∃x(ψ→φ)∃I 12
14∃x(ψ→φ)∨E 2, 3–10, 11–13

Line 13 is again ∃I at the variable x. At line 10, x0 is in neither the conclusion ∃x(ψ→φ) nor line 4, ∃xφ, nor in the premise or the open assumption ψ of line 3. In each of the eight other derivations, the side conditions are checked as in Proposition 6.2.1, and LEM and RAA do not occur. This proves Proposition 6.2.7.

Why the condition on ψ. Drop it, and (b) fails. Take φ and ψ both to be P(x). Then ∀x(P(x)→P(x)) is true in every domain, while ∃xP(x)→P(x), over Z with P read as “is even” and x read as 1, says “if some integer is even, then 1 is even”, which is false. The derivation of (b), in the fold above, shows where the condition was used. Without it, line 4 would be P(x0)→P(x0), line 5 would be P(x0), and the ∃E box could not close on a line that mentions its witness.

Second readingPassage laws on a part

A passage law of Proposition 6.2.7 asks that its moving variable y not be free in ψ; since y appears in β, the fresh x0 is not y. If y is x itself, substitution stops at the quantifier on x, and ψ[x0/x] is ψ because x is not free in ψ; the pair is then the law’s own instance, unchanged. Otherwise substituting x0 for x passes the quantifier on y unchanged, and ψ[x0/x] has no free variable that ψ lacks except x0, and y is not free in it either. So the pair is again an instance of the law, with its condition met.

Quick check. A student writes ∀x(x>0→∃y(y⋅y=x)) as ∀x∃y(x>0→y⋅y=x), citing a passage law. Which law, and is the condition met?

Solution. Law (e) of Proposition 6.2.7, applied under ∀x (a law may be used on a part under a quantifier: Proposition 6.2.4, with the fold “Passage laws on a part” above), with ψ the formula x>0, φ the formula y⋅y=x, and y as the moving variable. The condition asks that y not be free in ψ, and y does not occur in x>0; so the step is correct. It is the classical direction of (e), the one derived with LEM.

Second readingTwin laws

Over a domain with two elements a, b, a ∀ is an “and” and an ∃ is an “or” (Section 5.5 read ∃ over a finite domain as a long “or”), and each law of this section becomes a propositional law. Below, φa abbreviates φ[a/x], the instance at a; a formula ψ in which x is not free is the same at a and at b.

law over {a,b} the propositional twin
QN (a), (b) ¬(φa∧φb)⊣⊢¬φa∨¬φb Proposition 2.5.5 (d), (c)
QN (c) ¬(φa∨φb)⊣⊢¬φa∧¬φb Proposition 2.5.5 (a), (b)
distribution (c) (φa∧φb)∨(ψa∧ψb)⊢(φa∨ψa)∧(φb∨ψb) a direct derivation: ∨E on the premise, and in each case ∧E twice, ∨I twice and ∧I
passage (b) (φa→ψ)∧(φb→ψ)⊣⊢(φa∨φb)→ψ Example (Cases on a hypothesis are two implications), Example (A disjunctive hypothesis splits into two implications)

In each pair the direction that needs RAA is the same: QN (a) and De Morgan (d). A twin is a reading, not a proof: a domain may be infinite, and the laws were derived for every domain.

6.2.8. Prenex form

A formula is in prenex form when all its quantifiers stand at the front, as a prefix, before a part with no quantifier, the matrix.

Example (Bringing a formula into prenex form)

Bring ∃xP(x)→∃yQ(y) into prenex form.

Solution. ∃xP(x)→∃yQ(y)⊣⊢∀x(P(x)→∃yQ(y))⊣⊢∀x∃y(P(x)→Q(y)).

  • The first step is passage law (b), with ψ the formula ∃yQ(y), in which x is not free.
  • The second is law (e) under ∀x, by Proposition 6.2.4, with ψ the formula P(x), in which y is not free. Its hypothesis is checked in the fold “Passage laws on a part”.

Going down, the second step uses the classical direction of (e).

Alternation. Count the changes between ∀ and ∃ along the prefix: the example has one, ∀x∃y, and “an→L” has two, ∀ε∃N∀n. Each change is one more round of the game of Section 5.1: a challenger move answered by a defender move. A prefix with more alternations takes more rounds to win, and checking it by examples gets harder: no finite table of values settles a ∀∃∀ sentence over N.

Quick check. How many alternations have the prefixes of “uniformly continuous on A” and “continuous at every point of A” (Section 6.1, Exercise (C1: Where the ∀x stands))?

Solution. Two each: ∀ε∃δ∀x∀y and ∀x∀ε∃δ∀y. The count is the same, and the order differs. Section 6.4 is about that difference.

Remark (Looking ahead). Chapter 8 says what is at stake when “not every” becomes “some not” by RAA, and catalogues the wrong negations of this section among the steps a proof may not take.

6.2.9. Exercises

A. Check your understanding

Exercise (A1)

These parts are about the derivation of Proposition 6.2.1 (a).

  • (a) Which lines are justified by RAA, and what does each of the two boxes assume and conclude?
  • (b) Why can the derivation not reach ∃x¬φ by one ∃I directly from the premise?
  • (c) Line 4 is an ∃I at x0. Why is its conclusion not the conclusion of the derivation, although the two formulas are the same?
  • (d) Run the derivation with φ the formula x⋅x≠2, over R. Write lines 1 and 9 in words. Does any line name the number 2? What more would be needed to reach ∃x(x⋅x=2)?
  • (e) True or false, with a reason: ∃ε≤0¬φ is a correct way to write the negation of ∀ε>0φ.

Solution. (a) Lines 6 and 9. The inner box (lines 3–5) assumes ¬φ[x0/x], reaches ⊥, and line 6 concludes φ[x0/x]. The outer box (lines 2–8) assumes ¬∃x¬φ, reaches ⊥, and line 9 concludes ∃x¬φ.

(b) ∃I needs a line holding an instance ¬φ[t/x]. The premise ¬∀xφ is not such an instance (its main symbol is ¬ followed by ∀), and no rule takes it apart except ¬E, which needs ∀xφ. The premise says a counterexample exists without naming one.

(c) Line 4 lies inside three boxes: the box opened at line 2, and the flagged box of x0 and the inner box, both opened at line 3. It depends on the assumptions on lines 2 and 3, so it is not available at the end. It is used only to clash with line 2. The conclusion on line 9 is reached by closing the outer box with RAA.

(d) Line 1: “not every real number has a square different from 2”. Line 9: “some real number does not have a square different from 2”, that is, ∃x¬(x⋅x≠2). No line names 2: the only witness on any line is the fresh name x0, inside boxes that closed, and line 9 comes from RAA, not from ∃I. To reach ∃x(x⋅x=2), open an ∃E box on line 9 with the assumption ¬(x1⋅x1≠2), apply ¬¬E (the formula x1⋅x1≠2 is ¬(x1⋅x1=2)) to get x1⋅x1=2, and close with ∃I.

(e) False. By Proposition 6.2.3 the negation is ∃ε>0¬φ: the bound stays. The wrong form can be true together with the statement it claims to negate. Over R, take φ to be ε>0: then ∀ε>0(ε>0) is true, and ∃ε≤0¬(ε>0) is true as well, with the witness ε=0. A statement and its negation are never both true.

Exercise (A2: Drill)

Each part takes a line or two. In (a)–(h), negate the statement into positive form (in (g), choose the negation); the last four parts use the square, the reading over two elements, prenex form and a law under a quantifier.

  • (a) ∀xP(x).
  • (b) ∃x(P(x)∧Q(x)).
  • (c) ∀x>0(x2>0), over R.
  • (d) “If n is even, then n2 is even”, for one integer n.
  • (e) ∀ε>0∃δ>0(δ<ε).
  • (f) ∀x∈A(x≤s).
  • (g) Which is the negation of ∀x∈A∃y∈B(x<y): (i) ∃x∈A∀y∈B(x≥y); (ii) ∃x∉A∀y∉B(x≥y); (iii) ∀x∈A∃y∈B(x≥y)?
  • (h) “(an) is bounded below”: ∃m∀n∈N(m≤an).
  • (i) Over N, with S “is a multiple of 3” and P “is odd”, which corner of the square is the negation of “some multiple of 3 is not odd”, and is it true?
  • (j) Over {a,b}, write ∃x(P(x)∧Q(x)) and ∃xP(x)∧∃xQ(x) without quantifiers, and give truth values that make the second true and the first false.
  • (k) Name the passage law, and give a prenex form of ∃xP(x)→R, where x is not free in R.
  • (l) Is this step correct: from ∀x(P(x)→Q(x)) to ∀x(¬P(x)→¬Q(x)), “contrapositive under ∀”?

Solution.

  • (a) ∃x¬P(x).

  • (b) ∀x(¬P(x)∨¬Q(x)), equivalently ∀x(P(x)→¬Q(x)).

  • (c) ∃x>0(x2≤0): the bound stays, and the order fact turns ¬(x2>0) into x2≤0.

  • (d) “n is even and n2 is not even” (Proposition 6.2.2).

  • (e) ∃ε>0∀δ>0(δ≥ε), by the order fact for ¬(δ<ε).

  • (f) ∃x∈A(x>s).

  • (g) (i): flip each quantifier, keep each bound.

  • (h) ∀m∃n∈N(an<m), by the order fact for ¬(m≤an).

  • (i) A, “every multiple of 3 is odd”, by the diagonal. It is false: 6 is a multiple of 3 and even.

  • (j) (P(a)∧Q(a))∨(P(b)∧Q(b)) and (P(a)∨P(b))∧(Q(a)∨Q(b)). Take P(a) and Q(b) true, P(b) and Q(a) false.

  • (k) Law (b): ∀x(P(x)→R).

  • (l) No. The contrapositive is ∀x(¬Q(x)→¬P(x)). Over Z, with P “is a multiple of 4” and Q “is even”, the premise is true and the line is false at 2.

B. Practice

Exercise (B1: Four negations)

Negate each definition into positive form, citing the law used at each step. Work over R, with (an) a sequence and f a function.

  • (a) (an) is bounded: ∃M∀n∈N(|an|≤M).
  • (b) f is increasing on A: ∀x∈A∀y∈A(x<y→f(x)≤f(y)).
  • (c) limx→af(x)=L: ∀ε>0∃δ>0∀x((0<|x−a|∧|x−a|<δ)→|f(x)−L|<ε).
  • (d) (an) is a Cauchy sequence: ∀ε>0∃N∈N∀m∈N∀n∈N((m≥N∧n≥N)→|am−an|<ε).

Solution. (a) By Proposition 6.2.1 (c) (the ∃M has no bound), then Proposition 6.2.3 (a) under ∀M: ¬∃M∀n∈N(|an|≤M)⊣⊢∀M¬∀n∈N(|an|≤M)⊣⊢∀M∃n∈N¬(|an|≤M), and the order fact turns ¬(|an|≤M) into |an|>M: ∀M∃n∈N(|an|>M). Every real number is exceeded by the size of some term.

(b) Two uses of Proposition 6.2.3, then Proposition 6.2.2 and the order fact: ∃x∈A∃y∈A(x<y∧f(x)>f(y)). Two points of A, in increasing order, whose values are in decreasing order.

(c) Proposition 6.2.3 twice, Proposition 6.2.1 (a) and (b) for the unbounded ∀x, Proposition 6.2.2, and the order fact: ∃ε>0∀δ>0∃x((0<|x−a|∧|x−a|<δ)∧|f(x)−L|≥ε). The hypothesis 0<|x−a|<δ is not negated: it moves, unchanged, into a conjunction.

(d) Proposition 6.2.3 four times, Proposition 6.2.2, the order fact: ∃ε>0∀N∈N∃m∈N∃n∈N((m≥N∧n≥N)∧|am−an|≥ε). For some ε>0, however far out we start, two later terms are at least ε apart.

Exercise (B2: Two passage laws in one derivation)

Derive ∃xP(x)→∀yQ(y)⊢∀x∀y(P(x)→Q(y)) without RAA. Then name the two laws of Proposition 6.2.7 that the sequent combines, and say how.

Solution. The goal is ∀x, then ∀y, then →: open two flagged boxes and a →I box, in the goal’s order. Inside, the premise is an implication whose hypothesis ∃xP(x) comes from the assumption P(x0) by ∃I.

1∃xP(x)→∀yQ(y)
2x0y0P(x0)asm, for →I
3∃xP(x)∃I 2
4∀yQ(y)→E 1, 3
5Q(y0)∀E 4
6P(x0)→Q(y0)→I 2–5
7∀y(P(x0)→Q(y))∀I 2–6
8∀x∀y(P(x)→Q(y))∀I 2–7

At line 7, y0 is not in the premise or in line 7, and no assumption is open (the box of line 2 has closed). At line 8 the same holds for x0. No RAA is used.

The sequent combines (b) and (a) of Proposition 6.2.7. Law (b), with φ the formula P(x) and ψ the formula ∀yQ(y) (in which x is not free), turns the premise into ∀x(P(x)→∀yQ(y)). Then law (a), applied under ∀x (a provable equivalence may be used under a quantifier, by Proposition 6.2.4) with ψ the formula P(x), φ the formula Q(y) and y as the moving variable (y is not free in P(x)), turns P(x)→∀yQ(y) into ∀y(P(x)→Q(y)).

Exercise (B3: Choosing ε from the data)

Let a and b be real numbers with a<b+ε2 for every ε>0. Prove that a≤b, by the method of Proposition 6.2.5: suppose not, and choose an ε built from the data that makes the numbers collide. Then explain why the choice ε=a−b does not work.

Solution. Suppose a<b+ε2 for every ε>0, and suppose, for a contradiction, that a>b (the negation of a≤b). Let ε:=min(1,a−b). Then ε>0, since 1>0 and a−b>0. Since 0<ε≤1, ε2=ε⋅ε≤ε⋅1=ε, and ε≤a−b. The hypothesis applies to this ε and gives a<b+ε2≤b+ε≤b+(a−b)=a, so a<a, a contradiction. Hence a≤b.

The choice ε=a−b, copied from the text, gives a<b+(a−b)2, that is, a−b<(a−b)2. When a−b>1 this is true (for a−b=2: 2<4), so there is no contradiction. The square shrinks a number only when it is at most 1, and the min with 1 is what puts ε there.

Exercise (B4: Derive or break)

Derive each claim with the rules and laws so far, or break it by a reading over Z that makes every member of its counterexample set true.

  • (a) ∀x(P(x)↔Q(x))⊢∀xP(x)↔∀xQ(x).
  • (b) ∀xP(x)↔∀xQ(x)⊢∀x(P(x)↔Q(x)).
  • (c) ¬∃x(P(x)∧¬Q(x))⊢∀x(P(x)→Q(x)).
  • (d) ∃xP(x)→∃xQ(x)⊢∀x(P(x)→Q(x)).
  • (e) ∀x(P(x)∨Q(x))⊢∀xP(x)∨∃xQ(x).
  • (f) ∀xP(x)∨∃xQ(x)⊢∀x(P(x)∨Q(x)).

Solution.

  • (a) Derive. The goal is a biconditional, so ↔I closes two boxes (Definition 2.4.1); in each, the goal is a ∀, so a flagged box.
    1∀x(P(x)↔Q(x))
    2∀xP(x)asm, for ↔I
    3x0P(x0)↔Q(x0)∀E 1
    4P(x0)∀E 2
    5Q(x0)↔E 3, 4
    6∀xQ(x)∀I 3–5
    7∀xQ(x)asm, for ↔I
    8x1P(x1)↔Q(x1)∀E 1
    9Q(x1)∀E 7
    10P(x1)↔E 8, 9
    11∀xP(x)∀I 8–10
    12∀xP(x)↔∀xQ(x)↔I 2–6, 7–11

    At line 6, x0 is in neither the premise, the open assumption on line 2, nor ∀xQ(x); line 11 is checked the same way for x1.

  • (b) Breaks. Under the reading with P “is even” and Q “is odd”, every member of the counterexample set is true. Both ∀xP(x) and ∀xQ(x) are false, so the premise is true; at 0, “0 is even if and only if 0 is odd” is false, so the negated conclusion is true.

  • (c) Derive. Turn the premise into a ∀ by QN (c), then open a flagged box for the goal.

    1¬∃x(P(x)∧¬Q(x))
    2∀x¬(P(x)∧¬Q(x))QN (c) 1
    3x0¬(P(x0)∧¬Q(x0))∀E 2
    4P(x0)asm, for →I
    5¬Q(x0)asm, for RAA
    6P(x0)∧¬Q(x0)∧I 4, 5
    7⊥¬E 6, 3
    8Q(x0)RAA 5–7
    9P(x0)→Q(x0)→I 4–8
    10∀x(P(x)→Q(x))∀I 3–9

    At line 10, x0 is in neither the premise nor the conclusion, and no assumption is open.

  • (d) Breaks. Under the reading with P “is even” and Q “is positive”, every member of the counterexample set is true. Some integer is even (2) and some integer is positive (1), so the premise is true; “every even integer is positive” fails at 0, so the negated conclusion is true.

  • (e) Derive. Decide ∀xP(x) by LEM; in the second case QN (a) supplies a witness that fails P, and the premise gives it Q.

    1∀x(P(x)∨Q(x))
    2∀xP(x)∨¬∀xP(x)LEM
    3∀xP(x)asm, for ∨E
    4∀xP(x)∨∃xQ(x)∨I 3
    5¬∀xP(x)asm, for ∨E
    6∃x¬P(x)QN (a) 5
    7x0¬P(x0)asm, for ∃E
    8P(x0)∨Q(x0)∀E 1
    9Q(x0)DS 8, 7
    10∃xQ(x)∃I 9
    11∃xQ(x)∃E 6, 7–10
    12∀xP(x)∨∃xQ(x)∨I 11
    13∀xP(x)∨∃xQ(x)∨E 2, 3–4, 5–12

    At line 11, x0 is not in line 11, in line 6, in the premise or in the open assumption on line 5.

  • (f) Breaks. Under the reading with P “is even” and Q(x) “x=0”, every member of the counterexample set is true. Some integer is 0, so ∃xQ(x) and the premise are true; “every integer is even or equal to 0” fails at 1, so the negated conclusion is true.

  • (g) and (b), and (e) and (f), are converse pairs; (d) asks for more than its premise gives. The breaks are counter-readings (Section 7.2).

Marking scheme. (10 points)

  • 6: one for each correct verdict.
  • 2: the derivations of (a), (c) and (e), with the side condition checked at every closing line of a flagged or ∃E box.
  • 2: the three readings, each with the truth values of the premise and of the conclusion justified.

Fatal errors (0 for the part): a “break” whose reading leaves the premise false; a derivation that closes an ∃E box on a line that mentions its witness.

Exercise (B5: Find the error)

Here is a “derivation” of ∃x(P(x)∧Q(x)), ∀x(Q(x)→R(x))⊢∃xR(x).

1∃x(P(x)∧Q(x))
2∀x(Q(x)→R(x))
3P(c)∧Q(c)∃E 1
4Q(c)∧E 3
5Q(c)→R(c)∀E 2
6R(c)→E 5, 4
7∃xR(x)∃I 6

Is the conclusion derivable? Does this derivation prove it? Find the line that fails, break the step that line takes, and repair the derivation.

Solution. The conclusion is derivable, and this derivation does not prove it. Line 3 fails: ∃E is not a one-line step. It opens a box whose witness is a fresh variable, never a constant (a constant has a fixed meaning), and the box must close on a line that does not mention the witness; here no box is opened. Nothing licenses passing from “something has P and Q” to “c has them”.

The step from ∃x(P(x)∧Q(x)) to P(c)∧Q(c) breaks over Z, with P “is even”, Q “is positive” and c read as 0: the premise is true (2 is both), and the line is false, since 0 is not positive.

The repair opens an ∃E box:

1∃x(P(x)∧Q(x))
2∀x(Q(x)→R(x))
3x0P(x0)∧Q(x0)asm, for ∃E
4Q(x0)∧E 3
5Q(x0)→R(x0)∀E 2
6R(x0)→E 5, 4
7∃xR(x)∃I 6
8∃xR(x)∃E 1, 3–7

At line 8, x0 is not in line 8, in line 1 or in a premise, and no other assumption is open.

Marking scheme. (10 points)

  • 2: “derivable, but not proved by this derivation”.
  • 3: line 3, and the rule it breaks: ∃E needs a box with a fresh witness.
  • 2: a reading that breaks the step, with both truth values.
  • 3: a repaired derivation, with the side condition of ∃E checked.

Fatal error (0 for the step): naming line 7 (∃I is legal there).

C. Going deeper

Exercise (C1: Two prenex forms)

A formula is in prenex form when all its quantifiers stand at the front, before a part with no quantifier. Using the laws of Proposition 6.2.7, bring ∀xP(x)→∃yQ(y) into prenex form in two ways, ending with ∃x∃y(P(x)→Q(y)) and with ∃y∃x(P(x)→Q(y)). Justify each step, and say which directions of the laws are classical.

Solution (Hint 1). The formula is an implication with a quantifier on each side. Law (d) moves the quantifier out of the hypothesis, and law (e) moves it out of the conclusion.

Solution (Hint 2). For the first route, start with law (d), taking ψ to be the whole conclusion ∃yQ(y).

Solution. First route: x out first. Law (d) of Proposition 6.2.7, with φ the formula P(x) and ψ the formula ∃yQ(y), in which x is not free: ∀xP(x)→∃yQ(y)⊣⊢∃x(P(x)→∃yQ(y)). Then law (e) under ∃x, with ψ the formula P(x), φ the formula Q(y), and y as the moving variable (y is not free in P(x)): P(x)→∃yQ(y)⊣⊢∃y(P(x)→Q(y)). A provable equivalence may be used under a quantifier (Proposition 6.2.4), so ∃x(P(x)→∃yQ(y))⊣⊢∃x∃y(P(x)→Q(y)).

Second route: y out first. Law (e), with ψ the formula ∀xP(x), φ the formula Q(y), and y as the moving variable (y is not free in ∀xP(x)): ∀xP(x)→∃yQ(y)⊣⊢∃y(∀xP(x)→Q(y)). Then law (d) under ∃y, with φ the formula P(x) and ψ the formula Q(y) (x is not free in Q(y)): ∃y(∀xP(x)→Q(y))⊣⊢∃y∃x(P(x)→Q(y)).

Classical steps. Going from the given formula towards the prenex form, every step of both routes uses the direction ⊣ of (d) or of (e): the direction from the implication to the ∃. These are exactly the two directions that Proposition 6.2.7 derives with LEM. The way back uses only the intuitionistic directions.

Marking scheme. (10 points) - 3: first route, with law (d) then law (e), each with φ, ψ and the moving variable named, and the “not free” condition checked. - 3: second route, likewise with (e) then (d). - 2: says why a law may be applied under ∃x or ∃y (an equivalence used under a quantifier, by an ∃E box closed with ∃I). - 2: identifies the ⊣ directions of (d) and (e) as the classical ones, used in every step towards prenex form. Fatal errors (0 for the step): moving ∀x out of the hypothesis as ∀x (it becomes ∃x); applying a passage law when the moving variable is free in ψ.

Exercise (C2: Exit check: negations)
  • (a) A sequence of functions fn converges to f uniformly on A when ∀ε>0∃N∈N∀n∈N∀x∈A(n≥N→|fn(x)−f(x)|<ε), where fn(x) is a term in the two variables n and x. Negate this into positive form, citing the laws.
  • (b) Using the negation of uniform continuity in Example (Three negations from analysis) (c), prove that f(x)=1/x is not uniformly continuous on (0,1). Give the witnesses that the negation asks for, each as a function of what is chosen before it, and check every condition.

Solution (Hint 1). For (b), the negation asks for one ε first. Near 0, the graph of 1/x is steep: two points close together have values far apart.

Solution (Hint 2). Take ε=1 and let δ>0 be arbitrary. You must now find x,y∈(0,1), depending on δ, with |x−y|<δ and |1/x−1/y|≥1.

Solution. (a) Proposition 6.2.3 four times, then Proposition 6.2.2 and the order fact: ∃ε>0∀N∈N∃n∈N∃x∈A(n≥N∧|fn(x)−f(x)|≥ε). In words: for some ε>0, however far out we start, some later fn is at least ε away from f at some point of A. The point may change with n.

(b) By Example (Three negations from analysis) (c), we must prove ∃ε>0∀δ>0∃x∈(0,1)∃y∈(0,1)(|x−y|<δ∧|1x−1y|≥ε). Take ε=1, which is positive. Let δ>0 be arbitrary, and let t:=min(δ,12), so 0<t≤12 and t≤δ; then take x:=t and y:=t/2, which depend on δ. Check:

  • x,y∈(0,1): 0<t/2<t≤12<1.
  • |x−y|=t/2<t≤δ, since t>0.
  • |1/x−1/y|=|1/t−2/t|=1/t≥2≥1=ε, since t≤12.

Since δ>0 was arbitrary, the negation of uniform continuity holds, so 1/x is not uniformly continuous on (0,1).

Marking scheme. (10 points) - 3: (a) the negation, with every bound kept, ∧ in place of →, and the quantifiers in the order ∃ε∀N∃n∃x∈A. - 2: (b) the witness ε, stated before δ is given. - 2: for an arbitrary δ>0, points x and y given as functions of δ. - 3: the three checks: x,y∈(0,1); |x−y|<δ; |f(x)−f(y)|≥ε. A different correct choice earns full marks (for instance x=t, y=t/3); the scheme rewards the order of the choices and the checks. Fatal errors (0 for the step): ε chosen depending on δ; points chosen before δ is given, or not depending on it where they must; a bound negated instead of the quantifier (∃ε≤0, ∃n<N).

Exercise (C3: “There exists” from “for every”)

Suppose ∃ were not a symbol of the language, and ∃xφ abbreviated ¬∀x¬φ.

  • (a) Show that ∃I is then a derived step: from φ[t/x], with t free for x in φ, derive ¬∀x¬φ.
  • (b) Show that ∃E is one too: if Γ,φ[x0/x]⊢χ, where x0 is a variable other than x that appears neither in Γ, nor in χ, nor in φ, then Γ,¬∀x¬φ⊢χ.
  • (c) Which of (a) and (b) uses a classical rule (RAA or LEM)?

Solution (Hint 1). In (a) the goal is a negation: open a ¬I box.

Solution (Hint 2). In (b) nothing in the premises can be taken apart; aim the clash at the premise ¬∀x¬φ.

Solution. (a) Five lines:

1φ[t/x]
2∀x¬φasm, for ¬I
3¬φ[t/x]∀E 2
4⊥¬E 1, 3
5¬∀x¬φ¬I 2–4

Line 3 is ∀E at t, which is free for x in ¬φ because it is free for x in φ.

(b) From the premises Γ and ¬∀x¬φ:

  • assume ¬χ, for RAA;
  • open a flagged box x0, and in it assume φ[x0/x], for ¬I;
  • paste the given derivation of χ, whose premises Γ are available. Its own flags are first renamed to names that appear nowhere else, as “The laws as one line” requires, so that the open assumption ¬χ cannot spoil its side conditions;
  • write ⊥ by ¬E with ¬χ, and ¬φ[x0/x] by ¬I; close the flagged box with ∀x¬φ by ∀I. Here x0 is in no premise, not in the open assumption ¬χ and not in ∀x¬φ;
  • write ⊥ by ¬E with the premise ¬∀x¬φ, and χ by RAA.

(c) (b) uses one: RAA at its last line (or LEM, in a proof by cases); (a) uses neither. (Whether (b) could avoid a classical rule altogether is not asked.)

Marking scheme. (10 points)

  • 3: (a).
  • 2: (b)’s classical step (RAA, or LEM with a case split) and flagged box, in the right nesting.
  • 3: the side condition of the ∀I line, including the renaming of the pasted flags.
  • 2: (c).

Fatal errors (0 for the step): ∀I on x0 while φ[x0/x] is still open; instantiating ¬∀x¬φ by ∀E.