Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Similar documents
CSE 20. Final Review. CSE 20: Final Review

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

CSC Discrete Math I, Spring Propositional Logic

1. Propositions: Contrapositives and Converses

Logic, Sets, and Proofs

1.1 Language and Logic

1.1 Language and Logic

Introduction to Sets and Logic (MATH 1190)

Learning Goals of CS245 Logic and Computation

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

Introduction to Decision Sciences Lecture 2

Logic and Proofs. (A brief summary)

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

A. Propositional Logic

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Logic: Propositional Logic (Part I)

2-4: The Use of Quantifiers

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Meaning of Proof Methods of Proof

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Compound Propositions

Mathematical Reasoning (Part I) 1

For all For every For each For any There exists at least one There exists There is Some

Propositional Logic Not Enough

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

THE LOGIC OF QUANTIFIED STATEMENTS

Craig Interpolation Theorem for L!1! (or L!! )

1 Propositional Logic

Recall that the expression x > 3 is not a proposition. Why?

Propositional Equivalence

Logic and Proofs. (A brief summary)

ANALYSIS EXERCISE 1 SOLUTIONS

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Proofs. Joe Patten August 10, 2018

Quantifiers. P. Danziger

Logic Overview, I. and T T T T F F F T F F F F

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Chapter 1 Elementary Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

KE/Tableaux. What is it for?

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Math 10850, fall 2017, University of Notre Dame

Artificial Intelligence Knowledge Representation I

A statement is a sentence that is definitely either true or false but not both.

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

PHIL12A Section answers, 16 February 2011

Mat 243 Exam 1 Review

Propositional natural deduction

First order Logic ( Predicate Logic) and Methods of Proof

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

Part Two: The Basic Components of the SOFL Specification Language

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

software design & management Gachon University Chulyun Kim

Propositional Logic: Part II - Syntax & Proofs 0-0

HANDOUT AND SET THEORY. Ariyadi Wijaya

Lecture 5 : Proofs DRAFT

Group 5. Jeremy Gutierrez. Jesus Ochoa Perez. Alvaro Gonzalez. MATH 170: Discrete Mathematics. Dr. Lipika Deka. March 14, 2014.

1 The Foundation: Logic and Proofs

CPSC 121: Models of Computation

Predicate Logic: Sematics Part 1

AMTH140 Lecture 8. Symbolic Logic

PROOFS IN MATHEMATICS

CSE 20 DISCRETE MATH. Fall

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

Propositional logic (revision) & semantic entailment. p. 1/34

COMP2411 Lecture 6: Soundness and Completeness. Reading: Huth and Ryan, Sections 1.4

2 Truth Tables, Equivalences and the Contrapositive

Introducing Proof 1. hsn.uk.net. Contents

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

1 The Foundation: Logic and Proofs

Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside.

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

CSE 20 DISCRETE MATH. Winter

MAI0203 Lecture 7: Inference and Predicate Calculus

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Chapter 2: The Logic of Quantified Statements

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

The Logic of Compound Statements cont.

Warm-Up Problem. Let be a Predicate logic formula and a term. Using the fact that. (which can be proven by structural induction) show that 1/26

CS 380: ARTIFICIAL INTELLIGENCE

Advanced Topics in LP and FP

Math 102 Section 08, Fall 2010 Solutions Practice for Formal Proofs of Arguments

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

DISCRETE MATH: FINAL REVIEW

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

1.3 Propositional Equivalences

Logic Review Solutions

Warm-Up Problem. Is the following true or false? 1/35

Transcription:

gic Instructor: Sourav Chakraborty

Propositional logic and Predicate Logic

Propositional logic and Predicate Logic Every statement (or proposition) is either TRUE or FALSE.

Propositional logic and Predicate Logic Every statement (or proposition) is either TRUE or FALSE. A statement can be formed using other statements connected to each other by 5 kinds of connectives: AND, OR, NOT, IMPLIES and IFF.

Propositional logic and Predicate Logic Every statement (or proposition) is either TRUE or FALSE. A statement can be formed using other statements connected to each other by 5 kinds of connectives: AND, OR, NOT, IMPLIES and IFF. A statement can have unspecified terms, called variables. All the variables has to be properly quantified using the two quantifiers FOR-ALL and THERE EXISTS.

Checking correctness of a statement or theorem Any meaningful statement / proposition / theorem can be written as a mathematical logic statement.

Checking correctness of a statement or theorem Any meaningful statement / proposition / theorem can be written as a mathematical logic statement. A statement is consistent or correct if for any setting of the input variables (smaller statements) to TRUE or FALSE the statement always evaluate to TRUE.

