Oh, a break! A logic puzzle   In a mythical (?) community, politicians always lie and non-politicians always tell the truth. A stranger meets 3 natives.

Slides:



Advertisements
Similar presentations
Copyright 2008, Scott Gray1 Propositional Logic 4) If.
Advertisements

Logic & Critical Reasoning
Introduction to Proofs
Hypotheticals: The If/Then Form Hypothetical arguments are usually more obvious than categorical ones. A hypothetical argument has an “if/then” pattern.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Semantics of SL and Review Part 1: What you need to know for test 2 Part 2: The structure of definitions of truth functional notions Part 3: Rules when.
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic.
For Wednesday, read Chapter 3, section 4. Nongraded Homework: Problems at the end of section 4, set I only; Power of Logic web tutor, 7.4, A, B, and C.
CS128 – Discrete Mathematics for Computer Science
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
1 2 We demonstrate (show) that an argument is valid deriving by deriving (deducing) its conclusion from its premises using a few fundamental modes of.
Happy Birthday, Darwin!. Show that {(A v ~C)  ~B, [~B  (Q &~Q)], ~C & A} ⊦ is inconsistent in SD 1 (A v ~C)  ~BA 2 ~B  (Q & ~Q)A 3 ~C & AA.
PHIL 120: Jan 8 Basic notions of logic
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
Proving the implications of the truth functional notions  How to prove claims that are the implications of the truth functional notions  Remember that.
Lecture 6 1. Mental gymnastics to prepare to tackle Hume 2. The Problem of Induction as Hume argues for it 1. His question 2. His possible solutions 3.
Chapter 3 Propositional Logic
The semantics of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of truth-value assignments   A truth-value assignment:
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 6 Limitations of propositional logic Introduction to predicate logic Symbols, terms and formulae, Parse.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
WARM UP EXERCSE Consider the right triangle below with M the midpoint of the hypotenuse. Is MA = MC? Why or why not? MC B A 1.
Valid Arguments Decide if each argument is valid. If the stones are rolling, they are not gathering moss. If the stones are not gathering moss, they are.
SD: Natural Deduction In S. Valid or Not? 1.If Carol drives, Ann will go to the fair 2.Carol will drive, if Bob goes and pays for gas 3.Bob will pay for.
Methods of Proof involving  Symbolic Logic February 19, 2001.
Chapter 3 – Set Theory  .
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
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.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
Chapter Five Conditional and Indirect Proofs. 1. Conditional Proofs A conditional proof is a proof in which we assume the truth of one of the premises.
Natural Deduction System for First Order Logic Student: Wei Lei Instructor: W. M. Farmer Department of Computing and Software McMaster University, Hamilton,
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Formal Proofs and Boolean Logic Chapter 6 Language, Proof and Logic.
Logic UNIT 1.
Metalogic. TWO CONCEPTIONS OF LOGICAL CONSEQUENCE.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 25.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Analyzing Arguments Section 1.5. Valid arguments An argument consists of two parts: the hypotheses (premises) and the conclusion. An argument is valid.
Study Questions for Quiz 5 The exam has four parts: 1. (32 points) Truth Tables 2. (48 points) Truth Trees 3. (10 points) Review of Highly Recommended.
1 Lecture 3 The Languages of K, T, B and S4. 2 Last time we extended the language PC to the language S5 by adding two new symbols ‘□’ (for ‘It is necessary.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
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:
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Truth Tables, Continued 6.3 and 6.4 March 14th. 6.3 Truth tables for propositions Remember: a truth table gives the truth value of a compound proposition.
{P} ⊦ Q if and only if {P} ╞ Q
IMPORTANT!! As one member of our class recognized, there is a major mistake on page 180 of the text where the rule schemas for SD are laid out. It symbolizes.
Introductory Logic PHI 120
CS 270 Math Foundations of CS
Natural Deduction.
Propositional Logic.
Midterm Discussion.
Knowledge and reasoning – second part
The most important idea in logic: Validity of an argument.
Logical and Rule-Based Reasoning Part I
Introducing Natural Deduction
The Main Connective (Again)
Starting out with formal logic
More Derived Rules.
Subderivations.
Derivations overview.
Presentation transcript:

Oh, a break! A logic puzzle   In a mythical (?) community, politicians always lie and non-politicians always tell the truth. A stranger meets 3 natives.   She asks the first native if he is a politician. He answers.   The second native states that the first denied being a politician.   The third native says that the first native is a politician.   How many of these natives are politicians?

  Possible solutions?   None, one, two, or three.   She asks the first native if he is a politician. He answers.   What might he have answered?   Could he answer “No”?   Could he answer “Yes”?

  Given what we’ve found out, have we learned anything about the second native, who said   The first native denied being a politician.   Yes: she is telling the truth, and thus not a politician.   So far, then, we know there are at most two politicians.

  What about the third native, who said “the first native is a politician”?   What are the possibilities?   He’s telling the truth.   He’s lying.   Can we tell which?   Does it matter?

  If he’s lying, he’s a politician and the first native is not.   If he’s telling the truth, then he’s not a politician and the first native is.   So, what we know is that either the first native or the third is lying, and that the other is telling the truth.   So, we know that there is one, and only one, politician.

The syntax of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of derivability   A derivation: a finite number of steps, based on the rules of SD, that demonstrates that some sentence of SL can be derived from some other sentence of SL or set of sentences of SL (including the empty set), using the derivation rules of SD.   Like the truth table method, derivations are an effective method for demonstrating logical status.   SD: the derivation system.   11 rules: for each connective, one rule to introduce it and one rule to eliminate it, plus reiteration.

The syntax of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of derivability (and in this case in the system SD.   Examples:   An argument is valid in SD IFF the conclusion can be derived from the premises in SD.   A sentence is a theorem in SD IFF it can be derived from the empty set.   The only notions not carried over are logical falsehood and logical indeterminacy.

Derivation conventions and rules   Derivations always include one scope line (a vertical line). This indicates what follows (what sentence is derivable using SD) from another because each falls within the scope of that line.   Each line in a derivation is numbered.   If the derivation includes primary assumptions, these form the first rows and are followed by a horizontal line.

Derivation conventions and rules   Every line of a derivation must be justified: it must either be a primary assumption (and noted as such) an auxiliary assumption when the rule calls for one, and noted as such, and/or a sentence for which the rule and line numbers from which it is derived must be cited. Justifications are noted to the right of each line.   The single turnstile ⊦ is used to symbolize derivability.

Derivation conventions and rules   Every line of a derivation must be justified: it must either be a primary assumption (and noted as such) or an auxiliary assumption when the rule calls for one …   4 rules require subderivations, which in turn require a new scope line and an auxiliary assumption.   All subderivations must be discharged in the way they dictate and at the main scope line.

Derivations Show that {A  ~C, A & B} ⊦ ~C A  ~CA A & BA A ~C  E

Derivations Show that {A  ~C, A & B} ⊦ ~C A  ~CA A & BA A2 &E ~C1, 3  E

Rules of SD You have been introduced to R, Reiteration P PR PR This rule is used in derivations that involve a subderivation…

Rules of SD You have been introduced to &E P & Q P & Q P&E P&E

Rules of SD You have been introduced to &I P Q P&Q &I P&Q &I

Rules of SD You have been introduced to  E P  Q P  Q P Q Q  E

Rules of SD Derive C 1. (A & B)  CA 2. AA 3. BA A & B 5. C  E

Rules of SD Derive C 1. (A & B)  CA 2. AA 3. BA A & B2, 3 &I 5. C1, 4  E

Rules of SD Here is the rule  I P____Q P  Q  I P  Q  I Remember: all subderivations must be discharged in exactly the way allowed by a rule!

Derivation strategies Derive A  C 1. A  BA 2. B  C A AA B  E 5. C  E 6. A  C  i

Derivation strategies Derive A  C 1. A  BA 2. B  C A AA B 1, 3  E 5. C 2, 4  E 6. A  C 3-5  i

Rules of SD: vI P or P P v QQ v P

Rules of SD: vI Derive G v H 1. B  GA 2. C & B A B 4. G 5. G v HvI

Rules of SD: vI Derive G v H 1. B  GA 2. C & B A B2 &E 4. G1, 3  E 5. G v H4 vI

Rules of SD: vE P v Q P v Q P---RQ---RR

Rules of SD: vE Derive H 1. G v HA 2. G  HA 3. H  HA GA ---H HAHAHAHA---H H vE

Rules of SD: vE Derive H 1. G v HA 2. G  HA 3. H  HA GA H2, 4  E 6. HA H6 R 8. H 4-5, 6-7 vE

Rules of SD:  E P  Q ORP  Q P  Q ORP  Q PQ PQ Q P  Q P  E

Rules of SD:  E Derive ~M & B 1. C  ~MA 2. C & B A C&E 4. ~M  E 5. B&E 6. ~M & B&I

Rules of SD:  E Derive ~M & B 1. C  ~MA 2. C & B A C2 &E 4. ~M1, 3  E 5. B2 &E 6. ~M & B4, 5 &I

Rules of SD:  i P Q Q P P  Q P  Q

Rules of SD:  I Derive C  D 1. C  DA 2. D  CA C A D 5. DA C 7. C  D  I

Rules of SD:  I Derive C  D 1. C  DA 2. D  CA C A D1, 3  E 5. DA C2, 5  E 7. C  D3-4, 5-6 I

Rules of SD: ~I P Q~Q ~P ~I ~P ~I Both ~ rules make use of recductio ad absurdum

Rules of SD: ~I Derive ~G 1. G  CA 2. ~C & BA GA C 5. ~C 6. ~G~I

Rules of SD: ~I Derive ~G 1. G  CA 2. ~C & BA GA C1, 3  E 5. ~C2 &E 6. ~G3-5 ~I

Rules of SD: ~E ~P ~P Q~Q P ~E P ~E

Rules of SD: ~E Derive A & B 1. ~(A & B)  CA 2. A  ~CA 3. AA ~(A & B) C 6. ~C 7. A & B~E

Rules of SD: ~E Derive A & B 1. ~(A & B)  CA 2. A  ~CA 3. AA ~(A & B)A C1, 4,  E 6. ~C 2, 3  E 7. A & B4-6 ~E