Nearly every theorem is a claim about all numbers of some kind or about at least one of them, and the connectives of the previous lesson have no way to say either.
That lesson fixed the meaning of "not", "and", "or", "implies" and "if and only if", and closed on a sentence they could not build: "for every integer , if is divisible by , then is even". This lesson adds the two missing words, "for every" and "there exists". It fixes what they mean, shows that the collection a variable ranges over is part of every claim, gives mechanical rules for negating any quantified statement, and shows that the order of two quantifiers can be the whole difference between a true statement and a false one. It then covers "there is exactly one", the translation of mathematical English into symbols and back, and the quantifiers hidden in ordinary sentences. It ends where the subject earns its keep: the definitions of a limit and of continuity, each a string of three alternating quantifiers, read, used and negated symbol by symbol.
Open sentences and the two quantifiers
A sentence such as "" has no truth value until is fixed: it is true when and false when . Such an open sentence, also called a predicate, is written , so that is a true statement and a false one. Open sentences can have several variables. "" is a predicate in two variables, true for the pair and false for , and " divides " is another. The set of values that make true is its truth set: over the real numbers the truth set of is everything below together with everything above .
Two quantifiers turn an open sentence into a statement.
Definition. The universal quantifier is read "for all" or "for every". The statement is true when is true for every value of in the domain, and false when at least one value makes false.
Definition. The existential quantifier is read "there exists" or "for some". The statement is true when is true for at least one value of in the domain, and false when every value makes false.
"At least one" is the exact reading of . It does not mean exactly one, and it does not hint that not all: "there is an even integer" is true, though there are infinitely many, and "some real number satisfies " is true, though every real number does. As with inclusive "or", the weaker reading is the default, and a stronger one is always spelt out.
When the domain is finite the quantifiers are nothing new. Over the domain , says the same as , and says the same as . So "for all" is a long "and", and "there exists" is a long "or". What the quantifiers add is the ability to take that "and" or "or" over infinitely many cases, which no finite formula built from connectives can do.
A variable governed by a quantifier is bound, and one that is not is free. In the is bound, and the statement is about no particular : renaming it gives , the same statement. The bound variable is a placeholder, like in or in . A sentence with a free variable is still an open sentence. Over the integers, has bound and free, so it is not a statement but a predicate of : it says " is even". That is how definitions are made. Each definition in this course is an open sentence in the thing being defined, with the other variables bound inside it.
A quantifier governs the formula written directly after it, and brackets say how far that reaches. In the quantifier covers both parts. In it covers only , and the in is free, so the whole is an open sentence. When in doubt, bracket.
Often the quantifier is not written at all. "If is divisible by , then is even" is printed as a theorem with no "for all", and every reader supplies "for every integer ". A proof has to put it back, because "every " and "some " call for different proofs.
What if the domain is empty?
Then every universal statement is true and every existential statement is false. needs a value of with , and there are none. is false only if some value makes false, and there are none of those either. So over an empty domain "every satisfies " is true whatever is, including and at once.
This is the vacuous truth of the previous lesson in another form. A universal statement restricted to a set, such as "every element of is positive", is , and when is empty every instance has a false hypothesis. "Every real number with is equal to " is true, and so is "every such is not equal to ".
The convention is forced, not chosen for convenience. The negation law of the section below says is the same as . Over an empty domain the right-hand side is false, so must be true. Any other choice would break that law, and with it the rule that a universal claim is refuted exactly by a counterexample.
One familiar inference does fail. Over a non-empty domain, implies : pick any element, and it satisfies . Over an empty domain the first is true and the second false. Formal logic usually requires domains to be non-empty so that this inference holds, and in mathematics the issue surfaces when a statement about "every element of " is used to produce an element of . A proof that does so has quietly assumed that is not empty, and should say so.
The domain is part of the claim
"For all " always means all in some collection, the domain, and changing the domain changes the claim. Take " for every ". Over the integers it is true: if then , and if then multiplying by the positive number gives . Over the reals it is false, since gives . Likewise "there is an with " is true over the reals and false over the rationals: the lesson on contrapositive and contradiction proves the second, and the lesson on the real numbers the first. And "there is an with " is false over the integers and true over the rationals.
So mathematicians write the domain into the quantifier: , , with , , and for the natural numbers, integers, rationals and reals. This course takes to start at , so . When the domain is clear from the context, as in "over the integers" at the head of an argument, it is left out of each quantifier.
A claim often concerns part of a domain, as in "every prime greater than is odd", and the two quantifiers restrict in different ways. A restricted universal uses a conditional: . A value that fails the restriction makes the conditional vacuously true, so it is let through. A restricted existential uses a conjunction: "some prime is even" is , which needs one value with both properties.
Swapping the connectives destroys the claim. says every integer is an odd prime, which refutes. is made true by , which is not prime, so it says nothing about primes at all. The rule to remember: goes with , and goes with .
The shorthands , and abbreviate exactly these patterns. They are called restricted or bounded quantifiers:
With them, definitions become short formulas. Over the integers, " divides " is , and " is a perfect square" is . " is prime" says and the only positive divisors of are and :
A positive divisor of a positive integer is at most , so the quantifier could equally be written , with running over . A quantifier bounded by a number in this way ranges over finitely many values, and a statement all of whose quantifiers are bounded like this can be settled by checking. " is prime" is a finite claim, and a computer confirms it by trying every up to (or, with a little more thought, up to , since a factorisation with has ).
Why does it matter whether every quantifier is bounded?
Because it marks the line between what can be settled by a finite computation and what cannot. A statement in which every quantifier ranges over a finite, explicitly given set is a finite conjunction or disjunction in disguise, and a patient enough computer decides it. "Every even number from to is a sum of two primes" is such a statement, and a distributed computation led by Tomás Oliveira e Silva verified it, with the results published in 2014.
Goldbach's conjecture itself is . Everything inside the first quantifier is bounded, so each instance can be checked, but the first quantifier is not bounded. That shape has a consequence. If the conjecture is false, a search through the even numbers will eventually find a counterexample and stop. If it is true, the search runs for ever, and no amount of running tells you which case you are in. A statement of the form "for all , (a checkable property of )" can be refuted by computation but never confirmed by it.
Logicians sort statements by how their unbounded quantifiers alternate, a classification called the arithmetical hierarchy. Goldbach's conjecture has one unbounded in front of a checkable property. The twin prime conjecture, that there are infinitely many primes with also prime, reads , with an unbounded followed by an unbounded , and neither a proof nor a disproof of it can come from searching alone: no finite amount of data about primes settles it either way. The definition of a limit, later in this lesson, alternates three times. The more alternations, the further a statement is from anything a computer can check, and the more the proof has to do.
Negating a quantified statement
To deny that every has a property is to say that some lacks it, and to deny that some has it is to say that every lacks it.
Theorem (negation of quantifiers). For every predicate over any domain,
Proof. For the first, is true exactly when is false. By the definition of , that happens exactly when at least one value of makes false, that is, makes true, and by the definition of that is exactly when is true. For the second, is true exactly when no value of makes true, that is, when every value makes true, which is the meaning of .
These are the previous lesson's De Morgan laws, stretched. Over a domain of three objects , and , is , and De Morgan turns its negation into , which is . The theorem says the same holds when the domain is infinite, where there is no finite formula to apply De Morgan to.
Negation is therefore mechanical: move the inwards, and every quantifier it passes changes kind. When it reaches the open sentence at the end, the previous lesson's rules take over: is , is , and is . A negated inequality flips completely: is , not .
The domain and the restrictions do not change. The negation of is , which is , or : the "" rides along untouched. In the other direction, is , which is , or . The restriction says which objects the claim is about, and denying the claim does not change the subject. So the negation of "every positive real has a square root" is "some positive real has no square root", never "some non-positive real ...".
With several quantifiers the rule is applied once per quantifier, from the outside in:
The pattern of the result is easy to remember: every quantifier flips, their order stays, and the lands on the innermost sentence.
The mistake this prevents is turning "not every" into "none". "Not every prime is odd" is true, because of . "No prime is odd" is false, because of . The negation of a universal claim is an existential one, which asks for a single exception, not a universal claim of the opposite.
Example. Symbolise "every positive real number satisfies ", negate it, and decide which of the two is true.
Over the reals, the claim is . Passing the negation through the quantifier gives , and negating the conditional gives : some positive real number has a square smaller than itself. The negation is true, because is positive and . So the original claim is false.
The work was in two steps: first get the symbols right, then negate by rule, and only then think about the mathematics. The rule is reliable, and intuition about what "the opposite" of a sentence should be is not.
Now you. Symbolise "every real number with satisfies ", negate it, and decide which of the two is true.
Answer
The claim is . Its negation is , which is : some real number equals its own square without being . The negation is true, because and . So the original claim is false.
Is the negation law really safe for infinite domains?
In the mathematics of this course, yes: the proof above used nothing but the definitions of and , and nothing in it depended on the domain being finite. But one half of it carries more weight than it seems to, and some mathematicians refuse it.
The half that nobody doubts is . If you hold a particular at which fails, then plainly not every satisfies . The same goes for both directions of the second law, .
The other half is . Suppose you have shown that "every satisfies " leads to a contradiction. Have you shown that some particular fails ? Classically, yes: each either satisfies or does not, by the law of excluded middle, and if every one satisfied it you would have . But the argument never tells you which fails. The constructive mathematicians, following L. E. J. Brouwer (the next lesson says more about them), read "there exists" as "we can find", and for them this half of the law fails over infinite domains.
A standard example shows what is at stake. Let say "the th digit after the decimal point of is not the start of a run of a hundred consecutive s". Over a finite range of you can check. Over all of , suppose someone proved by an indirect argument. Classically that proves such a run exists; constructively it proves only that the absence of such a run is impossible, and the run's position may be beyond anyone's reach.
For this course the classical law holds without reservation. The point of the story is where the weight sits: a proof of "some fails" that does not produce an has used excluded middle, and in constructive settings, such as some proof assistants, that step has to be flagged.
What each kind of claim needs
The shape of a statement says in advance what a proof of it must do and what a disproof must do. For a single quantifier there are four cases.
| Statement | To prove it | To disprove it |
|---|---|---|
| Let be arbitrary and show | Exhibit one with | |
| Exhibit one with | Let be arbitrary and show |
The table is two facts and their negations. An existential statement is proved by producing a value, called a witness, and checking it. So one value at which fails, a counterexample, refutes a universal claim however many other values it holds for, because the negation of is the existential statement . For a restricted claim , a counterexample must satisfy the hypothesis and fail the conclusion; a value that fails the hypothesis refutes nothing.
In 1640 Pierre de Fermat wrote that every number is prime. The cases to give , , , and , all prime. In 1732 Euler showed that the next, , equals , and that one line settles the matter. Nobody has since found another prime of this form.
The other direction has no such shortcut. No number of examples proves a universal claim over an infinite domain: is prime for every from to and equals at , and Pólya's conjecture about prime factors held for every number below 906,150,257. A universal claim needs an argument about an arbitrary element: name an , assume nothing about it beyond membership of the domain (and the hypothesis, if the claim is a conditional), and derive . Because nothing was assumed about the named , the argument works for each one. The next lesson turns this into a method and explains exactly why it is valid.
Existential claims are the mirror image. One example proves "some prime is one more than a square", namely , and one example proves "some rational has ", namely , which gives . Refuting an existential claim needs a proof about every value: "no integer satisfies " is , and it is proved by noting that for an integer the number is even while is odd, and no integer is both (a fact the next lesson proves).
When the statement has two quantifiers the table is applied twice, from the outside in. A proof of lets be arbitrary and then exhibits a that works for that , so its is typically a formula in . A proof of exhibits one first and then shows it works for an arbitrary , so its cannot mention at all. Knowing which kind of statement is in hand says in advance whether an example will be enough, and what shape of argument is needed when it is not.
The order of quantifiers
An open sentence in two variables, like "", needs two quantifiers. Two of the same kind can come in either order: and both say that holds for every pair, and and both say that it holds for at least one pair. When the kinds are mixed, the order is part of the meaning.
Over the integers, "every integer has a larger one" is , and "some integer is larger than all of them" is . The first is true and the second false, and the symbols differ only in order. In the is found after is known, so it may depend on : for take , for take . In the is fixed first and must then work against every at once.
It helps to read quantifiers as a game between two players. A sceptic picks the values under and a prover picks those under , in the order written, each seeing the choices already made. The statement is true when the prover has a strategy that wins however the sceptic plays. In the sceptic names and the prover answers , and wins every time. In the prover must commit to first, and the sceptic answers itself, or anything larger, and wins every time. Every proof in this course of a statement with several quantifiers is a winning strategy for the prover, written down.
Committing early is a handicap, never an advantage, and that makes one direction of the order a theorem.
Theorem. For every predicate , implies .
Proof. Suppose , and let be a value with . Let be arbitrary. Then holds, so is a value of with , and is true. Since was arbitrary, .
In the game, the prover who can win by committing first can win by committing second: play the same whatever turns out to be. The converse is false, and the integers with show it. A counterexample to a claim about all predicates is one predicate on one domain, and over makes true and false.
Negation still works one quantifier at a time, so is . The negation of "every integer has a larger one" is "some integer has no larger one", that is, "some integer is at least as large as every integer", and the negation of "some integer is larger than every integer" is "every integer is at most as large as some integer", a clumsy but true sentence.
Example. Over the integers, decide whether and are true, and prove each answer.
The first is true. Let be any integer and take . Then is an integer and , so . As was arbitrary, the statement holds.
The second is false, so prove its negation, . Let be any integer and take . Then . As was arbitrary, no integer is larger than all integers, not even than itself.
In both proofs the witness is a formula in the variable chosen before it: in the first, in the second. That is what the order permits, and it is why the proof of the negation could be so short. The sceptic's value came first.
Now you. Over the integers, decide whether and are true, and prove each answer. Does the first stay true over ?
Answer
The first is true. Let be any integer and take , which is an integer. Then . As was arbitrary, the statement holds.
The second is false, so prove its negation, . Let be any integer. If , take , so . If , take , so . Either way the required exists, and as was arbitrary, the negation holds. (A single choice also works: gives .)
Over the first is false. Its negation is , and is a witness: for every natural number , , so .
If the depends on the , is there a function hiding in ?
Yes, and making it explicit is a standard tool. Suppose is true. For each there is at least one suitable ; pick one and call it . Then is a function on the domain with . Conversely, if some function has , then , with as the witness. So
and the right-hand side makes the dependence visible: the prover's strategy is the function . Logicians call a Skolem function, after the Norwegian logician Thoralf Skolem, who used this move to replace existential quantifiers by function symbols. In the Examples above the Skolem functions were and .
The equivalence also explains the theorem that implies : the first says there is a constant function that works, and a constant function is a function.
Proofs of statements are, in practice, constructions of such functions, and much of analysis is the study of how good the function can be made. In the definition of a limit, below, the Skolem function sends each tolerance to a starting point , and a proof of convergence usually gives it by a formula such as "take greater than ". In continuity, the function sends a point and a tolerance to a , and whether it can be chosen without looking at the point is exactly the difference between continuity and uniform continuity.
There is a subtlety in "pick one". When the domain is finite, or when a rule such as "the least suitable " is available, the choice is unproblematic. Making infinitely many arbitrary choices at once, with no rule, is the content of the axiom of choice, which the lesson on order relations meets again through Zorn's lemma. For the statements in this course a rule is always at hand.
Exactly one
The existential quantifier means "at least one", and many theorems claim more: there is exactly one such object. The quotient and remainder on dividing one integer by another, the positive square root of a positive number, the limit of a convergent sequence, each is unique, and each word "the" in those phrases depends on it.
Definition. , read "there is a unique with " or "there is exactly one with ", means
In words: some has the property, and every object with the property is that . The same claim splits into two independent halves,
existence, that at least one object has the property, and uniqueness, that at most one does. The second half on its own is how "there is at most one" is written. It asserts nothing about existence: over the integers, "at most one satisfies " is true because none does.
The two forms say the same thing. If witnesses the first form, then holds, and whenever and , both and , so . Conversely, if both halves hold, take with ; any with then has by uniqueness, which is the first form.
The split is also the plan of every proof of unique existence: two separate arguments. Existence is proved like any existential claim, by a witness. Uniqueness is a universal claim, proved by letting two objects with the property be arbitrary and showing they are equal. Finding one object and failing to think of another proves existence only.
Uniqueness shows up hidden in counting. Two variables may take the same value, so is true whenever one object has , and "at least two objects have " needs the inequality written in:
Negating by rule, from the second form, gives : either nothing has the property, or at least two things do. A claim of unique existence fails in two quite different ways, and a disproof must say which.
Example. Prove that there is a unique natural number with . Is there a unique integer with that property?
Existence. Take . Then , and .
Uniqueness. Let be a natural number with . Factorising, , so or . Since , the number is at least and so is not . Hence , and . So every natural number with the property equals .
Over the integers the answer changes: also works, since . So there are at least two integers with the property, and , and by the negation above, is false. The uniqueness argument shows where the domain entered: "" was the only step that used .
The uniqueness proof here showed that every solution equals the one already found. The other pattern, taking two arbitrary solutions and showing they are equal, is often cleaner when the solution has no formula, as in the next exercise.
Now you. Prove that there is a unique real number with .
Answer
Existence. Take : then .
Uniqueness. Let and be real numbers with and . Subtracting, , and since , this is
The second factor is positive: , so . A product of two real numbers is only if one of them is, so , and .
The uniqueness half never needed to know the solution: it would work unchanged for with any real . Existence for other values of , where no neat witness can be guessed, needs the intermediate value theorem, a consequence of the completeness of the real numbers.
Does say there is exactly one pair?
No, and the failure is a good test of reading symbols literally. Unwrap the outer quantifier: , where is "", that is, "exactly one goes with this ". So the statement says: exactly one has exactly one partner. Other values of may have no partner, or several.
A small example makes it concrete. Take the domain and let be true for the pairs , and , and false for . The value has exactly one partner, . The value has two, so it fails "". Hence exactly one , namely , has exactly one partner, and is true. Yet three pairs satisfy .
The implication does hold the other way. If exactly one pair satisfies , then has exactly one partner, , and every other has none, so is true. So "exactly one pair" is strictly stronger, and its correct symbolisation treats the pair as a single object:
Mixed stacks need the same care. "" says that every has exactly one partner, which is what it means for to define a function. "" says something else: exactly one is a partner of every at once. Unique existence does not even commute with itself: on the domain , with true for exactly the pairs , and , only has exactly one partner, so is true, while each of , , has exactly one partner, so is false. So the only safe way to read a stack of quantifiers is from the outside in, one at a time. The Logic course treats identity and counting quantifiers formally in its lesson on identity and number.
Translating mathematical English
Mathematics is written in English with symbols mixed in, and most of its quantifiers are words. Translating into symbols is how you find out exactly what a sentence claims, and translating back is how you say it to a reader. The common words are these.
- "for every", "for all", "for each", "for any", "whenever", "always", and the indefinite article in a general claim ("a square is never negative") are universal.
- "there is", "there exists", "for some", "at least one", "can be" (" can be written as a sum of two primes") and the indefinite article in an existence claim (" has a real solution") are existential.
- "no", "none", "never" are , which is the same as : "no square is negative" is .
- "only" marks the conclusion of a conditional: "only even numbers are divisible by " is .
The word "any" is the dangerous one, because it is universal in some positions and existential in others. "Any square is non-negative" means every square. "If any integer is a counterexample, the conjecture is false" means if some integer is, and "there is not any solution" means no solution. When "any" appears, rewrite with "every" or "some" and check that the meaning survived.
Several phrases in analysis and number theory package two quantifiers at once, and they come in pairs that differ only in order. For a property of natural numbers:
- " holds for all sufficiently large ", or "eventually", means : from some point on, always.
- " holds for infinitely many ", or "frequently", means : beyond every point, at least once more.
The negation of "eventually " is , "infinitely often not ", and the negation of "infinitely often " is "eventually not ". Over , "arbitrarily large" means the same as "infinitely many": "there are arbitrarily large primes" is , which says the primes never stop.
Example. Symbolise "between any two distinct real numbers there is a rational number". Then negate the symbolic form, and translate the negation back into English.
The claim is universal in the two numbers and existential in the rational. "Distinct" can be replaced by "", since of two distinct reals one is smaller and the sentence does not care which is named first. So the claim is
To negate, flip each quantifier and push the inwards, using and De Morgan on the final conjunction:
In English: there are real numbers such that every rational number lies at or below or at or above , that is, no rational lies strictly between them. The original is the true one: it is the density of the rationals, which the lesson on the real numbers proves from the completeness axiom.
Now you. A function is bounded if some number is at least for every real . Symbolise " is bounded", write the negation " is unbounded" in symbols and in English, and prove that is unbounded.
Answer
" is bounded" is . Its negation is : whatever bound is proposed, some value of exceeds it in size.
To prove unbounded, let be any real number and take . Then , so , and . Since was arbitrary, is unbounded. The witness depended on , as the order allows.
By contrast is bounded, with as the witness, since for every . Here one is fixed first and must serve every , as the order requires.
Hidden quantifiers
Most quantifiers in real writing are not written as quantifiers at all, and a large share of confusion, in mathematics and outside it, comes from supplying the wrong one.
In algebra the sign "" carries a hidden quantifier that changes with the sentence. "" is an identity, a claim about every real . "" is an equation, an open sentence, and "solve it" means find its truth set, here . " has a solution" is an existential claim. The three look alike on the page, and a proof needs to know which it is holding, because an identity may be used for any value while an equation may be used only for the values that satisfy it.
Properties of functions are quantified statements in the same way. For a function :
- is increasing when , and strictly increasing with at the end;
- is constant when , or equivalently ;
- is periodic when ;
- has a maximum when .
Each negation is then a matter of rule. " is not increasing" is : one pair of points where the function goes down. It is not " is decreasing", which is a universal claim of its own, and most functions, among them, are neither.
The words "let" and "suppose" in a proof also carry quantifiers. "Let be an integer" introduces an arbitrary object, the first move of a proof of a . "Choose with " introduces a particular one, supplied by an in a hypothesis. The next lesson makes the difference precise, because confusing the two is behind many invalid proofs.
Everyday English is looser still. "All that glisters is not gold", from The Merchant of Venice, literally says : nothing that glisters is gold. It means : not everything that glisters is gold. "Everybody loves somebody" is usually , each person has someone, but can be heard as , one person whom everybody loves. A statistic such as "a pedestrian is injured in this city every hour" is hour pedestrian; the old joke replies "that poor pedestrian", reading it as pedestrian hour. None of this is a defect of English, which leans on context. Mathematics cannot, so when a sentence could be read two ways it is rewritten until it cannot.
The limit of a sequence
Quantifier order is the whole content of the definition calculus rests on. A sequence of real numbers converges to a real number , written , when
Read aloud: for every tolerance there is a position such that every term from position on lies within of . Here is the distance from to , so says .
As a game: the sceptic names a tolerance , the prover answers with a position , the sceptic picks any term from position on, and the prover wins if it lies within of . Since follows , the position may depend on the tolerance, and it must. For and , the tolerance is met from , since while is not, and needs .
Swap the first two quantifiers and the definition collapses.
Proposition. If , then for every .
Proof. Take such an , and let . Then for every . Suppose . Then is a positive tolerance, and the hypothesis gives , which is impossible. So , and .
So under the swapped reading a sequence would converge only if it were eventually equal to its limit, and , which never reaches , would not converge to . The order is what lets a sequence approach a value without arriving.
Proving that a limit is correct means winning the game for every at once, so the proof must give as a rule in terms of . Finding the rule is scrap work: write , simplify it, and see how large must be to make it less than . The proof then needs a natural number beyond any given real number, which is the Archimedean property of the reals: for every real number there is a natural number with . It is used here as a known fact about , and the lesson on the real numbers derives it from the completeness axiom.
Example. Prove that .
Scrap work: , and exactly when . So any beyond will do.
Proof. Let . By the Archimedean property there is a natural number with . Let . Then , so , and
Since was arbitrary, .
The proof follows the quantifiers exactly. "Let " answers , "there is " answers , "let " answers , and the displayed line is the sentence at the end. For the rule gives any , say , and then for every . The rule need not give the smallest that works, only one that does.
Now you. Prove that .
Answer
Scrap work: . Solving exactly is possible, but it is simpler to bound first: , and once .
Proof. Let . By the Archimedean property there is a natural number with . Let . Then , so , and
Since was arbitrary, .
Bounding by something simpler before solving is the standard move: the proof needs some that works, and a cruder estimate that is easy to invert is worth more than an exact one that is not.
To show that a sequence does not converge to , negate the definition, one symbol at a time. becomes , keeping its restriction. becomes . becomes . Finally becomes . So does not converge to when
that is, some tolerance is broken by a term beyond every starting point. In the language of the section on mathematical English: for some , infinitely many terms lie at distance at least from . A disproof must therefore supply one , and a way to answer every with a suitable .
Example. Prove that does not converge to .
Prove the negation with . Take . Let be any natural number and take . Then and is odd, so and . Since was arbitrary, the negation holds.
Now the roles have changed. The prover of the negation chooses and , the sceptic chooses , and the prover's is allowed to depend on , as does.
Now you. Prove that does not converge to .
Answer
Prove the negation with . Take . Let be any natural number and take . Then and , so . Since was arbitrary, the negation holds.
A sequence that converges to no real number at all is said to diverge, and that is one more quantifier in front: . Showing that diverges means defeating every candidate , not just and , and it is one of the problems at the end. The lesson on limits builds the theory on this definition: that a sequence has at most one limit, that a convergent sequence is bounded, and the rules for limits of sums and products.
Continuity, pointwise and uniform
The definition of continuity has the same three quantifiers, with a fourth that can stand in two places, and its two positions give two different notions.
Definition. A function is continuous at the point when
It is continuous when it is continuous at every point, , and uniformly continuous when
In the game for continuity at , the sceptic names a tolerance for the output, the prover answers with a tolerance for the input, and the sceptic may then pick any within of ; the prover wins if is within of . It says that can be made as close as you like to by taking close enough to . The definitions of continuity and uniform continuity differ only in where stands. In continuity it comes before , so may depend on the point as well as on . In uniform continuity it comes after, so one must serve every point at once. By the theorem on quantifier order, moving an later can only weaken a statement, so every uniformly continuous function is continuous. The converse fails, and the standard example shows why.
A linear function is uniformly continuous. For , , so given take : whenever , . The mentions only , so it serves every at once. (The calculation uses and the other school facts about absolute value, which the next lesson proves.)
The squaring function is continuous, but its has to shrink as grows. Since , the output error is the input error multiplied by , which is about when is near .
Proposition. The function is continuous at every real number .
Proof. Let be a real number and let . Take to be the smaller of and , which is positive. Let be a real number with . Since , we have , so , and as and , this gives . Therefore
where the strict step uses and , and the last step uses .
The depends on through the factor . That is not a weakness of this proof. No choice of free of can work, as the negation of uniform continuity shows. By rule, is not uniformly continuous when
Proposition. The function is not uniformly continuous on .
Proof. Take . Let , and take and . Then , and
So . Since was arbitrary, is not uniformly continuous.
However small the proposed , the sceptic goes far enough out along the parabola, to , that the curve is steep enough to turn an input step of into an output jump of more than . Both propositions are about the same function, and the only difference between the statements they settle is the position of .
If every uniformly continuous function is continuous anyway, why does anyone care about the difference?
Because many arguments need one for a whole interval, and pointwise continuity supplies only one per point. The clearest case is integration. To show that a continuous function on has an integral, one cuts the interval into pieces of width and needs the function to vary by less than across every piece at once, which is uniform continuity. The same need appears whenever a limit must be taken uniformly across a range: approximating functions by polynomials, exchanging a limit with an integral, solving differential equations by successive approximation.
The rescue is a theorem named after Eduard Heine and Georg Cantor: a function continuous at every point of a closed bounded interval is uniformly continuous there. For this can be seen directly. On , if and both lie in the interval then , so , and works at every point. The trouble in the proposition above came entirely from letting run off to infinity.
Both conditions of the theorem matter. On the unbounded set , fails. On the bounded but open interval between and , excluding the ends, the function is continuous at every point and not uniformly continuous, because near it is as steep as you please; one of the challenge problems below proves this. The general proof of the theorem needs the completeness of the real numbers, through the theorem of Bolzano and Weierstrass on convergent subsequences, and it is a staple of a first course in analysis.
The same distinction, between a quantity that may depend on a point and one that may not, runs through the rest of analysis: uniform convergence of sequences of functions against pointwise convergence is the next instance, and it decides whether a limit of continuous functions is continuous.
From what a claim says to how to prove it
Any statement in this course can now be written with quantifiers over a stated domain, and its negation computed rather than guessed. The shape of the symbols dictates the shape of the proof: a is met by letting the variable be arbitrary, an by naming a value, which may depend on every variable chosen before it, and a disproof is a proof of the negation, with every quantifier flipped.
Take the claim that the square of every odd integer is one more than a multiple of . In symbols it is
and the symbols say what a proof must do: let be an arbitrary odd integer, and produce an integer , depending on , with . The examples agree: , , , , , and as well. But they are examples, and the claim is universal over an infinite domain. The quantifiers say what a proof must deliver, not how to find the . The next lesson supplies the method, the direct proof, and proves this claim with it.
Problems
Work each problem on paper before opening anything; for Core and Challenge problems, try the hint before the solution.
Warm-up
1. Decide whether each statement is true over , over and over , twelve verdicts in all, and justify each. (a) . (b) . (c) . (d) .
Solution
(a) Over , true: every natural number is at least , so . Over and over , false: is a counterexample, since .
(b) Over and , false: for an integer , is even and is odd, and no integer is both (a fact the next lesson proves), so . Over , true, with witness .
(c) Over , false: for we would need a natural number with , and by (b) there is none. Over , false for the same reason, with the same counterexample . Over , true: for any real , gives .
(d) Over , true, with witness : every natural number has . Over , false. Its negation is , and for any integer the integer is smaller. Over , false by the same argument with .
2. Negate each statement, moving inwards until it applies to nothing but an equation or inequality, and then remove it by rewriting that equation or inequality. Say whether the original or the negation is true. (a) . (b) . (c) .
Solution
(a) : some positive real number is not the square of any real number. The original is true, since every positive real has a real square root, as the lesson on the real numbers proves.
(b) : every natural number is exceeded by some natural number. The negation is true, with , so the original, "some natural number is at least every natural number", is false.
(c) : some two reals have no real strictly between them. The original is true: for , the midpoint satisfies , because and .
3. Over the integers, write each of these as a formula using only quantifiers, connectives, , , , and . (a) is odd. (b) is a sum of two squares. (c) and have a common divisor greater than . (d) has exactly two positive divisors.
Solution
(a) .
(b) . The two variables may take the same value, which is right: counts.
(c) .
(d) . The clause makes "at least two", and the final universal makes "at most these two". Here abbreviates . For positive this says that is prime, since the two divisors must be and with ; it is a second definition of primality, equivalent to the one in the lesson.
4. Decide which of these are true, and justify each answer. (a) . (b) . (c) . (d) .
Solution
(a) False: and are two different integers whose squares are , so uniqueness fails.
(b) True. Existence: and . Uniqueness: if and , then , and is not , so .
(c) True. Existence: . Uniqueness: if , then . So or . In the second case, is a sum of two non-negative terms, so both are , giving and then ; so in this case too.
(d) False, for the other reason: no real number has a negative square, so existence fails.
Core
5. Over , decide which statements are true, and prove each answer. (a) . (b) . (c) . (d) . (e) .
Hint
Play the game. For a true statement, give the prover's choices, each as a formula in the variables chosen earlier. For a false one, prove the negation, which means giving the sceptic's choices.
Solution
(a) False. The negation is , with witness : for every real , .
(b) True, with witness : for every real , .
(c) False. The negation is , with witness : every real has .
(d) True, with witness : for every real , .
(e) True. Let be any real number and take . Let be any real number with . Then , and multiplying by the positive number gives . So . The conditional therefore holds for every , and since was arbitrary, the statement holds. It says that however large is, the squares of all sufficiently large numbers exceed it, and the had to depend on .
6. Find the flaw in this proof, and show that the claim is false.
Claim. There is a natural number such that for every natural number .
Proof. Let be a natural number. Take . Then is a natural number and . Since was arbitrary, such an exists.
Hint
Write the claim in symbols, and write in symbols what the proof actually establishes. Compare the order of the quantifiers.
Solution
The claim is . The proof chose first and then in terms of , so what it proves is : every natural number is at most some natural number. That statement is true and has just been proved, but it is not the claim. In the claim, must be fixed before is chosen and must then work for every , so it may not depend on . The phrase "since was arbitrary, such an exists" hides the swap: the found was a different number for each .
The claim is false. Its negation is . Let be any natural number and take . Then is a natural number and . Since was arbitrary, the negation holds.
7. Over , prove or disprove each statement. (a) . (b) . (c) .
Hint
Each "exists exactly one" needs an existence argument and a uniqueness argument. For uniqueness, the inside lets you substitute any convenient value.
Solution
(a) True. Existence: gives for every . Uniqueness: suppose satisfies for every real . Taking gives , so . So every such is .
(b) True. Existence: gives for every . Uniqueness: suppose satisfies for every real . Taking gives .
(c) False. Its negation is , and is a witness: for every real , so both and satisfy , and the is not unique. (For every there is exactly one such , namely , since gives and . So the statement fails at a single point.)
Parts (a) and (b) say that is the unique number that absorbs every product, and the unique number that leaves every product unchanged.
8. Let and be predicates over a domain . (a) Prove that is equivalent to , and that is equivalent to . (b) Prove that implies , and disprove the converse. (c) Prove that implies , and disprove the converse.
Hint
For the disproofs, one domain and one pair of predicates is enough: try the integers with "even" and "odd".
Solution
(a) Suppose . Let be arbitrary; then , so . As was arbitrary, , and in the same way . Conversely, suppose and , and let be arbitrary. Then and , so , and as was arbitrary, .
For the second equivalence, negate both sides of the first with and in place of and . The first equivalence gives . The negation of the left side is , which is . The negation of the right side is , which is . Equivalent statements have equivalent negations, so these two are equivalent.
(b) Suppose , and let be arbitrary. If holds, then , so . Otherwise holds, so and again . As was arbitrary, .
The converse fails. Over , let be " is even" and be " is odd". Every integer is even or odd (the next lesson proves this, and that no integer is both), so is true. But is false, since is not even, and is false, since is not odd, so is false.
(c) Suppose , and let be a witness, so and . Then witnesses and also .
The converse fails, with the same predicates. is true (take ) and is true (take ), but is false, since no integer is both even and odd. The two witnesses were different objects, and nothing forces one object to serve both.
So distributes over and over , as a long "and" and a long "or" should, and neither distributes over the other connective.
9. Write each statement in symbols, then write its negation in symbols and in plain English without the word "not" at the front. Here is a sequence of real numbers and . (a) The sequence is bounded. (b) for infinitely many . (c) Every real number is a value of . (d) is periodic.
Hint
Decide first which quantifier each phrase hides, and in what order. "Infinitely many" over was translated in the section on mathematical English.
Solution
(a) . Negation: . In English: whatever bound is proposed, some term exceeds it in size; the sequence is unbounded.
(b) . Negation: . In English: from some point on, no term is ; there are only finitely many zero terms.
(c) . Negation: . In English: some real number is missed by altogether. (A function with property (c) is called surjective onto ; the lesson on functions studies it.)
(d) . Negation: . In English: for every proposed positive period, some point is not repeated one period later.
In each case the restrictions (, ) survive the negation unchanged, and each quantifier flips.
10. (a) Prove that . (b) For , find the smallest that works in the definition of convergence for this sequence.
Hint
Compute , and ask how large must be to make it less than . You will need a natural number larger than a given real number.
Solution
(a) For every , . Let . By the Archimedean property there is a natural number with . Let . Then , and since both sides are positive and taking square roots preserves order between positive numbers, . Hence , that is, . Since was arbitrary, .
(b) We need for every . For positive , holds exactly when , that is, when . So works, since every has . And no smaller works: if , then satisfies and , which is not less than . So the smallest is .
11. Prove that the sequence does not converge to any real number.
Hint
Write down the statement to prove: . One can work for every , but the choice of must depend on whether is closer to or to .
Solution
We prove .
Let be any real number, and take . Let be any natural number. There are two cases.
If , take . Then and is odd, so , and , since is positive.
If , take . Then and is even, so , and , since is positive.
In both cases and . Since was arbitrary, does not converge to , and since was arbitrary, it converges to no real number.
The order of choices matches the order of quantifiers: was chosen after (though it happened not to depend on it), and after both and , depending on each.
12. Let be the step function with for and for . Prove that is continuous at every and is not continuous at .
Hint
At a point , choose small enough that every within of has the same sign as . At , write out the negation of continuity at and look to the left of .
Solution
Continuity at . Let and take , which is positive. Let be a real number with , so .
If , the left inequality reads , so . If , then and the right inequality reads , so . In both cases . Since was arbitrary, is continuous at . Notice that depended on and not on .
No continuity at . We prove . Take . Let , and take . Then , and , so . Since was arbitrary, is not continuous at .
Any up to would do in the second part. For the sceptic cannot win, since never varies by more than , which is why the negation only asks for one .
Challenge
13. Let be a predicate over a non-empty domain. Up to the fact that quantifiers of the same kind commute, there are six statements obtained by putting one quantifier on each variable:
Determine exactly which of these statements imply which others for every predicate on every non-empty domain. Prove each implication that holds, and give a counterexample for each one that does not.
Hint
Arrange the six in a diamond with at the top and at the bottom. For the non-implications, four small predicates on the domain suffice: try , , , and " and ".
Solution
Write the statements as , , , , and . The claim is that the implications that hold are exactly these, together with each statement implying itself:
and the ones they give by chaining: , , , and . That is eleven implications between distinct statements, out of thirty ordered pairs.
The implications. Since implication is transitive, it suffices to prove the six arrows displayed.
: suppose . The domain is non-empty, so pick an element . For every , holds by , so witnesses .
is the theorem on quantifier order proved in the lesson.
: suppose . Pick an element of the domain. By there is a with , and the pair , witnesses .
, and are the same three arguments with the roles of and exchanged: is the theorem on quantifier order applied with and swapped.
The non-implications. Take the domain and four predicates.
Model 1, is "". Then and are true (each element is paired with itself) and is true, while is false ( fails), is false (no equals both and ) and so is .
Model 2, is "". Then is true ( works for every ), so and are true. But is false, is false (for any , fails), and is false (for no works).
Model 3, is "". This is Model 2 with the roles exchanged: , , true, and , , false.
Model 4, is " and ". Only the pair satisfies . Then is true, and , , , , are all false ( fails at , at , and , because they imply , ).
A model in which is true and false refutes "". Going through the nineteen remaining ordered pairs:
- From (true in Model 3): , , , all by Model 3.
- From (true in Model 2): , , , all by Model 2.
- From : , , by Model 1, and by Model 3.
- From : , , by Model 1, and by Model 2.
- From : implies none of , , , , , by Model 4.
That is non-implications, and with the eleven implications it accounts for all thirty ordered pairs. The picture is a diamond: the two "" statements sit side by side and are independent of each other, as are the two "" statements, and each "" statement implies, of the two "" statements, only the one obtained by swapping its two quantifiers.
14. Let on the open interval of real numbers with . Prove that is continuous at every point of this interval, but not uniformly continuous on it. (Quantifiers over and now range over the interval.)
Hint
For continuity at , first make so that stays above , and then bound . For the failure of uniform continuity, take and put both points very close to .
Solution
Write for the interval.
Continuity at each point. Let and . Take to be the smaller of and , which is positive. Let with . Then , so . Therefore
where the strict inequality uses together with , and the last step uses . Since was arbitrary, is continuous at , and since was arbitrary, at every point of .
Not uniformly continuous. We prove . Take . Let , and let be the smaller of and . Take and . Both lie in , since . Then , and
because . Since was arbitrary, is not uniformly continuous on .
The in the first part shrinks like as approaches , and the second part shows this is unavoidable. The interval is bounded, so the failure comes from the missing endpoint , where the function is unbounded; this is why the theorem of Heine and Cantor needs a closed interval.
15. Let be a sequence and a real number. Prove that each of the following is equivalent to . (a) . (b) . (c) , where is a fixed real number. Then show that the condition is not equivalent to .
Hint
Each proof in one direction is immediate. In the other, feed the given condition a different tolerance from the one you were given: , or for a suitable , or . For the last part, look at .
Solution
Write (D) for the definition, .
(a) Suppose (D), and let . By (D) there is with for all , and then for those . So (a) holds. Conversely, suppose (a), and let . Apply (a) with the tolerance : there is with for all . So (D) holds.
(b) Suppose (D), and let . Apply (D) with to get the required . Conversely, suppose (b), and let . By the Archimedean property there is a natural number with , so . By (b) there is with for all . So (D) holds.
(c) Suppose (D), and let . Apply (D) with the tolerance to get with for all . Conversely, suppose (c), and let . Apply (c) with the tolerance : there is with for all .
The last condition is weaker. Every convergent sequence satisfies it: given and , (D) gives some , and equal to the larger of and is at least and has . But with also satisfies it: given and , take , which is even, so . And does not converge to , as the lesson proved. So the condition does not imply convergence. It says that terms come within of infinitely often, rather than eventually for good; a number with this property is called a cluster point of the sequence, and has two, and .
Parts (a) to (c) are used constantly. They let a proof aim at , or at , and still conclude convergence, and they show that the definition does not depend on the choice between and or on the exact scale of the tolerance.