Lecture Notes on Cut Elimination

Similar documents
Lecture Notes on Sequent Calculus

Lecture Notes on Cut Elimination

Propositions and Proofs

Lecture Notes on Cut Elimination

An Introduction to Proof Theory

3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule.

Sequent Calculus. 3.1 Cut-Free Sequent Calculus

Lecture Notes on From Rules to Propositions

Lecture Notes on Linear Logic

Lecture Notes on From Rules to Propositions

Lecture Notes on Classical Linear Logic

Lecture Notes on Constructive Logic: Overview

Lecture Notes on Quantification

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

Lecture Notes on Focusing

Consequence Relations and Natural Deduction

Lecture Notes on Identity and Inversion

Lecture Notes on Ordered Logic

Lecture Notes on Kripke Semantics for Validity

Lecture Notes on Certifying Theorem Provers

Display calculi in non-classical logics

Lecture Notes on Heyting Arithmetic

Implementing Proof Systems for the Intuitionistic Propositional Logic

Bidirectional Decision Procedures for the Intuitionistic Propositional Modal Logic IS4

Consequence Relations and Natural Deduction

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

Cut-elimination for Provability Logic GL

A JUDGMENTAL ANALYSIS OF LINEAR LOGIC

Introduction to Intuitionistic Logic

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Explicit Composition and Its Application in Proofs of Normalization

ON THE ATOMIC FORMULA PROPERTY OF HÄRTIG S REFUTATION CALCULUS

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

A judgmental analysis of linear logic

Lecture Notes on The Curry-Howard Isomorphism

Logic for Computer Science - Week 4 Natural Deduction

Uniform Schemata for Proof Rules

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

Investigation of Prawitz s completeness conjecture in phase semantic framework

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

On Sets of Premises. Kosta Došen

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

Intuitionistic N-Graphs

Lecture Notes on Combinatory Modal Logic

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

General methods in proof theory for modal logic - Lecture 1

A Local System for Linear Logic

A CUT-FREE SIMPLE SEQUENT CALCULUS FOR MODAL LOGIC S5

Logic for Computer Science - Week 5 Natural Deduction

Proving Completeness for Nested Sequent Calculi 1

Inductive Predicates

Proof Theoretical Studies on Semilattice Relevant Logics

A Non-clausal Connection Calculus

Notes on Inference and Deduction

Phil Introductory Formal Logic

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

On Sequent Calculi for Intuitionistic Propositional Logic

Learning Goals of CS245 Logic and Computation

Lecture Notes on Inductive Definitions

Valentini s cut-elimination for provability logic resolved

distinct models, still insists on a function always returning a particular value, given a particular list of arguments. In the case of nondeterministi

On a computational interpretation of sequent calculus for modal logic S4

Natural Deduction for Propositional Logic

CONTRACTION CONTRACTED

Decomposing Modalities

arxiv:math.lo/ v2 28 Jun 2005

Natural Deduction for the Sheffer Stroke and Peirce s Arrow (And Any Other Truth-Functional Connective)

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages

lec6 8: Natural deduction

Lecture 6 : Induction DRAFT

Proof-theoretic Validity. Stephen Read University of St Andrews. Analytic Validity Harmony GE-Harmony Justifying the E-rules

CS 512, Spring 2016, Handout 02 Natural Deduction, and Examples of Natural Deduction, in Propositional Logic

Chapter 2. Linear logic. 2.1 Introduction to linear logic. Substructural Logical Specifications - Robert J. Simmons

Adjunction Based Categorical Logic Programming

3 Propositional Logic

Logic and Computation

Atomic Cut Elimination for Classical Logic

A Judgmental Analysis of Linear Logic

Structuring Logic with Sequent Calculus

On the Complexity of the Reflected Logic of Proofs

Prefixed Tableaus and Nested Sequents

A SEQUENT CALCULUS FOR A NEGATIVE FREE LOGIC

Classical Propositional Logic

PHIL12A Section answers, 28 Feb 2011

Teaching Natural Deduction as a Subversive Activity

Manual of Logical Style

Dual-Intuitionistic Logic and Some Other Logics

TRANSLATING A SUPPES-LEMMON STYLE NATURAL DEDUCTION INTO A SEQUENT CALCULUS

First-Order Logic. Chapter Overview Syntax

