Identifying Counterexamples

Slides:



Advertisements
Similar presentations
Computing Truth Value.
Advertisements

Logic Use mathematical deduction to derive new knowledge.
Sentential Logic. One of our main critical thinking questions was: Does the evidence support the conclusion? How do we evaluate whether specific evidence.
Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
An Introduction to Propositional Logic Translations: Ordinary Language to Propositional Form.
Today’s Topics Logical Syntax Logical Syntax o Well-Formed Formulas o Dominant Operator (Main Connective) Putting words into symbols Putting words into.
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
An Introduction to Propositional Logic Translations: Ordinary Language to Propositional Form.
From Chapter 4 Formal Specification using Z David Lightfoot
PHIL 120: Jan 8 Basic notions of logic
Let remember from the previous lesson what is Knowledge representation
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
The Language of Propositional Logic The Syntax and Semantics of PL.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Adapted from Discrete Math
Intro to Discrete Structures
Discrete Mathematics and Its Applications
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
Pattern-directed inference systems
The Science of Good Reasons
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
CS6133 Software Specification and Verification
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Outline Logic Propositional Logic Well formed formula Truth table
Today’s Topics Argument forms and rules (review)
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Symbolic Logic Pratibha Sinha.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Propositional Calculus: Boolean Functions and Expressions
Lecture 1 – Formal Logic.
Knowledge Representation and Reasoning
Chapter 1 Logic and Proofs Homework 1 Two merchants publish new marketing campaign to attract more customers. The first merchant launches a motto “Good.
Deductive Arguments.
{P} ⊦ Q if and only if {P} ╞ Q
ARTIFICIAL INTELLIGENCE
Truth Tables – Logic (Continued)
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Symbolic Logic Pratibha Sinha.
2 Chapter Introduction to Logic and Sets
Information Technology Department
Truth Tables Hurley
CS201: Data Structures and Discrete Mathematics I
Truth Trees.
Logic Use mathematical deduction to derive new knowledge.
CS 270 Math Foundations of CS
Midterm Discussion.
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Logical Entailment Computational Logic Lecture 3
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
TRUTH TABLES.
Propositional Calculus
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
ece 720 intelligent web: ontology and beyond
Logical and Rule-Based Reasoning Part I
Arguments in Sentential Logic
CS201: Data Structures and Discrete Mathematics I
Introduction to Computational Linguistics
Compounding.
Starting out with formal logic
Presentation transcript:

Identifying Counterexamples Determine truth value of premises and conclusions. Remember: an argument is sound iff (i) it’s valid and (ii) has all true premises. Determine whether two arguments are of the same logical form: Same framework of logical expressions Same pattern of same non-logical expressions Where two arguments are of the same logical form which, if any, is a counterexample to the other? What does that show about validity? Argument 1 All dogs are cats. Some dogs are reptiles Some cats are reptiles. Argument 2 All men are mortals. Some mortals are Greeks. Some Greeks are men. Argument 3 All mammals are vertebrates. Some vertebrates are cold-blooded animals. Some cold-blooded animals are mammals.

Going Formal Meet the Connectives

The Language of Propositional Logic Syntax (grammar, internal structure of the language) Vocabulary: grammatical categories Identifying Well-Formed Formulae (“WFFs”) Semantics (pertaining to meaning and truth value) Translation Truth functions Truth tables for the connectives

The Vocabulary of Propositional Logic Sentence Letters: A, B, … Z Connectives (“Sentence-Forming Operators”) ~ negation “not,” “it is not the case that” ⋅ conjunction “and” ∨ disjunction “or” (inclusive) ⊃ conditional “if – then,” “implies” ≣ biconditional “if and only if,” “iff” “Parentheses”: (, ), [, ], {, and }

Sentence Letters Translate “atomic” sentences Atomic sentences have no proper parts that are themselves sentences Examples: It is raining R It is cold C

Sentential Connectives Connect to sentences to make new sentences Negation attaches to one sentence It is not raining ∼ R Conjunction, disjunction, conditional and biconditional attach two sentences together It is raining and it is cold R ∙ C If it rains then it pours R ⊃ P

Parentheses, brackets & braces I’ll go to Amsterdam and Brussels or Calais This is ambiguous and we can’t tolerate ambiguity! Brussels AND Amsterdam OR Calais AND Amsterdam Brussels OR Calais

Parentheses, brackets & braces Grouping devices avoid ambiguity (for “unique readability”): I’ll go to Amsterdam, and then to either Brussels or Calais A ∙ (B ∨ C) I’ll either go to Amsterdam and Brussels, or else to Calais (A ∙ B) ∨ C Amsterdam Calais Brussels AND OR Amsterdam Brussels Calais AND OR

Variables: p, q, … p  (q  r) Sometimes we want to talk about all sentences of a given form, e.g. A  (B  C) F  (M  X) (K  M)  [(N   O)  P] So we use variables as place-holders Each of the above sentences is of the form: p  (q  r)

