Review for Final Exam 80-210: Logic & Proofs August 6, 2009 Karin Howe.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Exam #3 will be given on Monday Nongraded Homework: Now that we are familiar with the universal quantifier, try
CS128 – Discrete Mathematics for Computer Science
For Wednesday, read chapter 6, section 1. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class. In.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
For Friday, read chapter 6, section 2. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Introduction to Logic Logical Form: general rules
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
Adapted from Discrete Math
Elementary Logic PHIL Intersession 2013 MTWHF 10:00 – 12:00 ASA0118C Steven A. Miller Day 4.
Chapter 1: The Foundations: Logic and Proofs
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.
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
3.6 Analyzing Arguments with Truth Tables
Copyright © Curt Hill Rules of Inference What is a valid argument?
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
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.
Discrete Mathematics. Predicates - the universal quantifier 11/28/2015 Suppose P(x) is a predicate on some universe of discourse. Ex. B(x) = “x is carrying.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
LOGIC AND QUANTIFIERS. INTRODUCTION Many algorithms and proofs use logical expressions such as: “IF p THEN q” or “If p1 AND p2, THEN q1 OR q2” Therefore.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
1 CMSC 250 Chapter 2, Predicate Logic. 2 CMSC 250 Definitions l Subject / predicate John / went to the store. The sky / is blue. l Propositional logic-
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
80-210: Logic & Proofs July 30, 2009 Karin Howe
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Chapter 9: Syntax and Semantics II : Logic & Proofs July 23, 2009 Karin Howe.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
 To combine propositions using connectives  To construct the truth table of a given compound proposition  To define de Morgan Law for logic  To define.
Today’s Topics Argument forms and rules (review)
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Chapter 1 Logic and proofs
L = # of lines n = # of different simple propositions L = 2 n EXAMPLE: consider the statement, (A ⋅ B) ⊃ C A, B, C are three simple statements 2 3 L =
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
Advanced Algorithms Analysis and Design
CSNB 143 Discrete Mathematical Structures
CSE15 Discrete Mathematics 01/30/17
6.1 Symbols and Translation
Today’s Topics Universes of Discourse
Information Technology Department
CS 1502 Formal Methods in Computer Science
CHAPTER 1: LOGICS AND PROOF
Natural deduction Gerhard Gentzen.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
1.3 Propositional Equivalences
The Foundations: Logic and Proofs
Presentation transcript:

Review for Final Exam : Logic & Proofs August 6, 2009 Karin Howe

Definitions you should know… Validity and invalidity (remember kangaroos!) Types of statements: tautology, contradictory, contingent

Definitions An argument is valid iff: it is impossible for all of its premises to be true and its conclusion false. An argument is invalid iff: it is possible that all of its premises to be true, and yet the conclusion is false.

Definitions A statement is a _______ iff _________: –Tautology (logically true)… …iff it is true on every truth-value assignment (or interpretation) Examples: (P   P), (  x)(P(x)   P(x)) –Contradictory formula (logically false)… …iff it is false on every truth-value assignment (or interpretation) Examples: (P &  P), (  x)(P(x) &  P(x)) –Contingent … … iff it is false on some truth-value assignments (or interpretations), and true on others Example: (P & Q), (  x)(P(x) & Q(x))

Skills you should be comfortable with… Translating statements (conjunctions, disjunctions, conditionals, negations, universals, and existentials) Well-formed formulas (WFFs), and parse trees (propositional and predicate) Constructing and interpreting truth tables or interpretations Truth trees (for propositional and predicate statements or arguments) –For determining validity/invalidity –For determining whether a statement is a tautology/contradictory statement/contingent statement Constructing counter-examples (for propositional and predicate arguments) Derivations (for propositional and predicate arguments) –Fill-in-the-blanks –Complete derivations (by hand)

