Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

Similar documents
Propositional Calculus - Deductive Systems

Propositional Calculus - Soundness & Completeness of H

Propositional Logic: Deductive Proof & Natural Deduction Part 1

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

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

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST

Predicate Calculus - Semantics 1/4

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

Classical Propositional Logic

Deductive Systems. Lecture - 3

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

Chapter 11: Automated Proof Systems (1)

Modal Logic XX. Yanjing Wang

First Order Logic: Syntax and Semantics

Natural Deduction for Propositional Logic

Chapter 11: Automated Proof Systems

Propositional Logic Language

Overview of Today s Lecture

3 Propositional Logic

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

Learning Goals of CS245 Logic and Computation

185.A09 Advanced Mathematical Logic

Propositional and Predicate Logic - IV

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

Propositional Logic: Gentzen System, G

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

Fundamentals of Logic

02 Propositional Logic

Formal (natural) deduction in propositional logic

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

Propositional and Predicate Logic - XIII

On sequent calculi vs natural deductions in logic and computer science

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

On the Complexity of the Reflected Logic of Proofs

Discrete Mathematics

Systematic Construction of Natural Deduction Systems for Many-valued Logics: Extended Report

Semantics for Propositional Logic

Propositional Logic: Syntax

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Propositional and Predicate Logic. jean/gbooks/logic.html

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

A Weak Post s Theorem and the Deduction Theorem Retold

02 The Axiomatic Method

03 Propositional Logic II

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

Teaching Natural Deduction as a Subversive Activity

Computational Logic Chapter 2. Propositional Logic

Predicate Calculus - Undecidability of predicate calculus Moonzoo Kim CS Dept. KAIST

Systems of modal logic

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

On Axiomatic Rejection for the Description Logic ALC

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions

Marie Duží

Model Checking in the Propositional µ-calculus

The semantics of propositional logic

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

TABLEAUX VARIANTS OF SOME MODAL AND RELEVANT SYSTEMS

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Modal and temporal logic

Automated Support for the Investigation of Paraconsistent and Other Logics

Implementing Proof Systems for the Intuitionistic Propositional Logic

First-Order Logic. Chapter Overview Syntax

The Skolemization of existential quantifiers in intuitionistic logic

6. Logical Inference

Proving Completeness for Nested Sequent Calculi 1

Inducing syntactic cut-elimination for indexed nested sequents

Propositional Logic Sequent Calculus

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Phil Introductory Formal Logic

CHAPTER 11. Introduction to Intuitionistic Logic

First Order Logic (FOL) 1 znj/dm2017

References A CONSTRUCTIVE INTRODUCTION TO FIRST ORDER LOGIC. The Starting Point. Goals of foundational programmes for logic:

Logic: The Big Picture

A Schütte-Tait style cut-elimination proof for first-order Gödel logic

Infinitary Equilibrium Logic and Strong Equivalence

Mathematics for linguists

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Display calculi in non-classical logics

Recent Developments in and Around Coaglgebraic Logics

Lecture Notes on Sequent Calculus

Technische Universität Dresden. Fakultät Informatik EMCL Master s Thesis on. Hybrid Unification in the Description Logic EL

First Order Logic: Syntax and Semantics

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Non-Analytic Tableaux for Chellas s Conditional Logic CK and Lewis s Logic of Counterfactuals VC

On the Craig interpolation and the fixed point

Propositional logic. First order logic. Alexander Clark. Autumn 2014

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

Class 29 - November 3 Semantics for Predicate Logic

Consequence Relations and Natural Deduction

03 Review of First-Order Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

TR : Tableaux for the Logic of Proofs

Propositional and Predicate Logic - V

Propositional Logic: Models and Proofs

Modal logics: an introduction

General methods in proof theory for modal logic - Lecture 1

Dynamic Epistemic Logic Displayed

Transcription:

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1

