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

Similar documents
17.1 Correctness of First-Order Tableaux

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

Classical Propositional Logic

Lecture 13: Soundness, Completeness and Compactness

Propositional and Predicate Logic - IV

KE/Tableaux. What is it for?

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

Mathematical Logic Propositional Logic - Tableaux*

First-Order Logic. Chapter Overview Syntax

Introduction to Logic in Computer Science: Autumn 2006

Predicate Logic - Semantic Tableau

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

First Order Logic: Syntax and Semantics

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

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

Propositional and Predicate Logic - V

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

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

1 Completeness Theorem for Classical Predicate

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

Non-normal Worlds. Daniel Bonevac. February 5, 2012

Informal Statement Calculus

2. Prime and Maximal Ideals

Deductive Systems. Lecture - 3

Modal and temporal logic

On some Metatheorems about FOL

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

Introduction to Metalogic

The predicate calculus is complete

PL: Truth Trees. Handout Truth Trees: The Setup

Propositional Logic: Gentzen System, G

Decision Procedures. Jochen Hoenicke. Software Engineering Albert-Ludwigs-University Freiburg. Summer 2012

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Tableau-based decision procedures for the logics of subinterval structures over dense orderings

Tutorial on Mathematical Induction

PHIL 422 Advanced Logic Inductive Proof

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

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

Discrete Mathematics (VI) Yijia Chen Fudan University

List of errors in and suggested modifications for First-Order Modal Logic Melvin Fitting and Richard L. Mendelsohn August 11, 2013

1. Tarski consequence and its modelling

A generalization of modal definability

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

Learning Goals of CS245 Logic and Computation

Formal Logic Lecture 11

Guest lecturer: Mark Reynolds, The University of Western Australia. May 7, 2014

Chapter 3 Deterministic planning

Propositional Logic: Models and Proofs

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Proving Completeness for Nested Sequent Calculi 1

Handout Proof Methods in Computer Science

MAGIC Set theory. lecture 2

Binary Decision Diagrams

Mathematics-I Prof. S.K. Ray Department of Mathematics and Statistics Indian Institute of Technology, Kanpur. Lecture 1 Real Numbers

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Discrete Mathematics

1. Propositional Calculus

LTCS Report. Blocking and Pinpointing in Forest Tableaux. LTCS-Report 08-02

Predicate Logic: Sematics Part 1

On the Effectiveness of Symmetry Breaking


Logic: Propositional Logic Truth Tables

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

Propositional and Predicate Logic - XIII

Propositional and Predicate Logic - VII

Semantics of intuitionistic propositional logic

Formal (natural) deduction in propositional logic

TABLEAU SYSTEM FOR LOGIC OF CATEGORIAL PROPOSITIONS AND DECIDABILITY

Logic: First Order Logic

Semantics and Pragmatics of NLP

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

Linear-time Temporal Logic

First-order resolution for CTL

1 Completeness Theorem for First Order Logic

Gödel s Incompleteness Theorems

Description Logics: an Introductory Course on a Nice Family of Logics. Day 2: Tableau Algorithms. Uli Sattler

Principles of Knowledge Representation and Reasoning

MA651 Topology. Lecture 9. Compactness 2.

Nominal Substitution at Work with the Global and Converse Modalities

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

Prefixed Tableaus and Nested Sequents

Introduction to Logic in Computer Science: Autumn 2006

ECE353: Probability and Random Processes. Lecture 2 - Set Theory

Canonical models for normal logics (Completeness via canonicity)

Propositional Logics and their Algebraic Equivalents

Syntactic Characterisations in Model Theory

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Classical First-Order Logic

CS 375/CS M75 Logic for Computer Science

TR : Possible World Semantics for First Order LP

VC-DENSITY FOR TREES

Systems of modal logic

CONTENTS. Appendix C: Gothic Alphabet 109

CS411 Notes 3 Induction and Recursion

1 Propositional Logic

Russell s logicism. Jeff Speaks. September 26, 2007

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Transcription:

