INTRODUCTION TO LOGIC

Similar documents
INTRODUCTION TO LOGIC

INTRODUCTION TO LOGIC 8 Identity and Definite Descriptions

INTRODUCTION TO LOGIC 8 Identity and Definite Descriptions

The Natural Deduction Pack

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

(c) Establish the following claims by means of counterexamples.

2-4: The Use of Quantifiers

Propositional Logic Review

Manual of Logical Style (fresh version 2018)

INTRODUCTION TO LOGIC 3 Formalisation in Propositional Logic

Section 3.1: Direct Proof and Counterexample 1

Class 29 - November 3 Semantics for Predicate Logic

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

15414/614 Optional Lecture 1: Propositional Logic

EXERCISES BOOKLET. for the Logic Manual. Volker Halbach. Oxford. There are no changes to the exercises from last year s edition

INF3170 Logikk Spring Homework #8 For Friday, March 18

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

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

INTRODUCTION TO LOGIC 4 The Syntax of Predicate Logic

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

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

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

CITS2211 Discrete Structures Proofs

I thank the author of the examination paper on which sample paper is based. VH

Truth, Subderivations and the Liar. Why Should I Care about the Liar Sentence? Uses of the Truth Concept - (i) Disquotation.

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

INTRODUCTION TO LOGIC 1 Sets, Relations, and Arguments. Why logic? Arguments

Predicate Logic: Sematics Part 1

Introduction to Metalogic

Logic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017

Natural Deduction in Sentential Logic

Natural Deduction for Propositional Logic

Adam Blank Spring 2017 CSE 311. Foundations of Computing I

Propositional natural deduction

Overview of Today s Lecture

Manual of Logical Style

Artificial Intelligence Knowledge Representation I

Intermediate Logic. Natural Deduction for TFL

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Notation for Logical Operators:

Overview of Logic and Computation: Notes

Negation introduction

a. Introduction to metatheory

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

The predicate calculus is complete

Inference in Propositional Logic

Semantics and Pragmatics of NLP

Relational Reasoning in Natural Language

2 nd Assignment Answer Key Phil 210 Fall 2013

First-Order Predicate Logic. Basics

CIS260 Mathematical Foundations of Computer Science Some Notes

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

Section 1.1 Propositions

1. Prove that the number cannot be represented as a 2 +3b 2 for any integers a and b. (Hint: Consider the remainder mod 3).

The Substitutional Analysis of Logical Consequence

Gödel s Completeness Theorem

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

CS156: The Calculus of Computation Zohar Manna Winter 2010

PHIL12A Section answers, 28 Feb 2011

Natural deduction for truth-functional logic

Completeness for FOL

Automated Reasoning Lecture 5: First-Order Logic

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Final exam Logic & Set Theory (2IT61) (correction model)

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

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

Proof strategies, or, a manual of logical style

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Logic Part II: Intuitionistic Logic and Natural Deduction

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

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Supplementary Logic Notes CSE 321 Winter 2009

Lecture 9. Model theory. Consistency, independence, completeness, categoricity of axiom systems. Expanded with algebraic view.

Introduction to Metalogic

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

CPPE TURN OVER

Propositional Logic Arguments (5A) Young W. Lim 11/29/16

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

Introducing Proof 1. hsn.uk.net. Contents

1.2. INFERENCE RULES, DEDUCTIONS, THE PROOF SYSTEMS N M AND NG M Inference Rules, Deductions, The Proof Systems and NG m

Peano Arithmetic. by replacing the schematic letter R with a formula, then prefixing universal quantifiers to bind

Logic Part I: Classical Logic and Its Semantics

First-Order Logic. Chapter Overview Syntax

G52DOA - Derivation of Algorithms Predicate Logic

1 Functions and Sets. 1.1 Sets and Subsets. Phil 450: The Limits of Logic Jeff Russell, Fall 2014

Overview of Today s Lecture

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Section 5 Circumscription. Subsection 5.1 Introducing Circumscription. TU Dresden, WS 2017/18 Introduction to Nonmonotonic Reasoning Slide 128

Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Gödel s Incompleteness Theorems

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.

