Propositional Logic: Gentzen System, G

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

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

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

Propositional Calculus - Deductive Systems

Temporal Logic - Soundness and Completeness of L

Deductive Systems. Lecture - 3

Predicate Logic - Deductive Systems

Propositional Logic Language

Propositional Logic: Models and Proofs

Propositional and Predicate Logic - V

Chapter 11: Automated Proof Systems (1)

Propositional Calculus - Soundness & Completeness of H

Chapter 11: Automated Proof Systems

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

Propositional Logic: Deductive Proof & Natural Deduction Part 1

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Lecture 10: Gentzen Systems to Refinement Logic CS 4860 Spring 2009 Thursday, February 19, 2009

Classical Propositional Logic

Version January Please send comments and corrections to

Mathematical Logic Propositional Logic - Tableaux*

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

3 Propositional Logic

Predicate Logic: Sematics Part 1

Predicate Logic - Semantic Tableau

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

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

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Learning Goals of CS245 Logic and Computation

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

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

Logic: Propositional Logic (Part I)

KE/Tableaux. What is it for?

THE COMPLETENESS OF PROPOSITIONAL RESOLUTION A SIMPLE AND CONSTRUCTIVE PROOF

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

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

Language of Propositional Logic

Propositional natural deduction

Natural Deduction for Propositional Logic

Propositional Reasoning

Part 1: Propositional Logic

02 Propositional Logic

Introduction to Logic in Computer Science: Autumn 2007

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Propositional and Predicate Logic - IV

Induction on Failing Derivations

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

Propositional logic. Programming and Modal Logic

Advanced Topics in LP and FP

Introduction to Intuitionistic Logic

SLD-Resolution And Logic Programming (PROLOG)

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

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

Introduction to Logic in Computer Science: Autumn 2006


Logic for Computer Science - Week 4 Natural Deduction

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

A Resolution Method for Modal Logic S5

Comp487/587 - Boolean Formulas

Logic for Computer Scientists

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

Logic for Computer Scientists

Resolution In Propositional Logic

Chapter 2 Propositional Logic: Formulas, Models, Tableaux

SE 212: Logic and Computation. se212 Nancy Day

Automated Reasoning. Introduction to Logic in Computer Science: Autumn Different Forms of Reasoning. Tableaux for Propositional Logic

Propositional Logic Sequent Calculus

Propositional Resolution

First-Order Logic. Chapter Overview Syntax

Modal Logic XX. Yanjing Wang

2.5.2 Basic CNF/DNF Transformation

Propositional Resolution

3.17 Semantic Tableaux for First-Order Logic

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

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why?

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

TR : Tableaux for the Logic of Proofs

Propositional and Predicate Logic - II

A Tableau Calculus for Minimal Modal Model Generation

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms

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

Propositional logic. Programming and Modal Logic

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

α-formulas β-formulas

Logic: First Order Logic

Inference in Propositional Logic

Overview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

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

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

A Non-clausal Connection Calculus

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Saturation up to Redundancy for Tableau and Sequent Calculi

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

Semantics and Pragmatics of NLP

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Tableau vs. Sequent Calculi for Minimal Entailment

17.1 Correctness of First-Order Tableaux

Tecniche di Verifica. Introduction to Propositional Logic

Transcription:

CS402, Spring 2017

Quiz on Thursday, 6th April: 15 minutes, two questions.

Sequent Calculus in G In Natural Deduction, each line in the proof consists of exactly one proposition. That is, A 1, A 2,..., A n B. In Sequent calculus, each line in the proof consists of zero or more propositions. That is, A 1, A 2,..., A n B 1, B 2,..., B k. The standard semantic is, whenever every A i is true, at least one B j will also be true.

Axioms in G Definition 1 (3.2, Ben-Ari) An axiom of G is a set of literals U containing a complementary pair. Note that sets in G are implicitly disjunctive. For example, { p, q, p} is an axiom, i.e. p, q, p in G.

Inference Rules in G Definition 2 (3.2, Ben-Ari) There are two types of inference rules, defined with reference to tables below: Let {α 1, α 2} U 1 and let U 1 = U 1 {α 1, α 2}. Then U = U 1 {α} can be inferred. Let {β 1} U 1, {β 2} U 2 and let U 1 = U 1 {β 1}, U 2 = U 2 {β 2}. Then U = U 1 U 2 {β} can be inferred.

