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

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

Propositional Calculus - Deductive Systems

Propositional Calculus - Soundness & Completeness of H

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

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

Learning Goals of CS245 Logic and Computation

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

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

02 Propositional Logic

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

Systems of modal logic

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

Propositional Logic: Deductive Proof & Natural Deduction Part 1

Propositional Logic: Syntax

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

Logic. Propositional Logic: Syntax

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

Deductive Systems. Lecture - 3

Predicate Logic - Deductive Systems

1. Propositional Calculus

Propositional Logic: Gentzen System, G

An Introduction to Modal Logic III

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11)

Propositional and Predicate Logic - V

Advanced Topics in LP and FP

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

Marie Duží

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

Predicate Calculus - Semantics 1/4

On the Complexity of the Reflected Logic of Proofs

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logic: Propositional Logic Truth Tables

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions

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

Propositional Logic: Syntax

03 Propositional Logic II

A Weak Post s Theorem and the Deduction Theorem Retold

Formal Logic. Critical Thinking

Natural Deduction for Propositional Logic

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

Logic, Sets, and Proofs

General methods in proof theory for modal logic - Lecture 1

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Modal Logic XX. Yanjing Wang

Discrete Mathematics

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Propositional Reasoning

Logic for Computer Science - Week 4 Natural Deduction

The Modal Logic of Pure Provability

185.A09 Advanced Mathematical Logic

Phil Introductory Formal Logic

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

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

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

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

Todays programme: Propositional Logic. Program Fac. Program Specification

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional natural deduction

Propositional Logic: Review

Classical Propositional Logic

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

MAI0203 Lecture 7: Inference and Predicate Calculus

Last Time. Inference Rules

COMPUTER SCIENCE TEMPORAL LOGICS NEED THEIR CLOCKS

Logic, Human Logic, and Propositional Logic. Human Logic. Fragments of Information. Conclusions. Foundations of Semantics LING 130 James Pustejovsky

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

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

1. Propositional Calculus

CSE 20 DISCRETE MATH. Fall

PROOFS IN MATHEMATICS

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

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

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

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

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Dynamic Semantics. Dynamic Semantics. Operational Semantics Axiomatic Semantics Denotational Semantic. Operational Semantics

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

Modal and temporal logic

Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002

Inferences Critical. Lecture 30: Inference. Application: Question Answering. Types of Inferences

Chapter 11: Automated Proof Systems

Predicate Logic. Andreas Klappenecker

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Propositional Logic. Spring Propositional Logic Spring / 32

Version January Please send comments and corrections to

Chapter 11: Automated Proof Systems (1)

CSE 20 DISCRETE MATH. Winter

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

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

Meaning of Proof Methods of Proof

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

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Logic. Propositional Logic: Syntax. Wffs

Propositional Logic: Models and Proofs

PHIL 50 - Introduction to Logic

CS 4700: Foundations of Artificial Intelligence

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

Transcription:

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST moonzoo@cs.kaist.ac.kr http://pswlab.kaist.ac.kr/courses/cs402-07 1

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

Review (cont.) Remember the following facts Although we have many binary operators ({Ç,Æ,,,,(,, }), can replace all other binary operators through semantic equivalence. Similarly, {,{ } } is an adequate set of binary operators. 2 φ does not necessarily mean ² φ Deductive proof cannot disprove φ (i.e. claiming that there does not exist a proof for φ) ) while semantic method can show both validity and satisfiability of φ Very few logics have decision procedure for validity check (i.e.,, truth table). Thus, we use deductive proof in spite of the above weakness. A proof tree in G grows up while a proof tree in H shrinks down according to characteristics of its inference rules Thus, a proof in G is easier than a proof in H in general 3

Sound verification tools Suppose that there is a target software S there is a formal requirement R We can make a state machine (automata) of S, say A S A state of A S consists of all variables including a program counter. Any state machine can be encoded into a predicate logic formual φ as We will see this encoding in the first order logic classes Program verification is simply to prove φ AS ² R For this purpose, we use a formal verification tool V so that φ AS `V R We call V is sound whenever S has a bug, V always detects the bug φ AS 2R φ AS 0 V R (iff( φ AS `V R φ A S ² R ) We call V is complete whenever V detects a bug, that bug is a real bug. φ AS 0 V R φ AS 2R (iff φ AS ² R φ AS `V R) In reality, most formal verification tools are just sound,, not complete (I.e., formal verification tools may raise false alarms). However, for debugging purpose, soundness is great. 4

The Hilbert system H Def 3.9 H is a deductive system with three axiom schemes and one rule of inference. For any formulas A,B,C, the following formulas are axioms (in fact axiom schemata): Axiom1: ` (A (B A)) Axiom2: ` (A (B C)) ((A B) (A C)) Axiom3: ` ( B A) A) (A B)) The rule of inference is called modus ponens (MP). For any formulas A,B `A `A B `B Note that axioms used in a proof in H are usually very long because the MP rule reduces a length of formula (see Thm 3.10) at least one premise (`( A B) is longer than conclusion (B) 5

G v.s. H G is a deductive system for a set of formulas while H is a deductive system for a single formula G has one form of axiom and many rules (for 8 α- rules and 7 β-rules) while H has several axioms (in fact axiom schemes) but only one rule 6

Derived rules Def. 3.12 Let U be a set of formulas and A a formula. The notation U ` A means that the formulas in U are assumptions in the proof of A. If A i U, a proof of U ` A may include an element of the form U ` A i Rule 3.13 Deduction rule U {A}`B U`A B Note that deduction rule increase the size of a formula, thus making a proof easier 7

U {A}`B U`A B premise conclusion Soundness of deduction rule Thm 3.14 The deduction rule is a sound derived rule By induction on the length n of the proof U {A} ` B For n=1, B is proved in one step, so B must be either an element of U {A} or an axiom of H If B is A, then ` A B B by Thm 3.10 (`( A A), so certainly U ` A B. Otherwise (i.e., B U B U or B is an axion), the following is a proof of U ` A B U ` B U ` A B U ` B (A B) MP 8

U {A}`B premise U`A B conclusion Soundness of deduction rule For n>1, the last step in the proof of U {A} U {A}`B B is either a one-step inference of B the result holds by the proof for n =1 an inference of B using MP. there is a formula C such that formula I in the proof is U {A} ` C and formula j is U {A} ` C B, for I, j < n. By the inductive hypothesis U ` A C and U ` A (C B). A proof of U ` A B is given by U ` A B U ` A (C B U ` A B U ` A (C B) MP 9

Theorems and derived rules in H Note that any theorem of the form U ` A B justifies a derived rule of the form U`A simply by using MP on o A and A B U`B Rule 3.15 Contrapositive rule by Axiom 3 ` ( B A) (A B)) U` B A U`A B Rule 3.17 Transitivity rule by Thm 3.16 ` (A B) B) [(B C) C) (A C)] U`A B U`B C U`A C Rule 3.19 Exchange of antecedent rule by Thm 3.18 ` [(A (B C)] [(B (A (A C)] U`A (B C) U`B (A C) 10