Transcript conclusions
Logic and Reasoning
1
Objective
Spot valid and invalid reasoning.
Be able to construct a valid reasoning.
Make appropriate predictions based on acceptable premises.
Logically draw conclusions from experimental result.
Statement
VS
Reasoning
Statement – True or False
Reasoning – Valid or Invalid
2
Logic and Reasoning
Premise
Premise
(something assumed
to be true)
If you study hard, you will get A.
You study hard.
Reasoning
Reasoning
You will get A
Conclusion
Conclusion
(something derived
from the premises)
Conclusion/Premise: True/False (T/F)
Reasoning:
Valid/Invalid
(V/I)
In math term,
Premise is called Axiom,
Conclusion is called Theorem, Lemma,
Reasoning is called Proof.
“False conclusion may comes from
invalid reasoning or false premises”.
Only all true premises and
valid reasoning canguarantee
true conclusion.
In experimental science,
Empirical scientists tell us whether statements
are true.
Logicians tell us whether reasoning is valid.
Truth VS Validity
Reasoning
They are not the same.
Premises:
Conclusion
Premises
Truth for statements.
Validity for argument/reasoning.
Dogs have eight legs.
[If x is a dog, then x has eight legs.]
Spooky is a dog.
Conclusion:
Spooky has eight legs.
pq
p
valid
The argument is valid.
However, the conclusion is false.
For further clarification, see lecture note.
q
5
Note
Reasoning
Premises
Conclusion
Valid reasoning does not guarantee a true conclusion.
Invalid reasoning does not guarantee a false conclusion.
A false conclusion does not guarantee invalidity.
True premises and a true conclusion together do not
guarantee validity.
No valid argument can have true premise and false conclusion.
Some Important Equivalent
… from checking the truth table …
(p)
p
pq
q p
pq
q p
( p q) r
p (q r )
( p q) r
p (q r )
p (q r )
( p q) ( p r )
p (q r )
( p q) ( p r )
5.
pq
p q
6. Contra-positive
pq
q p
7.
p q
8.
pq
1. Double Negation
2. Commutative Law
3. Associative Law
4. Distributive Law
9. De Morgan’s Law
10.
11.
p q
( p q)
p q
( p q)
(q ) p
q p
q p
p (q )
( p q) (q p)
( p q)
( p q)
pq
p q
p q
( p q) (p q)
11
Are these arguments/reasoning valid or invalid?
Argument 1
pq
q
Argument 2
pq
p
valid?
p
Argument 3
pq
p
valid?
q
Argument 4
valid?
q
pq
q
valid?
p
13
Argument 1: Are these arguments/reasoning valid or invalid?
Premises:
If it rains, then the garden is wet.
The garden is wet.
Conclusion:
invalid
p
It rains.
Activity:
pq
q
Class Discussion
Ex)
Premises:
If x = 2p, then sin x = 0.
sin x = 0.
Conclusion:
Therefore, x = 2p.
Invalid
e.g., x = p
14
Showing one counter-example is enough for confirming invalid reasoning.
Argument 2: Are these arguments/reasoning valid or invalid?
Premises:
If it rains, the garden is wet.
It rains.
Conclusion:
valid
The garden is wet.
Activity:
pq
p
q
(next page)
Class Discussion
Ex)
Premises:
If x = 2p, then sin x = 0.
x = 2p.
Conclusion:
Valid?
Therefore, sin x = 0.
Showing one true examples is not enough for confirming invalid reasoning.
15
You need to show that all possible cases are true.
How to investigate validity
of the reasoning (argument)
Truth
Table
pq
p
No valid argument can has
true premise and false conclusion.
q
T
T
T
T
F
F
F
T
T
F
F
T
T
T
F
T
F
T
F
T
p q p q
Logic
Derivation
p q p q p p q p q
p
Valid?
q
p q p q
( p p ) ( q p ) q
p q
(p q)
F (q p) q
(q p) q
( q p ) q
q p q
( q q ) p
T p
T
p q p q is Tautology?
Try to find Counter-Example,
then show the Contradiction
p
T
x
q
p q
T
T
T
Contradiction
F
p q
T
16
Proof of Valid Reasoning
P Q
by Contradiction Method
No valid argument can have true premise and false conclusion.
P Q
is invalid
at least one case that
P Q
T
[Using Contra-positive Equivalence]
no one case that
P Q
T
P Q is valid
F
Proof by Contradiction Method
Assume that there is one case that
P Q
T
F
Then show that this is not possible – there is no such case by (finding) contradiction.
F
Valid Reasoning (Argument) P Q
A reasoning (an argument)
P Q
is said to be valid if and only if, by virtue of logic,
the truth of the premise P guarantees the truth of the conclusion Q,
if P is true, Q is necessarily/always true,
P Q
is a tautology.
In this case, we write
PQ
A reasoning that is not valid is said to be invalid.
Argument 3: Are these arguments/reasoning valid or invalid?
Premises:
If it rains, the garden is wet.
pq
p
It does not rain.
invalid
Conclusion:
Activity:
Premises:
Class Discussion
If x = 2p, then sin x = 0.
x
Conclusion:
q
The garden is not wet.
2p.
Therefore, sin x
0.
Invalid
e.g., x = p, sin x 0
19
Argument 4: Are these arguments/reasoning valid or invalid?
Premises:
If it rains, the garden is wet.
pq
q
The garden is not wet.
Conclusion:
It does not rain.
Activity:
Premises:
(next page)
Class Discussion
If x = 2p, then sin x = 0.
sin x
Conclusion:
valid
p
Valid?
0.
Therefore, x
2p.
20
How to investigate validity
of the reasoning (argument)
pq
q
Valid?
p
Try to find Counter-Example, then show the Contradiction
T
Contradiction
F
p
q
q p
F
T
Truth
Table
p
T
T
p q q
p
p
q
pq
T
T
T
F
F
T
T
F
F
T
F
T
F
T
T
F
F
T
F
F
T
T
T
T
p q q p is Tautology?
x
F
No valid argument can has
true premise and false conclusion.
q p q q
q
Logic
Derivation
p q
(p q)
p q q p
p q q p
( p q ) ( q q ) p
( p q ) F p
( p q ) p
(p q ) p
(p q ) p
(p p ) q
T q
T
How to investigate validity
of the reasoning (argument)
pq
Argument2
(already
proofed)
p
valid
p q
q p
pq
qp
q
valid?
p
q
Contra-positive Equivalent
valid
is q
is p
22
Rule of Inference
pq
pq
Modus
Ponendo
Ponens
p
Modus
Tollendo
Tollens
valid
q
q
valid
p
Logical Fallacies
Fallacy of The Converse
Fallacy of The Converse
pq
pq
q
p
p
q
23
Some Important Implications
1. Modus Ponens
( p q) p
q
2. Modus Tollens
( p q) q
p
pq
p
pq
q
p
pq
q
pq
3. Simplification
4. Addition
5. Modus Tollendo Ponens
6. Hypothetical Syllogism
7. Biconditional-Conditional
8. Conditional- Biconditional
9. Constructive dilemma
( p q) p
q
( p q) q
p
( p q) (q p)
pq
pq
q p
pq
pq
( p q) (q r)
p r
( p q ) (r s ) ( p r )
qs
31
Logically Draw Conclusions
Premises:
She does not like A and she likes B.
She does not like B or she likes U.
If she likes U, then U are happy.
Conclusions:
She likes who?
and
Who are happy?
Activity:
Class Discussion
36
A
=
She likes A.
B
=
She likes B.
U
=
She likes U.
H
=
U are happy.
Premises:
She does not like A and she likes B.
She does not like B or she likes U.
If she likes U, then U are happy.
Conclusions:
A B
B U
U H
?
37
A B
……… (1)
B U
……… (2)
U H
From (1) with Simplification
From (2) and (5)
with Modus Tollendo Ponens
From (3) and (6)
with Modus Ponens
Premises are assumes
to be true.
……… (3)
A
……… (4)
B
……… (5)
She likes B.
U
……… (6)
She likes U.
H
……… (7)
She doesn’t like A.
U are happy.
38
Logically Draw Conclusions
Premises:
If it rains or it is humid, then I wear blue shirt.
If it is cold, then I do not wear blue shirt.
It rains.
Conclusions:
What is the weather condition?
What color of the shirt I wear?
Activity:
Class Discussion
39
R
=
It rains.
H
=
It is humid.
B
=
I wear blue shirt.
C
=
Premises:
It is cold.
If it rains or it is humid, then I wear blue shirt.
If it is cold, then I do not wear blue shirt.
It rains.
Conclusions:
(R H ) B
C B
R
?
Activity:
Class Discussion
40
(R H ) B
……… (1)
C B
It rains
R
……… (2)
Premises are assumed
to be true.
……… (3)
From (3) with addition
From (1),(4) with Modus Ponens
From (2),(5) with Modus Tollens
R H
……… (4)
B
……… (5)
C
……… (6)
I wear blue shirt.
It is not cold.
However, we can’t determine the truth value of H.
(we don’t know whether it is humid or not.
41
Logically Draw Conclusions
Premises:
If I am bored, then I go to a movie.
If I am not bored, then I go to a library.
If I do not go to a movie, then I do not go to a library.
Conclusions: Where do I go?
Activity:
Class Discussion
42
B
=
I am bored.
M
=
I go to a movie.
L
=
I go to a library.
Premises:
If I am bored, then I go to a movie.
If I am not bored, then I go to a library.
If I do not go to a movie, then I do not go to a library.
Conclusions:
BM
B L
M L
?
Activity:
Class Discussion
43
BM
B L
M L
……… (1)
……… (3)
From (3) with Contrapositive
From (2),(4) with
Hypothetical Syllogism
By Tertium non datur
(Principle of Excluded Middle)
From (1),(5),(6) with
Constructive dilemma
Premises are assumed
to be true.
……… (2)
LM
……… (4)
B M
……… (5)
B B
M
……… (6)
……… (7)
I goes to a movie.
44
Necessary and Sufficient Condition
Example) The one who graduates, must pass this course.
P: Graduate,
Q: the one who passes this course.
pq
What is the relation
between P and Q?
p q
?
x
p
q p
x
q
p ? q
p q
?
q ? p
p ? q
P is necessary or sufficient condition of Q ?
P is sufficient condition of Q.
Q is necessary or sufficient condition of P ?
Q is necessary condition of P.
49
Example of statement usually used in conversation
Example)
P only if Q
“จะเป็น p ได้ ต้องเป็น q เท่ านั้น”
q p
p
q
pq
แต่การที่เป็ น q ไม่ได้แปลว่าจะเป็ น p
โดยอัตโนมัติ
การที่ไม่ใช่ q นั้น แสดงว่าไม่ใช่ p
q p
What is necessary / sufficient condition of what ?
P is sufficient condition of Q.
Q is necessary condition of P.
Example of statement usually used in conversation
Example)
q
P if and only if Q
q p
P if Q
p
P only if Q
pq
q
p
pq
Some Logic: Necessary and Sufficient Conditions (Deductive Reasoning)
Implication (Conditional Statement): p q
p
p
p
q
pq
(~q) (~p)
Equivalence
If p, then q.
q if p.
q
q
If not q, then not p.
q whenever p
p only if q.
q is a necessary condition for p.
If not q, then not p.
p is a sufficient condition for q.
If p, then q.
Converse of p q:
qp
Contra-positive of p q:
~q~p
p q and its contra-positive ~ q ~ p are equivalent. That is:
If p q is true, ~q ~ p is also true.
If p q is false, ~ q ~ p is also false.
On the other hand, p q does not imply q p.
The truth of p q does not automatically guarantee the truth of q p.
Note: There is also “inductive reasoning.”
52
Conditional Statements: If p, then q:
PV = mRT
PV mRT
(If/Under-the-condition-of/) For a fixed gas and mass of the gas,
(if/under-the-condition-of/) and for a fixed temperature:
If volume increases, then pressure decreases.
Vi Pd
If pressure does not decrease, then volume does not increase.
Pd Vi
Pressure decreases or volume does not increase.
Vi Pd
For a fixed gas and mass of the gas, and for a fixed pressure:
If temperature decreases, then volume decreases.
If volume does not decreases, then temperature doest not decreases.
Temperature does not decreases, or volume decreases.
53
Real Life Example
Objective:
yB f ( P ; ... ; ...)
by experiment
varying P
y
By the way,
the experimental result
should be ….?
Premises
Design Exp:
…..
Doing Exp:
…..
Result:
P
Basic Knowledge
Of Mech Material
yB
conclusion
Predicted Result
lab
Prediction of Expected Result
Predicted
Result
Basic Knowledge
Of Mech Material
yB and P should
have a linear
relationship.
yB f ( P ) ?
If …
some
assumptions
y
…
Boundary Conditions
( x 0, y 0), ( x L, y 0),
L dy
( x , 0)
2 dx
In the case of 0 x1
L
2
d2y 1 M
2
dx EI
1 P x3
y
C1 x 2 C2
EI 2 6
Px x 2 L2
y
EI 12 16
If …
some assumptions
…
V
P
2
M
x1
P
M ( x1 ) x1
2
L
where 0 x1
2
yB y x L
4
11 PL3
2912 EI
57
Px x 2 L2
y
EI 12 16
d2y 1 M
dx 2 EI
11 PL3
yB
2912 EI
P
P
theory
theory
Discussion:
lab
yB
yB
inaccurate E
Not likely possible
maybe possible
Eused ? Ereal
inaccurate I
Not likely possible
maybe possible
I used ? I real
inaccurate L
Not likely possible
maybe possible
Lused ? Lreal
inaccurate Position C
Not likely possible
maybe possible
ACused > ? ACreal
Cause of Error?
inaccurate load P
maybe possible
lab
maybe possible
Preal Pused constant
Preal Pused jconstant
Err in support dish
Err in mass of each dish
Rule of Inference
pq
pq
Modus
Ponendo
Ponens
p
Modus
Tollendo
Tollens
valid
q
p q
q
valid
p
q p
- Investigate the validity of argument (reasoning).
- Make a theoretical predictions. //
Logically draw conclusions.
- Hypothesis Testing
60