Checking correctness of a statement or theorem Any meaningful statement / proposition / theorem can be written as a mathematical logic statement. A statement is consistent or correct if for any setting of the input variables (smaller statements) to TRUE or FALSE the statement always evaluate to TRUE.

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same.

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Is A = B is equivalent to ( B A) = F ALSE

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Is A = B is equivalent to ( B A) = F ALSE

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Is A = B is equivalent to ( B A) = F ALSE A B A = B ( B A) = F F F F T T F T T

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Is A = B is equivalent to ( B A) = F ALSE A B A = B ( B A) = F F F T F T T T F F T T T

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Is A = B is equivalent to ( B A) = F ALSE A B A = B ( B A) = F F F T T F T T T T F F F T T T T

Problems on Propositional Logic Prove that (a = b) is equivalent to ( a b). Prove that (a b) is equivalent to (a = b) (b = a). Prove that (p q) = r is equivalent to (p = r) (q = r). Prove that (a = b) is equivalent to ( b = a).

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same.

Checking Equivalence Definition Two statements are equivalent if their TRUTHTABLES are the same. Another approach is to use some already proved rules to simplify the formulas before using the brute force truthtable approach.

Rules of Propositional Logic Let p, q and r be propositions. 1 Commutative law: 2 Associative law: (p q) = (q p) and (p q) = (q p) (p (q r)) = ((p q) r) and (p (q r)) = ((p q) r) 3 Distributive law: 4 De Morgan s Law: (p (q r)) = (p q) (p r) and (p (q r)) = (p q) (p r) (p q) = ( p q) and (p q) = ( p q)

Rules for Negation ( x P (x)) is same as x ( P (x)) ( x P (x)) is same as x ( P (x))

Problems on Propositional Logic The function ( (p (r q) ) ( p ( q r) ) ) is equal to which of the following functions: A. q r B. p (r q) C. (p q) r D. (p q) (p r) E. (p r) (p q)

Problems on Propositional Logic The function ( (p (r q) ) ( p ( q r) ) )

Problems on Propositional Logic The function ( (p (r q) ) ( p ( q r) ) )

Problems on Propositional Logic The function ( (p (r q) ) ( p ( q r) ) ) is equal to which of the following functions: A. q r B. p (r q) C. (p q) r D. (p q) (p r) E. (p r) (p q)

Negating a sentence What is the negation of the sentence: There is an university in USA where every department has at least 20 faculty and at least one noble laureate.

Negating a sentence What is the negation of the sentence: There is an university in USA where every department has at least 20 faculty and at least one noble laureate. A. There is an university in USA where every department has less than 20 faculty and at least one noble laureate. B. All universities in USA where every department has at least 20 faculty and at least one noble laureate. C. For all universities in USA there is a department has less than 20 faculty or at most one noble laureate. D. For all universities in USA there is a department has less than 20 faculty and at least one noble laureate.

Propositional Logic and Predicate Logic Every statement is either TRUE or FALSE There are logical connectives,,, = and. Two logical statements can be equivalent if the two statements answer exactly in the same way on every input. To check whether two logical statements are equivalent one can do one of the following: Checking the Truthtable of each statement Reducing one to the other using reductions

Propositional Logic and Predicate Logic There are two important symbols: and. Some statements can be defined using a variable. For example: P x = 4x 2 + 3 is divisible by 5 We can have statements like: x Z, 4x 2 + 3 is divisible by 5. Or x Z, 4x 2 + 3 is divisible by 5.

Using Propositional Logic for designing proofs A mathematical statement comprises of a premise (or assumptions). And when the assumptions are satisfied the statement deduces something.

Using Propositional Logic for designing proofs A mathematical statement comprises of a premise (or assumptions). And when the assumptions are satisfied the statement deduces something. If A is the set of assumptions and B is the deduction then a mathematical statement is of the form A = B

Using Propositional Logic for designing proofs A mathematical statement comprises of a premise (or assumptions). And when the assumptions are satisfied the statement deduces something. If A is the set of assumptions and B is the deduction then a mathematical statement is of the form A = B Now how to check if the statement if correct? And if it is indeed correct how to prove the statement?

Using Propositional Logic for designing proofs A mathematical statement comprises of a premise (or assumptions). And when the assumptions are satisfied the statement deduces something. If A is the set of assumptions and B is the deduction then a mathematical statement is of the form A = B Now how to check if the statement if correct? And if it is indeed correct how to prove the statement? Depending on whether A or B (or both) can be split into smaller statements and how the smaller statements are connected we can design different techniques for proving the overall statement of A = B.

Using Propositional Logic for designing proofs A mathematical statement comprises of a premise (or assumptions). And when the assumptions are satisfied the statement deduces something. If A is the set of assumptions and B is the deduction then a mathematical statement is of the form A = B Now how to check if the statement if correct? And if it is indeed correct how to prove the statement? Depending on whether A or B (or both) can be split into smaller statements and how the smaller statements are connected we can design different techniques for proving the overall statement of A = B. If indeed we can proof that the statement is correct then we can call it a Theorem.

Proof Techniques To prove statement B from A. Constructive Proofs Proof by Contradiction Proof by Contrapositive Induction Counter example Existential Proof