Plugging into variables Modus Ponens Substitution Instance of Modus Ponens  p  q p q ((A  B)  C) (D  (E   F)) ((A  B)  C) (D  (E   F)) Variables are like expandable boxes To do proofs in logic you have to see how sentences plug into those boxes.

Plugging into variables Modus Ponens Substitution Instance of Modus Ponens  p  q p q ((A  B)  C) (D  (E   F)) ((A  B)  C) (D  (E   F)) Variables are like expandable boxes To do proofs in logic you have to see how sentences plug into those boxes.

The Grammar of Propositional Logic Constructing WFFs (Well-Formed Formulae) Identifying WFFs Identifying main connectives

Rules for WFFs A sentence letter by itself is a WFF A B Z The result of putting  immediately in front of a WFF is a WFF A  B   B  (A  B)  ( C  D) The result of putting  ,  ,  , or  between two WFFs and surrounding the whole thing with parentheses is a WFF (A  B) (  C  D) ((  C  D)  (E  (F   G))) Outside parentheses may be dropped A  B   C  D (  C  D)  (E  (F   G))

WFFs A sentence that can be constructed by applying the rules for constructing WFFs one at a time is a WFF A sentence which can't be so constructed is not a WFF No exceptions!!! woof

Main Connective In constructing a WFF, the connective that goes in last, which has the whole rest of the sentence in its scope, is the main connective. This is the connective which is the “furthest out.” Examples (  C  D)  (E  (F   G))  ( C  D)

Hints: When it’s not a WFF You can't have two WFFs next to one another without a two- sided connective between them. BAD! AB C  D (E  F)G Two-sided connectives have to have WFFs attached to both sides. BAD!  A (B  C)  ( D  E) G   H You can't have more than one two-sided connective at the same level BAD! A  B  C (  C  D)  (E  F   G)

Identifying WFFs & Main Connectives ∨ 1 (S   T)  ( U  W) 2  (K  L)  ( G  H) 3 (E  F)  (W  X) 4 (B   T)   ( C  U) 5 (F   Q)  (A  E  T) X X ≡ X

Identifying WFFs & Main Connectives  1 (S   T)  ( U  W) X 2  (K  L)  ( G  H) X 3 (E  F)  (W  X)  4 (B   T)   ( C  U) X 5 (F   Q)  (A  E  T)

Identifying WFFs & Main Connectives 6  D   [ ( P  Q)  (T  R) ] 7 [ (D   Q)  (P  E) ]  [A  (  H) ] 8 M (N  Q)  ( C  D) 9  (F   G)  [ (A  E)   H] 10 (R  S  T)   ( W   X) ∨ X X ⊃ X

Identifying WFFs & Main Connectives  6  D   [ ( P  Q)  (T  R) ] X 7 [ (D   Q)  (P  E) ]  [A  (  H) ] X 8 M (N  Q)  ( C  D)  9  (F   G)  [ (A  E)   H] X 10 (R  S  T)   ( W   X)

Why should we care about this? Because in formal logic we determine whether arguments are valid or not by reference to their form. And that assumes we can identify the form of sentences, i.e. that we can identify main connectives. In doing formal derivations in particular, we have be able to immediately see what the forms of sentences are in order to formulate strategies.

Translation

Conditionals & Biconditionals If P then Q P  Q P, if Q Q  P P only if Q P  Q P if and only if Q P  Q Note: A biconditional is a “conditional going both ways”: so P  Q is the conjunction of P  Q and Q  P

Conditionals If P then Q P  Q P, if Q Q  P P only if Q P  Q 5 If Chanel has a rosewood fragrance then so does Lanvin. C  L 6 Chanel has a rosewood fragrance if Lanvin does. L  C 8 Reece Witherspoon wins best actress only if Martin Scorsese wins best director. W  S

Biconditionals P if and only if Q P  Q 7 Maureen Dowd writes incisive editorials if and only if Paul Krugman does. D  K A biconditional is a “conditional going both ways”: so P  Q is the conjunction of P  Q and Q  P. “Only if” is only half of “if and only if.” Be careful!

Not both and & neither/nor Not both P and Q ~ (P  Q) Neither P nor Q  (P  Q) You can’t both have your cake and eat it. ~ (H  E) She was neither young nor beautiful.  (Y  B)

Not both and & neither/nor Not both P and Q ~ (P  Q) Neither P nor Q  (P  Q) 15 Not both Jaguar and Porsche make motorcycles. ~ (J  P) 16 Both Jaguar and Porsche do not make motorcycles.  J  ~ P

Not both and & neither/nor Not both P and Q ~ (P  Q) Neither P nor Q  (P  Q) 18 Not either Ferrari or Maserati makes economy cars. 19 Neither Ferrari nor Maserati makes economy cars.  (F  M) 20 Either Ferrari or Maserati does not make motorcycles.  F  ~ M

DeMorgan’s Laws ~ (P  Q) is equivalent to  P   Q “She was neither young nor beautiful” is equivalent to “She was old and ugly” - NOT “She was old or ugly.” “You can’t both have your cake and eat it” is equivalent to “You either don’t have your cake or you don’t eat your cake” - NOT “You don’t have your cake and you don’t eat your cake.”