Introduction to Logic - Institute of Mathematics

illa
JB
as
JB
as
illa
si
lla
JB
a
Logic
J.M.Basilla
JB
as
illa
illa
Math 1
General Mathematics
Lecture 7
JB
as
JB
as
illa
Introduction to Logic
illa
illa
JB
as
Institute of Mathematics
University of the Philippines-Diliman
[email protected]
JB
as
JB
as
illa
Julius Magalona Basilla
2012 Math 1
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
si
lla
JB
a
Some quotes
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
JB
as
illa
Statements
A doctor can bury his mistakes but an architect
can only advise his client to plant vine.
Frank Lloyd Right
illa
JB
as
illa
JB
as
JB
as
illa
When a mathematican makes a mistake, he
simply erases the board.
Propositional Logic
Negation
Conditional
JB
as
illa
JB
as
illa
si
lla
JB
a
The nature of mathematcs
Logic
illa
JB
as
illa
A mathematician wants to be sure that a certain
assertion actually follows from what has already
been accepted.
JB
as
JB
as
illa
J.M.Basilla
illa
JB
as
illa
Computations that accompany mathematics aid in
demonstrating these two points.
JB
as
JB
as
illa
Equally as important, he wants to be sure that a
certain assertion does not follow logically from the
other.
Statements
Propositional Logic
Negation
Conditional
JB
as
illa
JB
as
illa
si
lla
JB
a
The nature of mathematcs
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
illa
JB
as
illa
JB
as
JB
as
illa
JB
as
illa
Statements
In some sense, mathematics is just an applied
logic.
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
illa
JB
as
JB
as
illa
It is a pity that every human were given the ability to
think, but not everyone have the ability to reason
correctly.
Logic is the science of correct reasoning.
Logic helps us decide if an argument is valid or not.
illa
JB
as
illa
Example If there are fewer cars on the
roads the pollution will be acceptable.
Either we have fewer cars on the road or
there should be road pricing, or both. If
there is road pricing the summer will be
unbearably hot. The summer is actually
turning out to be quite cool. The conclusion
is inescapable: pollution is acceptable.
JB
as
si
lla
JB
as
illa
JB
as
illa
JB
a
Logic
Logic
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
si
lla
JB
a
Logic
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
illa
JB
as
illa
When determining whether an argument is valid or
not, we have to focus on the form of the argument;
devoid of the meaning, particularly the emotional
loads that go with the sentences.
JB
as
JB
as
illa
JB
as
illa
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
si
lla
JB
a
Statements
Logic
JB
as
illa
JB
as
Statements
Non statements
Open Sesame.
Uranus has 65 rings.
This statement is false.
All men are created equal.
What country hosted the
recent olympics?
JB
as
illa
JB
as
as
JB
1+2=3
illa
Today is a holiday.
illa
JB
as
illa
2.
illa
1. By a statement, we mean a declarative sentence
which can be categorically classified as true or false.
Good Luck!
3. Statements will be represented by single letters say
p,q,r, etc.
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
JB
a
si
lla
Some english sentences which are not a
mathematical statements
A caveat!
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
JB
as
illa
Statements
Not all english sentences are mathematical
statement.
” I am lying now.” is not a mathematical statement.
illa
JB
as
illa
JB
as
JB
as
illa
”This statement is false.” is also not a mathematical
statement.
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
si
lla
JB
a
Negation of a statement
Logic
illa
JB
as
illa
Hence, if p is true, its negation, denoted by ∼ p, is
false.
JB
as
JB
as
illa
The negation of a statement p is the statement
whose meaning is exactly the opposite of p.
Likewise, if p is false then ∼ p is true.
Juan is running.
Juan is not running.
One foot is equal to 10
inches.
JB
as
Jane did not pass Math I
last semester.
illa
Negation ∼ p
illa
Statement p
JB
as
JB
as
illa
Some easy example
Jane passed Math I last
semester.
One foot is not equal to 10
inches.
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
JB
as
JB
a
Negation of statements involving quantifier
Logic
illa
JB
as
illa
All students are diligent
Some students are not
diligent
Nobody stole the cookie
from the cookie jar
JB
as
Some people are funny
illa
Negation ∼ p
illa
Statement p
JB
as
illa
Example
as
JB
Forming the negation of a statement p which
contains quantifiers such as all, some, none or no is
not as easy as the previous examples.
JB
as
JB
as
illa
J.M.Basilla
No person is funny.
Somebody
stole
the
cookie from the cookie jar
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
JB
a
si
lla
General rule for negating statements
involving quantifier
Logic
J.M.Basilla
Statements
illa
JB
as
illa
Negation ∼ p
Some . . . not . . ..
None/No/No
one/Nobody. . ..
Some . . ..
JB
as
JB
as
Some . . ..
illa
All/every . . ..
illa
Some . . . not . . ..
as
JB
JB
as
All/Every . . ..
illa
JB
as
illa
Statement p
No/None . . ..
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
JB
as
JB
a
More example and exercises
Logic
J.M.Basilla
JB
as
My car did start.
Some of the cars did start.
Every car started.
Some of the cars did not
start.
JB
as
JB
as
Some of the cars started.
illa
None of the car started.
illa
All the cars started.
illa
Some of the cars did not
start.
as
JB
JB
as
JB
My car did not start.
illa
Negation
illa
as
illa
Statement
No car started.
Statements
Propositional Logic
Negation
Conditional
illa
Logic
∼p
F
T
J.M.Basilla
illa
JB
as
illa
JB
as
illa
JB
as
illa
Statements
JB
as
JB
as
illa
JB
as
illa
p
T
F
JB
as
JB
as
illa
si
lla
JB
a
The truth of a negation
Propositional Logic
Negation
Conditional
illa
JB
as
JB
as
illa
si
lla
JB
a
Conditional Statements
Logic
J.M.Basilla
illa
illa
JB
as
The statement P , is called the hypothesis or
antecedent of the conditional statement.
JB
as
JB
as
illa
A conditional statement is usually stated in the form ”
If P then Q.”
The statement Q is called the conclusion or
consequent of the conditional statement.
illa
JB
as
illa
A conditional statement ”If P then Q.” asserts that Q
becomes true the moment P becomes true.
However, it does not assert anything if P is false.
JB
as
JB
as
illa
In symbol, ”If P then Q.” is written as P → Q.
An example:
If you study hard, then you will graduate with honors.
Statements
Propositional Logic
Negation
Conditional
illa
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
illa
Statements
JB
as
p =⇒ q
T
F
T
T
illa
q
T
F
T
F
JB
as
JB
as
illa
JB
as
illa
p
T
T
F
F
JB
as
JB
as
illa
si
lla
JB
a
The truth of a conditional
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
JB
as
JB
a
The different form of conditional statements
Logic
illa
If you study hard then you will graduate
with honors.
P implies
Q.
Studying hard implies that you will graduate with honors.
JB
as
illa
All P are Q.
illa
If P then Q.
JB
as
as
JB
JB
as
JB
as
illa
P : You study hard.
Q : You will graduate with honors.
illa
JB
as
illa
J.M.Basilla
All those who study hard graduate with
honors.
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
Converse
Inverse
Contrapositive
JB
as
JB
a
Statements related to A → B.
Logic
B→A
∼ A →∼ B
∼ B →∼ A
J.M.Basilla
illa
illa
JB
as
Let
P
Q
JB
as
JB
as
illa
If it is an IBM PC then it is a computer. True
= It is an IBM PC.
= It is a computer.
The given conditional is of the form P → Q.
illa
If it is a computer then it is an IBM PC.
False
JB
as
illa
JB
as
JB
as
illa
Converse
Inverse
If it is not an IBM PC then it is not a
computer. False
Contrapositive
If it is not a computer then it is not an
IBM PC. True
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
Logic
B→A
∼ A →∼ B
∼ B →∼ A
J.M.Basilla
Let
P
Q
illa
JB
as
JB
as
illa
If x is an even number then the last digit of x is
2. False
JB
as
illa
Converse
Inverse
Contrapositive
JB
as
JB
a
Statements related to A → B.
= x is even.
= The last digit of x is 2.
illa
If the last digit of x is 2 then x is even.
True
JB
as
JB
as
JB
as
Converse
illa
illa
The given conditional is of the form P → Q.
Inverse
If x is not even then the last digit of x
is not 2. True
Contrapositive
If the last number of x is not 2 then x
is not even. False
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
Converse
Inverse
Contrapositive
JB
as
JB
a
Statements related to A → B.
Logic
B→A
∼ A →∼ B
∼ B →∼ A
J.M.Basilla
illa
illa
JB
as
Let
P
Q
JB
as
JB
as
illa
All students are diligent individuals. False
= x is a student.
= x is diligent.
The given conditional is of the form P → Q.
illa
All diligent individuals are students.
False
JB
as
illa
JB
as
JB
as
illa
Converse
Inverse
All none students are not diligent.
False
Contrapositive
All non-diligent individuals are nonstudents. False
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
Logic
B→A
∼ A →∼ B
∼ B →∼ A
J.M.Basilla
Let
P
Q
illa
JB
as
JB
as
illa
If two lines are perpendicular then two lines form
a right angle. True
JB
as
illa
Converse
Inverse
Contrapositive
JB
as
JB
a
Statements related to A → B.
= Two lines are perpendicular.
= Two lines form a right angle.
illa
If two lines form a right angle then the
two lines are perpendicular True
JB
as
JB
as
JB
as
Converse
illa
illa
The given conditional is of the form P → Q.
Inverse
If two lines are not perpendicular then
they do not form a right angle. true
Contrapositive
If two lines do not form a right angle
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
JB
as
JB
a
Equivalent conditional statements
illa
JB
as
JB
as
illa
The truth value of the inverse and the converse are
always the same.
illa
JB
as
illa
The converse is the contrapositive of the inverse.
conditional If it is an IBM PC then it is a true
computer.
contrapositive If it is not a computer then it is true
not an IBM PC.
inverse
If it is not an IBM PC then it is false
not a computer.
converse If it is a computer then it is an false
IBM PC.
JB
as
JB
as
illa
JB
as
illa
The truth value of the conditional and the
contrapositive are always the same
Logic
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
illa
JB
as
illa
si
lla
JB
as
JB
a
Equivalent conditional statements
illa
JB
as
JB
as
illa
The truth value of the inverse and the converse are
always the same.
illa
JB
as
illa
The converse is the contrapositive of the inverse.
conditional If x is an even number then the false
last digit of x is two.
false
contrapositive If the last digit of x is two then x
is even.
inverse
If x is not an even number then true
the last digit of x is not two.
converse If the last digit of x is two then x true
is even
JB
as
JB
as
illa
JB
as
illa
The truth value of the conditional and the
contrapositive are always the same
Logic
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
illa
illa
false
false
Logic
J.M.Basilla
Statements
false
Propositional Logic
Negation
JB
as
illa
JB
as
illa
JB
as
illa
JB
as
illa
JB
as
illa
conditional All students are diligent.
contrapositive All those not diligent are not students.
inverse
All none students are not diligent.
converse All those diligent are students.
as
JB
JB
as
JB
as
illa
si
lla
JB
a
Biconditional statements
Conditional
false
illa
Logic
true
J.M.Basilla
true
Statements
illa
Propositional Logic
Negation
JB
as
illa
JB
as
illa
JB
as
illa
JB
as
illa
JB
as
illa
conditional If two lines are perpendicular
they form a right angle.
contrapositive If two lines do not form a right
angle they are not perpendicular.
inverse
If two lines are not perpendicular then they do not form a right
angle.
converse If two lines form a right angle
then they are perpendicular.
as
JB
JB
as
JB
as
illa
si
lla
JB
a
Biconditional statements
Conditional
true
true
illa
JB
as
JB
as
illa
si
lla
JB
a
Biconditional statements
In symbol, P ↔ Q.
illa
JB
as
illa
These type of conditional are called biconditional.
JB
as
JB
as
illa
In the last two examples, the conditional, inverse,
converse and contrapositive all have the same truth
value.
Read as, P if and only if Q.
Equivalently, P and Q are equivalent.
illa
JB
as
illa
JB
as
JB
as
illa
Used in definitions.
Logic
J.M.Basilla
Statements
Propositional Logic
Negation
Conditional
JB
as
Logic
J.M.Basilla
illa
JB
as
illa
JB
as
illa
Statements
JB
as
p ⇐⇒ q
T
F
F
T
illa
q
T
F
T
F
JB
as
JB
as
illa
JB
as
illa
p
T
T
F
F
illa
JB
as
illa
si
lla
JB
a
The truth of a biconditional
Propositional Logic
Negation
Conditional