Revisiting Kalmar completeness metaproof

Similar documents
Formal Predicate Calculus. Michael Meyling

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

What if current foundations of mathematics are inconsistent? Vladimir Voevodsky September 25, 2010

Propositional Logic Formal Syntax and Semantics. Computability and Logic

AXIOMS FOR THE INTEGERS

A greedy, partially optimal proof of the Heine-Borel Theorem

Propositional Logic. Andreas Klappenecker

Inference rule for Induction

Classical logic, truth tables. Types, Propositions and Problems. Heyting. Brouwer. Conjunction A B A & B T T T T F F F T F F F F.

Kurt Gödel and Computability Theory

Semantics. There is no single widely acceptable notation or formalism for describing semantics Operational Semantics

The semantics of a programming language is concerned with the meaning of programs, that is, how programs behave when executed on computers.

INDEPENDENT POSTULATES FOR THE "INFORMAL" PART OF PRINCIPIA MATHEMATICA*

Typed Lambda Calculus for Syntacticians

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

15 212: Principles of Programming. Some Notes on Induction

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

ON BINARY TOPOLOGICAL SPACES

Graph Theory Questions from Past Papers

Propositional Theories are Strongly Equivalent to Logic Programs

Proving Theorems with Athena

Mathematics for Computer Scientists 2 (G52MC2)

1.3. Conditional expressions To express case distinctions like

Knowledge-based Systems for Industrial Applications - Propositional Logic

Milawa an extensible proof checker

Introduction to Axiomatic Semantics

A Reduction of Conway s Thrackle Conjecture

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Bootcamp. Christoph Thiele. Summer An example of a primitive universe

Programming Languages Third Edition

A note on Gaussian graphs. John W. Kennedy, Pace University, New York, NY 10038

Topic 3: Propositions as types

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Introduction to Computer Science

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

Mathematically Rigorous Software Design Review of mathematical prerequisites

Typed Lambda Calculus

Introductory logic and sets for Computer scientists

Summary of Course Coverage

Propositional Logic. Part I

arxiv: v2 [cs.lo] 29 Sep 2015

A Logic of Proofs for Differential Dynamic Logic

Logic and its Applications

THE LOGIC OF QUANTIFIED STATEMENTS

Chapter 3 (part 3) Describing Syntax and Semantics

Chapter 3. Describing Syntax and Semantics ISBN

1 The Axiom of Extensionality

Notes for Recitation 8

Chapter 3. Describing Syntax and Semantics

Primes in Classes of the Iterated Totient Function

Notes on Turing s Theorem and Computability

Finding a -regular Supergraph of Minimum Order

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Handout 9: Imperative Programs and State

Basic Foundations of Isabelle/HOL

Warmup Problem. Translate the following sentence from English into Propositional Logic. I want to eat ice cream even though I am on a diet.

CSE505, Fall 2012, Midterm Examination October 30, 2012

arxiv: v1 [math.co] 3 Apr 2016

CHECKING PROOFS IN THE METAMATHEMATICS OF FIRST ORDER LOGIC

The Typed λ Calculus and Type Inferencing in ML

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Proofs are Programs. Prof. Clarkson Fall Today s music: Proof by Paul Simon

Recursion and Induction

The Diagonal Lemma: An Informal Exposition

CS3110 Spring 2017 Lecture 9 Inductive proofs of specifications

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

Math Introduction to Advanced Mathematics

Logic and Computation Lecture 20 CSU 290 Spring 2009 (Pucella) Thursday, Mar 12, 2009

Axiomatic Specification. Al-Said, Apcar, Jerejian

Math 485, Graph Theory: Homework #3

Coq projects for type theory 2018

Lectures 20, 21: Axiomatic Semantics

Dynamic Logic David Harel, The Weizmann Institute Dexter Kozen, Cornell University Jerzy Tiuryn, University of Warsaw The MIT Press, Cambridge, Massac

Jaykov Foukzon. Israel Institute of Technology, Haifa, Israel.

On the Finiteness of the Recursive Chromatic Number

Programming Languages Fall 2014

Recursively Defined Functions

Formal Systems and their Applications

Fall Recursion and induction. Stephen Brookes. Lecture 4

Inferring preferred extensions by Pstable semantics

General Eulerian Numbers and Eulerian Polynomials

Introduction to dependent types in Coq

Introduction to Automata Theory. BİL405 - Automata Theory and Formal Languages 1

9 Axiomatic semantics

Section 2.4: Arguments with Quantified Statements

THE FOUNDATIONS OF MATHEMATICS