Introduction to Metalogic 1

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

First-Order Logic (FOL)

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Topic 1: Propositional logic

2010 Part IA Formal Logic, Model Answers

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

Transcription:

Introduction INTRODUCTION TO LOGIC 6 Natural Deduction Volker Halbach Definition Let Γ be a set of sentences of L 2 and ϕ a sentence of L 2. Then Γ ϕ if and only if there is no L 2 -structure in which all sentences in Γ are true and ϕ is false. Introduction Introduction One way of showing that an argument is valid is to break it down into several steps and to show that one can arrive at the conclusion through some more obvious arguments. One way of showing that an argument is valid is to break it down into several steps and to show that one can arrive at the conclusion through some more obvious arguments. It s not clear one can break down every valid argument into a sequence of steps from a predefined finite set of rules. This is possible in the case of L 2. There is a finite set of rules that allows one to derive the conclusion from the premisses of any valid argument.

Introduction Introduction The existence of such a set of rules is remarkable for various reasons: In order to prove that an argument in L 2 is valid, one can use the proof system. The existence of such a set of rules is remarkable for various reasons: In order to prove that an argument in L 2 is valid, one can use the proof system. An alternative definition of the validity of arguments becomes available: an argument is valid iff the conclusion can be derived from the premisses using the specified rules. Introduction Introduction The existence of such a set of rules is remarkable for various reasons: In order to prove that an argument in L 2 is valid, one can use the proof system. An alternative definition of the validity of arguments becomes available: an argument is valid iff the conclusion can be derived from the premisses using the specified rules. The notion of proof can be precisely defined. In cases of disagreement, one can always break down an argument into elementary steps that are covered by these rules. The point is that all proofs could in principle be broken down into these elementary steps. The existence of such a set of rules is remarkable for various reasons: In order to prove that an argument in L 2 is valid, one can use the proof system. An alternative definition of the validity of arguments becomes available: an argument is valid iff the conclusion can be derived from the premisses using the specified rules. The notion of proof can be precisely defined. In cases of disagreement, one can always break down an argument into elementary steps that are covered by these rules. The point is that all proofs could in principle be broken down into these elementary steps. The notion of proof becomes tractable, so one can obtain general results about provability.

Introduction Introduction The proof system is defined in purely syntactic terms. In a proof one can t appeal to semantic notions (such as this means the same as ). The rules describe how to manipulate symbols without referring to the meaning (semantics) of the symbols. The precise definition of what a proof in Natural Deduction is see the Logic Manual. On http://logicmanual.philosophy.ox.ac.uk/ there are more examples. Introduction Introduction In a proof one starts with the premisses and tries to get to the conclusion of the argument. In a proof one starts with the premisses and tries to get to the conclusion of the argument. The proof rules apply to all sentences of L 2 (remember all sentence letters are sentences of L 2 ).

Introduction In a proof one starts with the premisses and tries to get to the conclusion of the argument. The proof rules apply to all sentences of L 2 (remember all sentence letters are sentences of L 2 ). I write Γ ϕ iff there is a proof of ϕ from sentences in Γ (this will be made precise below). (cf. ) I start with a simple example: (P Q) R P Here is a proof... I write down the premiss as an assumption. This is covered by the There is a rule that allows one to go from ϕ to ϕ: (P Q) R assumption rule The occurrence of a sentence ϕ with no sentence above it is an assumption. An assumption of ϕ is a proof of ϕ. Any sentence can be assumed. (P Q) R P Q Elim1 The result of appending ϕ to a proof of ϕ is a proof of ϕ.

The rule is applied again. The result is a proof of the conclusion P from the premiss. (P Q) R P Q P (P Q) R P Q P Here is another example: Qb Pa, Ra Pa Ra Qb Pa Ra I write down the two premisses as assumptions. This is covered by the assumption rule The occurrence of a sentence ϕ with no sentence above it is an assumption. An assumption of ϕ is a proof of ϕ. Any sentence can be assumed.