CS 486: Applied Logic Lecture 7, February 11, 2003 7 Compactness 7.1 Compactness why? So far, we have applied the tableau method to propositional formulas and proved that this method is sufficient and adequate to show that a formula is valid, i.e. a tautology. The tableau method is a finite proof method and can be implemented on a computer as a decision procedure for propositional logic. The obvious question that comes up at this point is: can we go beyond simple propositional formulas or are there limitations of such finite proof methods? Can we use them to investigate sets of formulas, even if they are infinite? Can we use finite methods to something infinite? This question is not only mathematically interesting but will also tell us to what extent we can use the method for first order logic, when quantifiers will turn a single formula into a description of infinite sets of formulas. You probably all know that universal quantifiers are nothing but an unlimited conjunction: Instead of X 1 X 2 X 3 X 4... we can also write i.x i. In the same way, the existential quantifier can be related to unlimited disjunction: instead of X 1 X 2 X 3 X 4... we can write i.x i. So one could imagine extending the tableau method as follows: To apply the method to i.x i we start with F (X 1 X 2 X 3 X 4...) and decompose this formula step by step: Since we know that all the F X i are direct descendants of that formula, we first derive F X 1 and try to close that tableau. If that doesn t work, we derive F X 2, add it to every open branch and try to close the resulting tableau, etc. It is obvious that we have a proof for i.x i if we arrive at a closed tableau with this method. After all, we have shown that F (X 1 X 2... X n ) is unsatisfiable for some n, so X 1 X 2... X n is valid and that certainly implies i.x i. But, what information do we gain if we cannot close the tableau at all? Does the fact that F (X 1 X 2... X n ) is satisfiable for any n imply that F ( i.x i ) must be satisfiable as well? Q: Why isn t that a trivial question? The difficulty here is that we must relate a property of an infinite set of formulas to what we know about its finite subsets. In real analysis, for instance, we know that an infinite set does not necessarily have the same properties as all its finite subsets: every element of the sequence [1/2; 1/3; 1/4; 1/5;... ] is greater than zero, but the limit of that sequence is not. So, in principle, it could be possible that every interpretation that satisfies some subset F (X 1 X 2... X n ), will not work on some larger subset of F (X 1 X 2... ) anymore and that the F i.x i is unsatisfiable after all we just used the wrong method in our attempt to prove this. In mathematics, the question that we just raised relates to the subject of compactness: given a possibly infinite set what can we say about its properties when we know the properties of its finite subsets? 22

In logic, compactness focuses on satisfiability of formulas: if all finite subsets of a set S of formulas are satisfiable, is there is a valuation v 0 :Var B that satisfies all the formulas in S uniformly? Obviously the answer to that question does not depend on the tableau method but only on propositional logic as such. However, the tableau method is one way to investigate it and to prove that the answer to that question is indeed a yes, as it relates the notion of satisfiability to finitely generated trees whose open branches are Hintikka sets. To simplify the notation, we define a set S of formula to be consistent if every finite subset of S is satisfiable. The property that we want to prove thus can be formulated as Theorem 7.1 (Compactness Theorem) Every infinite consistent set of formulas is satisfiable This theorem gives us the assurance that finite finite methods like the tableau method can be extended to first-order logic and beyond. There are many different ways to prove compactness. Most of these have turned out to be so fundamental for the development and study of proof methods, that it is worth looking at a variety of proofs for the same result and try to understand the methodology behind them. We will look at a proof that uses the tableau method, Hintikka s lemma, and a lemma about finitely generated trees. We will then look at a proof that bypasses the tableau method and works directly with the Hintikka property. And finally, we will study a very abstract and powerful method, called Lindenbaum s theorem that analyzes consistency as such. 7.2 A proof based on the tableau method The first proof for the theorem will be based on the tableau method. Since the issue we re interested in is satisfiability of a set of formulas and since it doesn t matter if these formulas are signed or not, let us consider tableaux for unsigned formulas. Obviously, a finite set of formulas {X 1,... X n } is uniformly satisfiable if its conjunction X 1... X n is satisfiable. If this is the case then (because of the correctness of the tableau method) every tableau proof for X 1... X n must have at least one open branch. Now consider the construction of a tableau for a consistent set S = {X 1, X 2, X 3,...}. The construction will analyze the formulas of S in some order. Since every finite subset of S is satisfiable, we re going to have an open branch at every stage of the development, which means the construction will have to go on forever and the resulting tableau will have infinitely many points. Now the question is Q: Does that mean the tableau has an infinite open path? Let us simplify the question. Q: Does every infinite tree necessarily have an infinite branch? Well, the answer obviously depends whether we allow a point to have infinitely many successors or not. If we do allow infinitely many successors the answer is no, as the following trivial example (left) shows. 23

