Formal Logic 2. This lecture: Standard Procedure of Inferencing Normal forms Standard Deductive Proofs in Logic using Inference Rules

Similar documents
Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

PHI Propositional Logic Lecture 2. Truth Tables

Logic and Proof. Aiichiro Nakano

PROPOSITIONAL CALCULUS

Logic and Truth Tables

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

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

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.

Artificial Intelligence Knowledge Representation I

Chapter 2: The Logic of Compound Statements

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

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

2.2: Logical Equivalence: The Laws of Logic

Language of Propositional Logic

Section 1.2: Propositional Logic

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

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

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Propositional Logic. Spring Propositional Logic Spring / 32

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

1.1 Statements and Compound Statements

ICS141: Discrete Mathematics for Computer Science I

Formal Logic. Critical Thinking

Readings: Conjecture. Theorem. Rosen Section 1.5

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Manual of Logical Style

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Deductive Systems. Lecture - 3

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Advanced Topics in LP and FP

Proof strategies, or, a manual of logical style

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

The Logic of Compound Statements cont.

Propositional Logic: Syntax

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

Packet #1: Logic & Proofs. Applied Discrete Mathematics

CSC Discrete Math I, Spring Propositional Logic

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Logic, Sets, and Proofs

Axiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system:

13.3 Truth Tables for the Conditional and the Biconditional

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Chapter 1: The Logic of Compound Statements. January 7, 2008

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

02 Propositional Logic

Rules Build Arguments Rules Building Arguments

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Methods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

MAT 243 Test 1 SOLUTIONS, FORM A

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Manual of Logical Style (fresh version 2018)

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

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

Fundamentals of Logic

Reading: EC 1.3. Peter J. Haas. INFO 150 Fall Semester 2018

THE LOGIC OF COMPOUND STATEMENTS

Logic for Computer Science - Week 4 Natural Deduction

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

Inference in Propositional Logic

Review: Potential stumbling blocks

CS 2336 Discrete Mathematics

Logic and Truth Tables

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) RULES OF INFERENCE. Discrete Math Team

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

Mathematical Logic Part One

Propositional natural deduction

1 The Foundation: Logic and Proofs

Discrete Structures for Computer Science

EECS 1028 M: Discrete Mathematics for Engineers

Definition 2. Conjunction of p and q

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Supplementary Logic Notes CSE 321 Winter 2009

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

PL: Truth Trees. Handout Truth Trees: The Setup

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

Computational Logic Lecture 3. Logical Entailment. Michael Genesereth Autumn Logical Reasoning

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

Chapter 1 Elementary Logic

A. Propositional Logic

First Order Logic: Syntax and Semantics

software design & management Gachon University Chulyun Kim

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

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Transcription:

ormal Logic 2 HW2 Due Now & ickup HW3 handout! Last lecture ropositional Logic ropositions, Statements, Connectives, ruth table, ormula W roperties: autology, Contradiction, Validity, Satisfiability Logical Equivalence autology Equivalence Laws his lecture: Standard rocedure of Inferencing Normal forms Standard Deductive roofs in Logic using Inference Rules 1 Normal orm wo special forms for formulas logically equivalent to a given formula : Disjunctive normal form (DN) and Conjunctive normal form (CN). DN: a formula G of m variables being a disjunction x 1 x 2 x k of k >= 0 terms/clauses, where each x i is a conjunction of m literals, i.e. x i = (y 1 y 2 y m ) CN: a formula G of m variables being a conjunction x 1 x 2 x k of k >= 0 terms/clauses, where each x i is a disjunction of m literals, i.e. x i = (y 1 y 2 y m ) heorem: Every formula is logically equivalent to a corresponding formula in DN (and a formula in CN) (in another word, every formula can be written in DN and CN) 2 1

Systematic way to find DN and CN Given S = (( ( R)) ( )) R S DN is ( R) ( R) ( R) i.e. take each row where S is rue. Check this! CN for S starts with DN of S, i.e. take each row where S is alse and form DN. hen, use DeMorganlaw to convert ( S) in DN to CN 3 DN for S is: ( R) ( R) ( R) ( R) ( R) Now S = ( S) : (( R) ( R) ( R) ( R) ( R) ) Use DeMorgan slaw: (push in 1 st ) ( R) ( R) ( R) ( R) ( R) ) More DeMorgan slaw to get CN for S: ( R) ( R) ( R) ( R) ( R) 4 2

Deductive roof Method erminology : axiomis a basic assumption about mathematical structure that needs no proof, i.e. things known to be true (facts or proven theorems or tautologies) A theoremis a statement that can be shown to be valid. A lemmais a simple theorem used as an intermediate result in the proof of another theorem. A corollaryis a proposition that follows directly from a theorem that has been proved. A conjectureis a statement whose truth value is unknown. Once it is proven, it becomes a theorem. 5 A theorem often has two parts Conditions(or hypotheses/premises) and a Conclusion A correct (deductive) proof is to establish that If all conditions are true, then the conclusion is true i.e., (Conditions Conclusion) is valid (a tautology) Deduction: a method which usestautology lawsand inference rulesto prove a theorem, i.e. Often there are missing pieces (not easily understandable) between conditions and conclusion. ill it by a sequence of applications of tautologies and inference rules - Starting from conditions and axioms - Generate a sequence of valid statements connected by proper rules of inference (new statements are generated from existing ones by these rules) 6 3

Logically valid inferences by using inference rules he general form of a rule of inference is: p 1 p 2. p n q if p 1 and p 2 and and p n are all true, then q is true as well. Each rule is an established tautology of p 1 p 2 p n q hese rules of inference can be used in any mathematical argument and do not require any proof. 7 Modus ponens Latin name, means: method of assertion An argumentconsists of one or more hypotheses and a conclusion. An argument isvalid(theorem), if whenever all its hypotheses are true, its conclusion is also true Example : Use deduction to prove that [[ ( )] ( )] is a valid argument (or theorem). Note : Using Conditional proof law, this is equivalent to [[ ( )] ] 1. ( ) (hypothesis) 2. (hypothesis) 3. (1& 2 modus ponens) 4. (2& 3 modus ponens) 8 4

Example : rove that ( ) ( S) ( S) is theorem. Note : Using Conditional proof law, this is equivalent to ( ) ( S) S 1. (hypothesis) 2. S (hypothesis) 3. (hypothesis) 4. (contraposition, 1, 4 equivalent) 5. (4, double negations) 6. (3, 5 modus ponens) 7. S (2, 6 modus ponens) 9 ew Inferences rules (more in the text book) conjunction disjunctive syllogism Modus ollens addition simplification 10 5

Example : rove that (A ) (A L) [A ( L)] is theorem Note : his is equivalent to (A ) (A L) A ( L) 1. A (hypothesis) 2. A L (hypothesis) 3. A (hypothesis) 4. (1, 3 modus ponens) 5. L (2, 3 modus ponens) 6. L (4, 5 conjunction inference rule) 11 Example : rove ( R) (R S W) ( S W) is a theorem Note : his is equivalent( R) (R S W) ( S) W 1. R (hypothesis) 2. R S W (hypothesis) 3. S (hypothesis) ** arget: Show W is true: ** 4. (3, simplification) 5. (4, addition) 6. R (1, 5 mp) 7. S W (2, 6 mp) 8. S (3, simplification) 9. W (7,8 disjunctive syllogism) 12 6