Docsity

Logical Symbols, Formulas, and Statements: Understanding Proofs and Propositional Logic, Study notes of Algebra

Toggle sidebar
bg1
Appendix L
A Little Logic September 17, 2007, draft
No exciting books suit feverish patients;
Unexciting books make one drowsy.
∴No books suit feverish patients, except such as make one
drowsy.
— Lewis Carroll
This appendix1reveals a bit of the logical infrastructure needed for
mathematics—just enough, we hope, to get you going in reading and
writing proofs. It discusses what is meant by combinations of state-
ments formed with such words as ‘or’ and ‘if…then’, and how the quan-
tifying phrases ‘for every’ and ‘there exists’ are applied. It points out
some of the most common patterns of mathematical proof—but your
best guide to what patterns are considered legitimate are the actual
proofs throughout this book. What it includes is treated for the most
part informally and descriptively.
One of the difficulties with learning logic is that logic ought to pre-
cede everything else in mathematics that uses it, yet, without any other
mathematics to treat, logic is wholly abstract. Accordingly, to explain
logical ideas we shall often have to talk about mathematical sets, num-
bers, functions, etc., along with a few examples from our everyday lan-
guage about the real world. For the essentials about sets and functions,
see Appendix A and Appendix B.
In a few instances—for example, the more generous meanings in
logic of ‘or’ and ‘there exists’—logical language differs a bit from every-
day usage. Otherwise, logic just makes explicit and crisp those patterns
of deductive reasoning used by careful speakers and writers.
1Copyright ©2007 Murray Eisenberg. All Rights Reserved
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22

Partial preview of the text

Download Logical Symbols, Formulas, and Statements: Understanding Proofs and Propositional Logic and more Study notes Algebra in PDF only on Docsity!

Appendix L

A Little Logic September 17, 2007, draft

No exciting books suit feverish patients; Unexciting books make one drowsy. ∴ No books suit feverish patients, except such as make one drowsy. — Lewis Carroll

This appendix^1 reveals a bit of the logical infrastructure needed for mathematics—just enough, we hope, to get you going in reading and writing proofs. It discusses what is meant by combinations of state- ments formed with such words as ‘or’ and ‘if…then’, and how the quan- tifying phrases ‘for every’ and ‘there exists’ are applied. It points out some of the most common patterns of mathematical proof—but your best guide to what patterns are considered legitimate are the actual proofs throughout this book. What it includes is treated for the most part informally and descriptively. One of the difficulties with learning logic is that logic ought to pre- cede everything else in mathematics that uses it, yet, without any other mathematics to treat, logic is wholly abstract. Accordingly, to explain logical ideas we shall often have to talk about mathematical sets, num- bers, functions, etc., along with a few examples from our everyday lan- guage about the real world. For the essentials about sets and functions, see Appendix A and Appendix B. In a few instances—for example, the more generous meanings in logic of ‘or’ and ‘there exists’—logical language differs a bit from every- day usage. Otherwise, logic just makes explicit and crisp those patterns of deductive reasoning used by careful speakers and writers.

(^1) Copyright ©2007 Murray Eisenberg. All Rights Reserved

L2 Appendix L. A Little Logic September 17, 2007, draft

L.1 The logic of solving equations

What is really going on, from a logical viewpoint, when you carry out familiar algebraic steps to solve an algebraic equation (or an inequality or a system of equations or of inequalities)?

Example L.1.1. Consider the quadratic equation x^2 + x − 6 = 0. To solve this, you would write something like this:

x^2 + x − 6 = 0 (x − 2 ) (x + 3 ) = 0 x − 2 = 0 , x + 3 = 0 x = 2 , x = − 3

and then write the solution as:

x = 2 , − 3