There is a rule that allows one to go from ϕ to : And there is a rule that allows one to go from ϕ and to the sentence ϕ : Qb Pa Pa Ra Elim2 The result of appending to a proof of ϕ is a proof of. Qb Pa Pa Ra Pa Ra Intro The result of appending ϕ to a proof of ϕ and a proof of is a proof of ϕ. Qb Pa Pa Ra Pa Ra The result is a proof of Pa Ra from the two premisses. In the proof I have used the rule for assumptions and introduction and elimination rules for. The introduction rule for is: Intro The result of appending ϕ to a proof of ϕ and a proof of is a proof of ϕ. So an application of the rule looks like this: ϕ Intro ϕ

The elimination rules are: Elim1 The result of appending ϕ to a proof of ϕ is a proof of ϕ. The elimination rules are: Elim1 The result of appending ϕ to a proof of ϕ is a proof of ϕ. Elim2 The result of appending to a proof of ϕ is a proof of. The elimination rules are: Elim1 The result of appending ϕ to a proof of ϕ is a proof of ϕ. Elim2 The result of appending to a proof of ϕ is a proof of. y Py Qa, y Py Qa ϕ Elim1 ϕ ϕ Elim2 y Py y Py Qa I assume both premisses

y Py Qa, y Py Qa y Py Qa, y Py Qa I use the elimination rule for : Elim The result of appending to a proof of ϕ and a proof of ϕ is a proof of. y Py y Py Qa Qa This rule is graphically represented as follows: ϕ ϕ Elim y Py y Py Qa Qa This is the complete proof. P, (P Q) R Q R P, (P Q) R Q R I write down the first premiss as assumption. To get P Q I assume Q although Q isn t a premiss. P P Q 30 30

P, (P Q) R Q R P, (P Q) R Q R By applying Intro I obtain P Q. I write down the second premiss as an assumption... P Q P Q P Q P Q (P Q) R 30 30 P, (P Q) R Q R P, (P Q) R Q R P Q P Q (P Q) R R... and apply Elim. 30 P [Q] P Q (P Q) R R Q R Finally I apply Elim. Q has only be assumed for the sake of the argument. The final sentence Q R doesn t depend on the assumption Q. Thus I discharge the assumption Q by enclosing it in square brackets. 30

P, (P Q) R Q R P, (P Q) R Q R P [Q] P Q (P Q) R R Q R Discharged assumptions don t have to be listed as premisses anymore. So I have proved P, (P Q) R Q R. 30 P [Q] P Q (P Q) R R Q R Intro The result of appending ϕ to a proof of and discharging all assumptions of ϕ in the proof of is a proof of ϕ. 30 P P, (P Q) R Q R [Q] P Q (P Q) R R Q R So an application of Intro looks like this: [ϕ] ϕ Intro 30 Now I have explained what it means for an assumption to be discharged in a proof. This allows me to give the official definition of. Definition The sentence ϕ is provable from Γ (where Γ is a set of L 2 -sentences) if and only if there is a proof of ϕ with only sentences in Γ as non-discharged assumptions.

Now I have explained what it means for an assumption to be discharged in a proof. This allows me to give the official definition of. Definition The sentence ϕ is provable from Γ (where Γ is a set of L 2 -sentences) if and only if there is a proof of ϕ with only sentences in Γ as non-discharged assumptions. The phrase ϕ is provable from Γ is abbreviated as Γ ϕ. Now I have explained what it means for an assumption to be discharged in a proof. This allows me to give the official definition of. Definition The sentence ϕ is provable from Γ (where Γ is a set of L 2 -sentences) if and only if there is a proof of ϕ with only sentences in Γ as non-discharged assumptions. The phrase ϕ is provable from Γ is abbreviated as Γ ϕ. If Γ is empty, Γ ϕ is abbreviated as ϕ. If Γ contains exactly the sentences 1,..., n, one may write 1,..., n ϕ instead of { 1,..., n } ϕ. There are two rules for introducing. Applications of them look like this: ϕ ϕ Intro1 ϕ Intro2 An application of the rule for eliminating looks like this: ϕ [ϕ] χ χ [] χ Elim So one infers χ from ϕ by making a case distinction: one derives χ from ϕ and one derives χ from to show that χ follows in either case.