Warmup Problem. Describe how structural induction differs from our MATH 135 notion of induction. 1/25

The Truth about Types. Bartosz Milewski

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

CSE 311: Foundations of Computing. Lecture 8: Predicate Logic Proofs

PROOF OF THE COLLATZ CONJECTURE KURMET SULTAN. Almaty, Kazakhstan. ORCID ACKNOWLEDGMENTS

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

Combinatorics I (Lecture 36)

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012

1 Elementary number theory

Search Algorithms in Type Theory

Chapter 3: Propositional Languages

Natural Numbers. We will use natural numbers to illustrate several ideas that will apply to Haskell data types in general.

CS3110 Spring 2017 Lecture 7 Specifications using types continued

Transcription:

Revisiting Kalmar completeness metaproof Angélica Olvera Badillo 1 Universidad de las Américas, Sta. Catarina Mártir, Cholula, Puebla, 72820 México angelica.olverabo@udlap.mx Abstract In this paper, I present an alternative metaproof of the central lemma of the Kalmar completeness theorem, shown in Introduction to Mathematical Logic of Elliot Mendelson. It is well-known that the demonstration of a metamathematical theorem enables us to construct a formal proof. Nevertheless, the metaproof shown by Mendelson does not let us to construct entirely a formal proof if it falls into one case in particular. Based on this observation, I propose an alternative metaproof with the aim to provide a method that enable us to construct any formal proof and to allow us to do a recursive algorithm without falling in some kind of endless loop. Keywords: propositional calculus, Kalmar, completeness theorem, metamathematics. 1 Introduction The metaproof 1 of the completeness theorem that is reviewed here is due to Kalmar [2], although it appeared first in Post [6] and then there was another version of Hilbert and Ackermann [1] in 1928. This metaproof presented here is used by Mendelson [5] and by Kleene [4] [3]. The completeness theorem states that if a formula A of L 2 is a tautology, then it is a theorem of L. The metaproof of this theorem makes use of a central lemma and the deduction theorem. The metaproofs of both are constructive, as well as the whole metaproof of the completeness theorem. This constructive sense is a feature we expect to find in all the demonstrations of the metamathematical theorems because if they have the finitary character which metamathematics is supposed to have, the demostrations will indicate, at least implicitly, methods for obtaining the formal proofs [3] The metaproofs of the deduction theorem and the lemma differ in that the first one provides an explicit method to construct a proof, while the second one provides 1 The word metaproof is going to be used to refer to a certain sequences of the English language that serve as an argument to justify the assertions about the language [5] or formal theory that is being discussed, in this case is the formal theory L that it is presented in the Background section. It is going to be used the word proof to refer to a certain sequence of formulas of L 2 L is a formal theory presented by Mendelson [5] and is going to be defined in the Background section

it only implicitly. In fact, Kleene, in [4], clearly illustrates, through an example, that it is possible to construct entirely a proof using the deduction theorem metaproof. The reason why the metaproof of the lemma provides a method for constructing proofs only implicitly is because there is one subcase, within the metaproof, where there is no more indication as to how to continue building the proof. Therefore, this method is not as obvious and explicit as the ones provided by most metaproofs as for example, the metaproof of the deduction theorem. For that aim, I propose an alternative metaproof in order to provide an explicit method to construct proofs. This will have at least two benefits, the first one being that teaching the metaproof will be easier because students just have to follow the metaproof step by step to construct a proof, and the other one has to do with the area of computer sciences, because it will be easier to create a recursive algorithm for the automatic construction of proofs. This paper is structured as follows. In Section 2, the concepts, definitions and formal theory that will be used in this paper are introduced, as well as the lemma and its metaproof provided by Mendelson. In Section 3, the alternative metaproof that I propose and an example of a proof constructed with the aid of the given metatheorem are presented. Finally in Section 4, I present some conclusions. 2 Background In this section, I review some fundamental concepts and definitions following [5] that will be used throughout this work. I introduce first an axiomatic approach for the propositional calculus. I also present the central lemma of the Kalmar completeness theorem provided by Mendelson and an example of a proof which falls into the particular subcase that is no longer constructive. 2.1 Axiomatic approach for the propositional calculus In this paper, it is going to be used a formal axiomatic theory for the propositional calulus which only has only the symbols,, (,), and the letters A i with positive integers i as subscripts: A 1, A 2, A 3,.... The symbols and are called primitive connectives, and the letters A i are called statement letters. A formula is either a statement letter or a statement form built up from formulae by means of the connectives and. If α, β, and θ are formulas of L, then the following are axioms of L: (A1) α (β α) (A2) (α (β θ)) ((α β) (α θ)) (A3) ( β α) (( β α) β) The only rule of inference of L is modus ponens: β is a direct consequence of α and (α β). For any formulas α and β, the following are theorems of L: Theorem 1. β β