Several questions arise. First, what do the commas mean in the expres- sions ‘x = 2 , x = −3’ and ‘x = 2 , −3’. We understand the commas to mean “or”, so that both expressions mean ‘x = 2 or x = −3’: there are two values of x that are solutions of the original equation. Second, what is the connection between successive lines in the write- up? Presumably it is not just that an x satisfying the equation(s) in one line also satisfies the equation in the succeeding line, but also that an x satisfying the equation(s) in the succeeding line also satisfies the equation(s) in its preceding line. For example, it is not just that if a value of x satisfies x^2 + x − 6 = 0, then the same value of x satisfies (x − 2 ) (x + 3 ) = 0; but also, if a value of x satisfies (x − 2 ) (x + 3 ) = 0, then the same value of x satisfies x^2 + x − 6 = 0. In other words, you can not only “go” from one line to the next, but you can also “go” from that next line to the one preceding it: the steps are reversible. Put more tersely, an x satisfies the equation(s) in one line if and only if it satisfies the equation(s) in the succeeding line: the assertions in the one line and the succeeding line are logically equivalent to one another. Such logical equivalence is indicated by the symbol ⇐⇒, which may be read as “if and only if”. Thus a more careful write-up of the solution would be:

x^2 + x − 6 = 0 ⇐⇒ (x − 2 ) (x + 3 ) = 0 ⇐⇒ x − 2 = 0 or x + 3 = 0 ⇐⇒ x = 2 or x = − 3

L4 Appendix L. A Little Logic September 17, 2007, draft

and thereby conclude that the given equation has unique solution 3. But you would be wrong! In fact, 3 does not satisfy the original equation:

3 +

So what went wrong? There were no slip-ups in the algebraic manip- ulations, and each step in the write-up from one equation to the next is correct. What is wrong is that one of the steps is not reversible: the

step from

x^2 − 5 = −x + 1 to

x^2 − 5

= (−x + 1 )^2. (Every other

step is reversible.) In general, it is correct that if a = b, then a^2 = b^2. However, it is not in general correct that if a^2 = b^2 , then a = b. All you can conclude from a^2 = b^2 is that a = b or a = −b. In the situation with our equation, take a =

x^2 − 5 and b = −x + 1 and note that a^2 = x^2 − 5 (because

p

= p for every positive number p). In view of the preceding analysis, a careful write-up of the solution would be:

x +

x^2 − 5 = 1 ⇐⇒

x^2 − 5 = −x + 1

=⇒

x^2 − 5

= (−x + 1 )^2 (not ⇐⇒!) ⇐⇒ x^2 − 5 = x^2 − 2 x + 1 ⇐⇒ 2 x = 6 ⇐⇒ x = 3

There is one step having just an if…, then form—implication—as indi- cated by the symbol =⇒ ; since that step is not reversible, the implica- tion =⇒ cannot be replaced with a logical equivalence ⇐⇒. Hence all that the write-up tells us is: If x satisfies the original equation, then x must have value 3. But, as we checked, 3 is not a solution of the origi- nal equation; 3 is, as some people refer to it, an “extraneous” solution, which was obtained by squaring the square-root. The given equation has no solutions whatsoever. Then its solution set S is the set to which no number belongs:

S = { }

This set with no elements is the empty set, denoted by ∅.

Strictly speaking, none of the logical equivalences or implications used above make sense, because they are not qualified in any way as to the domain of values of their variable x for which they are allegedly true. Thus, in Example L.1.1 about solving the equation x^2 + x − 6 = 0, probably the intent was to find the real numbers x that are solutions. In

L.1 The logic of solving equations L

that case, the write-up of the solution at the bottom of page L2, should really look like this:

(∀x ∈ R)

x^2 + x − 6 = 0 ⇐⇒ (x − 2 ) (x + 3 ) = 0 ⇐⇒ x − 2 = 0 or x + 3 = 0 ⇐⇒ x = 2 or x = − 3

Here the initial string (∀x ∈ R) is read as “For all x in R”, or more verbosely as “For all real numbers x”. Here R stands for the set of all real numbers. And then the intention is that each of the equivalences is true for every real number. As it so happens, the solutions of the equation x^2 − x − 6 are integers—elements of the set Z of all integers—so it would be equally correct to write:

(∀x ∈ Z)

x^2 + x − 6 = 0 ⇐⇒ (x − 2 ) (x + 3 ) = 0 ⇐⇒ x − 2 = 0 or x + 3 = 0 ⇐⇒ x = 2 or x = − 3

