Logic and Proof Methods
Logic and Proof Methods
A National Scientist
Fr. Nebres has conducted studies in the first-
order logic, as mathematicians, philosophers,
and theoretical computer scientists mostly do
and in infinitary logics. In a series of papers
published in very prestigious international
journals (Notices of the American
Mathematical Society, Journal of Symbolic
Logic, Journal of the Mathematical Society of
Japan) Fr. Nebres studied the
characterization of infinitary sentences
preserved under unions of models. His
supervisor was the distinguished logician
Solomon Feferman, who was a student of
Alfred Tarski, founder of model theory and
considered one of the greatest logicians of all
time. (Courtesy of the National Academy of
Science and Technology - Philippines)
Topic Outline
A. Logical Propositions
B. Quantifiers
C. Arguments
D. Proof Methods
E. Mathematical Induction
•We can also use the unary connective not to form a new simple
proposition out of a given one.
• Let p and q be propositions. The following are resulting propositions
formed by logic connectives and their usual notations:
p Proposition p q r Proposition
T T T T
F T T F
T F T
T F F
p q Proposition
F T T
T T
F T F
T F
F F T
F T
F F F
F F
• Negation: ~p has a truth value opposite to the truth value of p
p ~p
T F
F T
• Example: Write the negation of each statement and determine the truth value.
1.) Red is blue.
2.) 1 is not equal to -1.
• Answer:
1.) Red is not blue. (T)
2.) 1 is equal to -1. (F)
• Conjunction: pΛq is true only if both p and q are true
p q pΛq
T T T
T F F
F T F
F F F
p q pVq
T T T
T F T
F T T
F F F
• Exercise: Let p: 3 ≤ 4;
q: 4 is a prime number.
Answer:
1. 3 ≤ 4 and 4 is a prime number. (F)
2. 3 > 4 or 4 is a prime number. (F)
B. Write the following in symbolic form and determine the truth value.
1. 3 > 4 .
2. 3 > 4 and 4 is not a prime number.
3. 3 ≤ 4 or 4 is not a prime number.
Answer:
1. ~p (F)
2. ~p Λ ~q (F)
3. p V ~q (T)
• Two propositions p and q are logically equivalent if they have the “same
truth table”. In this case, we write p ≡ q.
• An Equivalent Form of a Conditional: p→q ≡ ~p v q.
• Example: Write each of the following in its equivalent disjunctive form.
1. If I do not move to Bohol then I will live in Leyte.
2. If 4 is divisible by 2 then 4 is even.”
Answer:
1. I move to Bohol or I will live in Leyte.
2. 4 is not divisible by 2 or 4 is even”.
• Example: Write the converse, inverse and contrapositive of the following implication.
If 3 divides 7 then 3 divides 14.
Answer:
Converse: If 3 divides 14 then 3 divides 7.
Inverse: If 3 does not divide 7 then 3 does not divide 14.
Contrapositive: If 3 does not divide 14 then 3 does not divide 7.
• Exercise: Find the truth tables for the converse, inverse and contrapositive of p→q and
compare it with that of p→q. Which of these are logically equivalent?
Answer: p q p→q q→p ~p→~q ~q→~p
T T T T T T
T F F T T F
F T T F F T
F F T T T T
3. Tautology p p V ~p
T T
F T
• Example: Determine if each is a tautology, a contradiction, or neither.
1. My shirt is red.
2. My shirt is red and my shirt is not red.
3. My shirt is red or my shirt is not red.
Answer:
1. Neither
2. Contradiction
3. Tautology
B. QUANTIFIERS
• From the previous section, we concluded that x>3 is not a proposition.
We write p(x):x>3 and look at it as a propositional function. How to make it a
proposition?
• First, by assigning specific values to the variable x.
• Second, by quantification. In this case, we need a set D which will act as a
domain containing possible values for the variable and the following
quantifiers:
Answer:
1. F
2. T
3. F
4. F
5. T
6. T
• Example: Let p(x): “x is a logic student” and q(x): “x understands quantifiers”. Let D be a set of
students, not necessarily logic students. Consider the following statements.
a.) All logic students understand quantifiers.
b.) Every student is a logic student and understands quantifiers.
c.) There is a logic student who does not understand quantifiers.
1. Transform each of the statements into symbolic form.
2. Give the negation of each statement.
Answer:
1. a.) ⱯxϵD, p(x) → q(x).
b.) ⱯxϵD, p(x) Λ q(x).
c.) ƎxϵD ϶ (p(x) Λ ~q(x)).
2.
a.) ~(ⱯxϵD, p(x) → q(x)) ↔ ƎxϵD ϶ ~(p(x) →q(x)) ↔ ƎxϵD ϶ (p(x) Λ ~q(x))
English: There exists a student which is a logic student but does not understand
quantifiers.
Answer:
1. T
2. F
3. F
4. T
C. Arguments
• An argument consists of a set of propositions called premises and
another proposition called the conclusion. An argument is valid if the
conclusion is true whenever all the premises are assumed to be true.
Otherwise, we say it is invalid.
• In symbol, suppose p1, p2, ... , pn are the premises and q is the conclusion.
Then an argument is of the form
(p1 Λ p2 Λ ... Λ pn) → q.
3. p1: If she does not get on the plane then she will regret it.
p2: She does not regret it.
q : Therefore, she gets on the plane.
• Example: Write the first two arguments above in symbolic forms using its simple
propositions.
Answer:
1. Let p: Aristotle was human;
q: Aristotle was mortal.
p→q
p__ that is, ((p → q) Λ p) → q.
q
p V ~q
p__ that is, ((p V ~q) Λ p) → q.
q
How to determine the validity of an argument?
ii.) Construct a truth table that shows the truth value of each premise
and the truth value of the conclusion for all combinations of truth
values of the simple propositions.
iii.) If the conclusion is true in every row of the truth table in which all
the premises are true, the argument is valid. If the conclusion is
false in some row in which all the premises are true, the argument
is invalid.
• Example: Determine if each of the arguments is valid or invalid using truth tables.
1. p → q 2. p V ~q
p____ p____
q q
8. p → ~r Hypothetical Syllogism
(6,7)
• Example: Determine whether the following argument is valid.
2. ~p → r Premise
3. ~t Premise
2. Invalid
Exercise on Proving Arguments
1. Prove the following argument:
(p Λ q) V (p → q)
~p V ~ q_______
~p V q
a.) using truth table
b.) using the two-column proof.
2. Transform the following argument to symbolic form and prove using the two-column proof.
If he reads the manuscript then he will like it.
If he likes it then he will publish it.
If he publishes it then you will get royalties.
You did not get royalties.________________
Therefore, he did not read the manuscript.
D. Proof Methods
• What do we do in mathematics?
• An Example of a Theorem:
Theorem 1: If m and n are even integers then m + n is an even integer.
• With Quantifiers: Let Z be the set of all integers. We can write this theorem as:
Theorem 1: Ɐm ϵ Z, Ɐn ϵ Z, ((m is even) Λ (n is even)) → (m+n is an even integer).
Let us now introduce the three fundamental proof methods.
A. Direct Proof
- we start by assuming the hypothesis and develop a sequence of
logical-mathematical consequences until we reach the conclusion.
B. Contrapositive Proof
- we assume the negation of the conclusion and develop a sequence of
logical-mathematical consequences until we reach the negation of the
hypothesis.
Theorem 1: Let m and n be integers. If m and n are even then m + n is an even integer.
Proof of Theorem 1:
Suppose m and n are integers. Assume m+n is not even; that is, odd. Then there
exists integer k such that m + n = 2k + 1. Now, either m is even or odd. If m is odd, we are
done. Suppose m is even. Then there exists an integer s such that m = 2s. This implies
that
n = (m + n) - m = 2k + 1 - 2s = 2(k - s) + 1
where k - s must be an integer. Hence, n is a odd integer and this completes the proof. □
For a theorem p→q, the reductio ad absurdum principle says: p → q ≡ (pΛ~q) → c
where c is a contradiction. That is, to prove p→q, it is enough to show that assuming p
and ~q always implies a contradiction or inconsistency.
C. Proof by Contradiction
- we assume the hypothesis with the negation of the conclusion and
develop a sequence of logical-mathematical consequences until we
reach a contradiction.
1
• Example: 1 .) n N , 1 2 ... n n ( n 1 ).
2
2 .) n N , 3 | n 3 n .
n
3
3 .) n N , n 13 , n .
2
2
For application: we let S be the set of all natural numbers in which a given
property is satisfied.
1
Theorem 2: nN,1 2 ... n n(n 1).
2
Proof: Let S be the set of all natural numbers such that the property is true. We show that S = N
by proving parts (i) and (ii) in PMI. Firstly, take n = 1. Then
1 1
(1)(1 1) ( 2) 1
2 2
and so 1 ϵ S. Secondly, assume k ϵ S. That is,
1
1 ... k k ( k 1).
2
1
This implies 1 ... k ( k 1) k ( k 1) ( k 1)
2
( k 1)k 2
1
2
1
( k 1)(( k 1) 1).
2
Hence, k +1 ϵ S. By PMI, S = N. Therefore, the statement is true for every natural number. □
• Analysis of the proof using PMI
Base Step: Prove for the least element, in this case, n = 1. Show that
the property is satisfied by 1.
Induction Hypothesis: Assume that the property is satisfied by a
k ϵ N.
Prove for k + 1: We prove that k + 1 satisfies the property.
Theorem 3: n N,3 | n3 n.
2
Proof: Let S be the set of all integers such that the statement is true. Take no=13. Note that
13
1594323 3
132 169 .
8192 2 k
3
Thus, 13 ϵ S. Let k ϵ Z such that k ≥13. Assume k satisfies the property; that is, k2 .
2
It follows that
2 2 k k 1
1 2 1 2 3 2 33 3
k 1 1 k 1 k k
2
.
k 13 2 22 2
Thus, k + 1 ϵ S. By Generalized PMI, n Z : n 13 S and so the property is true for
all n ϵ Z with n ≥ 13. □
Theorem 5: 2 is irrational.
r
Proof: Suppose 2 .
2 is rational; that is, there exist natural numbers r and s such that
s
Consider the set S = {k ϵ N : k = n 2 for some n ϵ N}. Since r s 2 , r ϵ S and so S is non-
empty. By WOP, S has a least element say x. Thus, there exists y ϵ N such that x y 2. Now,
y
2 1 x y.Because 0 2 1 1, 0 x y y 2 1 y and it follows that
x y 2 x y 2 S .
This contradicts the minimality of x in S. Therefore, 2 must be irrational. □
Theorem 6: Let a and b be natural numbers. Then there exist integers q,r such that a = bq + r
with 0 r b .
Proof: This is a challenging exercise. (Hint: Form the set S = {a - bk : k ϵ Z, a bk 0} ). □
n(n 1)( 2n 1)
2.) n N ,12 2 2 ... n 2
6
3.) n N ,3 | 4 n
2