Theorem 2. α (α β) Theorem 3. α ( β (α β)) The theorems already mentioned are going to be used in the central lemma of the Kalmar metaproof. The treatment of logic done so far is called proof theory, nevertheless, there is another way of founding logic called model theory where the concept of interpretation arises. An interpretation is an assignment of the truth values true or false to the statement letters that occur in a formula, under that interpretation, the whole formula takes the value either true or false. Here, the last ones are going to be denoted by T or F respectively. 2.2 The central lemma of the Kalmar metaproof In this section I review a central lemma of the Kalmar completeness theorem of the propositional logic and its metaproof shown by Elliott Mendelson [5]. The lemma is the following. Lemma 1. Let α be a wf, and let B 1,..., B k be the statement letters that occur in α. For a given assignment of truth values to B 1,..., B k, let B i be B i if B i takes the value T; and let B i be B i if B i takes the value F. Let α be α if α takes the value T under the assignment, and let α be α if α takes the value F. Then B 1,..., B k α. Proof. The proof is by induction on the number n of ocurrences of and in α. If n = 0, α is just a statement letter B 1, and then the lemma reduces to B 1 B 1 and B 1 B 1. Assume now that the lemma holds for all j < n. Case 1. α is β. Then β has fewer than n occurrences of and. Subcase 1a. Let β take the value T under the given truth value assignment. Then α takes the value F. So, β is β and α is α. By the inductive hypothesis applied to β, B 1,..., B k β. Then, by theorem 1 and MP, B 1,..., B k β. But, β is α. Subcase 1b. Let β take the value F. Then β is β and α is α. By inductive hypothesis, B 1,..., B k β. But, β is α. Case 2. α is β θ. Then β and θ have fewer occurrences of and than α. So, by inductive hypothesis, B 1,..., B k β and B 1,..., B k θ. Case 2a. β takes the value F. Hence, α takes the value T. Then β is β and α is α. So, B 1,..., B k β. By theorem 2, B 1,..., B k β θ. But, β θ is α. Case 2b. θ takes the value T. Hence α takes the value T. Then θ is θ and α is α. Now, B 1,..., B k θ. Then, by axiom schema (A1), B 1,..., B k β θ. But, β θ is α. Case 2c. β takes the value T and θ takes the value F. Then α takes the value F. β is β, θ is θ, and α is α. Now, B 1,..., B k β and B 1,..., B k θ. So, by theorem 3, B 1,..., B k (β θ). But (β θ) is α