Of course until you actually work through the steps of solving the equa- tion, you would not necessarily know that the solutions were actually integers. So it would be safer to work with R instead of with Z. But for some other equations, not even R might be a large enough set of numbers: you might need, say, the set C of all complex numbers. For example:

(∀x ∈ C)

x^2 + 9 = 0 ⇐⇒ (x − 3 i) (x + 3 i) = 0 ⇐⇒ x − 3 i = 0 or x − (− 3 i) = 0 ⇐⇒ x = 3 i or x = − 3 i

Here i is the complex number having the property that i^2 = −1. Thus the solution set here is { 3 i, − 3 i}.

Exercise L.1.3. Suppose, nonetheless, you tried to work out a solution of x^2 + 9 = 0 using the set R of real numbers:

(∀x ∈ R)

x^2 + 9 = 0 ⇐⇒ x... )

What might you write as the end, where the dots are? (This is a question you might need to ponder for a while!) And what is the solution set—as a subset of R?

The equation x^2 + x − 6 = 0 has at least one solution (in fact, it has precisely two solutions) that are real numbers. To indicate it has at least one, we write:

(∃x ∈ R)(x^2 + x − 6 = 0 )

L.1 The logic of solving equations L

(Notice the different meanings of parentheses there: the inside ones are used to denote open rays, whereas the outer ones are punctuation.) One of De Morgan’s Laws about sets (Proposition A.1.4) implies that

S = R \ ( (− 1 , ∞) ∩ (−∞, 2 ) ) = ( R \ (− 1 , ∞) ) ∪ ( R \ (−∞, 2 ) ) = (−∞, − 1 ] ∪ [ 2 , ∞).

Of course, that is the same solution set obtained before.

Exercises L.1.5. Give careful write-ups, including appropriate use of ‘or’, &, =⇒, and ⇐⇒, for solving the equation(s) or inequality. Do this both without using, and with using, the ∀ qualification. Then tell what the solution set is, using the set-builder notation {... }.

(1) x^3 − 2 x^2 − 5 x + 6 = 0

(2) (x − 1 )(x + 2 ) < 0

(3) (x − 1 )^2 < 4

(4) x + 4 =

2 x^2 + 14 x

(5)

x(x^2 + y^2 − 1 ) = 0 , y(x^2 + y^2 − 1 ) = 0

Exercise L.1.6. The equation x +

x^2 − 5 = 1 in Example L.1.2 has no solutions whatsoever, and we indicated this by writing that its solution set is the empty set ∅. How, without referring to the solution set, might you indicate that the equation has no solutions? (Hint: Recall that the notation ∃ may be used to indicate existence of an equation’s solution.)

Exercise L.1.7. Let f (x) = 5 x^4 − x^5. Determine:

(a) the set { x : f ′^ (x) = 0 } of all critical points of f ;

(b) the set { x : f ′^ (x) > 0 } on which f is increasing and the set { x : f ′^ (x) < 0 } on which f is decreasing;

(c) the set { x : f ′′^ (x) > 0 } on which f is concave upward and the set { x : f ′′^ (x) < 0 } on which f is concave downward.

Exercise L.1.8. For which values of x is

x/( 1 − x) defined as a real number?√ In other words, in Calculus I terms, what is the domain of x/( 1 − x)?

L8 Appendix L. A Little Logic September 17, 2007, draft

L.2 Formulas and Statements

Section L.1 introduced informally the logical symbols ∨, &, ⇐⇒, and =⇒, which connect statements about mathematical objects. In order to understand just how these logical symbols behave, you need first to understand how to form such statements and objects. And to un- derstand that involves looking at a rather "formal" description of the language of logic and mathematics. To begin, we need symbols. Our symbols will include:

  • letters, such as x, C, N, and A (to make things more readable and to prevent us from running out of letters when many are involved, we allow letters to be ornamented in various ways, such as x′, b′′, A 0 , y 99 , N∗, v~);
  • the logical connectives ¬ (negation), ∨ (disjunction), ∧ (conjunc- tion), =⇒ (implication), and ⇐⇒ (equivalence);
  • the logical quantifiers ∀ (universal quantifier), ∃ (existential quan- tifier), and^ ι(descriptor);
  • the set-theoretic signs = (equality) and ∈ (elementhood)—the lat- ter not to be confused with the Greek epsilon, ε; and
  • parentheses, as punctuation marks.

