Professional Documents
Culture Documents
Introduction to Logic
Before anything else, this course covers material indispensable to any mathematician:
it could even be subtitled “What Every Mathematician Needs to Know.” It includes
material necessary for students to succeed in upper-division mathematics courses, and
more importantly, the analytical tools necessary for thinking like a mathematician.
Mathematics is not a spectator sport. Mastering the topics covered is important; but
more important is enhancing your ability to think. Reading mathematics is a prerequisite
to thinking mathematically. Hence, for each topic, you should:
2. Carefully study each example, while working out the details with paper and pencil,
1
A proof involving functions in calculus will require definitions such as that of a limit of
a function.
When reading any proof, we must always ask:
What is the goal of the proof?
What are the hypotheses?
What definitions are necessary?
What previously proved facts or laws of logic are used in the proof?
To illustrate these ideas, let us consider some examples of proofs. We need the fol-
lowing definitions: an even integer is an integer that can be expressed in the form 2k,
where k is an integer; an odd integer is an integer that can be expressed in the form
2k + 1, where, again, k is an integer. For example, if p and q are integers, then 2 (p + q)
is even, whereas 2 (p2 − q) + 1 is odd. We assume that the following is known:
An integer is either even or odd, but not both.
n2 = (2k + 1)2
= 4k 2 + 4k + 1
= 2 2k 2 + 2k + 1
The main goal of the proof writer is to convince others that the statement being
proved follows logically from certain assumptions. A secondary goal is to write an elegant,
concise proof. In some ways, these goals compete with one another because what is clear,
concise, and elegant to some readers will be a terse muddle to others. The less experienced
a person is at reading proofs, the more important it is for that person to do scratch work
in order to absorb the ideas behind the proof.
The creation of a proof sometimes requires that we work backwards from the orig-
inal goal, by means of a needs assessment, to a new goal that is closer to the given
facts. Also, we may have to rewrite (but not alter) the given facts in the hypothesis
so that they are closer to the new goal. This parallel process is sometimes called the
backwards/forwards method.
2
1.2 Introduction to Propositional Logic
Symbolic logic can be described as the analytical study of the art of reasoning. Logic
is important because it forms the basis for proof techniques and, therefore, has special
utility for mathematics.
Consider the following English sentences:
Let us examine each sentence above. The first asks a question (interrogative), the
second commands (imperative) while the third expresses a feeling (exclamatory). Each
one of these three sentences conveys an idea but it cannot be judged as either true or
false. The last two, on the other hand, declare information (declarative) and hence, may
properly be evaluated as either true or false, but not both. Based on our Roman Catholic
calendar, the fourth sentence is true while the fifth is false, based on common knowledge.
In mathematics, sentences such as the fourth and the fifth are called propositions.
Furthermore, in propositional logic, the actual content of such sentences is unimportant;
of primary interest is their truth or falsity.
We, therefore, define a proposition as a declarative sentence which is either true or
false, but not both. The truth value of a proposition is “true” if the proposition is true
and “false” if the proposition is false.
(e) 4 + 1 = 6
(f) It is raining.
Practice Problem 4. Determine the truth value of each of the following propositions.
(a) Fidel V. Ramos is the 12th President of the Republic of the Philippines.
3
We shall denote propositions by small letters as illustrated below:
p: A square is a rectangle.
q: One and only one plane can be drawn to contain two distinct lines.
We read the notations above as:
p is the proposition “A square is a rectangle.”
q is the proposition “One and only one plane can be drawn to contain two distinct
lines.”
Example 4. Let us use the above operations on the propositions p: “Two is positive”
and q: “Two is even”.
Symbol Compound Proposition
(a) Conjunction p∧q “Two is positive and two is an even number.”
or “Two is a positive even number.”
(b) Disjunction p∨q “Two is positive or two is an even number.”
(c) Conditional p → q “If two is positive, then two is an even number.”
(d) Biconditional p ↔ q “Two is positive if and only if two is an even number.”
(e) Negation ¬p “Two is not a positive number.”
1.2.2 Syntactics
Syntactics is a set of rules used to determine whether a sequence of symbols is a propo-
sition. The syntactical rules for constructing propositions are as follows:
4
S4. If p and q are propositions, then (p → q) is a proposition.
Remarks
The NOT (¬) connective is applied first to the next letter or to the next parenthesized
expression. The AND (∧) and OR (∨) connectives are applied next. The conditional
symbol (→) is applied only after the NOT (¬), AND (∧), and OR (∨) connectives have
been applied. Finally, the biconditional (↔) is applied.
5
g. p → q → r is ambiguous, since either occurrence of → can be applied first.
Do not omit parentheses when there is any chance of confusion, even though the above
conventions permit it. The hierarchical order of the connectives is as follows:
parenthesized expressions
NOT (¬)
AND (∧), OR (∨)
IMPLIES (→)
IF AND ONLY IF (↔)
(a) p ∧ q → ¬q ∨ r
(b) p → ¬q ∨ r
(c) p ∧ q ∨ r → r ∧ p
(d) r → t ↔ r
(e) (p ∧ q) → s → r
Note that an AND proposition, p ∧ q, is true when both the propositions p and q are
true, and false otherwise. An OR proposition, p ∨ q, is false when both the propositions p
and q are false, and true otherwise. An OR proposition is sometimes called an inclusive-
or proposition, since it is true if one or both of its constituent propositions are true. A
NOT proposition, ¬p, is true when the proposition p is false, and false when p is true.
6
The washing machine example illustrates row 2 of the table. Let us examine, for
example, row 3. It says, in the terminology of our example, “The machine is not broken,
but the repairman comes to fix it.” This in no way invalidates the guarantee, and similarly,
neither do rows 1 and 4.
In the proposition p → q, p is called the hypothesis or antecedent while q is called
the conclusion or consequence. Note that rows 3 and 4 of the truth table define an
implication as being true whenever the hypothesis is false, no matter what truth value
the conclusion has. Because of this, these rows are called the vacuously true cases. To
illustrate this idea with another example, consider the proposition “If I play with my new
tennis racket, then I’ll win the match.” As long as the person making this proposition
plays with an old racket, that person cannot be called a liar, no matter how the match
turns out. A proposition that is true because it satisfies a vacuously true case is said to
be a vacuously true proposition.
When the conditional proposition p → q is always true, we write p ⇒ q.
Furthermore, p is referred to as a sufficient condition for q while q is a necessary
condition for p.
Consider the proposition “If I work hard, I shall have a happy life.” This can be
interpreted as saying that working hard guarantees my having a happy life, so that
working hard is a sufficient condition for having a happy life. On the other hand, having
a happy life is the spontaneous consequence of working hard, so that having a happy life
is the necessary condition for working hard.
Finally, we point out that there are many ways of expressing the proposition “if p,
then q”. For example, the proposition “If I receive a bonus, then I shall have a holiday
in Boracay” is rendered by each of the following:
(1) converse: q → p
(2) inverse: ¬p → ¬q
(3) contrapositive: ¬q → ¬p
(1) converse: “If x is an odd number, then x is a prime number greater than 2.”
(2) inverse: “If x is not a prime number greater than 2, then x is not an odd number.”
7
(3) contrapositive: “If x is not an odd number, then x is not a prime number greater
than 2.”
Practice Problem 8. Let p: A person is a bigamist and q: A person violates the law.
Give the four variations of the conditional.
The Biconditional
The biconditional proposition p ↔ q is defined as (p → q) ∧ (q → p). Not that the
biconditional is true whenever the truth values of p and q are the same.
Just like the conditional, if p ↔ q is a true proposition, then we write p ⇔ q or p ≡ q,
and the propositions p and q are said to be equivalent.
We sometimes write “iff” as an abbreviation for “if and only if”. The biconditional
proposition can be read as follows:
Example 8. Let
p: “Today is Thursday.”
q: “Tomorrow is Friday.”
r: “It is raining today.”
s: “Today is Wednesday.”
t: “Tomorrow is Thursday.”
Assume today is a rainy Thursday. Find the truth values of the following propositions:
(a) p ∧ r (g) r → t
(b) q ∨ r (h) s → r
(c) r ∧ s
(i) s → t
(d) ¬t ∧ r
(e) p → q (j) p ↔ r
(f) s ∨ t (k) s ↔ r
8
1.3 Logical Equivalence and Tautologies
Before we proceed, a remark — so far, we have been using small letters like p and q to
denote propositions. Sometimes, and in some books, lowercase letters such as p and q are
used to denote simple propositions only while uppercase letters like P and Q are used
to denote propositions of all types, compound or simple. In our discussion however, we
will only be using small letters, p, q, r, . . . and we take them to mean either simple or
compound propositions.
Compound propositions that have the same truth values in all possible cases are called
logically equivalent. We define this notion as follows.
Remark: Two propositions composed of the same simple propositions are logically
equivalent whenever the main columns of their standard truth tables are identical.
The symbol ≡ is not a logical connective since p ≡ q is not a compound proposition,
but rather is the statement that p ↔ q is a tautology. The symbol ⇔ is sometimes used
instead of ≡ to denote logical equivalence.
Example 10.
p q ¬p ¬q p ∧ q ¬ (p ∧ q) ¬p ∨ ¬q
(1) (2) (3) (4) (5) (6) (7)
T T F F T F F
T F F T F T T
F T T F F T T
F F T T F T T
In the above truth table, we see that columns (6) and (7) are the same. This is to say
that the propositions ¬ (p ∧ q) and ¬p ∨ ¬q have the same truth value under any possible
case. Hence, the given two propositions are equivalent.
Intuitively speaking, two propositions are logically equivalent means that two propo-
sitions are of different forms but they express the same idea. For instance:
p: Today is Monday.
q: It is not true that today is not Monday.
Then, p and q are logically equivalent.
Now, let’s consider one more example:
r: 2 is not greater than 3.
s: 2 is less than or equal to 3.
Then, r and s are also logically equivalent.
Example 11. q → (p ∨ q)
Every row in the main column of a tautology is T. The symbol T will denote a
proposition that always has truth value T. Hence, q → (p ∨ q) ≡ T .
9
Example 12. (¬p ∨ q) ∧ (p ∧ ¬q)
Every row in the final column of a contradiction is F, just like the previous example.
The symbol F will be used to denote a proposition that always has truth value F. Hence,
(¬p ∨ q) ∧ (p ∧ ¬q) ≡ F .
Practice Problem 10. Verify that (p → q) ∧ (q → p) ≡ p ↔ q.
By definition, a proposition is not a tautology whenever at least one row of the main
column of its truth table is F. Accordingly, to show that a proposition is not a tautology,
a row in the main column of the truth table for that proposition must be found with a
truth value of F. The combination of truth values assigned to the simple propositions in
any row that produces an F in the main column of the table is called a counterexample.
Practice Problem 11. Show that q ∧ (p → q) → p is not a tautology.
In fact, the above proposition is a well-known fallacy of logic, called the fallacy
of asserting the conclusion. For example, let p: Today is Saturday and q: It is a
weekend. Then q ∧ (p → q) would read “It is a weekend and if today is a Saturday then it
is a weekend.” However, this may very well be true even if today is a Sunday. Therefore,
it doesn’t follow that p is always true.
Following are some important logical equivalencies called the Boolean laws of logic.
1. Identity laws
p∧T ≡p
p∨F ≡p
2. Domination laws
p∨T ≡T
p∧F ≡F
3. Idempotent laws
p∧p≡p
p∨p≡p
5. Commutative laws
p∧q ≡q∧p
p∨q ≡q∨p
6. Associative laws
(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
Note: The connectives ∧ and ∨ are both associative, hence parentheses are not
necessary. i.e. p ∧ q ∧ r and p ∨ q ∨ r have no ambiguity. However, the parentheses
cannot be omitted for the distributive law.
10
7. Distributive laws
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
8. De Morgan’s laws
¬ (p ∧ q) ≡ ¬p ∨ ¬q
¬ (p ∨ q) ≡ ¬p ∧ ¬q
9. Absorption laws
p ∧ (p ∨ q) ≡ p
p ∨ (p ∧ q) ≡ p
13. p ∨ q ≡ ¬p → q
14. p ∧ q ≡ ¬ (p → ¬q)
15. ¬ (p → q) ≡ p ∧ ¬q
16. (p → q) ∧ (p → r) ≡ p → (q ∧ r)
17. (p → r) ∧ (q → r) ≡ (p ∨ q) → r
18. (p → q) ∨ (p → r) ≡ p → (q ∨ r)
19. (p → r) ∨ (q → r) ≡ (p ∧ q) → r
And some more logical equivalences involving biconditionals...
20. p ↔ q ≡ (p → q) ∧ (q → p)
21. p ↔ q ≡ ¬p ↔ ¬q
23. ¬ (p ↔ q) ≡ p ↔ ¬q
11
Example 13. Write down the negation of the following:
(b) London is not the capital of China or the house is made of wood.
Example 14. Let p, q, r, s be four propositions. Find the negation of (p ∧ ¬q)∨(¬r ∧ ¬s).
Example 16. Show that ¬ (p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent.
12
1.4 Predicates and Quantifiers
In review, propositions are declarative sentences that have a truth value; in other words,
they are either true or false, but not both. For example, the sentence “−1 < 0” is a
proposition, which happens to be true in the context of the real numbers. Many other
sentences used in mathematics, however, are not propositions. Sentences like “x < 5”
and “sin x = 1” are neither true nor false because they contain a variable that denotes
no particular object.
A variable is used to symbolize an arbitrary element from a given domain or universal
set U . That is, elements from U can be substituted for x in a sentence like “x > 3.”
The sentence “x is greater than 3” has two parts. The first part, the variable x, is the
subject of the sentence. The second part—the predicate, “is greater than 3”—refers to
a property that the subject of the sentence can have. We can denote the sentence “x is
greater than 3” by P (x), where P denotes the predicate “is greater than 3” and x is the
variable. The sentence P (x) is also said to be the value of the propositional function
P at x. Once a value has been assigned to the variable x, the sentence P (x) becomes a
proposition and has a truth value. Consider Example 1.
Example 18. Let P (x) denote the statement “x > 3”. What are the truth values of
P (4) and P (2)?
We can also have statements that involve more than one variable. For instance,
consider the statement “x = y + 3.” We can denote this statement by Q (x, y), where x
and y are variables and Q is the predicate. When values are assigned to the variables x
and y, the statement Q (x, y) has a truth value.
Example 19. Let Q (x, y) denote the statement “x = y + 3.” What are the truth values
of the propositions Q (1, 2) and Q (3, 0)?
Example 20. Let R (z, y, z) denote the statement “x+y=z.” What are the truth values
of the propositions R (1, 2, 3) and R (0, 0, 1)?
In general, a statement involving the n variables x1 , x2 , . . . , xn can be denoted by
P (x1 , x2 , . . . , xn ). A statement of the form P (x1 , x2 , . . . , xn ) is the value of the propo-
sitional function P at the n-tuple (x1 , x2 , . . . , xn ), and P is also called a predicate.
Example 21. Consider the following statements:
1. x · 0 = 0
2. x · 5 = 0
3. x = 0 implies x · 5 = 0
4. x < 5
The last item in the previous example shows us that a solution set depends on both
the predicate and the given universal set.
The sentences in the following example are statement and NOT predicates.
Example 22. The x that seems to be a variable in each of the following statements is
not for substitution (try it) and is frequently called a dummy or bound variable.
1. {x | x2 − 3x + 2 = 0} = {1, 2}
2. lim (3x − 2) = 4
x→2
13
1.4.1 Quantifiers
When all the variables in a propositional function are assigned values, the resulting state-
ment becomes a proposition with a certain truth value. However, there is another impor-
tant way, called quantification, to create a proposition from a propositional function.
Two types of quantification will be discussed here, namely, universal quantification and
existential quantification. The area of logic that deals with predicates and quantifiers is
called the predicate calculus or predicate logic.
Universal Quantifier
Many mathematical statements assert that a property is true for all values of a variable
in a particular domain, called the universe of discourse or the universal set or the
domain. Such a statement is expressed using a universal quantification.
The notation
∀xP (x)
denotes the universal quantification of P (x). Here, ∀ is called the universal quantifier.
∀x means “for all x”, “for every x”, “for any x”, or “for each x”.
2. ∀x sin2 x + cos2 x = 1 means “for every real number x, sin2 x+cos2 x = 1” or “the
sum of the squares of the sine and cosine of any real number is equal to 1.” This
kind of assertion is made in every trigonometric identity.
3. ∀x (x + 1 > x) is true.
4. ∀x (x < 2). “Q (x) : (x < 2)” is not true for every real number x, since, for instance,
Q (3) is false. Thus, ∀xQ (x) is false.
Example 24. What does the statement ∀xT (x) mean if T (x) is “x has two parents”
and the domain consists of all people?
To show that a statement of the form ∀xP (x) is false, where P (x) is a propositional
function, we need only find one value of x in the universe of discourse for which P (x) is
false. Such a value of x is called a counterexample to the statement ∀xP (x). This is
shown in Example 23 #4 above.
Hence, the statement ∀xP (x) is false if P (x) is false for at least one x in U .
14
Existential Quantifier
Many mathematical statements assert that there is an element with a certain property.
Such statements are expressed using existential quantification.
“There exists an element x in the universe of discourse such that P (x) is true.”
2. ∃x (x > 3). Since “P (x) : (x > 3)” is true—for instance, when x = 4—the existen-
tial quantification is true.
3. ∃x (x = x + 1) is false.
The universal quantifier can be considered the generalized “and”, and the existential
quantifier can be considered the generalized “or”. To see this, let U be the two-element
set {0, 1}. Then ∀xP (x) is true if and only if P (0) ∧ P (1) is true, and ∃xP (x) is true
if and only if P (0) ∨ P (1) is true.
Example 27. What are the negations of the statements “There is an honest politician”
and “All Filipinos eat rice”?
15
Example 28. What are the negations of the statements ∀x (x2 > x) and ∃x (x2 = 2)?
Example 29. Express the following statements using predicate and quantifiers.
1. “Every student in this class has studied calculus.”
2. “Some student in this class has visited Baguio.”
3. “Every student in this class has visited either Manila or Davao.”
Example 30. Write these statements in symbols using the predicates:
F (x) : x ends in the digit 5; S (x) : x is a perfect square; P (x) : x is positive; N (x) : x
is negative.
Assume that all variables are integers.
16
1. ∀x (C (x) ∨ ∃y (C (y) ∧ F (x, y)))
Example 33. Express the following as a logical expression involving predicates, quanti-
fiers with a domain consisting of all people, and logical connectives.
1. “If a person is female and is a parent, then this person is someone’s mother.”
Example 34. Translate the statement “The sum of two positive integers is positive”
into a logical expression.
Definition 6. A proposition in the predicate calculus that is true in all universes is called
a validity.
17
1.5 Rules of Inference
In this section, we introduce proof techniques and apply them to proving statements from
a collection of premises. We restrict ourselves to statements in propositional logic so that
we can better concentrate on the form that a correct logical argument must take.
An argument is a list of statements called premises followed by a statement called
the conclusion. (We allow the list of premises to be empty.) We say that an argument
is valid if the conjunction of its premises implies its conclusion. In other words, validity
means that if all the premises are true, then so is the conclusion. Validity of an argument
does not guarantee the truth of its premises, and so does not guarantee the truth of its
conclusion. It only guarantees that the conclusion will be true if the premises are.
We could construct a truth table. But this could become very cumbersome as the truth
table can get quite large. Secondly, checking the validity of an argument mechanically
by constructing a truth table is almost completely unenlightening as it gives you no good
idea why an argument is valid.
Hence, we’ll concentrate on an alternative way of showing that an argument is valid,
called a proof, that is far more interesting and tells you much more about what is going
on in the argument.
Hence, a proof of an argument is a list of statements, usually beginning with the
premises, in which each statement that is not a premise must be true if the statements
preceding it are true. In particular, the truth of the last statement, the conclusion,
must follow from the truth of the first statements, the premises. The conclusion of an
argument is that statement which asserts something while a premise serves as evidence
for the assertion. How do we know that each statement follows from the preceding ones?
We cite a rule of inference that guarantees that it is so.
A proof then, is a step-by-step demonstration that a statement (conclusion) can be
derived from a collection of premises. A premise is a statement that is assumed in the
context of a proof. Each step of a proof is either a premise or can be shown to be a
consequence of previous steps using certain rules of inference.
For example,
If I love math, then I will pass this course.
I love math.
Therefore, I will pass this course.
The statement that asserts a fact is “I will pass this course.” This is the conclusion.
The two other statements “If I love math, then I will pass this course,” and “I love math”
support the conclusion. These are the premises.
Suppose we make the following representations concerning the argument above.
p: I love math.
q: I will pass this course.
Then the argument can be written in this form:
p→q Premise (If I love math, then I will pass this course.)
p Premise (I love math.)
∴q Conclusion (Therefore, I will pass this course.)
The premises are separated from the conclusion by a horizontal bar. Any argument
written in the above form is said to be in standard form. Thus, the premises and the
argument conclusion are easily identified when an argument is written in standard form.
18
Example 36. Using symbols, write in standard form the argument stated below.
If two sides of a triangle are equal, then the opposite angles are equal. Two sides of
a triangle are not equal. Therefore, the opposite angles are not equal.
Practice Problem 12. Translate the following argument in symbols and write in standard
form.
If a man is a bachelor, he is unhappy. If a man is unhappy, he dies young. Therefore,
bachelors die young.
So far, we have learned only how to write arguments in standard form without ques-
tioning the validity of these arguments. Now, we shall study how to determine the validity
of arguments.
An argument is said to be valid if and only if the conclusion is true whenever the
premises are assumed to be true. Otherwise, the argument is called a fallacy.
Example 37. Determine whether the argument given in Example 36 is valid or not.
By the definition of a valid argument, the premises can only be assigned the truth
value T and from these assignments, the conclusion must have the truth value T only.
Otherwise, the argument is a fallacy. Observe that in row 3, the premises p → q and
¬p are both true whereas ¬q is false. This means that the premises are true but the
conclusion is false. In fact, we have shown a counterexample. Hence, the argument is
declared a fallacy.
Note that only rows 3 and 4 are used in determining the validity of the argument
because it is in these rows where the premises are both true. Thus, as a general rule in
determining the validity of any argument, observe only the truth value of the conclusion
from the rows where the premises are all assigned the truth value T. If in these rows, the
conclusion only has the truth value T, then the argument is valid.
If an argument is known to be valid, its form can be used to check the validity of
other arguments. In what follows, we introduce some rules of inference and illustrate
how each of them is used to construct proofs.
19
Notice that in a proof, you do not have to use all of the premises.
Word of Caution: Modus Ponens tells us that, if p → q appears on the list, and if
p also appears on the list, then we can add q to the list of true statements. If p → q
appears on the list, but if p does not appear on the list, then we cannot add q to the list.
Put another way, if p implies q is true, then we cannot conclude that q is true until we
know that p is true.
Example 40. Once again, we take p: “I love math” and q: “I will pass this course,” we
get
If I love math then I will pass this course; but I know that I will fail it. Therefore, I
must not love math.
In symbols, we have
p→q Premise (If I love math, then I will pass this course.)
¬q Premise (I will not pass this course.)
∴ ¬p Conclusion (Therefore, I do not love math.)
Practice Problem 15. Use either modus ponens or modus tollens to draw the appropriate
conclusion.
If I go to Mars, I will run for office.
I am going to Mars.
Therefore,
1.5.3 Simplification
In words: If both p and q are true, then, in particular, p is true.
Simplification is based on the tautology (p ∧ q) → p and (p ∧ q) → q.
The rule of simplification states that whenever a conjunction is true, then we can
deduce either of its conjuncts. That is, if a conjunction is given to be true, then either
conjunct must be true. For instance, if the statement
“Carla runs away from responsibilities, yet she is not a coward”
is accepted as true, then concluding the statement
20
“Carla is not a coward”
is correct. Or, if our conclusion is the other statement, that is
“Carla runs away from responsibilities”
then the conclusion is still correct.
1.5.4 Addition
In words: If p is true, then we know that either p or q is true.
Addition is based on the tautology p → (p ∨ q).
Example 41. If the sky is blue, then either the sky is blue or some ducks are kangaroos.
In symbols, we have
1.5.6 Absorption
The rule of absorption tells us that any proposition may be conjoined to both sides of
an implication.
In words: If p → q and r is true, then (p ∧ r) → (q ∧ r).
Absorption is based on the tautology (p → q) ∧ r → [(p ∧ r) → (q ∧ r)].
21
Problem Set
Problem 1.5.1. Let p represent “sugar is white”, q represent “today is Friday” and r
represent “Talisay is a city”. Rewrite each of the following in words:
(a) ¬p ∧ ¬q
(b) ¬p ∨ q
(d) ¬ (¬q ∨ r)
(e) ¬p ∧ (q ∨ r)
Problem 1.5.3. Translate the following arguments in symbols and write in standard
form.
(b) If I study, then I will not fail math. If I do not play basketball, then I will study. I
failed math. Hence, I played basketball.
Problem 1.5.4. Determine whether each of the arguments given in the preceding prob-
lem is valid or not.
Problem 1.5.5. Make correct conclusions for each of the following sets of statements.
(a) If it does not rain, I will go to the beach. I did not go to the beach.
(b) If rain continues and the river rises, then either the bridge is washed out or the
people make a temporary road. But the rain continued and the river rose.
Problem 1.5.6. Prove each of the given statements from the given premises.
22
Chapter 2
Methods of Proof
23
The student of mathematics has to develop a tolerance for ambiguity. Pedantry can be
the enemy of insight.
Putting this into practice is a matter of fine judgement: ambiguous statements are only
acceptable in contexts which resolve the ambiguity almost immediately. While learning
to write good mathematics it is probably better to err on the side of pedantry.
As novices, arguments will often be presented first with lots of scaffolding (as ‘con-
structing a proof’) and then with the scaffolding removed (as ‘(formal) proofs’). You
should ensure that in each case you do understand why the ‘proof ’ does prove
the result as claimed. When you read most mathematics books you need to work
with pencil in hand reconstructing the detail behind the proofs provided. You cannot
normally read a mathematics book like a conventional novel. (Eccles 1997)
2.1.1 Techniques
(a) propositions having no hypothesis
24
Proof. Let A and B be arbitrary sets. To prove A ⊆ A ∪ B, let x be an
arbitrarily chosen element of A. [Note: We are assuming that x ∈ A.] We
must prove that x ∈ A ∪ B. By the definition of “union,” this means we must
prove that either x ∈ A or x ∈ B. Since we know x ∈ A, by our assumption,
the desired condition x ∈ A or x ∈ B follows immediately.
• Prove that |xy| = |x| · |y| for all real numbers x and y.
P1 , P2 , . . . , Pn
25
Universal instantiation is the rule of inference used to conclude that P (c) is
true, where c is a particular member of the universe of discourse, given the
premise ∀xP (x).
example: “All women are wise.” Lisa is a member of the universe of discourse
of all women. Therefore, “Lisa is wise”.
∀xP (x)
∴ P (c)
Universal generalization is the rule of inference that states that ∀xP (x) is
true, given the premise that P (c) is true for all elements c in the universe of
discourse. Universal generalization is used when we show that ∀xP (x) is true
by taking an arbitrary element c from the universe of discourse and showing
that P (c) is true. The element c that we select must be an arbitrary, and
not a specific, element of the universe of discourse. choose method Universal
generalization is used implicitly in many proofs in mathematics and is seldom
mentioned explicitly.
∃xP (x)
∴ P (c) for some element c
Existential generalization is the rule of inference that is used to conclude that
∃xP (x) is true when a particular element c with P (c) true is known. That is,
if we know one element c in the universe of discourse for which P (c) is true,
then we know that ∃xP (x) is true.
26
Proof. (⇒) Suppose that a = 0 or b = 0.
Then, ab = 0 · b = 0 or ab = a · 0 = 0.
Therefore, ab = 0.
(⇐) (Converse)
Suppose that a and b are real numbers such that ab = 0.
We need to prove that a = 0 or b = 0. Remembering the Switcheroo, this is
equivalent to the statement “if a 6= 0, then b = 0.”
So, suppose that a 6= 0.
Then, dividing ab = 0 by a gives us b = 0, as required. (again, this is possible
because a 6= 0)
Hence, a = 0 or b = 0.
27
2.2 Indirect Proof
2.2.1 Proof by Contrapositive
P ⇒ Q ≡ ¬Q ⇒ P
• Let m and n be nonnegative integers. Prove that if m + n > 50, then m > 25 or
n > 25.
Using our rules for quantifiers, we can rewrite this statement as “For all integers
m and n, 14m + 20n 6= 101. Note first that it is difficult to prove this statement
directly for we clearly cannot consider ALL the possibilities for m and n one at a
time. We now proceed with the proof by contradiction.
Proof. Suppose for contradiction that there exist integers m and n such that 14m +
20n = 101.
101 = 14m + 20n = 2 (7m + 10n) is even. contradiction! because 101 is odd.
Hence, our assumption is false, and we conclude that such integers m and n cannot
exist.
Remark: One never assumes the negation of the hypothesis in either a proof of an
implication by contradiction or by contrapositive.
2.3.1 Constructive
• Every equation ax + b = 0, where a and b are real numbers and a 6= 0, has a real
number solution.
28
2.3.2 Nonconstructive
One common method of giving a nonconstructive existence proof is to use proof by
contradiction. Many nonconstructive proofs assume the non-existence of the thing whose
existence is required to be proven, and deduce a contradiction.
Uniqueness: We show that if y 6= x, then y does not have the desired property.
A common technique in proving uniqueness is to assume that two elements x and
y satisfy the desired property, and then show that x = y.
• Every equation ax+b = 0, where a and b are real numbers and a 6= 0, has a unique
real number solution.
Remark: The introduction to the methods of proofs presented here is far from complete.
What we presented are just the common techniques and rules of logic used in proving.
There is no definite procedure in writing out a proof. The only way to be proficient in
proving theorems is to follow the given proofs of as many theorems as possible and then
use these as patterns to prove similar theorems.
29
2.6 MATHEMATICAL INDUCTION
For our purpose in mathematics, we need a proof by induction that is guaranteed as valid.
To have a basis for such method of proof, we shall utilize the following fact about the set
of positive integers known as the Well-Ordering Principle.
Every non-empty set S of non-negative integers contains a least element; that is, there
is some integer a in S such that a ≤ b for all b in S.
INDUCTIVE STEP: Prove the implication P (k) ⇒ P (k + 1) for all positive integers
k.
Here, the statement P (k) for a fixed positive integer k is called the inductive hy-
pothesis or IH. When we complete both steps of a proof by mathematical induction,
we have proved that P (n) is true for all positive integers n; that is, we have shown that
∀nP (n) is true.
For the purpose of a proof by mathematical induction, we suggest the following for-
mat:
Statement of the Theorem:
In symbols:
Proof. I. Verification or basis step.
Let n = 1:
Let n = 2:
III. Conclusion.
By the principle of Mathematical Induction, is true for
all natural numbers or all positive integers n.
30
• Use mathematical induction to prove that the sum of the first n odd positive integers
is n2 .
n < 2n .
The two forms of mathematical induction are equivalent; that is, each can be shown
to be a valid proof technique assuming the other. Although, the strong induction prin-
ciple differs from the first in that it requires trying to show P (k + 1) is true when
P (1) , P (2) , . . . , P (k) are all true; that is, the inductive hypothesis says P (n) is true
not only for n = k, but for all positive integers preceding k or less than k.
• Prove that for every positive integer n, if n ≥ 14, then n can be expressed as a sum
of 3’s and/or 8’s.
31