( P Q) ( x Qx P) P ( P Q) ( x Qx P) P ( P Q) ( x Qx P) ( P Q) ( x Qx P) P Q x Qx P I write down the premiss as an assumption. To apply Elim I write down the two cases as assumptions. ( P Q) ( x Qx P) P ( P Q) ( x Qx P) P ( P Q) ( x Qx P) P Q P x Qx P ( P Q) ( x Qx P) P Q P x Qx P P Using Elim1 I infer P from P Q. Similarly, by applying Elim2 I infer P in the other case.

( P Q) ( x Qx P) P An application of Intro looks like this: ( P Q) ( x Qx P) P [ P Q] P [ x Qx P] P [ϕ] [ϕ] Intro ϕ By applying Elim I infer P and discharge the two assumption that were only made for the sake of the argument to distinguish the two cases. An application of Intro looks like this: (P Q) Q [ϕ] [ϕ] Intro ϕ The proof technique is also called reductio ad absurdum.

(P Q) Q (P Q) Q Q (P Q) Q P Q (P Q) I write down the premiss as an assumption and I assume Q. From Q I infer P Q (although I have never assumed P). So I have a contradiction. (P Q) Q The rule for eliminating looks like this: [Q] P Q (P Q) Q By applying Intro, ie, [ ϕ] ϕ [ ϕ] Elim [ϕ] [ϕ] Intro ϕ I discharge the assumption of Q and infer Q.

For I use the following rules: [ϕ] ϕ [] ϕ Intro Here is an example for an application of the rule for -elimination: x (Px Qx), Pa Qa ϕ ϕ Elim1 ϕ ϕ Elim2 x (Px Qx) I assume the first premiss. Here is an example for an application of the rule for -elimination: x (Px Qx), Pa Qa Here is an example for an application of the rule for -elimination: x (Px Qx), Pa Qa x (Px Qx) Pa Qa I apply the rule for eliminating by deleting x and by replacing all occurrences of x in the formula by the constant a. Pa x (Px Qx) Pa Qa I assume the other premiss...

Here is an example for an application of the rule for -elimination: x (Px Qx), Pa Qa Pa x (Px Qx) Pa Qa Qa... and apply Elim to get the conclusion. Here is another example of an application of Elim: z (Pz z Qzz) I assume the premiss. Here is another example of an application of Elim: z (Pz z Qzz) Pc z Qzz I apply the rule for eliminating by deleting z and by replacing all free occurrences of z in the formula by the constant c. An application of the rule for eliminating looks like this where ϕ is an L 2 -formula in which only the variable v occurs freely; t is a constant, ϕ[t/v] is the sentence obtained by replacing all free occurrences of v in ϕ by t. v ϕ ϕ[t/v] Elim

Another example for ϕ[t/v]. Another example for ϕ[t/v]. ((Pz R 2 az) z (Pz y Rzy)) Consider this formula. ((Pz R 2 az) z (Pz y Rzy)) The free occurrences of z are shown in green, the bound occurrences in red. No other variable occurs freely. Another example for ϕ[t/v]. Another example for ϕ[t/v]. ((Pz R 2 az) z (Pz y Rzy)) [c/z] Now I replace all free (green) occurrence of z with c. ((Pc R 2 ac) z (Pz y Rzy)) So ((Pz R 2 az) z (Pz y Rzy))[c/z] is the sentence shown above.

Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) I assume Pa. Pa Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) I apply Intro2. I apply Intro by inferring Pa (Qa Pa) and discharging the assumption Pa Pa Qa Pa [Pa] Qa Pa Pa (Qa Pa)

Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) Here is an example for an application of the rule for -introduction: z (Pz Qz Pz) [Pa] Qa Pa Pa (Qa Pa) z (Pz (Qz Pz)) Finally I apply the rule for introducing. [Pa] Qa Pa Pa (Qa Pa) z (Pz (Qz Pz)) One must make sure that the constant a doesn t occur in any undischarged assumption above Pa (Qa Pa) when applying Intro. Also a must not occur in the inferred sentence. Moreover, when replacing a with z I must make sure that the variable z isn t bound by another occurrence of a quantifier. An application of the rule for introducing looks like this. All the restrictions on the previous slide are contained in the following formulation: ϕ[t/v] Intro v ϕ provided the constant t does not occur in ϕ or in any undischarged assumption in the proof of ϕ[t/v]. In the Manual I have explained why one is imposing the restrictions on ϕ and t. y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y) I write down the first premiss as an assumption... 10

