Sequent calculus for predicate logic

Similar documents
Propositional Logic Language


Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

The Skolemization of existential quantifiers in intuitionistic logic

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

Formal Methods for Java

Gentzen Sequent Calculus LK

Natural Deduction for Propositional Logic

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

Skolemization in intermediate logics with the finite model property

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

Quantified Propositional Calculus and a Second-Order Theory for NC 1

Herbrand Theorem, Equality, and Compactness

INF3170 / INF4171 Notes on Resolution

Proving Completeness for Nested Sequent Calculi 1

PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2

1 Completeness Theorem for Classical Predicate

Classical First-Order Logic

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.

Formal Methods for Java

First-Order Logic. Chapter Overview Syntax

Normal Forms for First-Order Logic

Classical First-Order Logic

Introduction to Intuitionistic Logic

Propositional Logic: Deductive Proof & Natural Deduction Part 1

On the computational content of intuitionistic propositional proofs

First-Order Intuitionistic Logic with Decidable Propositional Atoms

Inference in first-order logic

A Note on Bootstrapping Intuitionistic Bounded Arithmetic

First-Order Logic (FOL)

Dual-Intuitionistic Logic and Some Other Logics

A Cut-Free Calculus for Second-Order Gödel Logic

Consequence Relations and Natural Deduction

MATH 318/Fall, 2007 Notes on reading formulas and Skolem functions

On interpolation in existence logics

CHAPTER 2. FIRST ORDER LOGIC

Chapter 2 Preliminaries

CHAPTER 10. Predicate Automated Proof Systems

URL: 13 pages Eigenvariables, bracketing and the decidability of positive minimal intuitionistic log

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)

Prefixed Tableaus and Nested Sequents

Notes for the Proof Theory Course

Lecture 11: Measuring the Complexity of Proofs

185.A09 Advanced Mathematical Logic

First Order Logic (FOL) 1 znj/dm2017

Marie Duží

Logic Part II: Intuitionistic Logic and Natural Deduction

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Quantifiers and Functions in Intuitionistic Logic

arxiv: v1 [cs.lo] 1 Sep 2017


15414/614 Optional Lecture 3: Predicate Logic

Part II. Logic and Set Theory. Year

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

The predicate calculus is complete

Foundations of Proof Complexity: Bounded Arithmetic and Propositional Translations. Stephen Cook and Phuong Nguyen c Copyright 2004, 2005, 2006

Handout Proof Methods in Computer Science

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

Intersection Synchronous Logic

Introduction to Logic in Computer Science: Autumn 2006

03 Review of First-Order Logic

Predicate Logic - Deductive Systems

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

Informal Statement Calculus

A CONSERVATION RESULT CONCERNING BOUNDED THEORIES AND THE COLLECTION AXIOM

Gödel s Completeness Theorem

3 Propositional Logic

Completeness for FOL

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

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

An Introduction to Proof Theory

1 Introduction to Predicate Resolution

hal , version 1-21 Oct 2009

First-order logic Syntax and semantics

Hypersequent and Labelled Calculi for Intermediate Logics

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

Harmonious Logic: Craig s Interpolation Theorem and its Descendants. Solomon Feferman Stanford University

Predicate Logic - Introduction

TR : Binding Modalities

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s

Logic Part I: Classical Logic and Its Semantics

Chapter 11: Automated Proof Systems (1)

AAA615: Formal Methods. Lecture 2 First-Order Logic

Learning Goals of CS245 Logic and Computation

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

CS720 Class Notes. Steve Revilak

Proof Complexity of Intuitionistic Propositional Logic

Towards Intuitionistic Dynamic Logic

First-Order Predicate Logic. Basics

Applied Logic for Computer Scientists. Answers to Some Exercises

Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus

Algebraizing Hybrid Logic. Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation

Proof-Theoretic Analysis of the Quantified Argument Calculus

A simple proof that super-consistency implies cut elimination

Propositional and Predicate Logic - XIII

Cut-Elimination and Quantification in Canonical Systems

Notation for Logical Operators:

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

MAI0203 Lecture 7: Inference and Predicate Calculus

Transcription:

CHAPTER 13 Sequent calculus for predicate logic 1. Classical sequent calculus The axioms and rules of the classical sequent calculus are: Axioms { Γ, ϕ, ϕ for atomic ϕ Γ, Left Γ,α 1,α 2 Γ,α 1 α 2 Γ,β 1 Γ,β 2 Γ,β 1 β 2 Γ,β 1 Γ,β 2 Γ,β 1 β 2 Γ,ϕ[t/x] Γ, x ϕ Γ,ϕ[y/x] Γ, x ϕ Right Γ β 1, Γ β 2, Γ β 1 β 2, Γ α 1,α 2, Γ α 1 α 2, Γ,α 1 α 2, Γ α 1 α 2, Γ,ϕ[y/x] Γ, x ϕ Γ,ϕ[t/x] Γ, x ϕ The side condition in L and R is that the variable y may not occur in Γ, or ϕ (this variable is sometimes called an eigenvariable). In addition, we have the following cut rule: Γ ϕ, Γ, ϕ We outline a proof of cut elimination. First a definition: Definition 1.1. The logical depth dp(ϕ) of a formula is defined inductively as follows: the logical depth of an atomic formula is 0, while the logical depth of ϕψ is max(dp(ϕ), dp(ψ))+1. Finally, the logical depth of x ϕ or x ϕ is dp(ϕ) + 1. The rank rk(ϕ) of a formula ϕ will be defined as dp(ϕ) + 1. If there is an application of the cut rule Γ ϕ, Γ, ϕ, then we call ϕ a cut formula. If π is a derivation, then we define its cut rank to be 0, if it contains no cut formulas (i.e., is cut free). If, on the other hand, it contains applications of the 1

2 13. SEQUENT CALCULUS FOR PREDICATE LOGIC cut rule, then we define the cut rank of π to be the rank of any cut formula in π which has greatest possible rank. Lemma 1.2. (Weakening) If is the endsequent of a derivation π and Γ Γ and, then Γ is derivable as well. In fact, the latter has a derivation π with a cut rank and size no greater than that of π. Lemma 1.3. (Inversion Lemma) Apart from the rules introducing on the left and on the right, each of the rules in the classical sequent calculus is invertible: if there is a derivation π of a sequent σ and σ can be obtained from sequents σ 1,..., σ n by a rule different from L and R, then there are derivations π i of the σ i as well, and the cut rank of each of the π i need not be any bigger than that of π. In addition we have: Lemma 1.4. (Substitution Lemma) If π is a derivation of, then there is a derivation of Γ[t/x] [t/x] with a derivation which has no greater cut rank or size than π. Proof. First of all, by a suitable renaming of the variables we may assume that x is never an eigenvariable; then systematically replace every occurrence of x in π by t. As before, the key step in the proof for cut elimination is the following: Lemma 1.5. (Key Lemma) Suppose π is a derivation which ends with an application of the cut rule applied to a formula of rank d, while the rank of any other cut formula in π is strictly smaller than d. Then π can be transformed into a derivation π with the same endsequent as π and which has cut rank strictly less than d. Proof. The idea is to look at the structure of the cut formula. We know what to do when it is an atomic formula or its main connective is propositional, because then we proceed as we did in the chapter on propositional logic. In case the cut formula is of the form x ϕ or x ϕ, then we proceed as we did in the intuitionistic case for implication. Since the cases are perfectly dual, we may assume that the last step was: D 1 Γ x ϕ, Γ, x ϕ We now do an induction on the depth of the derivation π to show that we can get a derivation of with the cut rank below d. We make a case distinction on what was the last rule which was applied in D 1 ; the most tricky case is where the final rule in D 1 introduced x ϕ, while at the same time it was already present, like this: Γ x ϕ, D 1 Γ, x ϕ, ϕ(t) Γ, x ϕ By weakening there is also a derivation D 0 of Γ, ϕ(t) x ϕ, which has no greater cut rank or size than, so we can apply the induction hypothesis on the proof

2. INTUITIONISTIC SEQUENT CALCULUS 3 D 1 Γ, ϕ(t) x ϕ, Γ, x ϕ, ϕ(t) Γ, ϕ(t) to obtain a derivation D 3 of Γ, ϕ(t) with cut rank strictly below d. Now by applying first the Inversion Lemma and then the Substitution Lemma on we obtain a derivation D 4 of Γ ϕ(t), with cut rank strictly below d. So D 4 D 3 Γ ϕ(t), Γ, ϕ(t) is a proof of with cut rank strictly below d, as desired. Theorem 1.6. (Cut elimination for the classical sequent calculus) There is an effective method for transforming a derivation π in the classical sequent calculus for predicate logic with the cut rule into a cut free derivation π which has the same endsequent as π. The axioms and rules are: 2. Intuitionistic sequent calculus Axioms { Γ, ϕ ϕ for atomic ϕ Γ, ϕ Left Γ,α 1,α 2 ϕ Γ,α 1 α 2 ϕ Γ,β 1 ϕ Γ,β 2 ϕ Γ,β 1 β 2 ϕ Γ β 1 Γ,β 2 ϕ Γ,β 1 β 2 ϕ Γ,ϕ[t/x] ψ Γ, x ϕ ψ Γ,ϕ[y/x] ψ Γ, x ϕ ψ Right Γ β 1 Γ β 2 Γ β 1 β 2 Γ α 1 Γ α 1 α 2 Γ α 2 Γ α 1 α 2 Γ,α 1 α 2 Γ α 1 α 2 Γ ϕ[y/x] Γ x ϕ Γ ϕ[t/x] Γ x ϕ In L and R the eigenvariable y may not occur in Γ, ϕ or ψ. In addition, we have the following cut rule: Γ ϕ Γ, ϕ ψ Γ ψ For this system we have the following lemmas: Lemma 2.1. (Weakening) If Γ ϕ is the endsequent of a derivation π in the intuitionistic sequent calculus à la Gentzen, and Γ Γ, then Γ ϕ is derivable as well. In fact, the latter has a derivation π with a cut rank and size no greater than that of π.

4 13. SEQUENT CALCULUS FOR PREDICATE LOGIC Lemma 2.2. (Inversion Lemma) The following rules are invertible: the rules introducing on the left and right, on the left, on the right, on the left and on the right: if there is a derivation π of a sequent σ and σ can be obtained from sequents σ 1,..., σ n by one of these rules, then there are derivations π i of the σ i as well, and the cut rank of each of the π i need not be any bigger than that of π. Lemma 2.3. (Substitution Lemma) If π is a derivation of Γ ϕ, then there is a derivation of Γ[t/x] ϕ[t/x] with a derivation which has no greater cut rank or size than π. Theorem 2.4. (Cut elimination for the intuitionistic sequent calculus) There is an effective method for transforming a derivation π in the intuitionistic sequent calculus for predicate logic with the cut rule into a cut free derivation π which has the same endsequent as π. 3. Applications Cut free derivations still obey a form of the subformula property. Definition 3.1. The collection GSub(ϕ) of Gentzen subformulas of ϕ is defined by induction on the structure of ϕ as follows: with {,, } and Q {, }. GSub(ϕ) = {ϕ} if ϕ is atomic GSub(ϕψ) = GSub(ϕ) GSub(ψ) {ϕψ} GSub(Qx ϕ) = {Qx ϕ} { GSub(ϕ[t/x]) : t term} Lemma 3.2. A cut free derivation π of a sequent σ in either the classical or intuitionistic sequent calculus only contains Gentzen subformulas of formulas occurring in σ. But note that the definition of Gentzen subformula is such that x P x has infinitely many Gentzen subformulas: indeed, each formula of the form P (t) is a Gentzen subformula. For that reason we cannot use the subformula property in combination with cut elimination to argue for the decidability of either classical or intuitionistic predicate logic. Which is just as well, because both are in fact undecidable. For intuitionistic logic we obtain an effective proof of the existence property. Theorem 3.3. If the sequent x ϕ is derivable in the intuitionistic sequent calculus, then there is a term t such that ϕ[t/x] is derivable as well. Proof. Indeed, the last step in a cut free derivation of x ϕ in the intuitionistic sequent calculus must have been the rule introducing an existential quantifier on the right. For this reason it contains a derivation of ϕ(t) for some term t. For classical predicate logic we have a version of this as well. Theorem 3.4. If the sequent x ϕ is derivable in the classical sequent calculus and ϕ is quantifier-free, then there are terms t 1,..., t n such that ϕ(t 1 ) ϕ(t 2 )... ϕ(t n ) is derivable as well. Proof. Use induction on derivations to prove that if, xϕ is derivable and Γ, and ϕ are quantifier-free, then there are terms t 1,..., t n such that, ϕ(t 1 ),..., ϕ(t n ) is derivable as well.

3. APPLICATIONS 5 Initially, the case considered in the previous theorem may look rather special. However, in classical logic any formula ϕ can be brought in prenex normal form, that is, it can be rewritten as: x 0 y 0 x 1 y 1... x n y n ψ(x 0,..., x n, y 0,..., y n ), with ψ quantifier-free. And a formula of this form is a tautology if and only if x 0... x n ψ(x 0,..., x n, f 0 (x 0 ), f 1 (x 0, x 1 ),..., f n (x 0,..., x n )) is a tautology, provided the function symbols f 0,..., f n did not already occur in ψ (such function symbols are called Herbrand functions, which are dual to the more familiar Skolem functions). This observation in combination with Herbrand s theorem is heavily exploited in logic programming. But this observation also means that the question of deciding which first-order formulas are tautologies is as difficult as deciding which existential formulas are tautologies. So the problem of deciding first-order logic can be reduced completely to the problem of finding the correct Herbrand terms. Which means, in particular, that this problem must be undecidable (so there can be no algorithm which given an arbitrary existential sentence outputs a list of terms which would be a correct list of Herbrand terms in case the existential formula is a tautology).