Logic
Logic
Logic is the study of the principles and techniques of reasoning. Logic comes from the Greek word “logos”
which means speech and reasoning.
The ancient Greeks were the first people to systematically analyze the way humans think and arrive at
conclusions. Aristotle (384-322 B.C.) is the father of logic who organized the study of logic for the first time in a
work called Organon. The logic from this period, called Aristotelian logic, has been taught and studied for more
than 2000 years.
Challenge!
Which one is declarative sentence?
1. Ten more than a number is seventeen.
2. The measure of an interior angle
3. Give me a sign!
4. Either seven is an odd number or its is even.
5. 3x-5 > 7
6. Who is younger between Ana and Fe?
7. There is no more water in the dam.
8. Wonderful!
Proposition
A proposition is a declarative statement which is true or false, but not both. Consider, for example, the
following sentences:
There is only one which is not a proposition, the fourth sentence. It is an imperative sentence and
therefore not a proposition. For the propositions, numbers 1 and 2 are true, but 3 and 5 are false.
Illustrative Example:
Determine the simple and compound propositions below.
1. Six is lower than ten.
2. Roses are red and violets are blue.
3. Joe is an artist and a musician.
4. Bea is smart or she studies every night.
5. 6+8=14
Answer:
1. Simple proposition
2. Compound proposition
3. Compound proposition
4. Compound proposition
5. Simple proposition
Symbolizing Proposition
Propositions can be expressed in symbol. The words that are used to combine propositions are logical
connectives.
Negation or ~ “not” or ~p
Conjunction “and”
Disjunction “or”
Conditional “if-then”
Operations on Propositions
A. Negation
The or ~p is true if p is false and vice versa.
Example: Truth Table
Form the negation of the propositions:
~p
a. : Euler is German
T F
~p:Euler is not a German.
F T
Special caution is used when negating statements containing the words all, none (or no), and some. These
are words referred to as quantifiers. The negation of quantified statements is summarized as follows:
Form of Statement Form of Negation
All are Some are not
None are Some are
Some are None are
Some are not All are
This diagram may help you to remember the statements and their negations:
The quantifiers diagonally opposite each other are the negations of each other.
Examples:
Write the negation of each statement.
1. Some telephones can take photographs.
2. All houses have two stories.
3. The price of Manila Stock Exchange Composite Index rose today.
Answers:
1. No telephones can take photographs.
2. Some houses do not have two stories. Or
Not all houses have two stories. Or
At least one house does not have two stories.
3. The price of the Manila Stock Exchange Composite Index did not rise today.
B. Conjunction
The conjunction is true if both p and q are true; it is false otherwise. The conjunction is generally
expressed as “and”. Words such as “but”, “however”, and “nevertheless”, are generally used as
conjunctions.
Truth Table
Examples:
1. The propositions: p q
p: Toronto is the capital of Ontario.
q: Toronto is the largest city in Canada. T T T
Toronto is the capital of Ontario
and is the largest city in Canada. T F F
2. Write symbolically, letting h=”It is hot.” And s=”It is sunny.”
F T F
a. It is hot but it is sunny
F F F
b. It is neither hot nor sunny.
C. Disjunction
Disjunction is false if both statements are false; It is true in all other cases. There are two types of disjunction.
An inclusive disjunction of which a proposition of the form when both p and q are true, as well as when only
one of p and q is true. An exclusive disjunction is true if either p or q is true.
Examples:
1. Consider the propositions
p: Lance will go to Luneta Park.
q: Lance will go to Mall of Asia. p q
James will go to Lunetapark
or to Mall of Asia.
T T T
T F T
2. p: The base price of each condominium
unit includes a private deck. F T T
p q
q: The base price of each condominium
unit includes a private patio. F F F
The exclusive disjunction is T T F
The base price of each condominium unit T F T includes either a private deck or a
patio, but not both.
F T T
Examples:
Construct a truth table for the following statements.
1. Jo is not an artist and not a musician.
Let: p: Jo is an artist.
q: Jo is a musician.
Thus, the compound statement may be written . Now construct a truth table with four cases.
p q
T T F F F
T F F T F
F T T F F
F F T T T
From the truth table, the compound statement will be true only in case 4 when both simple
statements, p and q, are false.
Truth Table
p q r
T T T F F T
T T F F F F
T F T T T T
T F F T T T
F T T F F T
F T F F F F
F F T T F T
F F F T F F
A conditional proposition is a proposition of the form “if p, then q” and is represented symbolically by
. The connective “if - then “ is called the conditional connectives. The proposition p is called the antecedent or
hypothesis or premise; and the proposition q is called the consequent or conclusion.
A conditional statement is false if the hypothesis is true and the conclusion is false. It is true in all other
cases. These are some ways to read an implication or proposition.
“ifp, q” “q if p”
“if p, then q” “q when p”
“p only if q” “q unless p”
“p implies q” “q follows from p”
“p is sufficient for q” “q whenever p”
“a necessary condition for p is q” “q is necessary for p”
“a sufficient condition for q is p”
Examples:
Change the following conditional statements into converse, inverse, contrapositive and biconditional.
1.
Truth Table
p q
T T F T F T
T F F T F T
F T T T T T
F F T F F T
Since, all entry in the last column is true, then it is a tautology.
2.
Truth Table
p q
T T T T T
T F F T T
F T T F T
F F t T T
Since all entry in the last column is true, then it is a tautology.
Symbolic Arguments
A symbolic argument is consists of a set of propositions which are called the premises, and a
proposition called the conclusion. An argument is valid if and only if the conclusion is true whenever the
premises are all true. An argument which is not valid is called fallacy.
Syllogism
A syllogism is a valid argument consisting of two premises, called the major premise and the minor
premise, and one conclusion.
Examples:
1. If Roel saves money, then he can buy a new phone.
Roel saves a money.
Roel can buy a new phone.
Solution:
Let p: Roel saves money
q:Roel can buy a new phone.
Symbolic Form:
Truth Table
P q
T T T T T
Since the conclusion is true in the row
where the T F F T F premises are also true, we
conclude that the argument is valid.
F T T F T
2. If Rose is stressed, then she is
exhausted. F F T F F
Rose is exhausted
Rose is stressed.
Solution:
Let p: Rose is stressed.
q: Rose is exhausted.
Symbolic Form:
Truth Table:
P q
T T T T T
T F F F T
F T T T F
F F T F F
Since as observe in the third row, the premises are true, but the conclusion is false, then the
argument is a fallacy.
Truth Table
Since the conclusion is true in each of the rows that
Propositions Premises Conclusion contain true values for both premises, we conclude that
the argument is valid.
p q r
T T T T T T
T T F T F F
T F T F T T
T F F F T F
F T T T T T
F T F T F T
F F T T T T
F F F T T T
LESSON 3.2 Proof and Disproof
Learning Outcomes
In this lesson, the students are expected to:
1. llustrate the different methods of proof (direct and indirect) and disproof Key words:
(indirect and by counterexample); 1. Contradiction
2. justify mathematical and real-life statements using the different methods 2. Counterexample
of proof and disproof. 3. Contraposition
Introduction
A proof is a valid argument that establishes the truth of a mathematical statement. A proof can use the
hypotheses of the theorem, if any, axioms assumed to be true, and previously proven theorems.
Challenge!
Identify whether the following statements are true or
false.
1. All rational numbers are real.
2. All prime numbers are odd.
3. Every odd number is a multiple of three.
4. A triangle is isosceles if it has at least two
congruent sides.
5. Every composite number is even.
Direct Proofs
Proving of mathematical theorems needed all available ammunition, including a powerful battery of
different proof methods. These methods provide the overall approach and strategy of proofs.
A direct proof of a conditional statement is constructed when the first step is the assumption that
p is true; subsequent steps are constructed using rules of inference. A direct proof shows that a conditional
is true by showing that if p is true, then q must also be true.
Illustrative Example:
1. Prove that “If n is an odd integer, then is odd.”
Proof:
1. n is an odd integer Assumption by hypothesis
Indirect Proofs
Direct proofs begin with the premises, continue with a sequence of deductions, and end with the
conclusion. However, there are some attempts at direct proofs that often reach dead ends. Unlike direct proofs,
proofs that do not start with the premises and end with the conclusion are called indirect proofs.
Proof by Contraposition
A useful type of indirect proof is proof by contraposition. Proofs by contraposition make use of the fact
that the conditional statement is equivalent to its contrapositive, .
Examples:
1. Prove that if n is an integer and is odd, then n is odd.
Proof:
4. By substitution
Proof by Contradiction
A proof by contradiction does not prove a result directly. In other words, a proof by contradiction is
another type of indirect proof. To prove by contradiction, we have to assume first the negation of the conclusion.
It is then by using the premises of the theorem and the negation of the conclusion to arrive at a contradiction.
Examples:
Proof:
4. By substitution
Disproof
Have you ever wonder what would happen if you were given a false statement to prove? The answer is
there is no such correct proof that would be possible, for if it were correct, the statement would be true, not
false.
It turns out that there is a very simple and utterly convincing procedure to prove that a statement is false.
The process of carrying out this procedure is called disproof.
Disproof by Counterexample
To disprove P, prove . One of the methods in disproving is by counterexample.
Examples:
n -3 -1 0 1 3 5 7 9 11
f(n 23 13 11 11 17 31 53 83 121
)
2. Show that the statement “Every positive integer is the sum of the squares of two integers” is false.
Solution: To disprove this statement, we look for a counterexample, which is a particular integer that is
not the sum of the squares of two integers. A counterexample is 3 which cannot be written as a sum of two
integers. The only perfect squares not exceeding 3 are 0 and 1. .
Disproof: The statement”Every positive integer is the sum of the squares of two integers” is false by a
counterexample integer 3.
Disproof by Contradiction
Contradiction is a very useful way to disprove a statement. We know that to disprove P, we must prove
. To prove with contradiction, we assume that is true and deduce a contradiction. But since
, this boils down to assuming P is true and deducing a contradiction.
Example 1. Disprove the conjecture “There is real number for which .
Disproof: Suppose for the sake of contradiction that this conjecture is true. Let be a real number for which
. Then is positive since it is greater than the non-negative number . Dividing all parts of
by the positive number produces . Now subtract 1 from all parts of to obtain
and reason as follows:
Now we have , which is a contradiction because is positive. Thus the conjecture must be false.
Reference:
Rosen, K.H. (2012). Discrete Mathematics and Its Application. Seventh
Edition. McGraw Hill Companies, Inc., New York, USA
Name: Score:
Section: Instructor: Date:
Activity 3.2B
PROOF AND DISPROOF