Sequent calculus for predicate logic

On sequent calculi vs natural deductions in logic and computer science

Generalised elimination rules and harmony

NORMAL DERIVABILITY IN CLASSICAL NATURAL DEDUCTION

Bidirectional Decision Procedures for the Intuitionistic Propositional Modal Logic IS4

Lecture Notes on Intuitionistic Kripke Semantics

The Logic of Proofs, Semantically

Propositional Logic Language

FORMAL PROOFS DONU ARAPURA

An Introduction to Proof Theory

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

Transcription:

Lecture Notes on Cut Elimination 15-317: Constructive Logic Frank Pfenning Lecture 10 October 5, 2017 1 Introduction The entity rule of the sequent calculus exhibits one connection between the judgments A left and A right: If we assume A left we can prove A right. In other words, the left rules of the sequent calculus are strong enough so that we can reconstitute a proof of A from the assumption A. So the entity theorem (see Section 5) is a global version of the local completeness property for the elimination rules. The cut theorem of the sequent calculus expresses the opposite: if we have a proof of A right we are licensed to assume A left. This can be interpreted as saying the left rules are not too strong: whatever we can do with the antecedent A left can also be deduced without that, if we know A right. Because A right occurs only as a succedent, and A left only as an antecedent, we must formulate this in a somewhat roundabout manner: If Γ = A right and Γ, A left = J then Γ = J. In the sequent calculus for pure intuitionistic logic, the only conclusion judgment we are consering is C right, so we specialize the above property. Because it is very easy to go back and forth between sequent calculus deductions of A right and verifications of A, we can use the cut theorem to show that every true proposition has a verification, which establishes a fundamental, global connection between truth and verifications. While the sequent calculus is a convenient intermediary (and was conceived as such With edits by André Platzer

L10.2 Cut Elimination by Gentzen [Gen35]), this theorem can also be established directly using verifications. 2 Admissibility of Cut The cut theorem is one of the most fundamental properties of logic. Because of its central role, we will spend some time on its proof. In lecture we developed the proof and the required induction principle incrementally; here we present the final result as is customary in mathematics. The proof is amenable to formalization in a logical framework; details can be found in a paper by the instructor [Pfe00]. Theorem 1 (Cut) If Γ = A and Γ, A = C then Γ = C. Proof: By nested inductions on the structure of A, the derivation D of Γ = A and E of Γ, A = C. More precisely, we appeal to the induction hypothesis either with a strictly smaller cut formula, or with an entical cut formula and two derivations, one of which is strictly smaller while the other stays the same. The proof is constructive, which means we show how to transform D Γ = A and E Γ, A = C to F Γ = C The proof is dived into several classes of cases. More than one case may be applicable, which means that the algorithm for constructing the derivation of Γ = C from the two given derivations is naturally nondeterministic. D is an initial sequent, E is arbitrary. Γ, A = A and E Γ, A, A = C Γ = (Γ, A) Γ, A, A = C Deduction E Γ, A = C By Contraction (see Lecture 9) Γ = C Since Γ = (Γ, A) D is arbitrary and E is an initial sequent using the cut formula. D Γ = A and E = Γ, A = A

Cut Elimination L10.3 A = C Γ = A Deduction D E is an initial sequent not using the cut formula. E = Γ, C, A = C Γ = (Γ, C) Γ, C = C By rule Γ = C Since Γ = (Γ, C) In the next set of cases, the cut formula is the principal formula of the final inference in both D and E. We only show two of these cases. and E = D 1 Γ = A 1 Γ = A 2 Γ = A 1 A 2 R E 1 Γ, A 1 A 2, A 1 = C Γ, A 1 A 2 = C L 1 A = A 1 A 2 Γ, A 1 = C By i.h. on A 1 A 2, D and E 1 Γ = C By i.h. on A 1, D 1, and previous line Actually we have ignored a detail: in the first appeal to the induction hypothesis, E 1 has an additional hypothesis, A 1, and therefore does not match the statement of the theorem precisely. However, we can always weaken D to include this additional hypothesis without changing the structure of D (see the Weakening Theorem in Lecture 9) and then appeal to the induction hypothesis. We will not be explicit about these trivial weakening steps in the remaining cases. It is crucial for a well-founded induction that E 1 is smaller than E, so even if the same cut formula and same D is used, E 1 got smaller. Note that we cannot directly appeal to induction hypothesis on A 1,D 1 and E 1 because the additional formula A 1 A 2 might still be used in E 1, e.g., by a subsequent use of L 2.