...... Even if we allow the paths to grow longer and longer, that even if we do not place any length limit on the branches of the tree, then infinitely many points in the tree still do not guarantee the existence of infinite branches, as the example on the right shows. But if we consider finitely generated trees and formula trees and tableaux are of that kind then there is in fact a uniform length limit. This insight is called Lemma 7.2 (König s Lemma) Every infinite, but finitely generated tree has an infinite branch In the literature you will find two formulations of this lemma, the one given above and another, which is an immediate consequence. Corollary 7.3 (König s Lemma) Every finitely generated tree that has only finite branches is finite We re going to prove the first, since this is the version we will use later. Proof: Let T be a finitely generated tree and with infinitely many points. We will construct an infinite branch θ in T by considering those points in the tree that have infinitely many descendants. In König s original proof these points are called good and we will adapt this notation. Obviously the origin of T is good and if a point is good and has only finitely many successors, one of them must be good as well. So p 0 = origin(t ) is good and has a successor p 1 that is good, p 1 has a successor p 2 that is good, etc. Using this argument recursivily we get an infinite chain [p 0, p 1, p 2,... ] of points in T that form a branch in T. Using König s Lemma we will now prove the compactness theorem: Assume that S = {X 1, X 2, X 3,...} is consistent. We construct a tableau tree for S as follows: We begin with a complete tableau for X 1. Since S is consistent, X 1 is satisfiable and the tableau will have at least one open branch. Next, we add the formulas X 1 X 2 and X 2 at the top of the tableau, which will give us an incomplete tableau for X 1 X 2. We continue the development of the tableau for X 1 X 2 at the open branches until it is complete. Again, at least one branch will be open and we continue by adding X 1 X 2 X 3 and X 3 at the top, etc. Since at each stage of the development we have a tableau for a finite subset of S, the construction will never terminate and we will get an infinite tree that contains all X i S. 24

Because of König s Lemma, this tree must have an infinite branch and, by construction, all the X i are on this branch. Since we used the tableau method, the set S of formulas on this branch will be a Hintikka set that is a superset of S. Because of Hintikka s lemma, S is satisfiable and so is S as a subset of S. This proof does not only prove the compactness theorem but also explains how we could define a tableau for an infinite set S of formulas: We start with a formula X S and apply in each step either one of the tableau rules or add an arbitrary formula from S to the end of the branch. If the tableau is not closed, it will become infinite and thus show the satisfiability of S. Obviously, this is a purely theoretical approach, since we cannot cannot wait infinitely long to get an answer. However, it illustrates the principles. 7.3 A direct construction of Hintikka sets The second proof that we re going to look at bypasses the specific proof method of tableau proofs and directly constructs a Hintikka set for any consistent set S. This shows again that compactness does not depend on the method that one may use for proving formulas true. It is a property of propositional logic. We begin our proof by stating a few observations about consistency, which will then be used in the rest of the argument. Obviously, any subset S of a consistent set S is consistent since the subsets of S are subsets of S as well. Secondly, consistency satisfies the following three conditions C 0 : P:S-Var X. (P S P S) S inconsistent C 1 : S {α} consistent S {α 1 } consistent 1 C 2 : S {β} consistent S {β 1 } consistent or S {β 2 } consistent Condition C 0 is obvious since {P, P} would be an unsatisfiable subset of S. To show C 1, we assume that S {α 1 } is inconsistent. Then there is a finite subset S 1 of S {α 1 } such that S 1 {α 1 } is unsatisfiable. Due to the laws of boolean valuations S 1 {α} must be unsatisfiable as well, which means that S {α} is inconsistent. The justification for C 2 is similar. Now let us come back to the proof of the compactness theorem and assume that S = {X 1, X 2, X 3,...} is consistent. We will inductively construct a Hintikka set S that is a superset of S, which implies the satisfiability of S. We start our construction by defining S 1 := {X 1 } For the construction of S n+1 we assume that S n = {Y 1,... Y n+i } is a superset of {X 1,..., X n } that is consistent with S (i.e. S S n is consistent), and consider the element Y n. 1 Smullyan uses the notation {S,α 1 } as shorthand for S {α 1 } 25

If Y n is a variable, we define S n+1 := S n {X n+1 }, which is consistent with S. If Y n is α, we define S n+1 := S n {α 1,X n+1 }, which is consistent with S according to C 1. If Y n is β, then we define S n+1 := S n {β j,x n+1 } such that S n+1 is consistent with S. Because of C 2 this is the case for at least one of β 1 or β 2 We define S = S n. Then S is a superset of S by construction. S also satisfies the axioms of a Hintikka set. H 0 is satisfied since {P, P} is not a subset of any S S n, thus not of S H 1 : if α S then α=y n for some n, thus α 1 S n+1 S H 2 : if β S then β=y n for some n, thus β j S n+1 S for some j Since S is a Hintikka set, it is uniformly satisfiable and so is S, because it is a subset of S. 26