In actual mathematical writing, we often use ordinary words and whole phrases instead of the connectives, quantifiers, and other symbols. Such words and phrases, used as shown in Table L.1 on page L9, sug- gest the meanings we intend for the corresponding symbols. Here are some mnemonics for the logical connectives and quantifiers:

  • The symbol ¬ is reminiscent of a negative sign; it means not.
  • The symbol & is the usual ampersand; it means and.
  • The symbol =⇒ in P =⇒ Q goes from P to Q; it means if P , then Q.
  • The symbol ⇐⇒ in P ⇐⇒ Q goes from P to Q as well as from Q back to P ; it means P if and only if Q.
  • The symbol ∀ resembles an upside-down letter A; it means for all.
  • The symbol ∃ resembles a backwards letter E; it means there exists.

(The descriptor^ ιis an upside-down Greek letter iota, ι.) When we use such words as part of English sentences with embedded mathematical

L10 Appendix L. A Little Logic September 17, 2007, draft

symbolism, we shall also use commas and other punctuation besides parentheses. Writing one or more of such symbols in succession gives us a string. For example, ‘x’, ‘=’, and ‘x ∈ A’ are strings.^2 A letter x is said to be bound in a string S in case any one of the strings (∀x), (∃x), (ι x) occurs as part of S.^3 Otherwise, the letter is said to be free in the string. In particular, the letter is free in the string if it does not occur there at all. Here are two examples, which use the notations N for the set { 0 , 1 , 2 ,... } of all natural numbers and Z for the set {... , − 2 , − 1 , 0 , 1 , 2 , 3 ,... } of all integers. First, n is bound in

(∀n)(n ∈ N =⇒ 2 n > n)

(which means that the double of each natural number is greater than the number itself). Second, n is bound in

(ι n)(n ∈ Z & 2n = n)

(which represents the one and only natural number whose double is itself, namely, 0). However, n is free in each of the three strings:

2 n > n, n ∈ N =⇒ 2 n > n, k ∈ N =⇒ 2 k > k

When a particular occurrence of a letter x is bound in a string S because that occurrence is within part of S that has one of the three form (∀x)(P ), (∃x)(P ), (ι x)(P ), then that occurrence of x is said to be within the scope of that quantifier ∀, ∃, or^ ι. Most strings we could write would be utter nonsense—the sort of thing a roomful of monkeys typing at random would produce before they ever happened to get around to Shakespeare. The strings that are to be regarded as meaningful are terms and formulas. Informally, a term denotes an object that the logical language talks about, such as: the natural number 0, the set of those x for which x ≠ x, the set of natural numbers, the variable x. A formula, by contrast, denotes an

(^2) We just mentioned—talked about—three specific strings, and therefore used single quotes around them in order to name them. In a formal presentation of logic, we would have to distinguish carefully between things and the names of things. In our informal treatment, we shall be rather sloppy about the distinction, and we will revert to the more careful naming only when it would be utterly confusing not to do so. For example, once we begin to use the word ‘and’ in place of the connective &, to mean ‘P & Q’ we shall need to write “ ‘P and Q’ ” rather than “P and Q”, lest we confuse the latter with the phrase “ ‘P ’ and ‘Q’ ”, as in the assertion: “The statements ‘P ’ and ‘Q’ are true.” (^3) We just did it—confused the name of a thing with the thing itself. When we wrote “in a string S”, we did not necessarily mean to refer to the one-letter string ‘S’, but rather, an arbitrary string that we are temporarily naming ‘S’.

L.2 Formulas and Statements L

assertion—not necessarily true!—about such objects, such as:

3 ∈ N, 1 / 2 + 1 / 3 = 1 / 5 , (∃x)

x ∈ R & (∀y)(y ∈ R =⇒ x > y)