Review Goal of logic To check whether given a formula Á is valid To prove a given formula Á ` Á Syntactic method (proof system G, H, natural deduction,etc) Sound & Complete ² Á Semantic method (truth table, etc) Semantic tableau 2

Deductive proofs (1/3) Suppose we want to know if Á belongs to the theory T(U). By Thm 2.38 U ² Á iff ² A1Æ Æ An! Á where U = { A1,,An} Thus, Á 2 T(U) iff a decision procedure for validity answers yes However, there are several problems with this semantic approach The set of axioms may be infinite e.x. Hilbert deductive system H has an axiom schema (A! (B! A)), which generates an infinite number of axioms by replacing schemata variables A,B and C with infintely many subformulas (e.g. ÁÆ Ã,:ÁÇ Ã, etc) Very few logics have decision procedures for validity of Á e.x.2. Peano and ZFC theories cannot be finitely axiomatized. ex. propositional logic has a decision procedure using truth table ex2. predicate logic does not have such decision procedure There is another approach to logic called deductive proofs. Instead of working with semantic concepts like interpretation/model and consequence we choose a set of axioms and a set of syntactical rules for deducing new formulas from the axioms 3

Def 3.1 Deductive proofs (2/3) A deductive system consists of a set of axioms and a set of inference rules A proof in a deductive system is a sequence of sets of formulas s.t. each element is either an axiom or it can be inferred from previous elements of the sequence using a rule of inference If {A} is the last element of the sequence, A is a theorem, the sequence is a proof of A, and A is provable, denoted ` A Example of a proof of (pç q)!(qç p) in gentzen system G {:p,q,p}.{:q,q,p}.{:(pç q),q,p}.{:(pç q),(qç p)}.{(pç q)!(qç p)} axioms theorem tree representation of this proof is more intuitive Ç Ç! 4

Deductive proofs (3/3) Deductive proofs has following benefits There may be an infinite number of axioms, but only a finite number of axioms will appear in any proof Any particular proof consists of a finite sequence of sets of formulas, and the legality of each individual deduction can be easily and efficiently determined from the syntax of the formulas The proof of a formula clearly shows which axioms, theorems and rules are used and for what purposes. Such a pattern (i.e. relationship between formulas) can then be transferred to other similar proofs, or modified to prove different results. Lemmas and corollaries can be obtained and can be used later But with a new problem deduction is defined purely in terms of syntactical formula manipulation But it is not amenable to systematic search procedures no brute-force search is possible because any axiom can be used 5

Natural deduction In natural deduction, similar to other deductive proof systems such as G and H, we have a collection of proof rules. Natural deduction does not have axioms. Suppose we have premises.and Á 1, Á 2,, Á n and would like to prove a conclusion Ã. The intention is denoted by Á 1, Á 2,, Á n ` Ã We call this expression a sequent; it is valid if a proof for it can be found Def: A logical formula Á with valid sequent `Á is theorem 6

Proof rules (1/3) Æ i says: to prove Á Æ Ã, you must first prove Á and à separately and then use the rule Æ i. Æ e 1 says: to prove Á, try proving Á Æ Ã and then use the rule Æ e 1. Actually this does not sound like very good advice because probably proving Á Æ Ã will be harder than proving Á alone. However, you might find that you already have Á Æ Ã lying around, so that s when this rule is useful. 7

Proof rules (1/3) assumption 1 assumption 2 Ç i 1 says: to prove Á Ç Ã, try proving Á. Again, in general it is harder to prove Á than it is to prove Á Ç Ã, so this will usually be useful only if you have already managed to prove Á. Ç e has an excellent procedural interpretation. It says: if you have Á Ç Ã, and you want to prove some Â, then try to prove  from Á and from à in turn In those subproofs, of course you can use the other prevailing premises as well 8

Proof rules (3/3) 9

Some useful derived rules At any stage of a proof, it is permitted to introduce any formula as assumption, by choosing a proof rule that opens a box. As we saw, natural deduction employs boxes to control the scope of assumptions. When an assumption is introduced, a box is opened. Discharging assumptions is achieved by closing a box according to the pattern of its particular proof rule. 10

Example 1 11

Example 2 12

Example 3 (Law of Excluded Middle) 13

Summary of proof rules 14

Proof Tips First, write down premises at the top of the paper Second, write down a conclusion at the bottom of the paper Third, look at the structure of the conclusion and try to find compatible proof rules backwardly Pattern matching works, although not all the time. 15