L10.4 Cut Elimination Γ, A 1 = A 2 Γ = A 1 A 2 R and E = E 1 Γ, A 1 A 2 = A 1 E 2 Γ, A 1 A 2, A 2 = C Γ, A 1 A 2 = C L A = A 1 A 2 Γ = A 1 By i.h. on A 1 A 2, D and E 1 Γ = A 2 By i.h. on A 1 from above and Γ, A 2 = C By i.h. on A 1 A 2, D and E 2 Γ = C By i.h. on A 2 from above Note that the proof constituents of the last step Γ = C may be longer than the original deductions D, E. Hence, it is crucial for a wellfounded induction that the cut formula A 2 is smaller than A 1 A 2. Finally note the resemblance of these principal cases to the local soundness reductions in harmony arguments for natural deduction. In the next set of cases, the principal formula in the last inference in D is not the cut formula. We sometimes call such formulas se formulas of the cut. If D ended with an L 1 : D 1 Γ, B 1 B 2, B 1 = A Γ, B 1 B 2, = A L 1 and E Γ, B 1 B 2, A = C Γ = (Γ, B 1 B 2 ) Γ, B 1 B 2, B 1 = C By i.h. on A, D 1 and E Γ, B 1 B 2 = C By rule L 1 Γ = C Since Γ = (Γ, B 1 B 2 )

Cut Elimination L10.5 D 1 Γ, B 1 B 2 = B 1 Γ, B 1 B 2, B 2 = A Γ, B 1 B 2 = A Γ = (Γ, B 1 B 2 ) Γ, B 1 B 2, B 2 = C By i.h. on A, and E Γ, B 1 B 2 = C By rule L on D 1 and above Γ = C Since Γ = (Γ, B 1 B 2 ) L In the final set of cases, A is not the principal formula of the last inference in E. This overlaps with the previous cases since A may not be principal on either se. In this case, we appeal to the induction hypothesis on the subderivations of E and directly infer the conclusion from the results. E 1 E 2 D Γ = A and E = Γ, A = C 1 Γ, A = C 2 R Γ, A = C 1 C 2 C = C 1 C 2 Γ = C 1 By i.h. on A, D and E 1 Γ = C 2 By i.h. on A, D and E 2 Γ = C 1 C 2 By rule R on above E 1 D Γ = A and E = Γ, B 1 B 2, B 1, A = C Γ, B 1 B 2, A = C L 1 Γ = (Γ, B 1 B 2 ) Γ, B 1 B 2, B 1 = C By i.h. on A, D and E 1 Γ, B 1 B 2 = C By rule L 1 from above

L10.6 Cut Elimination 3 Applications of Cut Admissibility The admissibility of cut, together with the admissibility of entity (see Section 5), complete our program to find global versions of local soundness and completeness. This has many positive consequences. We already have seen that the sequent calculus (without cut!) must be consistent, because there is no sequent proof of. If we can translate from arbitrary natural deductions to the sequent calculus, then this also means that natural deduction is consistent, and similarly for other properties such as the disjunction property. Once we have the admissibility of cut, the translation from natural deduction to sequent calculus is surprisingly simple. Note that this is somewhat different from the previous translation that worked on verifications: here we are interested in translating arbitrary natural deductions. Theorem 2 If Γ D then Γ = A A true Proof: By induction on the structure of D. For deductions D ending in introduction rules, we just replay the corresponding right rule. For example: Γ A 1 true u A 2 true A 1 A 2 true Iu Γ, A 1 = A 2 By i.h. on Γ = A 1 A 2 By rule R For uses of hypotheses, we fill in a use of the entity rule. A u Γ, A = A By Finally, the tricky cases: elimination rules. In these cases we appeal to the induction hypothesis wherever possible and then use the admissibility of cut!