Thus a formula in the sense meant here need not at all be a formula in the customary sense, such as V = π r 2 h, telling how to compute one quantity from others. More formally, terms and formulas are those strings that can be built up by a finite number of applications of the following rules:

  • each letter is a term;
  • if X and Y are terms, then both X = Y and X ∈ Y are formulas;
  • if P is a formula, then ¬(P ) is a formula;
  • if P and Q are formulas, then each of (P ) ∨ (Q), (P ) ∧ (Q), (P ) =⇒ (Q), and (P ) ⇐⇒ (Q) are formulas;
  • if P is a formula and x is a letter that is free in P , then both (∀x)(P ) and (∃x)(P ) are formulas; and
  • if P is a formula and x is a letter that is free in P , then (ι x)(P ) is a term.

For example, (∀x)

¬(x = x)

and (ι A)

(∀x)

(x ∈ A) ⇐⇒

¬(x = x)

are formulas. (The first of these makes the false statement that each object is unequal to itself. The second represents the object character- ized by the property that no object belongs to it—the empty set ). Notice that a string such as (∀x)

(∃x)(x = x)

is not a formula according to the preceding rules, because the letter x is already bound in (∀x)(x = x). On the other hand, (∀x)

(∃y)(x ∈ y)

is a formula. Obviously formulas and terms written in strict compliance with those rules can be awkward to read because of their length and all the nested parentheses. In practice, we shorten such strings to make them more readable (and writable!). One way to do so is to omit any pair of parentheses immediately surrounding any quantified formula—one of the form (∀x)(P ), (∃x)(P ), or (ι x)(P )—in a larger formula. Thus, we write (∀x)(∃Y )(x ∈ Y )

L.2 Formulas and Statements L

Table L.2: Some common logical abbreviations.

Abbreviation Stands for Meaning x ≠ y ¬(x = y) x is not equal to y x ∉ A ¬(x ∈ A) x is not an element of A (∀x ∈ X)(P ) (∀x)

x ∈ X =⇒ P

for all x in X, P (∃x ∈ X)(P ) (∃x)

(x ∈ X) & (P )

there exists x in X such that P

With the first of the abbreviations in Table L.2, along with omis- sions of superfluous parentheses, the formula () and the term (*) from page L11 may be written in the still shorter forms

(∀x)(x ≠ x)

and

(ι A)(∀x) (x ∈ A ⇐⇒ x ≠ x).

What do you now think the preceding formula and term mean? (Use Tables L.1 and L.2.) Some quantified formulas, such as (∀x)(x = x), are intended to make “universal” statements about all possible objects. Many quanti- fied formulas, however, are intended to make statements about only those objects that are elements of some particular set. Here are two, expressed in typically informal mathematical language:

Every integer n that is a multiple of 4 is even. Some real number has square 2.

These statements are, in other words:

For every integer n, if n is a multiple of 4, then n is even. There is a real number x such that x^2 = 2.

The intended meanings of these statements are:

For every n ∈ Z, if n is a multiple of 4, then n is even. There exists x ∈ R such that x^2 = 2.

And the latter two statements, in turn, are understood to mean:

For every n, if n ∈ Z, then: if n is a multiple of 4, then n is even. There exists x such that x ∈ R and x^2 = 2.

L14 Appendix L. A Little Logic September 17, 2007, draft

Using the final two abbreviations in Table L.2, we may express these statements more formally, using quantifiers, as:

(∀n ∈ Z)(n is a multiple of 4 =⇒ n is even). (∃x ∈ R)(x^2 = 2 ).

Suppose you were asked to prove the first of these two statements. To do so, you would, of course, have to know the precise meaning of ‘n is a multiple of 4’ and ‘n is even’. By definition, n is even when n = 2 k for some integer k, that is:

(∃k ∈ Z)(n = 2 k)

Exercise L.2.1. (a) Write a definition for ‘n is a multiple of 4’, first including words and then using symbols alone.

(b) Using your definition from (a) and the meaning of even, now prove: (∀n ∈ Z)(n is a multiple of 4 =⇒ n is even).

(c) What, if anything, is wrong with the following proof of the state- ment in (b)?

“Proof.” Let n ∈ Z. Assume n is a multiple of 4. Let k be an integer for which n = 4 k; such exists by the meaning of ‘multiple of 4’. Then also n = 2 k. This means that n is even.

(d) Is it true that (∀n ∈ Z)(n is even =⇒ n is a multiple of 4)? If so, prove it; if not, tell why not.

