CS 1502 Formal Methods in Computer Science

Slides:



Advertisements
Similar presentations
CS1502 Formal Methods in Computer Science Lecture Notes 3 Consequence Rules Boolean Connectives.
Advertisements

Discrete Math Methods of proof 1.
Methods of Proof for Quantifiers Chapter 12 Language, Proof and Logic.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
CS128 – Discrete Mathematics for Computer Science
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
So far we have learned about:
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
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.
Predicates and Quantifiers
1 CS 1502 Formal Methods in Computer Science Lecture Notes 12 Variables and Quantifiers.
CS 1502 Formal Methods in Computer Science
Chapter 1: The Foundations: Logic and Proofs
INTRODUCTION TO LOGIC FALL 2009 Quiz Game. ConceptsTrue/FalseTranslations Informal Proofs Formal Proofs
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.
Can’t be c can’t be b Could be cthis is bcould be c.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1 Section 7.2 Equivalent Formulas Two wffs A and B are equivalent, written A  B, if they have the same truth value for every interpretation. Property:
The Logic of Quantifiers Chapter 10 Language, Proof and Logic.
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.
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.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
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.
Predicates and Quantified Statements
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 CS1502 Formal Methods in Computer Science Notes 15 Problem Sessions.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
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.
Chapter 1 Logic and proofs
Formal Proofs and Quantifiers
3. The Logic of Quantified Statements Summary
Advanced Algorithms Analysis and Design
Lecture Notes 8 CS1502.
Discrete Mathematics Logic.
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Introduction to Predicates and Quantified Statements II
Logical Inferences: A set of premises accompanied by a suggested conclusion regardless of whether or not the conclusion is a logical consequence of the.
CHAPTER 1: LOGICS AND PROOF
Mathematics for Computer Science MIT 6.042J/18.062J
Introduction to Predicates and Quantified Statements II
1st-order Predicate Logic (FOL)
First Order Logic Rosen Lecture 3: Sept 11, 12.
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Logic.
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CPSC 121: Models of Computation
CS201: Data Structures and Discrete Mathematics I
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
1st-order Predicate Logic (FOL)
Presentation transcript:

CS 1502 Formal Methods in Computer Science Lecture Notes 13 Equivalences, Arguments, and Proofs involving Quantifiers

Propositional Logic Tautology Tautological Consequence Tautological Equivalence Based on the truth-functional Connectives

First-Order Logic Takes into consideration all of the truth-functional connectives (     ), the identity symbol (=), and the quantifiers (x y).

First-Order Logic FO Validity: a sentence that can’t be false FO Consequence: applies to an argument whose conclusion can’t be made false when all of its premises are true. FO Equivalence applies to a pair of sentences that, in all possible circumstances, have the same truth values

Facts All tautological consequences are FO Consequences. All tautological equivalencies are FO Equivalencies.

FO Consequence x [P(x)  Q(x)] Q(b) P(b) x [Tet(x)  Large(x)]  C is not a tautological consequence of A and  B x [P(x)  Q(x)] Q(b) P(b) Q P b x [Tet(x)  Large(x)] Large(b) Tet(b) A  B  C

Replacement Method This method is used to determine if a sentence is an FO Validity and if an argument is an FO Consequence.

Replacement Method Replace all predicates in the sentence or in the argument with symbolic ones making sure that if a predicate appears more than once it is replaced with the same symbolic name. See if you can describe a circumstance where the sentence is false, if this is impossible then the sentence is a FO Validity. See if you can describe a circumstance where the conclusion is false and the premises are all true. If this is impossible, then the conclusion is an FO Consequence of its premises.

DeMorgan’s Laws for Quantifiers x P(x)  x [P(x)] Nobody is P. Everyone is not P. x P(x)  x [P(x)] It is not the case that everyone is P. Somebody is not P. P P

Aristotelian Forms Revisited Negate: All P’s are Q’s. ~all x (P(x)  Q(x))  ~all x (~P(x) v Q(x))  exist x (~(~P(x) v Q(x)))  exist x (P(x) ^ ~Q(x)) Some P’s are not Q’s

A Special Form and its Equivalent Only Q’s are P’s All P’s are Q’s P Q

Other Equivalences and Non-Equivalences (which are which?) x [P(x)  Q(x)]  x P(x)  x Q(x) x [P(x)  Q(x)]  x P(x)  x Q(x) x [P(x)  Q(x)]  x P(x)  x Q(x) x [P(x)  Q(x)]  x P(x)  x Q(x)

Other Equivalences x P  P, where x is not free in P x [P  Q(x)]  P  x Q(x) x [P  Q(x)]  P  x Q(x) x P(x)  y P(y)  x P(x)   y P(y)

Proofs Involving Quantifiers Universal Elimination x S(x) … S(c)  Elim

Example Prove x Cube(x) x Large(x) Large(d)  Cube(d)]

Proofs Involving Quantifiers Universal Introduction c … S(c) x S(x)  Intro Assume c is an arbitrary element in the domain of discourse.

Example Prove x Cube(x) x Large(x) x [Large(x)  Cube(x)]

Proofs Involving Quantifiers Existential Introduction S(c) … x S(x)  Intro

Example Prove Cube(e) Large(e)  LeftOf(e,a) x [Cube(x)  LeftOf(x,a)]

Proofs Involving Quantifiers Existential Elimination x S(x) c S(c) … Q Q  Elim Symbol c cannot appear outside this subproof! Since there exists an x such that S(x), let c designate this object.

Example Prove x Large(x) x Cube(x) x [Large(x)  Cube(x)]

General Conditional Proof Universal Introduction c P(c) … Q(c) x [P(x)  Q(x)]  Intro Assume c is an arbitrary element in the domain of Discourse and assume P(c)

Example Prove x [P(x)  Q(x)] z [Q(z)  R(z)] x [P(x)  R(x)]