Practice: Propositional Translations 1.Provided that he does well on the LSAT, John will apply to law school. 2.If I had some bread I could make a ham sandwich if I had some ham. 3.Show me a guy who doesn’t know which side his bread is buttered on and I’ll show you a guy with a slippery sandwich. 4.Myra will quit unless she is promoted. 5.Beth and Carmen are not both eligible. 6.Beth and Carmen are both not eligible.

Practice: Predicate Translations 1.Provided that he does well on the LSAT, John will apply to law school. oW(x,y) = x will do well on y, A(x,y) = x will do apply to y, j = John, l = LSAT, s = law school 2.Any waitress has met cheap people. oM(x,y) = x has met y, W(x) = x is a waitress, C(x) = x is a cheap person 3.One is not a prime. oP(x) = x is a prime, 1 = one

Practice: Predicate Translations 1.Unaccompanied children will be given a free kitten. oU(x) = x is an unaccompanied child, K(x) = x is a kitten, F(x) = x is free, G(x,y) = x is given y 2.A person who is nice to you, but rude to the waiter, is not a nice person. oN(x,y) = x is nice to y, R(x,y) = x is rude to y, N(x) = x is nice, P(x) = x is a person 3.Show me a doctor who makes house calls and I’ll show you a PhD that’s selling vacuum cleaners oD(x) = x is a doctor, H(x) = x makes house calls, P(x) = x is a PhD, V(x) = x sells vacuum cleaners

