Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Similar documents
Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

PL: Truth Trees. Handout Truth Trees: The Setup

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

Natural deduction for truth-functional logic

PHIL12A Section answers, 16 February 2011

CSC Discrete Math I, Spring Propositional Logic

Intermediate Logic. Natural Deduction for TFL

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

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

Proofs. Joe Patten August 10, 2018

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Philosophy 220. Truth-Functional Equivalence and Consistency

Unary negation: T F F T

THE LOGIC OF COMPOUND STATEMENTS

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion)

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

Introducing Proof 1. hsn.uk.net. Contents

Truth-Functional Logic

1.1 Language and Logic

Section 1.1: Logical Form and Logical Equivalence

THE LOGIC OF COMPOUND STATEMENTS

VALIDITY IN SENTENTIAL LOGIC

Definition 2. Conjunction of p and q

PHIL 422 Advanced Logic Inductive Proof

Ella failed to drop the class. Ella dropped the class.

A Little Deductive Logic

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

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

A Little Deductive Logic

1.1 Language and Logic

VALIDITY IN SENTENTIAL LOGIC

1.1 Statements and Compound Statements

Mathematical Logic Part One

Discrete Mathematics

4 Derivations in the Propositional Calculus

PHIL012. SYMBOLIC LOGIC PROPOSITIONAL LOGIC DERIVATIONS

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

Mathematics for linguists

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Proof strategies, or, a manual of logical style

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

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Learning Goals of CS245 Logic and Computation

5. And. 5.1 The conjunction

Mathematical Logic Part One

Logic for Computer Science - Week 4 Natural Deduction

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

Manual of Logical Style (fresh version 2018)

A Statement; Logical Operations

Manual of Logical Style

Propositional Logic Review

1 Tautologies, contradictions and contingencies

Supplementary Logic Notes CSE 321 Winter 2009

Introduction to Isabelle/HOL

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

The statement calculus and logic

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

Chapter 4: Classical Propositional Semantics

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

15414/614 Optional Lecture 1: Propositional Logic

PUZZLE. You meet A, B, and C in the land of knights and knaves. A says Either B and I are both knights or we are both knaves.

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

1 Propositional Logic

3 The Semantics of the Propositional Calculus

Truth Table Definitions of Logical Connectives

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

Natural Deduction for Propositional Logic

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

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

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

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

Classical Propositional Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Propositional Equivalence

Overview of Today s Lecture

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Compound Propositions

Deductive Systems. Lecture - 3

First-Degree Entailment

PROBLEM SET 3: PROOF TECHNIQUES

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

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

5. And. 5.1 The conjunction

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

Section 1.2: Propositional Logic

a. ~p : if p is T, then ~p is F, and vice versa

KE/Tableaux. What is it for?

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

Propositional Logic. Spring Propositional Logic Spring / 32

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Mathematical Reasoning (Part I) 1

Mathematical Logic Part One

The semantics of propositional logic

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

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

EECS 1028 M: Discrete Mathematics for Engineers

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Logik für Informatiker Logic for computer scientists

Transcription:

Deduction by Daniel Bonevac Chapter 3 Truth Trees

Truth trees Truth trees provide an alternate decision procedure for assessing validity, logical equivalence, satisfiability and other logical properties of sentences and arguments. Truth trees are superior to truth tables only in that they are much less tedious for humans to use. The basic idea behind a truth tree can be captured by explaining a shorter way of using a truth table to assess validity.

Thinking backwards You already know how to use a truth table to determine whether a sentence like this is valid. ((p r) & p) r But you can shorten the task by recalling that the only way for a conditional to be false is for the premises to be true and the conclusion false. This means that you really only need to look at the lines of the table that could possibly produce that result. To do this, you simply assign F to the conclusion and work backwards to see what assignments of T to the premises are consistent with the assignment of F to the conclusion. In the case of the above formula, we begin by observing that the only way it can be false is if r is F, meaning that r must be T. We now look for ways to assign F to antecedent ((p r) & p) that is compatible with r being T. We know from the truth table for that if r is T, then (p r) must be true. So, the only way that the formula ((p r) & p will be true is if p is F, meaning that p is true. But this one interpretation gives us an assignment that renders the formula not valid.

Example of working backwards 1 Here s how that reasoning works out in a truth table. First assign F to the conclusion. p r ((p r) & p) r) F

Example of working backwards 2 This means that r has to be T p r ((p r) & p) r) T T F

Example of working backwards 3 This means that (p r) has to be T p r ((p r) & p) r) T T T F

Example of working backwards 4 So in order for the conjunction to be T, p must be T, meaning that p is F. p r ((p r) & p) r) F T F T T T F

Example of working backwards 5 Which gives you an F under the, meaning the formula is not valid. p r ((p r) & p) r) F T F T T T F F