y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y) Pa Qa Pa y (Py Q y) Pa Qa... and apply Elim. 10 Hoping to be able to infer Ra, I assume Pa. 10 y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y), z (Qz Rz) y (Py Ry) Pa y (Py Q y) Pa Qa Qa Pa y (Py Q y) Pa Qa Qa z (Qz Rz) An application of Elim gives Qa. 10 Next I write down the second premiss as an assumption... 10

y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y), z (Qz Rz) y (Py Ry) Pa y (Py Q y) Pa Qa Qa z (Qz Rz) Qa Ra Pa y (Py Q y) Pa Qa Qa Ra z (Qz Rz) Qa Ra... and apply Elim with the constant a again. Note that nothing prevents the use of a again. 10 I apply Elim. 10 y (Py Q y), z (Qz Rz) y (Py Ry) y (Py Q y), z (Qz Rz) y (Py Ry) [Pa] y (Py Q y) Pa Qa Qa Ra Pa Ra z (Qz Rz) Qa Ra [Pa] y (Py Q y) Pa Qa Qa Ra Pa Ra y (Py Ry) z (Qz Rz) Qa Ra Applying Intro I infer Pa Ra and discharge the assumption Pa. 10 Finally I apply Intro. I need to check that provided the constant a does not occur in (Py Ry), and a does not occur in any undischarged assumption in the proof of Pa Ra 10

Here is an example for Intro. Rcc y Rcy Here is an example for Intro. Rcc y Rcy Rcc I assume the premiss. Rcc y Rcy I infer the conclusion by replacing one (or more or all or none) occurrence(s) of a constant with the variable y and prefixing the resulting formula with y. Here is an example of an application of the rule for eliminating : An application of Intro looks like this: ϕ[t/v] Intro v ϕ x Px, x (Px Qx) x Qx x (Px Qx) x Px I write down the two premisses as assumptions.

Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx Pc x (Px Qx) Pc x (Px Qx) Pc Qc x Px For the sake of the argument, I assume that Pc. If I can prove the conclusion, which doesn t say anything specific about c, I can discharge the assumption by Elim. x Px I apply Elim. Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx x Px Pc x (Px Qx) Pc Qc Qc x Px Pc x (Px Qx) Pc Qc Qc x Qx An application of Elim gives Qc. From Qc I obtain x Qx using Intro.

Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx Here is an example of an application of the rule for eliminating : x Px, x (Px Qx) x Qx x Px [Pc] x Qx x (Px Qx) Pc Qc Qc x Qx In this step, an application of Elim I repeat the conclusion. The point of this step is that I can discharged the assumption of Pc. x Px [Pc] x Qx x (Px Qx) Pc Qc Qc x Qx In deriving the red occurrence of x Qx I did not make use of any undischarged assumption involving c except of course for Pc itself. Also one must apply Elim only if the sentence corresponding to the red sentence here doesn t contain the crucial constant c. Concluding remarks v ϕ [ϕ[t/v]] Elim provided the constant t does not occur in v ϕ, or in, or in any undischarged assumption other than ϕ[t/v] in the proof of. Can we prove everything we want to prove?.

Concluding remarks Can we prove everything we want to prove?. Theorem (adequacy) Assume that ϕ and all elements of Γ are L 2 -sentences. Then Γ ϕ if and only if Γ ϕ.