Logic Review. FORMAT Format Part I 30 questions 2.5 marks each Total 30 x 2.5 = 75 marks Part II 10 questions Answer only 5 of them! Total 5 x 5 marks.

Slides:



Advertisements
Similar presentations
TRUTH TABLES Section 1.3.
Advertisements

Computing Truth Value.
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Truth-Tables. Recap Deductive Validity We say that an argument is deductively valid when it has the following property: If the premises of the argument.
Logic & Critical Reasoning
CS1502 Formal Methods in Computer Science Lecture Notes 3 Consequence Rules Boolean Connectives.
Sentential Logic 2. REVIEW Deductive Validity We say that an argument is deductively valid when it has the following property: If the premises of the.
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Logic ChAPTER 3 1. Truth Tables and Validity of Arguments
Truth Trees Intermediate Logic.
DEDUCTIVE REASONING: PROPOSITIONAL LOGIC Purposes: To analyze complex claims and deductive argument forms To determine what arguments are valid or not.
Boolean Algebra Computer Science AND (today is Monday) AND (it is raining) (today is Monday) AND (it is not raining) (today is Friday) AND (it is.
Today’s Topics n Review Logical Implication & Truth Table Tests for Validity n Truth Value Analysis n Short Form Validity Tests n Consistency and validity.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
The semantics of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of truth-value assignments   A truth-value assignment:
Propositional Logic USEM 40a Spring 2006 James Pustejovsky.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
Phil 120 week 1 About this course. Introducing the language SL. Basic syntax. Semantic definitions of the connectives in terms of their truth conditions.
Tweedledum: “I know what you’re thinking, but it isn’t so. No how.” Tweedledee: “Contrariwise, if it was so, it might be; and if it were so, it would be;
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Homework 3.
3.2 – Truth Tables and Equivalent Statements
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Validity: Long and short truth tables Sign In! Week 10! Homework Due Review: MP,MT,CA Validity: Long truth tables Short truth table method Evaluations!
Elementary Logic PHIL Intersession 2013 MTWHF 10:00 – 12:00 ASA0118C Steven A. Miller Day 4.
The Foundations: Logic and Proofs
Propositional Logic.
Intro to Discrete Structures
1.1 Sets and Logic Set – a collection of objects. Set brackets {} are used to enclose the elements of a set. Example: {1, 2, 5, 9} Elements – objects inside.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Truth-Tables. Midterm Grades Grade Distribution.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Valid and Invalid Arguments
1 Propositional Logic Proposition 2 Propositions can be divided into simple propositions and compound propositions. A simple (or basic) proposition is.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Predicate Logic. TRUTH-TABLE REMINDERS The problem people had the most trouble with was 1e: construct a truth-table for: (P & (~Q & R)) Many of you only.
Truth Tables and Validity Kareem Khalifa Department of Philosophy Middlebury College pqrSp v qr & s~(p v q)~p~q~p & ~q~(p v q) -> (r & s) (~p & ~q) ->
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 3.2 Truth Tables.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Boolean Algebra. Logical Statements A proposition that may or may not be true:  Today is Monday  Today is Sunday  It is raining.
Chapter 7 Logic, Sets, and Counting
Chapter 3: Semantics PHIL 121: Methods of Reasoning March 13, 2013 Instructor:Karin Howe Binghamton University.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
MLS 570 Critical Thinking Reading Notes for Fogelin: Propositional Logic Fall Term 2006 North Central College.
Introductory Logic PHI 120 Presentation: "Natural Deduction – Introduction“ Bring this book to lecture.
CS1022 Computer Programming & Principles Lecture 1 Logic and Proof.
PHIL 120: Third meeting I. I. What to know for Test 1 (in general terms). II. II. Symbolizing compound sentences (cont’d) a. a. Paying attention to English.
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Boolean Algebra Monday/Wednesday 7th Week. Logical Statements Today is Friday AND it is sunny. Today is Friday AND it is rainy. Today is Monday OR it.
Introductory Logic PHI 120 Presentation: "Truth Tables – Validity vs. Soundness" This PowerPoint Presentation contains a large number of slides, a good.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Formal Test for Validity. EVALUATIONS Evaluations An evaluation is an assignment of truth-values to sentence letters. For example: A = T B = T C = F.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Notes - Truth Tables fun, fun, and more fun!!!!. A compound statement is created by combining two or more statements, p and q.
Statement Forms and Material Equivalence Kareem Khalifa Department of Philosophy Middlebury College.
Metalogic. TWO CONCEPTIONS OF LOGICAL CONSEQUENCE.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 25.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
More Proofs. REVIEW The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
{P} ⊦ Q if and only if {P} ╞ Q
Midterm Discussion.
Presentation transcript:

Logic Review

FORMAT

Format Part I 30 questions 2.5 marks each Total 30 x 2.5 = 75 marks Part II 10 questions Answer only 5 of them! Total 5 x 5 marks each = 25 marks

Part I The questions in Part I are multiple choice. About 8-10 out of the questions in Part I (30 total) are about argument analysis and logic. ~20-25% of the total marks.

Part II Part II contains mostly logic questions, about 9 out of 10. You are only required to answer 5 of the 10 questions. If you answer more than 5, I will only mark the first 5. Part II is much harder than Part I.

LOGICAL CONCEPTS

Logical Concepts on the Final About 6/30 multiple choice questions deal with argument analysis (identification of premises and conclusions) and logical concepts (validity, soundness, logical equivalence, etc.). Therefore mastering these concepts can go a long way toward the grade you get on the Final, up to about 15%.

What to Study Read Joe Lau’s modules on Argument Analysis and Meaning Analysis (recommended reading, Week 14). Read the powerpoint slides from 25/4 Read the logic slides in Week 5.

Arguments Arguments (in philosophy) are a collection of premises (possibly zero) given in support of a conclusion.

Argument Analysis You will be asked to identify premises and conclusions in questions, and to identify hidden assumptions. These questions are not hard if you think about them and know the ideas.

Validity To say that an argument is valid is to say: If all of the premises of the argument are true, then the conclusion must be true.

Validity For the final you should memorize the definition of validity. Furthermore, you should be able to answer some basic questions about the definition.

Examples Can a valid argument have false premises? Can it have a true conclusion? Can it have false premises and a false conclusion? Can it have true premises and a false conclusion?

Inductive Validity You need to know the definition of inductively valid/ inductively strong arguments. First: inductively valid = inductively strong. An argument is inductively strong if when all the premises are true, the conclusion is very likely to be true (has a high probability of being true).

Note If the final asks you about a “valid argument” assume that it means “deductively valid argument.” We will always say “inductively valid (strong)” when we mean that.

Logical Equivalence Two sentences A and B are logically equivalent when A ├ B and B ├ A. In other words, A and B are logically equivalent when “A therefore B” and “B therefore A” are both valid arguments. In other words A is true if and only if B is true.

Soundness To say that an argument is sound is to say: The argument is valid AND it has true premises. You need to memorize this definition and be able to answer some basic questions about it. Can a sound argument have a false conclusion? Etc.

SENTENTIAL LOGIC

SL on the Final There aren’t a lot of multiple choice questions about SL (there are only 30 questions total), but there are several short answer questions (Part II) that involve (or can involve) SL. Knowing SL perfectly can count for up to about 20% of the marks on the final.

What to Study Read Joe Lau’s Sentential Logic Module (on the readings list for Week 5). Read all the powerpoint slides from Weeks 5 and 6. If you know all that material, you are as well prepared for the logic questions as you can be.

Difficulty Some of the questions are hard, and even made me stop and think about them. They are supposed to be like that. Difficult questions help differentiate students. The exam will be curved and the same number of students will get A’s in this class as in any other class.

Proofs There are two proofs on the optional section. They are not easy, but if you are good at proofs, you might consider answering them. If you don’t like proofs don’t bother studying them. You can always choose 5 questions on Part II that do not involve proofs.

Translations You need to memorize the standard translations for the logical connectives into English, both because you will be asked questions about which English sentence translates some predicate logic sentence and because you will be asked which predicate logic sentence translates some English sentence.

Standard Translations ~A: not A, A is false, A is not true, it’s not the case that A (A & B): A and B, A but B, although A, B (~A & ~B): neither A nor B (A v B): A or B, A unless B (A → B): if A then B, A only if B, B if A (A ↔ B): A if and only if B

“If” and “Only if” The most difficult part of translations is “if” and “only if” and “if and only if” “If A then B” “A only if B” “B if A”: (A → B) “If B then A” “B only if A” “A if B”: (B → A) “A if and only if B” “B if and only if A”: (A ↔ B)

Example Problem (((P v Q) v R) → (S v (T & U)))… a.…is true if S is true b.…is true if T and U are false c.…is true if R is false d.…is false only if S is false

Truth-Table Won’t Work This seems like a hard problem at first sight. A truth-table would take too much time to construct. It would have to have 2 x 2 x 2 x 2 x 2 x 2 = 64 rows! Let’s consider it intelligently.

True Conditionals When is (((P v Q) v R) → (S v (T & U))) true? It’s a conditional, so it’s true whenever either ((P v Q) v R) is false Or (S v (T & U)) is true

The Material Conditional φψ(φ → ψ) TTT TFF FTT FFT

False Conditionals Additionally (((P v Q) v R) → (S v (T & U))) is false when: ((P v Q) v R) is true And (S v (T & U)) is false

Example Problem (((P v Q) v R) → (S v (T & U)))… a.…is true if S is true b.…is true if T and U are false c.…is true if R is false d.…is false only if S is false

Disjunction If S is true, then (S v (T & U)) is true, because disjunctions are true when either disjunct is true.

Disjunction φψ(φ v ψ) TTT TFT FTT FFF

Not (a) So if S is true, (S v (T & U)) is true. But then (((P v Q) v R) → (S v (T & U))) could be false, if ((P v Q) v R) is false. So (a) is not the right answer.

Example Problem (((P v Q) v R) → (S v (T & U)))… a.…is true if S is true b.…is true if T and U are false c.…is true if R is false d.…is false only if S is false

Not (b) If T and U are false, then (T & U) is false. But this tells us nothing about whether (S v (T & U) is true or false, because if S is false, it is false and if S is true it is true. Therefore we don’t know whether (((P v Q) v R) → (S v (T & U))) is true or false. So (b) is wrong.

Example Problem (((P v Q) v R) → (S v (T & U)))… a.…is true if S is true b.…is true if T and U are false c.…is true if R is false d.…is false only if S is false

Not (c) If R is false, then ((P v Q) v R) can be either true or false. For example, it will be true if P is true or if Q is true, and only false when P and Q are both false. Assuming R is false, ((P v Q) v R) might be true, and therefore the whole sentence could be false (antecedent true, consequent false).

Example Problem (((P v Q) v R) → (S v (T & U)))… a.…is true if S is true b.…is true if T and U are false c.…is true if R is false d.…is false only if S is false

Why (d)? By process of elimination, you know the answer is (d). But why is it the right one? “A only if B” means if A, then B. (((P v Q) v R) → (S v (T & U))) is false only if S is false If (((P v Q) v R) → (S v (T & U))) is false, then S is false.

Why (d)? If (((P v Q) v R) → (S v (T & U))) is false Then ((P v Q) v R) is true And (S v (T & U)) is false. If (S v (T & U)) is false then (T & U) is false And S is false.

Example Problem 2 Use a truth-table to determine whether a logically entails b. a.(A & B) b.~(~A v ~B)

Make Truth-Table for (A & B) AB(A&B) TT TF FT FF

Copy A, B AB(A&B) TT TF FT FF

Copy A, B AB(A&B) TTTT TFTF FTFT FFFF

Use TT for & AB(A&B) TTTT TFTF FTFT FFFF

Use TT for & AB(A&B) TTTTT TFTFF FTFFT FFFFF

Now Make TT for ~(~A v ~B) AB~(~Av~B) TT TF FT FF

Copy A, B AB~(~Av~B) TT TF FT FF

Copy A, B AB~(~Av~B) TTTT TFTF FTFT FFFF

Use TT for ~ AB~(~Av~B) TTTT TFTF FTFT FFFF

Use TT for ~ AB~(~Av~B) TTFTFT TFFTTF FTTFFT FFTFTF

Use TT for v AB~(~Av~B) TTFTFT TFFTTF FTTFFT FFTFTF

Use TT for v AB~(~Av~B) TTFTFFT TFFTTTF FTTFTFT FFTFTTF

Use TT for ~ AB~(~Av~B) TTFTFFT TFFTTTF FTTFTFT FFTFTTF

Use TT for ~ AB~(~Av~B) TTTFTFFT TFFFTTTF FTFTFTFT FFFTFTTF

Truth-Table Test Now we can do the truth-table test for validity. Remember that an argument is valid when IF the premises are true, THEN the conclusion is true.

Write Down Possibilities AB TT TF FT FF

Write Down TT for Premises AB(A & B) TTT TFF FTF FFF

Write Down TT for Conclusion AB(A & B)~(~A v ~B) TTTT TFFF FTFF FFFF

Make Sure Conclusion T when Premises T AB(A & B)~(~A v ~B) TTTT TFF*F FT F FF F

Consistency A set of sentences is consistent if all of the sentences can be true at the same time. (Some or all of them might in fact be false, but they all CAN be true together). A set of sentences is inconsistent if they CANNOT all be true at the same time.

Example Problem #3 Consider the following three sentences. 1. Sam will be sad unless we come to his party. 2. We will come to Sam’s party if and only if there is food. 3. Sam won’t have food at the party. Are they logically consistent all together?

Using SL Translate: S = Sam is sad C = We come to Sam’s party F = There is food at the party

Using SL Translate: 1.(S v C) 2.(C ↔ F) 3.~F

Solution SCF(S v C)(C ↔ F)~F TTTTTF TTFTFT TFTTFF TFFTTT FTTTTF FTFTFT FFTFFF FFFFTT

Solution SCF(S v C)(C ↔ F)~F TTTTTF* TTFT T TFTT TFFTTT FTTTT FTFT T FFT FFF TT

Proofs I advise you to avoid the proofs unless you are already pretty confident about your ability to do them. Advance warning: the two optional proofs both involve using ~I or ~E. These rules are tricky, so if you plan on considering the proofs, commit them to memory.

~I (Negation Introduction) If you have assumed ψ, and you have derived (φ&~φ), then you can write down ~ψ, depending on everything (φ&~φ) depends on except ψ.

(P v P) ├ P 11. (P v P)A 22. ~PA (for ~E) 1,23. P1 vE 1,24. (P & ~P)2,3 &I 25. P2,4 ~E

PREDICATE LOGIC

Predicate Logic on the Final There are fewer predicate logic questions on the final than SL questions. About 2 multiple choice and 2 short answer. So between 5% and 15% of your grade, depending on which questions you choose on the short answer.

What to Study The lecture slides on predicate logic. Joe Lau’s module on predicate logic, especially PL02 Quantifiers. The predicate logic questions are surprisingly not as difficult as you would think, so studying PL is a good investment.

Equivalences I’d highly recommend committing to memory these very easy-to-remember logical equivalences: ∀ yDy ≡ ~ ∃ y~Dy ~ ∀ yDy ≡ ∃ y~Dy ∀ y~Dy ≡ ~ ∃ yDy ~ ∀ y~Dy ≡ ∃ yDy