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 The argument is valid. However, the conclusion is false. For further clarification, see lecture note. valid q 5 Completeness and Soundness Theorems An argument is valid if and only if it is derivable. Validity: Truth of premise guarantees truth of conclusion Derivability: kinda like we derive fluid, according to some rules of inference 6 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) 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) 11 Are these arguments/reasoning valid or invalid? Argument 1 Argument 2 pq pq q p valid? valid? p q Argument 3 Argument 4 pq pq p q valid? valid? q p 12 Argument 1: Are these arguments/reasoning valid or invalid? Premises: Conclusion: If it rains, then the garden is wet. pq The garden is wet. q It rains. invalid p Activity: Class Discussion Ex) Premises: If x = 2p, then sin x = 0. sin x = 0. Conclusion: Therefore, x = 2p. Invalid e.g., x = p 13 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. p It rains. Conclusion: valid The garden is wet. Activity: pq (next page) q 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. 14 You need to show that all possible cases are true. How to investigate validity of the reasoning (argument) pq p Valid? q Truth Table No valid argument can has true premise and false conclusion. p q p q p p q p q p q T T T T F F F p q p q Logic Derivation p q p q ( p p ) ( q p ) q p q (p q) T T F F T T T F T q p q F T F T T p F (q p) q (q p) q ( q p) q ( q q ) 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 15 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 It does not rain. Conclusion: Conclusion: q Class Discussion If x = 2p, then sin x = 0. x invalid The garden is not wet. Activity: Premises: p 2p. Therefore, sin x 0. Invalid e.g., x = p, sin x 0 18 Argument 4: Are these arguments/reasoning valid or invalid? Premises: Conclusion: If it rains, the garden is wet. The garden is not wet. q It does not rain. valid Activity: Premises: (next page) p Class Discussion If x = 2p, then sin x = 0. sin x Conclusion: pq Valid? 0. Therefore, x 2p. 19 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 x F No valid argument can has true premise and false conclusion. q p q q q p q q p Logic Derivation p q q p p q q p ( p q ) ( q q ) p p q pq T T T F F T T F F T F T ( p q ) p F T T F F T (p q) p F T T T F p q (p q) ( p q ) F p (p q ) p (p p) q p q q p is Tautology? T 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 is q Contra-positive Equivalent valid is p 21 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 22 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) p q pq q p pq pq ( p q) (q r) p r ( p q ) (r s ) ( p r ) qs 24 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 25 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 ? 26 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. 27 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 28 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 29 (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. 30 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 31 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 32 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. 33 If-then Example 34 Necessary and Sufficient Condition Example) The one who graduates, must pass this course. P: Graduator, Q: the one who passes this course. pq What is the relation between P and Q? p q ? p ? q p q ? q ? p p q ? x p q p x 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. 35 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.” 38 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. 39 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 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 Cause of Error? lab 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 42