Inference Rules in G U 1 {α 1, α 2 } U 1 {α} α U 1 {β 1} U 2 {β 2} U 1 U 2 {β} β α α 1 α 2 β β 1 β 2 α (α 1 α 2 ) α 1 α 2 α 1 α 2 α 1 α 2 α 1 α 2 α 1 α 2 α 1 α 2 α 1 α 2 (α 1 α 2 ) α 1 α 2 α (α 1 α 2 ) (α 1 α 2 ) (α 2 α 1 ) α 1 α 2 (α 1 α 2 ) (α 2 α 1 ) That is, α rules build up disjunctions. β 1 β 2 β 1 β 2 (β 1 β 2 ) β 1 β 2 (β 1 β 2 ) β 1 β 2 (β 1 β 2 ) β 1 β 2 β 1 β 2 β 1 β 2 β 1 β 2 β 1 β 2 β 2 β 1 (β 1 β 2 ) β 1 β 2 β 2 β 1 That is, β rules build up conjuntions (consider (a b) (c d) = a c (b d)).

Example Proof Prove that p (q r) (p q) (p r) in G. 1. p, p, q Axiom 2. p, (p q) α, 1 3. p, p, r Axiom 4. p, (p r) α, 3 5. p, (p q) (p r) β, 2, 4 6. q, r, p, q Axiom 7. q, r, (p q) α, 6 8. q, r, p, r Axiom 9. q, r, (p r) α, 8 10. q, r, (p q) (p r) β, 7, 9 11. (q r), (p q) (p r) α, 10 12. (p (q r)), (p q) (p r) β, 5, 11 13. p (q r) (p q) (p r) α, 12

Wait... How do you magically come up with the axioms { p, p, q}, { p, p, r}, { q, r, p, q}, and { q, r, p, r}? Haven t we seen something like this before?

(p q) (q p) ((p q) (q p)) Proof in G (p q), (q p) p, q, p q, q, p (p q), q, p (p q), q, p p, q, p q, q, p (p q), (q p) (p q) (q p) UNSAT UNSAT Semantic Tableau (Sets are conjunctive)

G and Semantic Tableau Theorem 1 (3.6, Ben-Ari) Let A be a formula in propositional logic. Then A in G if and only if there is a closed semantic tableaux for A. Theorem 2 (3.7, Ben-Ari) Let U be a set of formulas and let Ū be the set of complements of formulas in U. Then, U in G if and only if there is a closed semantic tableau for Ū.

G and Semantic Tableau We prove that, if there exists a closed semantic tableau for Ū, then U in G. The opposite direction is left for you. Proof. Let T be a closed semantic tableau for Ū. We prove U by induction on h, the height of T. If h = 0, then T consists of a single node labeled by Ū. By assumption, T is closed, so it contains a complementary pair of literals {p, p}, that is, Ū = Ū {p, p}. Obviously, U = U { p, p} is an axiom in G, hence U.

G and Semantic Tableau Proof. Cont. If h > 0, then some tableau rule was used on an α- or β-formula at the root of T on a formula φ Ū, that is, Ū = Ū φ. The proof proceeds by cases, where you must be careful to distinguish between applications of the tableau rules and applications of the Gentzen rules of the same name. Case 1: φ is an α-formula (such as) (A 1 A 2 ). The tableau rule created a child node labeled by the set of formulas Ū { A 1, A 2 }. By assumption, the subtree rooted at this node is a closed tableau, so by the inductive hypothesis, U {A 1, A 2 }. Using the appropriate rule of inference from G, we obtain U {A 1 A 2 }, that is, U {φ}, which is U.

G and Semantic Tableau Proof. If h > 0, then some tableau rule was used on an α- or β-formula at the root of T on a formula φ Ū, that is, Ū = Ū φ. The proof proceeds by cases, where you must be careful to distinguish between applications of the tableau rules and applications of the Gentzen rules of the same name. Case 2: φ is a β-formula (such as) (B 1 B 2 ). The tableau rule created two child nodes labeled by the sets of formulas Ū { B 1 } and Ū { B 2 }. By assumption, the subtrees rooted at this node are closed, so by the inductive hypothesis U {B 1 } and U {B 2 }. Using the appropriate rule of inference from G, we obtain U {B 1 B 2 }, that is, U {φ}, which is U.

Why G and not natural deduction? Taste. Or, more appropriately, aesthetics. Natural deduction feels more, umm, natural. It is also more simplistic; having multiple disjunct on the right hand side, in G, is clearly cumbersome and adds complexity. G shows the symmetric nature of negation more vividly. A 1,..., A n B 1,..., B k (A 1 A n ) (B 1 B k ) A 1 A 2 A n B 1 B 2 B k (A 1 A 2 A n B 1 B 2 B k )

Soundness and Completeness of G Theorem 3 (3.8 in Ben-Ari) = A if and only if A in G. Proof. A is valid iff A is unsatisfiable iff there is a closed semanti tableau for A iff there is a proof of A in G.

Exercises Prove the following in G: (A B) ( B A) (A B) (( A B) B) ((A B) A) A