Example 1. Lets take the well known pierce formula: (((A B) A) A) and let the assignment of truth values to the statement letters as follows: A takes the value F and B takes the value T. So the metaproof just given is supposed to enable us to construct the proof of A, B ((A B) A) A. In order to make more clear the way it is going to follow the metaproof to construct the proof, I use horizontal brackets indicating the formula α and their subformulas β and θ when needed. Proof. A, B ((A B) A) }{{} A β θ This is the case 2a where β takes the value F. So, α 1. ((A B) A) by inductive hypothesis (*to prove) 2. ((A B) A) (((A B) A) A) theorem 2 3.((A B) A) A modus ponens from 1 and 2. In the earlier proof, note that I wrote the formula ((A B) A) by inductive hypothesis, this means that we take it as already demostrated and provable. But to construct the whole proof of the pierce formula we have to construct the proof of those formulas too. I shall use * to indicate those formulas that need to be proved. α *to prove A, B ((A B) A) }{{} β This is the case 1b where β takes the value F. Note that the metaproof says this is already proved and does not indicate how to construct the proof when it falls into this case. Hence, it does not allow us to construct the whole pierce formula. This example shows how this metaproof, although it is correct, loses some of the constructive sense the metaproofs are supposed to have. In the next section, I propose an alternative metaproof with the aim to enable the complete construction of proofs. 3 The alternative metaproof The alternative metaproof of the lemma 1 that I propose is the following. Proof. The proof is by induction on the number n of ocurrences of and in α. If n 1, α is B 1 or B 1 where B 1 is just a statement letter, and then the lemma reduces to B 1 B 1 and B 1 B 1 Assume now that the lemma holds for all j < n. Case 1. α is β

Subcase 1a. β is θ. Hence α is θ. Given that β takes the value F, then θ takes the value T. Then θ is θ So, But, θ is α 1. B 1,..., B k θ by inductive hypothesis. 2. B 1,..., B k θ θ theorem 1 3. B 1,..., B k θ modus ponens from 1 and 2. Subcase 1b. β is θ γ. Hence α is (θ γ). Given that β takes the value F, then θ takes the value T and γ takes the value F. Then θ is θ and γ is γ. So, 1. B 1,..., B k θ by inductive hypothesis. 2. B 1,..., B k γ by inductive hypothesis 3. B 1,..., B k θ ( γ (θ γ)) theorem 3 4. B 1,..., B k γ (θ γ) modus ponens from 1 and 3 5. B 1,..., B k (θ γ) modus ponens from 2 and 4 But, (θ γ) is α Case 2. α is β θ Subcase 2a. β takes the value F. Then β is β. So, 1. B 1,..., B k β by inductive hypothesis 2. B 1,..., B k β (β θ) theorem 2 3. B 1,..., B k β θ modus ponens from 1 and 2 But, β θ is α Subcase 2b. θ takes the value T. Then θ is θ. So, 1. B 1,..., B k θ by inductive hypothesis. 2. B 1,..., B k θ (β θ) Axiom schema (A1) 3. B 1,..., B k β θ modus ponens from 1 and 2. But β θ is α Example 2. Lets take the same example 1 (((A B) A) A) with the same assignment of truth values to the statement letters: A takes the value F and B takes the value T. So, the metaproof just given enable us to construct the proof of A, B (((A B) A) A) As in the example 1, it is going to use the horizontal brackets to indicate the formula α and their subformulas β, θ and γ when needed, in order to make the construction of the proof more clear to the reader. Proof. A, B ((A B) A) }{{} A β θ α

This is the subcase 2a where β takes the value F. So, 1. ((A B) A) by inductive hypothesis (*to prove) 2. ((A B) A) (((A B) A) A) theorem 2 3.((A B) A) A modus ponens from 1 and 2. *to prove: A, B ((A B) A }{{} ) } {{ } β This is the subcase 1b where β is θ γ. So, θ α γ 1.A B by inductive hypothesis (**to prove) 2. A assumption formula 3.(A B) ( A ((A B) A)) theorem 3 4. A ((A B) A) modus ponens from 1 and 3 5. ((A B) A) modus ponens from 2 and 4 α **to prove: A, B }{{} A }{{} B β θ This is the subcase 2a where β takes the value F. So, 1. A assumption formula 2. A (A B) theorem 2 3.A B modus ponens from 1 and 2 Now, there is not another formula that needs to be proved, so the proof is complete, built following the metaproof that I propose. The complete proof of the pierce formula is the following. Proof. A, B (((A B) A) A) 1. A assumption formula 2. A (A B) theorem 2 3.(A B) modus ponens from 1 and 2 4.(A B) ( A ((A B) A)) theorem 3 5. A ((A B) A) modus ponens from 3 and 4 6. ((A B) A) modus ponens from 1 and 5 7. ((A B) A) (((A B) A) A) theorem 2 8.((A B) A) A modus ponens from 6 and 7

4 Conclusions In this work I reviewed the Kalmar completeness theorem and the lemma that it uses. I also mentioned the problem we have to deal with if we follows the metaproof of the lemma provided by Mendelson to construct a formal proof. So it is proposed an alternative metaproof of the lemma, in order to indicate explicitly a method for obtaining a formal proof and it is illustrated, through an example, how this this is possible just following the proposed metaproof. The benefits of the my proposal, already mentioned, are at least two, the first one being that teaching the metaproof will be easier because students just have to follow the metaproof step by step to construct a proof, and the other one has to do with the area of computer sciences, because it will be easier to create a recursive algorithm for the automatic construction of proofs. References 1. D. Hilbert and Acker. Grundzüge der theorethischen Logik. Springer, Berlin, first edition, 1928. 2. L. Kalmár. Über die axiomatisierbarkeit des aussagenkalküls. Acta scientiarum mathematicarum (Szeged), 7:222 243, 1935. 3. S. C. Kleene. Introduction To Metamathematics. American Elsevier Publishing Company, Inc., New York, N.Y., first edition, 1974. 4. S. C. Kleene. Mathematical Logic. Dover, Mineola, N.Y., first edition, 2002. 5. E. Mendelson. Introduction to Mathematical Logic. Wadsworth, Belmont, CA, third edition, 1987. 6. E. L. Post. Introduction to a general theory of elementary propositions. Amer. jour. math., 43:163 185, 1921.