Cut Elimination L10.7 Γ D 1 B A true A true Γ B true E E 1 proves Γ = B A By i.h. on D 1 E 2 proves Γ = B By i.h. on To show: Γ = A At this point we realize that the sequent rules go in the wrong direction. They are designed to let us prove sequents, rather than take advantage of knowledge, such as Γ = B A. However, using the admissibility of cut, we can piece together a deduction of A. First we prove (omitting some redundant antecedents): B = B A = A F = L B A, B = A Then (leaving some trivial instances of weakening implicit): F 1 proves Γ, B = A By adm. of cut on E 1 and F Γ = A By adm. of cut on E 2 and F 1 where the last line is what we needed to show. The translation from sequent proofs to verifications is quite straightforward, so we omit it here. But chaining these proof translations together we find that every true propositions A (as defined by natural deduction) has a verification. This closes the loop on our understanding of the connections between natural deductions, sequent proofs, and verifications. 4 Cut Elimination 1 Gentzen s original presentation of the sequent calculus included an inference rule for cut. We write Γ cut = A for this system, which is just like 1 This material not covered in lecture

L10.8 Cut Elimination Γ = A, with the additional rule Γ cut = A Γ, A cut = C Γ cut = C The advantage of this calculus is that it more directly corresponds to natural deduction in its full generality, rather than verifications, because just like in natural deduction, the cut rule makes it possible to prove an arbitrary other A from the available assumptions Γ (left premise) and then use that A as an additional assumption in the rest of the proof (right premise). The disadvantage is that it cannot easily be seen as capturing the meaning of the connectives by inference rules, because with the rule of cut the meaning of C might depend on the meaning of any other proposition A (possibly even including C as a subformula). In order to clearly distinguish between the two kinds of calculi, the one we presented is sometimes called the cut-free sequent calculus, while Gentzen s calculus would be a sequent calculus with cut. The theorem connecting the two is called cut elimination: for any deduction in the sequent calculus with cut, there exists a cut-free deduction of the same sequent. The proof is a straightforward induction on the structure of the deduction, appealing to the cut theorem in one crucial place. Theorem 3 (Cut Elimination) If D is a deduction of Γ = cut C possibly using the cut rule, then there exists a cut-free deduction D of Γ = cut C. Proof: By induction on the structure of D. In each case, we appeal to the induction hypothesis on all premises and then apply the same rule to the result. The only interesting case is when a cut rule is encountered. D 1 Γ cut = A cut Γ, A cut = C Γ cut = C Γ = A without cut By i.h. on D 1 Γ, A = C without cut By i.h. on Γ = C By the Cut Theorem cut

Cut Elimination L10.9 5 Identity 2 We permit the entity rule for all propositions. However, the version of this rule for just atomic propositions P is strong enough. We write Γ = A for this restricted system In this restricted system, the rule for arbitrary propositions A is admissible, that is, each instance of the rule can be deduced. We call this the entity theorem because it shows that from an assumption A we can prove the entical conclusion A. Theorem 4 (Identity) For any proposition A, we have A = A. Proof: By induction on the structure of A. We show several representative cases and leave the remaining ones to the reader. A = P for an atomic proposition P. Then P = P A = A 1 A 2. Then By i.h. on A 1 and weakening A = A 1 A 2. Then A =. Then By i.h. on A 2 and weakening A 1 A 2, A 1 = A 1 A 1 A 2, A 2 = A 2 L 1 L 2 A 1 A 2 = A 1 A 1 A 2 = A 2 R A 1 A 2 = A 1 A 2 By i.h. on A 1 and weakening By i.h. on A 2 and weakening A 1 A 2, A 1 = A 1 A 1 A 2, A 1, A 2 = A 2 L A 1 A 2, A 1 = A 2 R A 1 A 2 = A 1 A 2 2 this section not covered in lecture = L

L10.10 Cut Elimination The entity theorem is the global version of the local completeness property for each indivual connective. Local completeness shows that a connective can be re-verified from a proof that gives us license to use it, which directly corresponds to A = A. One can recognize the local expansion as embodied in each case of the inductive proof of entity. References [Gen35] Gerhard Gentzen. Untersuchungen über das logische Schließen. Mathematische Zeitschrift, 39:176 210, 405 431, 1935. English translation in M. E. Szabo, editor, The Collected Papers of Gerhard Gentzen, pages 68 131, North-Holland, 1969. [Pfe00] Frank Pfenning. Structural cut elimination I. Intuitionistic and classical logic. Information and Computation, 157(1/2):84 141, March 2000.