Truth tree terminology Truth trees are tree-like structures with nodes of the trees corresponding to particular formulas. Here are some basic facts about truth trees. The branches of the trees develop in accord with specific rules that we will learn. The rules are applied to the formulas on the nodes of the tree. When a rule has been applied, the formula is dispatched with a mark. This means that you are done operating on it. A formula without a mark is called live.

More truth tree terminology We say that a branch of a tree is closed when a formula and it s negation both appear on the branch. We mark a closed branch with an X. Otherwise we say the branch is open. We say that a branch is finished when it is (1) closed or (2) only atomic formulas or their negations are live on it.

Using trees to test for validity The most common use of a truth tree is to test an argument for validity. The idea behind this test is simple. Just as with working backwards by the truth table method, we assume the conclusion is false. With the truth tree method, we do not assign the letter F, but rather just negate the conclusion. So, if we were going to test the following argument for validity: p v q p q We would start the tree like this. p v q p q From the definition of validity, you know that if the original argument is valid, then negating the conclusion will produce a contradiction. In truth table language this means that every possible interpretation of the corresponding conditional will be false. In truth tree language it means that every single branch of the corresponding tree will be closed.

Rules for truth trees The rules for making trees exploit the difference between conjunctions and disjunctions. Statements of the form (A & B) are true if and only if both A and B are true. So the rule for growing a branch with a conjunction is to write both A and B on the same branch. Statements of the form (A v B) are true when just one or both of the conjuncts are true. So the rule for growing a branch with a conjunction is to write A and B on different branches. p & q p v q p q p q

Other truth tree rules Almost all of the other rules for truth trees are based on the logical equivalence of formulas with those involving v and &. The only exception is the rule for double negation ( ) which is simply: p p

The negated conjunction rule & A negated conjunction has the form (A & B) and it is logically equivalent to A v B This is intuitive, but you can also prove it to yourself using the truth table method. Because of this equivalence, the truth tree rule for negated conjunction is: (p & q) p q

The negated disjunction rule v A negated disjunction has the form (A v B) and it is logically equivalent to A & B Because of this equivalence, the truth tree rule for negated conjunction is: (p v q) p q

A first truth tree proof. Let s use the truth tree method to determine whether the following argument is valid. ( p v q) p & q We begin by negating the conclusion. ( p v q) (p & q) We can now proceed by applying rules to either one of the formulas. Practically speaking it is always best to work on the non branching formulas first. In this case, that means we apply the rule of v to the premise.

First truth tree proof 2 ( p v q) (p & q) p q After dispatching the original formula, we now apply the rule to both resulting formulas. We do this now, because is also a non branching rule.

First truth tree proof 3 ( p v q) (p & q) p q p q Now the only thing left to do is apply & to the negated conclusion.

First truth tree proof 4 ( p v q) (p & q) p q p q p q We have now dispatched everything but atomic and negated formulas. The only thing left to do is check and see if the branches are closed or open.

Example continued ( p v q) (p & q) p q p q p q x x And it s easy to see that in this example both branches close, since tracing backwards, you find contradictory formulas in both cases. Because both branches close, the original argument is valid.

Conditional There are four more rules we need to learn, all related to conditionals and biconditionals. The rule for a conditional ( ) is based on the fact that (A B) is logically equivalent to A v B This is intuitive, as we saw in the previous chapter. Because of this equivalence, the truth tree rule for is: (p q) p q

Negated conditional A negated conditional ( ) has the form (A B) and it is logically equivalent to A & B This is not at all intuitive, but we won t dwell on that now. You can prove it to yourself using the truth table method, or by simply recalling that the only way for a conditional (A B) to be false (i.e. negated) is for A to be true and B to be false. Because of this equivalence, the truth tree rule for is: (p q) p q

Biconditional The rule for the biconditional ( ) based on the slightly more complicated fact that (A B) is logically equivalent to (A & B) v ( A & B) Since the equivalent expression is a disjunction of conjunctions, this is a branching rule with the conjunctions hanging off the ends of the branches like this: (p q) p p q q

Negated biconditional Our last rule is negated biconditional. It is based on the fact that (A B) is logically equivalent to (A & B) v ( A & B) Since the equivalent expression is a disjunction of conjunctions, this is a branching rule with the conjunctions hanging off the ends of the branches like this: (p q) p p q q

Two more details There are just a couple of more things you need to know about doing truth trees property: (1) When you are decomposing a formula according to a truth tree rule, you must do so on every open branch under the formula. For example, if there are four open branches under the formula, you must apply the rule 4 times. (This is why we always try to apply non branching rules first.) (2) Once a contradiction appears on a branch you can close it off. You don t need to continue working on it. This saves a lot of work as well.

More truth tree proofs Let s do some more trees in a different environment.