



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




This lecture finishes the quick introduction to quantifiers, which follows part of section 1.3 of Rosen. We’ll also see some examples of direct proof, from section 1.6 of Rosen. Don’t worry about reading either section right now. We’ll do that when we’re closer to covering their full content.
Turn in your homework: please put it in the folder for your section on the back table. Announcement from Fernanda Mendes about the UIUC WCS (“Women in Computer Science”) mentoring program. Match you up with corporate mentors. Open to everyone (not just women). Details on their web site.
Recall from last lecture that a predicate (e.g. x^2 ≥ 0) is a statement that becomes true or false when you substitute particular values for its variables (e.g. 3^2 ≥ 0). Predicates are used to make general claims about whole sets of values, such as “For every integer x, x^2 ≥ 0.” Notice that we carefully specified the type of x, i.e. what types of values (integers in this case) that we allow to be substituted for the variable x. The set of values that can be substituted in for a variable is called its domain or its replacement set.
The operation “for all x” is formally known as a universal quantifier.
The other heavily-used quantifier in formal mathematics is the existential quantifier, written “there exists an x” For example, “there exists an integer x such that 5 < x < 100.” This means that at least one integer x (and possibly a whole bunch of integers) satisfies the equation. Notice that the existential quantifer is followed by “such that” in fluent mathematical English, which isn’t quite parallel to what you see with the universal quantifier. This isn’t for any good reason. It’s just how math- ematical English happens to have evolved, and you should do likewise so that your written mathematics looks professional. “Such that” is sometimes abbreviated “s.t.” The general idea of a quantifier is that it expresses express how many of the values in the domain make the claim true. Normal English has a wide range of quantifiers which tell you roughly how many of the values work, e.g. “some”, “a couple”, “a few”, “many”, “most.” Mathematics largely uses just the two we’ve seen, though you occasionally see a third quantifier “there exists a unique x.” This means that one and only one x satisfies the predicate. For example, “there is a unique integer x such that x^2 = 0.” Mathematicians use the adjective “unique” to mean that there’s only one such object (similar to the normal usage but not quite the same). In a statement like ∀x ∈ N, x ≤ 2 x, the quantifier ∀ is said to “bind” its variable x. Similarly, summations and integrals bind their dummy vari- ables, e.g. the i in
∑n i=
1 i.^ Variables that aren’t bound are called “free.” Statements containing free variables don’t have a defined truth value.
4 Shorthand notation
The universal quantifier has the shorthand notation ∀. For example, ∀x ∈ N, x ≤ 2 x. The existential quantifier is written ∃, e.g. ∃y ∈ Ry =
∀x ∈ R, ∀y ∈ R, x + y ≥ x
¬(∀x, P (x) → (Q(x) ∧ R(x))) ≡ ∃x, ¬(P (x) → (Q(x) ∧ R(x))) ≡ ∃x, P (x) ∧ ¬(Q(x) ∧ R(x))) ≡ ∃x, P (x) ∧ (¬Q(x) ∨ ¬R(x))
6 Proving a universal statement
Now, let’s consider how to prove a claim like
For every rational number q, 2q is rational.
First, we need to define what we mean by “rational”.
A real number r is rational if there are integers m and n, n 6 = 0, such that r = m n.
The simplest technique for proving a claim of the form ∀x ∈ A, P (x) is to pick some representative value for x.^1. Think about sticking your hand into the set A with your eyes closed and pulling out some random element. You use the fact that x is an element of A to show that P (x) is true. Here’s what it looks like for our example:
Proof: Let q be any rational number. From the definition of “rational,” we know that q = m n where m and n are integers and n is not zero. So 2q = 2 m n = (^2) nm. Since m is an integer, so is 2 m. So 2q is also the ratio of two integers and, therefore, 2q is rational.
At the start of the proof, notice that we expanded the word “rational” into what its definition said. At the end of the proof, we went the other way: noticed that something had the form required by the definition and then asserted that it must be a rational. Notice also that we spelled out the definition of “rational” but we just freely used facts from high school algebra as if they were obvious. In general, when writing proofs, you and your reader come to some agreement about what parts of math will be considered familiar and obvious, and which require explicit discussion. For this course, basic facts from high school math courses will be considered obvious. (^1) The formal name for this is “universal instantiation.”
7 A couple notational issues
WARNING!! Abuse of notation. Notice that our definitions said “if”. If you take them literally as read, that means you can only use them in one direction. This isn’t what’s meant. Definitions are always intended to work in both directions, i.e. I meant to say “if and only if.” This little misuse of “if” in definitions is very, very common. Also notice that “iff” is shorthand for “if and only if”, which is the same thing as ↔.
8 Proving existential statements
Here’s an existential claim:
Claim 1 There is an integer k such that k^2 = 0.
An existential claim such as the following asserts the existence of an object with some set of properties. So it’s enough to exhibit some specific concrete object, of our choosing, with the required properties. So our proof can be very simple:
Proof: Zero is such an integer. So the statement is true.
We could spell out a bit more detail, but it’s really not necessary. Proofs of existential claims are often very short, though there are exceptions. Notice one difference from our previous proofs. When we pick a value to instantiate a universally quantified variable, we have no control over exactly what the value is. We have to base our reasoning just on what set it belongs to. But when we are proving an existential claim, we get to pick our own favorite choice of concrete value, in this case zero.