PHIL012. SYMBOLIC LOGIC PROPOSITIONAL LOGIC DERIVATIONS

Similar documents
In this chapter, we specify a deductive apparatus for PL.

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

Manual of Logical Style (fresh version 2018)

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

Natural deduction for truth-functional logic

PL: Truth Trees. Handout Truth Trees: The Setup

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

15414/614 Optional Lecture 1: Propositional Logic

Collins' notes on Lemmon's Logic

CSC Discrete Math I, Spring Propositional Logic

4 Derivations in the Propositional Calculus

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

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

Supplementary Logic Notes CSE 321 Winter 2009

3 The Semantics of the Propositional Calculus

Proof strategies, or, a manual of logical style

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Propositional Logic Review

Propositional Logic. Fall () Propositional Logic Fall / 30

Manual of Logical Style

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

Propositional Logic: Syntax

For a horseshoe statement, having the matching p (left side) gives you the q (right side) by itself. It does NOT work with matching q s.

(ÀB Ä (A Â C)) (A Ä ÀC) Á B. This is our sample argument. Formal Proofs

Propositional Logic. Spring Propositional Logic Spring / 32

Section 1.2: Propositional Logic

Propositional Logic: Deductive Proof & Natural Deduction Part 1

1.1 Statements and Compound Statements

Proof Tactics, Strategies and Derived Rules. CS 270 Math Foundations of CS Jeremy Johnson

Natural Deduction for Propositional Logic

Supplementary exercises in propositional logic

cis32-ai lecture # 18 mon-3-apr-2006

CITS2211 Discrete Structures Proofs

PROPOSITIONAL CALCULUS

Logic for Computer Science - Week 5 Natural Deduction

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

A Quick Lesson on Negation

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

HANDOUT AND SET THEORY. Ariyadi Wijaya

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

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

Section 1.1 Propositions

Notes on Inference and Deduction

Chapter 1 Elementary Logic

PHIL12A Section answers, 16 February 2011

Logik für Informatiker Logic for computer scientists

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

Logic for Computer Science - Week 4 Natural Deduction

Topic 1: Propositional logic

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

Propositional Equivalence

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.

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

Intermediate Logic. Natural Deduction for TFL

Logik für Informatiker Proofs in propositional logic

A Little Deductive Logic

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

PHI Propositional Logic Lecture 2. Truth Tables

Compound Propositions

[Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 400 lecture note #2. 1) Basics

Part Two: The Basic Components of the SOFL Specification Language

Logical Form 5 Famous Valid Forms. Today s Lecture 1/26/10

Discrete Mathematics and Its Applications

Comp487/587 - Boolean Formulas

Formal (natural) deduction in propositional logic

A Little Deductive Logic

It rains now. (true) The followings are not propositions.

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Propositional Logic Not Enough

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

ANALYSIS EXERCISE 1 SOLUTIONS

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Propositional natural deduction

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Deductive Systems. Lecture - 3

Intelligent Agents. Pınar Yolum Utrecht University

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

Formal Logic. Critical Thinking

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

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

DERIVATIONS AND TRUTH TABLES

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

Four Basic Logical Connectives & Symbolization

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Logic, Sets, and Proofs

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

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

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

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

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

A Statement; Logical Operations

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Language of Propositional Logic

The Logic of Compound Statements cont.

THE LOGIC OF COMPOUND STATEMENTS

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

Logical Agents. Chapter 7

The semantics of propositional logic

Transcription:

HIL012 SYMBOLIC LOGIC ROOSITIONL LOGIC DERIVTIONS When we argue, what we want are (i) clearly specifiable rules, (ii) that apply to any particular subject matter, and (iii) that legitimate transitions from one proposition (or set of propositions) to the next proof is a finite sequence of well-formed formulas (or propositions), each of which is either a premise, assumption, or is the result of the preceding formulas and a derivation rule What this means is: (1) no proof will be infinitely long, the conclusion of a proof is its conclusion (2) every line in a proof will be one of the following: a premise, assumption, or derived proposition (3) various rules (called derivation rules ) allow for moving forward in a proof To indicate the presence of an argument, we use the single turnstile: This symbol indicates the presence of an argument: the propositions to the left of the turnstile are the premises while the proposition to the right of the turnstile is the conclusion For example, the turnstile in the following R, Z R indicates the presence of an argument where R and Z are the premises and R is the conclusion roofs: The Setup proof begins with an initial setup involving three columns: (1) for numbering the premises, (2) writing (stacking) the propositions, (3) justification of propositions and indicating the goal proposition (or conclusion) To illustrate, consider the following R, Y R Z 1 R 2 Y R / Z In the setup of the above proof, R and Y R are premises (and we use ) to indicate this The conclusion (goal proposition) is Z roofs: Intelim Derivation Rules In what follows, we develop a system of derivation rules (D) derivation rule is a syntactically-articulated rule that states conditions under which you can move forward in a proof In some sense, it gives you permission to move down a line in a proof There are two main types of derivation rules: introduction rules (these introduce a proposition of a certain type into a proof) and elimination rules (these work from propositions of a certain type in a proof) 1

1 Conjunction Introduction ( I) From and, we can derive lso, from and, we can derive I I Conjunction introduction states that from two different propositions, we can derive the conjunction of these propositions For example, prove:, R, Z Z 1 2 R 3 Z / Z 4 Z 1,3 I 2 Conjunction Elimination () From, we can derive lso, from, we can derive Conjunction elimination states that from a conjunction, we can derive either of the conjuncts For example, prove: Z Z 1 Z 2 Z 1 Classroom Exercises 1 (R M) R 2 (R M) M 3, R, M (M ) R 4, R, M (M R) R 5 R, Z W W 6* ( R W), L, R Z R (L Z) ssumptions & Subproofs n assumption (abbreviated as ) is a proposition taken to be, or assumed, true for the purpose of proof Each time you make an assumption, you indent, draw a line indicating that you are moving into a subproof, and justify that proposition you assumed with an Main Line Subproof 1 S remise 2 B fter you ve made an assumption, you can reason within the subproof that has been created by the assumption: 2

1 S remise 2 B 3 S B 1,2 I The above is similar to saying Let s agree that S is true Now, let s assume B is true Well, if S is true, then given our assumption B, it follows that S B You are not limited to one assumption You can make assumptions within assumptions For example, consider the proof just below This proof reads something like the following: Let s say that is true Given that is true, let s assume S Now that we ve assumed S, let s assume W 1 2 S 3 W You can think of subproofs like containers or nests That is the subproof begun by S contains the subproof begun by W Likewise, the mainline of the proof, beginning with contains the subproofs begun by S and W In the language of nests, W is in the nest begun by S and S is in the nest of the main line of the proof W is in the most deeply nested part of the proof while is in the least deeply nested part In addition, sometimes in proofs you will make an assumption and then make another assumption that is not related to the first assumption: 1 2 B 3 B 1,2 I 4 C 5 C 1,4 I You can use derivation rules to reason within subproofs, but there are certain restrictions The basic rule is the following: If is in a section of the proof S 1 that contains another subproof S 2, then can be used in S 2 If R is in a section of the proof S 3 that does not contain a subproof S 4, then R cannot be used in S 4 3

ssumptions & Subproofs: Violations! There are two ways that you can violate the above rule Violation #1: You pull information from inside a subproof outside the subproof 1 R 2 Z 3 R Z 1,2 I 4 Z R 1,2 I NO! For example: Violation #2: You pull information across subproofs 1 2 B 3 B 1,2 I 4 C 5 B C 2,4 I NO! 3 Conditional Introduction ( I) From a derivation of within a subproof involving an assumption, we can derive out of the subproof I Conditional introduction allows for introducing a conditional outside of a subproof given a subproof containing as the assumption and as a derived proposition within that subproof Here is an example: R Z R 1 R / Z R 2 Z 3 Z R 1,2 I 4 R 3 5 Z R 2-4 I In-Class ractice roblem: R Z W Z 4

4 Conditional Elimination () From and, we can derive Conditional eliminations allows for deriving a proposition provided we have a conditional and the antecedent of that conditional Here is an example: Z R, Z R 1 Z R 2 Z / R 3 Z 2 4 R 1,3 In-Class ractice roblem R Z, Z W, R M W M Reiteration 5 Reiteration (R) From we can derive R Reiteration allows for deriving a proposition provided already occurs in the proof Here are two examples Example #1: Z Z 1 Z / Z 2 Z 1R Example #2: R Z R 1 R / Z R 2 Z 3 R 1R 4 Z R 2-3 I Classroom Exercises 1 Z, Z 2 ( Z) W,, Z W 3 R 4, M (R F) ( M) 5

5 (R F) Z, M (R F) M Z 6 R, R L, (L R) 7 R R 8 R (R R) 9 R [Z (M Z)] Word of Encouragement For students taking a first course in symbolic logic, proofs tend to be one of the most difficult topics to grasp Unlike decision procedures (truth tables and truth trees), the process of solving a proof requires the use of strategies and a little trial-and-error s you work through various proofs, don t get discouraged if you are unable to get the answer immediately or if you have to start a proof over Just keep at it and practice, practice, practice! Negation Introduction & Elimination 6 Negation Introduction ( I) From a derivation of a proposition and its literal negation within a subproof involving an assumption, we can derive out of the subproof I 7 Negation Elimination () From a derivation of a proposition and its literal negation within a subproof involving an assumption, we can derive out of the subproof Classroom Illustrations 1 R 2 ( ) R,, R W 6

Disjunction Introduction & Elimination 8 Disjunction Introduction ( I) From, we can validly infer or 9 Disjunction Elimination () From and two derivations of R one involving as an assumption in a subproof, the other involving as an assumption in a subproof we can derive R out of the subproof R I R R In-Class Illustrations 1 ( Z) R, Z R L 2, R, R R 3* T (Z M), (Z M) ( R S), T ( R S) R Biconditional Elimination & Introduction 10 Biconditional Introduction ( I) From a derivation of within a subproof involving an assumption and from a derivation of within a separate subproof involving an assumption, we can derive out of the subproof 11 Biconditional Elimination () From and, we can derive nd, from and, we can derive 7 I

Classroom Exercises 1 (F Z) (T ), ( M) (R Z) Z 2 ( M) R, (W L), L R roofs: Strategies There are two main types of strategies: proof strategies and assumption strategies roof Strategies S#1 (E) S#2 (B) First, eliminate any conjunctions with, disjunctions with, conditionals with, and biconditionals with Then, if necessary, use any necessary introduction rules to reach the desired conclusion First, work backward from the conclusion using introduction rules (eg I, I, I, I) Then, use S#1 (E) 1 (R M), ( S) Z R 2 R, Z W, R W ssumption Strategies S#1 (, ) S#2 ( ) S#3 ( ) S If the conclusion is an atomic proposition (or a negated proposition), assume the negation of the proposition (or the non-negated form of the negated proposition), derive a contradiction and then use I or If the conclusion is a conditional, assume the antecedent, derive the consequent, and use I If the conclusion is a conjunction, you will need two steps First, assume the negation of one of the conjuncts, derive a contradiction, and then use I or Second, in a separate subproof, assume the negation of the other conjunct, derive a contradiction, and then use I or From this point, a use of I will solve the proof If the conclusion is a disjunction, assume the negation of the whole disjunction, derive a contradiction, and then use I or 1, 2 R (D L) R 3 ( R) R 4* ( ) Consider ( ) The strategy associated with assumptions is S 1 ( ) / 8

2 ( ) /, The subgoal at this point is to generate a proposition and its literal negation in the subproof, but it is not clear how to do this You cannot generate and out of nothing so consider what propositions you do have and try to derive a proposition that is a literal negation of these We thus have two options: 1 ( ) / 2 ( ) /, #? Option #1: derive since ( ) is its literal negation Option #2: derive since ( ) is its literal negation Consider option #2 If we were to try to derive, we need to make an assumption, and the strategic rule associated with deriving disjunctions S says to assume the negation, derive and, and then use or I In the case of the above proof, the next step would be as follows: 1 ( ) / 2 ( ) /, 3 ( ) /, But this does not help since we still have no way to get, in the proof So, consider option #1 If we were to try and derive, we would need to make an assumption, and the strategic rule associated with conjunctions S#3( ) says to assume the literal negation of each of the conjuncts in separate subproofs, derive and in each, and then use I or 1 ( ) / 2 ( ) /, 3 /, Now the proof can be more easily solved n /, Classroom Exercises 1 ( L), (M T) ( R L), (M R) (Z ) ( B) 9

2 R W ( R) 3 (W W) 4, ( W) (R T), (T V) ( R T) S 5* R R 6* R R roofs: dditional Derivation Rules (D+) The set of 10 intelim rules along with reiteration forms D, a derivation system capable of proving any valid argument in L In other words, D consists of all of the essential derivation rules we need However, you may have noticed that the proofs for many straightforwardly valid arguments are overly difficult or time-consuming For example, the proof of, is overly complicated given that the argument is straightforwardly valid In what follows, a number of additional derivation rules are added to D to form D+ These additional derivation rules serve to expedite the proof solving process 12 Disjunctive Syllogism (DS) From and, we can derive From and, we can derive DS DS The general idea is that given a disjunction and the literal negation of one of the disjuncts (either or ), we can derive the other disjunct 1 (R S) / 2 (R S) 3 1,2DS 13 Modus Tollens (MT) From and, we can derive MT The general idea is that given a conditional and the literal negation of the consequent, the negation of the antecedent can be derived 1 (S R) / 2 (S R) 3 1,2MT 14 Hypothetical Syllogism (HS) From and R, we can derive R R R HS 10

The idea is that if you have two conditionals and R where the consequent of one conditional is the antecedent of the other conditional R, then you can derive a third conditional R Classroom Exercises 1 (R T) W, S W R T 2 ( S) W, W T ( S) 3 (R T) W, M (R T), W (S R) M (S R) 4* (R S), R, L L roofs: dditional Derivation Rules (D+), The Replacement Rules ll of the previous derivation rules have been inference rules, these are derivation rules that allow for deriving a proposition of one form from a proposition of another form In addition to adding DS, MT, and HS to D, we will also add a new kind of derivation rule, known as replacement rules Replacement rules are derivation rules that allow for interchanging certain formulas or sub-formulas 15 Double Negation (DN) From, we can derive From, we can derive DN DN allows for replacing a single formula or single subformula with its doubly negated form or taking a doubly negated formula and replacing it with its unnegated form For example, 1 R / ( R) 2 ( R) 1DN It is important to note that replacement rules can be applied to a single subformula For example, 1 (R S) / (R S) 2 (R S) 1DN But, be careful! DN must be applied to the whole of a formula or subformula and not to part of one subformula and part of another subformula: 1 (R S) 2 ( R S) 1DN NO! 16 De Morgan s Laws (DeM) From ( ), we can derive From, we can derive ( ) From ( ), we can derive From, we can derive ( ) ( ) ( ) DeM DeM 11

In the case of DeM, you can interchange a negated disjunction ( ) with a conjunction whose conjuncts are negated (and vice versa) and you can interchange a negated conjunction ( ) with a disjunction whose disjuncts are negated (and vice versa) For example, in the following proof, De Morgan s laws are applied to R to derive (R ), ie turning a conjunction with negated conjuncts into a negated disjunction 1 (R ) 2 R / 3 (R ) 2DeM 4 1,3MT In the example below, DeM is applied to the negated disjunction (R S) to derive a conjunction with two negated disjuncts 1 (R S) 2 R S 1DeM 3 R 2 17 Implication (IM) From, we can derive From, we can derive IM In the case of IM, you can interchange a negated conditional with a disjunction Remembering that replacement rules can be applied to single sub-formula, notice how IM is applied to the subformula R in ( R) in the following example: 1 ( R) 2 ( R) 1IM 3 R 2DeM 4 3 5 4DN Classroom Exercises 1 R,, R (W Z) (W Z) 2 ( R) ( Z W), R (Z W) 3 ( R), ( R) (Z R) Z R 4* R, ( R) S 5* (Z S), ( R) Z W 6*, ( R) (S T) S roofs: Revised Strategic Rules In enhancing our proof system from D to D+, we also want to enhance the strategies with which we solve proofs 12

S#1 (E+) S#2 (B) S#3 (E+) First, eliminate any conjunctions with, disjunctions with DS or, conditionals with or MT, and biconditionals with Then, if necessary, use any necessary introduction rules to reach the desired conclusion First, work backward from the conclusion using introduction rules (eg I, I, I, I) Then, use S#1(E) Use DeM on any negated disjunctions or negated conjunctions, and then use S#1(E) Use IM on negated conditionals, then use DeM, and then use S#1(E) Classroom Exercises 1 (R S), S, R 2 R (M T), R W, L W L 3 (R M) (S T), (S T) (Z), (R M) E 4 ( R), (M S), R M 5 ( R), Z, R M Z M 6 ( R), Z Z R 7* ( R) (S R) 8* ( R) [(Z R) Z] 9** [ ( M) (T S)] ( ) 13