Exercise L.2.2. Symbolize the formula saying that for no integer n > 2 does the equation an^ + bn^ = cn^ have a solution in integers a, b, and c other than a = b = c = 0. (You may use the term Z—the set of all integers.) Then try to write the symbolized formula without using the abbreviations and omissions of parentheses discussed above.

Exercise L.2.3. Symbolize the following sentences:

(a) The squares of real numbers are nonnegative.

(b) A differentiable function is continuous. (Use F to denote the set of all real-valued functions of a real variable.)

According to the rules for forming terms and formulas, terms are of two types—those of the form (ι x)(P ) and those that are single letters. A term of the form (ι x)(P ) represents a specific object; such a term is like a proper noun (‘Neil Armstrong’) or a definite description (‘the first

L16 Appendix L. A Little Logic September 17, 2007, draft

To deal with formulas involving dummy variables, some notation helps. If x is a letter that occurs in a string P and that S is a string, then

P [x → S]

will mean the string obtained by replacing each occurrence of x in P by S. For example, if P is the formula (∀x ∈ N)(x^2 ≥ 0 ) and S is the letter y, then P [x → y] is the formula (∀y ∈ N)(y^2 ≥ 0 ).

A formula in our sense is like a declarative sentence in ordinary lan- guage. Thus, ‘0 < 1’ and ‘The empty set is a subset of X’ are (informal renderings of) formulas, whereas the command ‘Solve x^2 = 1’ and the question ‘Is π e^ > eπ^ ?’ are not.

Formulas, like terms, are of two types:

  • A closed formula is one that contains no free letters. A closed formula may make a definite assertion about the specific objects named in it; for example, ‘The empty set ∅ is an element of the one-element set {∅}’. Or, a closed formula may make a definite assertion about all objects; for example, ‘For every X, the empty set is a subset of X’.
  • An open formula is one that contains at least one free letter. For example, ‘The empty set is a subset of X’. An open formula makes an actual statement only when the free letters in it are replaced by terms that are not letters. For example, replacing X by ∅ in ‘The empty set is a subset of X’ yields the formula ‘The empty set is a subset of ∅’, which is no longer open and so is a statement.

A closed formula is sometimes called a statement, or sentence. It makes sense to ask whether a statement is true. However, we shall soon become sloppy about this usage and refer even to open formulas such as x = x as “statements”.

To emphasize that a formula P is open because the variable x oc- curring in it is free, we sometimes write P (x) and then call the formula a predicate in x. For example, (∃y)(x ∈ y) is a predicate in x; but it is not a predicate in y (because y is bound in the whole formula). Similarly, we can have a predicate P (x, y) in two variables, such as x ∈ y ∨ y ∈ x.

It does not seem to make sense to ask whether an open formula is true, because of the ambiguity of its free variables. For example, if P (x) is the predicate x ∈ R ∧ x > 0, then P (x) is true when the variable x is replaced by the term

2 but false when x is replaced by −1.

L.3 Proof and truth L

L.3 Proof and truth

Logic is like a sewer—what you get out of it depends on what you put into it: it cannot provide any “absolute” truth, only the truth of state- ments relative to the truth of assumptions from which they are de- duced. So we have to start with certain basic assumptions, and these are called axioms. The three simplest axioms customarily used in mathe- matics are:

Axioms L.3.1 (Axioms for Equality).

  1. (reflexivity) (∀x) (x = x)
  2. (symmetry) (∀x)(∀y) (x = y =⇒ y = x)
  3. (transitivity) (∀x)(∀y)(∀z) (x = y & y = z =⇒ x = z)

The letters x, y, and z in these axioms are dummy variables, so we must agree to accept as axioms all statements that result when we legitimately replace these letters consistently by letters different from x, y, and z. For example, we take

(∀x)(∀A) (x = A =⇒ A = x)

to be an axiom, too. A statement C is said to be true when it has a proof. By a proof of C is meant a (finite) list of statements, one after (or under) the other, whose last statement is C and in which each statement is:

  • an axiom,
  • another (already proved) true statement, or
  • a statement Q where P and P =⇒ Q are true statements that appear before Q in the proof.

The statements in a proof are called the steps of the proof. When you are asked to “prove” a statement you are, of course, being asked to furnish a proof of it. Synonyms for prove are show, verify, demonstrate, establish, and deduce. The central ingredient of any proof is the pattern P , P =⇒ Q, Q, which may be written with the aid of the symbol ∴ (therefore) in the form:

P P =⇒ Q ∴ Q

L.4 Combining Statements L

significance may be called a proposition, whereas an easily proved consequence—for example, a special case—of a proposition or theorem is usually called a corollary. A true statement whose main interest is only in its use as a step in proving a more significant result is called a lemma. In view of the definition of what a proof is, we shall accept as a proof of an implication P =⇒ Q the sequence of steps as shown in the following proof rule:

Proof Rule L.3.2 (Direct Proof—AH). A list of steps of the following form produces a proof of an implication P =⇒ Q:

Assume P. [Steps of a proof in which P is treated as if it were an axiom.] ∴ Q

In such a proof, P is known as the assumed hypothesis. So the rule is sometimes referred to as the Method of the Assumed Hypothesis— hence the abbreviation AH. A fancier name for the method of direct proof is the Herbrand-Tarski Deduction Criterion. For example, here is a proof of the implication that, if a positive integer n is divisible by 4, then n is even (that is, n is divisible by 2):

Proof. Let n be a positive integer. Assume n is divisible by 4. This means there is some integer k for which n = 4 k. Then n = 2 ( 2 k), and 2 k is an integer. Thus n is even.

We shall reexamine this proof later, because several issues involving quantifiers are involved.

Exercise L.3.3. Write out, or find in a calculus book, a proof of some implication about differentiability of functions whose proof exploits the Herbrand-Tarski Deduction Criterion.

L.4 Combining Statements

In our development of logic, the next thing to do is establish a series of axioms governing the meaning of statements formed by combining others through use of the connectives not, or, and, implies, and if and only if. These axioms will also provide new proof rules as shortcuts for constructing proofs. Since most meaningful examples of proofs involve quantifiers, we defer stating these proof rules until Section L.6. The simplest thing to do with a statement aside from asserting it is to deny it. For a statement P , its negation is the statement ¬P , which is also expressed as ‘not P ’. In mathematical writing, ¬P may be

L20 Appendix L. A Little Logic September 17, 2007, draft

expressed more verbosely, for example, as in, “It is not the case that 2 < −1.”

The negation of P is deemed to be false when P is true, and true when P is false. We can express this situation by a truth table, as follows:

P ¬P

T F

F T

Down the left column of the truth table we have written the two possible truth values T and F for P. These are, of course, abbreviations for true and false, respectively. In the right column of the table are the truth values of ¬P corresponding to each of those two truth values in turn.^4

Implicitly in the truth table for ¬ we just gave meaning to the word false. Here it is explicitly: A statement P is false when its negation ¬P is true—that is, when ¬P can be proved. For example, 4 ≠ 2 + 2 is false because (as was proved on page L18), the statement 4 = 2 + 2 is true.

Do not think that a negated statement (not P ) has to be false just because it has the word ‘not’ in it: ¬( 0 = 1 ), that is, 0 ≠ 1, is true (because 0 = 1 is false). This situation resembles that with negation in algebra: an expression of the form − x need not denote a negative number [because, for example, − (− 1 ) > 0].

For statements P and Q, their conjunction P & Q, which is also expressed by ‘P and Q’, is the statement that is true when both P and Q are true, but false otherwise. In other words, the truth table for & (and) is:

P Q P & Q T T T T F F F T F F F F

In the two columns at the left we have systematically written all four of the possible pairs of truth values (T T , T F , F T , and F F ); in the column at the right are the truth values of P & Q corresponding to each of these four combinations of truth values in turn.

As with all the connectives, so & (and) is rendered in various ways in

(^4) Strictly speaking, the column headings of a truth table (such as P and ¬P above) are not actual statements but rather “statement-forms”. The table indicates what truth value to ascribe in each case to the statement obtained from the heading of the last column by replacing each of the constituent letters in the statement-form by an actual statement. Nonetheless, we shall often speak as if the statement forms in a truth table were actual statements.