Practice: WFFs (Propositional) 1.(  {(I & J)  [K  (C  R)]}) 2.{  [  (  J  B   D]} 3.{  [(F [  X)  L]  [(U  G)  (K  B)]} 4.[I  {S  [(X & I)  {V]})  (  I  N)] 5.{  [N  (Y & { (U  U)  [M & (Z  V)]})]} 6.({  (V  J)  [(E  Q)  A]}  W)

Practice: WFFs (Predicate) 1.(  z)(P(a) & Q(z)) 2.(  z)P(a) 3.(  z)(  a)(  R(z,a) &  R(a,z)) 4.(  z)(  R(z,a) &  R(a,z)) 5.(  y)  L(y,y) & M(a) 6.(   x)(Q(x)   P(x)) 7.  (  x)(Q(x)   P(x)) 8.(  z)(  x)(R(x,x) & R(x,x)) 9.(  z)(Ex)(  R(z,x) &  R(x,z))

Truth Tables: Propositional Logic pqp & qpq p  qp  q p pp TTTTTTTF TFFTFTFT FTFFTT FFFFFF pq p  qp  q pq p  qp  q TTTTTT TFFTFF FTTFTF FFTFFT

Memorizing the characteristic truth tables Conjunctions: A conjunction is true only when both conjuncts are true. Disjunctions: A disjunction is false only when both disjuncts are false. Conditionals: Conditionals are false only when it is the case that the antecedent is true and the consequent false. Negations: The truth value of a negation is always the opposite of the truth value of the un-negated statement. Biconditionals: Biconditionals are true when both sides match in truth value.

Interpretations: Predicate Logic All of the usual truth table rules for the connectives will still apply Definition: Truth and falsity with respect to an interpretation: 1.If  is a 0-place predicate letter, then  is true iff I(  ) = T. 2.If  is of the form  (x 1, …, x n ) where  is a n-place predicate letter (with n > 0), and x 1, …, x n are n terms, then  is true on I iff is in I(  ) 3.If  is of the form (  u) , then  is true on I iff for each member a of the domain of discourse  is true on I[a/u], and false otherwise. 4.If  is of the form (  u) , then  is true on I iff there is at least one member a of the domain of discourse such that  is true on I[a/u,] and false otherwise.

Practice: Determining Truth/Falsity Domain: Natural numbers Dictionary: P(x) = x is prime, E(x) = x is even, L(x,y) = x is less than y, K(x) = x is a kangaroo, B = brown is my favorite color Interpretation: –I(P) = {2,3,5,7,…} –I(E) = {2,4,6,…} –I(G) = {,,,,, …} –I(K) =  –I(B) = F True or false? 1.(  x)(P(x) & E(x)) 2.(  x)[(P(x) & E(x)) > L(1,x)] 3.(  x){B > (  x)[(E(x) & P(x)) & L(2,x)]} 4.(  x)(E(x) v K(x)) 5.(  x)(  y)L(x,y)

Truth Trees: Propositional Rules (p & q) p q (p  q) p q (p  q)  p q p  q p  p q  p  (p & q)  p  q (p  q)pq(p  q)pq  (p  q) p  q  p p  ( p  q) p  p  q q

Truth Trees: Predicate Rules (  x)(P(x) & Q(x)) (P(a) & Q(a))* * Constant introduced must be new to the branch (  x)(P(x)  Q(x)) (P(a)  Q(a)) a = b P(a) P(b)  (  x)(P(x) & Q(x)) (  x)  (P(x) & Q(x))  (  x)(P(x)  Q(x)) (  x)  (P(x)  Q(x)) ¬a = a *

Practice: Truth Trees (Propositional) Valid or invalid? 1.  A &  B   (A & B) 2.H  I   I   H 3.D  (F  E)  D  E 4.C  D, D  E  E  D 5.  (H  I)   H   I 6.  (H  I)   (H  I)

Practice: Truth Trees (Propositional) Tautology, contradictory, or contingent? 1.(N  O) & (N   O) 2.P  [(  P & Q)  (  P &  Q)] 3.(S   S) & ( S  S) 4.{[(N  G) & (N  R)] & (G  R)}  R 5.  (K &  L) & (  K  L) 6.  (Z   A)  (  Z & A)

Practice: Truth Trees (Predicate) Valid or invalid? 1.(  x)(A(x)  B(x))  (  x)(A(x) & B(x)) 2.(  x)F(x)  (  x)(G(x)  (  x)(F(x)  G(x)) 3.  (  x)(  y)G(x,y)  (  x)  G(x,x) 4.(  x)(x=a  J(x))  (J(a) 5.(P(a) & Q(a)), (Q(b)   P(a))  a=b 6.(  x)B(x), (  x)A(x)  (  x)(A(x) & B(x)) 7.(  x)[S(x)  (  y)(A(y) &  T(y,x))]  (  x)[A(x) & (  y)(S(y)   T(x,y))]

Practice: Truth Trees (Predicate) Tautology, contradictory, or contingent? 1.(a=b &  a=b) 2.(  B(f)   (  x)B(x)) 3.((  x)C(x) & (  x)  C(x)) 4.((  x)A(x)  (  x)A(x)) 5.((  x)A(x) & (  x)  B(x)) 6.((  x)C(x) & (  x)  C(x)) 7.(  x)(x=a   x=a)

Basic Rules (Propositional): (In)troduction Rules ConjunctionDisjunctionConditional &I  IL  IR II p q__________ p & q &I p________ q  p  IL p________ p  q  IR p  q  I p A. q

Basic Rules (Propositional): (In)troduction Rules NegationBiconditional II II II p  p___________   I  p  I p  q  I p A.  p A. q q A. p

Basic Rules (Predicate): (In)troduction Rules Universal Introduction Existential Introduction Identity Introduction II II =I p1. (P(v)  Q(v))*_______ (  x)(P(x)  Q(x))  I * Restrictions: 1. v is a variable 2. v does not occur in (  x)(P(x)  Q(x)) 3. v does not occur free in any assumption on which line p1 depends P(a) & Q(a)_____ (  x)(P(x) & Q(x))  I. a = a =I

Basic Rules (Propositional): Elimination (Out) Rules ConjunctionDisjunctionConditional &EL&ER EE EE p & q_____ p &EL p & q_____ q &ER p  q r  E p  q p________ q  E p A. r q A. r

Basic Rules (Propositional): Elimination (Out) Rules NegationBiconditional EE  EL  ER p  E p  q q______________ p  EL p  q p_____________ q  ER  p A. 

Basic Rules (Predicate): Elimination (Out) Rules Universal Elimination Existential Elimination Identity Elimination EE EE =E (  x)(P(x)  Q(x))__ (P(a)  Q(a))  E (  x)(P(x) & Q(x)) p2. p3.   E * Restrictions: 1.v is a variable 2.v does not appear in (  x)(P(x) & Q(x)). 3.v does not occur in , 4.v does not occur free in any lines that p2 depends on. P(a) a=b______ P(b) =E (P(v) & Q(v))* A. 

Propositional Derived Rules: Hammers Disjunctive SyllogismModus Tollens DSLDSRMT p  q  q_______ p p  q  p_______ q p  q  q_______  p

Predicate Derived Rules: Hammers Universal Modus TollensUniversal Disjunctive Syllogism  MT  DSL  DSR (  x)(P(x)  Q(x)) (  x)  Q(x)_______ (  x)  P(x)  MT (  x)(P(x)  Q(x)) (  x)  Q(x)_______ (  x)P(x)  DSL (  x)(P(x)  Q(x)) (  x)  P(x)_______ (  x)Q(x)  DSR Existential Disjunctive Syllogism  DSL  DSR (  x)(P(x)  Q(x)) (  x)  Q(x)_______ (  x)P(x)  DSL (  x)(P(x)  Q(x)) (  x)  P(x)_______ (  x)Q(x)  DSR

Propositional Derived Rules: Abracadabra! CutExportation CutExp& Exp  p  q  p_  r___ q  r (p & q)  r p  (q  r) (p & q)  r

Propositional Derived Rules: Abracadabra! Definition of the Conditional Hypothetical Syllogism Transitivity Def  EDef  I HSTrans p  q____  p  q  p_  q___ p  q q  r_____ p  r p  q ::  q   p

Propositional Derived Rules: Abracadabra! Commutativity Comm& Comm  Comm  p & q :: q & p p  q :: q  pp  q :: q  p DeMorgan's Laws DeM  (p & q) ::  p   q  (p  q) ::  p &  q

Predicate Derived Rules: Abracadabra! Definition of the Universal Quantifier Def  E Def  I (  x)(P(x)  Q(x))_________  (  x)  (P(x)  Q(x)) Def  E  (  x)  (P(x)  Q(x))____ (  x)(P(x)  Q(x)) Def  I Definition of the Existential Quantifier Def  E (  x)(P(x) & Q(x))_________  (  x)  (P(x) & Q(x)) Def  E  (  x)  (P(x) & Q(x))____ (  x)(P(x) & Q(x)) Def  I

Predicate Derived Rules: Abracadabra! Negated UniversalExistentially Quantified Negation   (  x)(P(x)  Q(x))_________ (  x)  (P(x)  Q(x))  (  x)  (P(x)  Q(x))____  (  x)(P(x)  Q(x))  Negated ExistentialUniversally Quantified Negation   (  x)(P(x) & Q(x))_________ (  x)  (P(x) & Q(x))  (  x)  (P(x) & Q(x))____  (  x)(P(x) & Q(x)) 

Practice: Derivations (Propositional) 1.[A  (B  C)]  [(A  B)  C] 2.  (A &  B),  (B &  C)   (A &  C) 3.(X  Y), [(X  Z)   A], (Y  Z), (A  B)  B 4.  Q, R   (Q   R) 5.[(B  C)  D],  D  (B &  C) 6.(O  P)  [  (O &  P) &  (  O & P)]

Practice: Derivations (Predicate) 1.(  x)(I(x)  J(x)), (  x)(J(x)  K(x)), (  x)(K(x)  L(x))  (  x)(I(x)  L(x)) 2.(  x)(M(x)  N(x)), (  x)(M(x) & P(x)), (  x)(N(x)  O(x))  (  x)(O(x) & P(x)) 3.  (  x)(B(x)   A(x))  (  x)(B(x) & A(x)) 4.(  x)(F(x)  (  y)M(y,x))  (  x)(  y)(F(x)  M(y,x)) 5.(  x)(  y)L(y,x)  (  x)(  y)L(x,y)