CSCI2110 – Discrete Mathematics Tutorial 9 First Order Logic Wong Chung Hoi (Hollis) 2-11-2011.

Slides:



Advertisements
Similar presentations
Rules of Inference Rosen 1.5.
Advertisements

The Logic of Quantified Statements
The Foundations: Logic and Proofs
CSE115/ENGR160 Discrete Mathematics 01/26/12 Ming-Hsuan Yang UC Merced 1.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
CS128 – Discrete Mathematics for Computer Science
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Harper Langston New York University Summer 2015
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
CSCI2110 – Discrete Mathematics Tutorial 8 Propositional Logic Wong Chung Hoi (Hollis)
Discrete Maths Objective to introduce predicate logic (also called the predicate calculus) , Semester 2, Predicate Logic 1.
Copyright © Curt Hill Rules of Inference What is a valid argument?
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
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.
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.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
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.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
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?
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
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.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Uniqueness Quantifier ROI for Quantified Statement.
Chapter 1 Logic and proofs
Harper Langston New York University Summer 2017
3. The Logic of Quantified Statements Summary
Argument An argument is a sequence of statements.
CSE15 Discrete Mathematics 01/30/17
Discrete Mathematics Logic.
Formal Logic CSC 333.
Predicate logic CSC 333.
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
CS 1502 Formal Methods in Computer Science
Mathematics for Computer Science MIT 6.042J/18.062J
A Brief Summary for Exam 1
CS 220: Discrete Structures and their Applications
First Order Logic Rosen Lecture 3: Sept 11, 12.
Inference Rules: Tautologies
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics Logic.
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Presentation transcript:

CSCI2110 – Discrete Mathematics Tutorial 9 First Order Logic Wong Chung Hoi (Hollis)

Agenda First Order Logic Multiple Quantifiers Proofing Arguments Validity – Proof by truth table – Proof by inference rules

First Order Logic Predicate - Proposition with variables – P(x): x > 0p: -5 > 0 – H(y): y is smarth: Peter is smart – G(s,t): s is a subset of tg: {1,2} is a subset of Ø Domain – Set of values that the variables take. – – –

First Order Logic Predicates takes different truth value on different substituted values. – P(x): x > 0,P(0) = F, P(1) = T – H(y): y is smart, H(“Peter”) = T, H(“John”) = F H(“Paul”) = F, H(“Mary”) = T Truth set – set of elements that are evaluated True on a predicate. – –

From Predicates to Propositions By substitution P(x): x > 0 – p: P(10), p: P(-1) By quantifiers – For All – for every, for any, for each, given any, for arbitrary – There Exists – there is a, we can find a, at least one, for some

Exercise Express in terms of. – – What is the negation of?

All people never grow up P – Set of all people G(x): x grows up Some people never grow up.All people grow up.

S – Set of all things that can be bought E(x): x is expensive these days. Nothing is expensive these days. Something is expensive these days.

S – Set of things to be described. E(x): x can end well. Not everything can end well. Everything can end well.

P – Set of all people R(x): x can read W(x): x can write Some people can’t read and some people can’t write. All people can read or all people can write.

P – Set of all people A – Set of all American C(x): For x, it’s a crutch L(x): For x, it’s a way of life For some people, it’s a crutch and for all American, it’s a way of life. For all people, it’s not a crutch or for some American, it’s not a way of life.

Agenda First Order Logic Multiple Quantifiers Proofing Arguments Validity – Proof by truth table – Proof by inference rules

Multiple Quantifiers K(x, y): x takes the course y – Domain of x is set of all CSE students (S) – Domain of y is set of all CSE courses (C) Two quantifiers of the same type can be combined.

Multiple Quantifiers K(x, y): x takes the course y – Domain of x is set of all CSE students (S) – Domain of y is set of all CSE courses (C) Two quantifiers of different type cannot be reverse.

Exercise Express in terms of. – – What is the negation of?

S – Set of all posters P – Set of all people M(x, y): x can make y There are some people who can’t make any posters. All people can make some posters.

R – Set of all retards P – Set of all people K(x, y): x know y Everyone knows some retards. There exists someone who don’t know any retards.

Agenda First Order Logic Multiple Quantifiers Proofing Arguments Validity – Proof by truth table – Proof by inference rules

Proofing Arguments Validity Arguments – hypothesis and conclusion – E.g. Valid argument: If all hypothesizes are true, then the conclusion is true. – Proof by truth table. – Proof by Inference rules.

Proof By Truth Table 1 Is this argument valid?

Proof By Truth Table 2 Is this argument valid?

Inference Rules All can be proven by truth table Modus PonensModus Tollens GeneralizationSpecialization TransitivityContradiction Rule

Proof By Inference Rules 1 Show that the argument is valid.

Proof By Inference Rules 2 Show that the argument is valid.

Inference rule for predicates Universal instantiation Universal Modus Pollens Universal Modus Tollens

Proof By Inference Rules 3 Show that the argument is valid. Assume the domain of all predicates is a set and.

Proof By Inference Rules 3 Show that the argument is valid. Assume the domain of all predicates is a set and.

Summary Difference between predicates and proposition Quantifiers and negation Proofing Arguments Validity – Proof by truth table – Proof by inference rules