Professional Documents
Culture Documents
Introduction
This module discusses various methods of formal proofs. It includes their validity through some conditions
and arguments through theorems. Part of this module are exercises to evaluate your learnings and skills in identifying
proofs symbolically through different methods.
Topics:
• Formal Proofs of Validity
• The Method of Conditional Proofs
• Validation of Arguments in Predicate Logic
• Theorems and Formal Proofs
• Method of Direct Proof
• Proof by Cases
• Proof by Contradiction
• Indirect Proof
Learning Outcomes:
At the end of this module, students should have the ability to:
1. Construct correct direct and indirect (contradiction and contraposition) proofs involving concepts from elementary
number theory such as even and odd integers, rational and irrational numbers, and divisibility.
2. Find a counter example to show that a proposed statement involving concepts from elementary number theory is
false.
Proof
A proof is a sequence of logical deductions, based on accepted assumptions and previously proven
statements and verifying that a statement is true. What constitutes a proof may vary, depending on the field. In
mathematics, a formal proof of a proposition is a chain of logical deductions leading to the proposition from a base
set of axioms.
Argument
An argument is a finite sequence p1, p2, …, pn, q of statements. The statements p1, p2, …, pn are called the
premises of the argument and q is its conclusion.
An argument p1, p2, …, pn, q is called logically valid if (p1 /\ p2 /\ … /\ pn) q is tautology.
Examples
1. Consider the following argument
If Cielo solved ten programming problems correctly then Cielo obtained a grade of 100.
Cielo solved ten programming problems correctly.
Therefore, Cielo obtained a grade of 100
Solution.
Let p: Cielo solved ten programming problems correctly.
q: Cielo obtained a grade of 100
1
We use the logical matrix to determine the argument's validity
p Q pq (p q) /\ p [(p q) /\ p] q
1 1 1 1 1
1 0 0 0 1
0 1 1 0 1
0 0 1 0 1
[(p q) /\ p] q is a tautology.
Hence, the argument is a valid argument.
Solution.
Let p: Lara solved six VB problems correctly.
q: Lara obtained a grade of 2. 0.
We can symbolize the simple propositions using the upper case of the alphabet, that is, A, B, C,
Let P: Homer has a Python class today
J: Homer has a JAVA class today.
4. If Joel makes a program in C++, Bryan in Visual Basic, then Joseph in Fortran.
Joel will not make a program in C++.
So Rojel will not make a program in Fortran.
2
Let J: Joel makes a program in C++
B: Bryan makes a program in Visual Basic.
R: Rojel makes a program in Fortran.
Examples
3
1. Construct a formal proof of the validity of the following argument.
If Joel is enrolled in JAVA then Bryan is enrolled in Python.
Joel.is enrolled JAVA and Rojel is enrolled in C++.
Therefore, Bryan is enrolled Python.
Solution.
We symbolize the component simple propositions:
J: Joel is enrolled in Java
B: Bryan is enrolled in Python
R: Rojel is enrolled in C++
The premises of the argument are J B and J /\ R.
The conclusion is B.
We commence the list with the premises, then using the rules of inference.
1. JB Premise
2. J /\ R Premise
3. J Simplification 2
4. B Modus Ponens 1, 3
Solution.
We symbolize the component simple propositions as follows:
M: Mark is correct
P: Mark’s program is correct
A: Anne is correct
C: Anne’s calculation is correct
4
3. Consider the following argument
If Raul had taken my advice or had his wits about him, he would have cracked the code and written a
program.
If he had cracked the code, Gladys would have enrolled in CAD.
Gladys did not enroll in CAD.
Therefore, Raul did not take my advice.
We symbolize the component simple propositions as follows:
A: Raul took my advice.
W: Raul had his wits about him.
C: Raul cracked the code.
P: Raul wrote a program.
G: Gladys enrolled in CAD.
The argument is symbolized as follows:
(A v W) (C /\ P)
CG
¬G
.’. ¬A
To every argument, there corresponds a conditional whose antecedent is a conjunction of the premises of
the argument and the consequent is the argument's conclusion.
To justify the method, consider an argument form with premises p1, p2, …, pn and conclusion q r. This
argument is valid if and only if (p1 /\ p2, /\ …/\ pn (q r) is a tautology.
Now the exportation replacement rules states that p (q r) = (p /\ q) r so that the validity condition
(p1 /\ p2, /\ …/\ pn) (q r) is a tautology
can be replaced by
(p1 /\ p2, /\ …/\ pn /\ q) r is a tautology
Examples.
1. Consider the argument
All men are mortal. A
5
John is a man. B
Therefore, John is mortal. C
A, B .’. C
(A /\ B) C
The conditional proof allows the antecedent of the arguments conclusion to be used as an additional
premises and deduce the consequent of the argument's conclusion from the new set of premises.
3. Use the method of conditional proof to establish the validity of the following argument.
If we invite Lea then Joey will sulk, and if we invite Bobby then Andrea will leave.
So if we invite Lea and Bobby then Joey will and Andrea will leave.
6
Solution:
We symbolize the simple propositions: The argument is symbolized as follows:
L: We invite Lea (L J) /\ (B A)
J: Joey will silk .’. (L /\ B) (J /\ A)
B: We invite Bobby
A: Andrea will leave
Since the conclusion is a conditional proposition, we can use it premise L /\ B as a premise of the argument
and its conclusion J /\ A, as the conclusion of the argument.
Exercise 3.1. Provide formal proofs of the validity of each of the following arguments.
2. The Chocolate hills are not chocolates if I'm not the president of the Philippines.
I'm not the president of the Philippines.
Therefore the Chocolate hills are chocolates.
Exercise 3.2. Provide formal proofs of the validity of each of the following arguments.
2. If roses are red and violets are blue then candy is sweet and I love you.
Violets are blue and roses are red.
Therefore candy is sweet.
3. You will write a correct program if and only if you follow the procedures.
If you follow the procedures then you are conventional.
You are not conventional and you are always successful.
If you are always successful then you will write a correct program.
7
So you will write a correct program.
Exercise 3.3. Provide a formal proof of the validity of each of the following arguments using the method of
conditional proof and the method of formal proof
2. If Jade got her visa then she'lI leave the country and never see her again.
If we see Jade again then she is not Tina's friend.
Therefore, if Jade got her visa or she is Tina's friend then never see her again.
3. If Ginebra or Alaska wins the All Filipino Basketball Championship then we'll go to party and dance all night.
Hence, if Ginebra wins the All Filipino Basketball Championship then we'll go to party.
These four rules of inference allow us to infer true proposition without quantifiers from true quantified propositional
functions and vice versa.
UI EI
∀xPx Pa where a is an arbitrary ∃xPx Pa where a is a particular
member of the universe member of the universe
UG EG
Examples:
1. Consider: All integers are rational numbers,
Some integers are positive.
Therefore, some rational numbers are positive.
We symbolize the propositional functions as follows:
8
Zx: x is an integer
Qx: x is a rational number
Px: x is positive
Solution.
We define the following propositional functions on the universe of students:
Cx: x attends calculus
Tx: x takes the quiz
Ex: x has enrolled for the course
Prove:
∀x[(Cx /\ Tx) Ex]
¬∃x(Ex /\ Tx)
∃xCx
∴ ∃x¬Tx
9
14. ¬Ta Tautology, 13
15. ∃x¬Tx Existential Generalization, 14
Exercise 3.4. Provide a formal proof of the validity of each of the following arguments.
1. All cats are mammals.
Some cats are playful.
Therefore some mammals are playful.
Exercise 3.5. Provide a formal proof of the validity of each of the following arguments
1. Everyone who lives in Manila or Santiago City is urbane and intellectual.
Therefore, everyone who lives in Manila is urbane.
Theorem in the axiom system is a statement about the terms of the system which is logically implied by the
conjuction of the axioms. Symbolically, t is a theorem in the system if
(a1 /\ a2 /\ … /\ an) t
This means that a theorem is the conclusion of a valid argument which has the axioms as premises.
Formal Proof
The formal proof of P is a sequence S1, S2, …. SN of propositions where SN = P and each Si satisfies one or
more of the following criteria:
a. it is an axiom or previously proved theorems, or
b. it can be inferred from earlier propositions in the list using the rule of inference, or
c. one of the replacement rules guarantees that it is equivalent to a previous proposition in the list.
Therefore, since a t and (a /\ t) p are both tautologies, this shows that if P be deduced from axioms
and previously proved theorems, then P can be deduced from the axioms alone.
Informal proof covers any proof which does not 0adhere to the definition of formal proof.
Proposition P
Construct a sequence of propositions P0, P1, …, PN where P0 is background Knowledge.
PN = P and, for I = 1, 2, …, N, the proposition P, is such that
1
0
a. Pi is background knowledge, or
b. (P0 /\ P1 /\…/\ PN) Pi
Conditional Proposition P Q
Construct a sequence of propositions P0, P1, …, PN where P0 = P, PN = Q and for each
I = 1, 2, …, N, the proposition Pi is such that:
a. Pi is background knowledge, or
b. (P0 /\ P1 /\…/\ PN) Pi
A direct proof of a simple proposition P must begin with a proposition P0 which is an axiom or previously proved
theorem which is a part of background knowledge of the system.
To prove ∀xP(x) we actually prove P(a) where a is an arbitrary element of the universe and then appeal to
the rule of universal generalization.
To infer P(a) we apply the rules of installation to the axioms and previously proved theorems.
1
1
We will prove P(a) Q(a) for an arbitrary a in the universe. For theorems whose conclusion is an
existentially quantified function ∃xP(x) prove P(a) for a specific element a of the universe.
The rule of existential specification is applied to give the desired conclusion.
First Proof
Let n be an even integer. Then n = 2m for some integer m, so
n2 = (2m)2 = 4m2 = 2 x (2m2) = 2M
where M = 2m2 is an integer.
Therefore n is even.
Second Proof
Using a chain of implication
n is an even integer
n = 2m where m is an integer
n2 = (2m)2 = 4m2 = 2 x (2m2)
n2 = 2M where M = 2m2 is an integer
n2 is even
x ∈ C x ∈ A (since C ⊆ A)
x ∈ C x ∈ B (since C ⊆ B)
x ∈ C x ∈ A and x ∈ B
x ∈ (A ⋂ B), hence C ⊆ (A ⋂ B)
Proof by Cases
1. List all possible cases that will cover every circumstances in which the hypothesis might hold.
2. For each possible case, prove the conclusion separately.
1
2
Proof by Contradiction
Indirect Proof
To prove a theorem using indirect proof, prove ”if p then q” by proving “if not q, then not p.”
Example
For all integers n, if 5n + 2 is odd, then n is odd.
Proof.
We will start by assuming that n is a particular but arbitrarily chosen element of Z.
For this n, we show that P(n) Q(n) is true.
P(n) Q(n) is logically equivalent to ¬Q(n) ¬P(n).
Therefore, we show that ¬Q(n) ¬P(n) is true.
Suppose ¬Q(n) is true.
We show that ¬P(n) is true. Because ¬Q(n)is true, n is not odd.
Then n is even, so n = 2k for some integer k.
Thus:
5n + 2 = 5(2k) + 2
= 2l5k + 1), let 5k + 1 = t
Then
= 2t for some integer t
This implies that 5n + 2 is an even integer; that is, 5n + 2 is not an odd integer.
Thus ¬P(n) is true. We have shown that ¬Q(n) ¬P(n) is true.
Hence, P(n) Q(n) is true.
Therefore, for all integers n, if 5n + 2 is odd, then n is odd.
Mathematical Induction
In proving statements that involve a natural number n, it is useful to use the following principle.
Examples
1. For any natural number n
0 + 1 + 2 + … + n = [n(n + 1)] / 2
Proof.
1
3
Step 1. Prove the result for n = 0
0 = [0(0 + 1)] / 2
Step 2. Let n be any natural number for which the result is true. Prove the result is also true for n + 1.
Assuming the result is true for n means.
0 + 1 + 2 + … + n = [n(n + 1)] / 2
Proof.
Step 1. For n = 2, 2 ∙ 2 + 1 < 23 = 5 < 8. S2 is true
Show that Sn+1 is true, that is, we show that 2(n + 1) + 1 < (n + 1)3 or 2n + 3 < (n + 1)3
We have 2n + 3 = 2n + 1 + 2
< n3 + 2 because Sn is true and n ≥ 2
< n3 + 3n2 + 3n + 1 and so 3n3 + 3n + 1 > 2
= (n + 1) 3
Summary
1
4
A proof is a sequence of logical deductions, based on accepted assumptions and previously proven statements
and verifying that a statement is true.
A formal proof of a proposition is a chain of logical deductions leading to the proposition from a base set of
axioms.
An argument is a finite sequence of statements. The statements are called the premises of the argument and its
conclusion.
A formal proof of validity of the argument consists of a lists of propositions which terminates with Q, that
is, (P1 /\ P2 /\…/\ Pn) Q.
To every argument, there corresponds a conditional whose antecedent is a conjunction of the premises of the
argument and the consequent is the argument's conclusion.
In determining the validity of arguments in predicate logic, the following rules shall be used:
a. Rule of Universal Instantiation (UI)
b. Rule of Existential Instantiation (EI)
c. Rule of Universal Generalization (UG)
d. Rule of Existential Generalization (EG)
These four rules of inference allow us to infer true proposition without quantifiers from true quantified
propositional functions and vice versa.
Theorem in the axiom system is a statement about the terms of the system which is logically implied by the
conjuction of the axioms.
The formal proof of P is a sequence S1, S2,. . SN of propositions where SN = P and each Si satisfies one or more
of the following criteria:
a. it is an axiom or previously proved theorems, or
b. it can be inferred from earlier propositions in the list using the rule of inference, or
c. one of the replacement rules guarantees that it is equivalent to a previous proposition in the list.
Informal proof covers any proof which does not 0adhere to the definition of formal proof.
A direct proof of a simple proposition P must begin with a proposition P0 which is an axiom or previously proved
theorem which is a part of background knowledge of the system.
References
1. Cabero, Jonathan B., et. al., (2010). Discrete Mathematics. Mandaluyong: National Book Store.
2. Epp, Susanna S. (2012) Discrete Mathematics. Cengage Learning Asia Pte Ltd.
3.. Stelovsky , Dr. Jan, Discrete Mathematics
http://www2.hawaii.edu/~janst/141/lecture/
4. Baker, Dr. Johnnie W. Discrete Mathematics and Its Applications
http://www.cs.kent.edu/~jbaker/Discrete-Sp11/slides/
5. Methods of Proof
1
5
https://users.cs.jmu.edu/aboutams/Web/DiscreteMath/Fall03/Lecture%20Notes/1_5%20Methods
%20of%20Proofs.pdf
6. Proofs: Methods and Strategies
http://www.cs.nthu.edu.tw/~wkhon/math/lecture/lecture04.pdf
1
6