Techniques for Proving the Completeness of a Proof System Hongseok Yang Seoul National University Cristiano Calcagno Imperial College.

Slides:



Advertisements
Similar presentations
Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
Advertisements

Completeness and Expressiveness
In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and shows.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Discrete Math Methods of proof 1.
Introduction to Proofs
PROOF BY CONTRADICTION
Chapter 3 Direct Proof and Proof by Contrapositive
Possible World Semantics for Modal Logic
Verifying Executable Object-Oriented Specifications with Separation Logic Stephan van Staden, Cristiano Calcagno, Bertrand Meyer.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Artificial Intelligence Modal Logic
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
So far we have learned about:
From Chapter 4 Formal Specification using Z David Lightfoot
Copyright © Zeph Grunschlag,
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Chapter 4: Elementary Number Theory and Methods of Proof 4.2 Direct Proof and Counter Example II: Rational Numbers 1 Such, then, is the whole art of convincing.
Discrete Mathematics and Its Applications
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Introduction to Proofs
Introduction to Proofs
MATH 224 – Discrete Mathematics
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CS6133 Software Specification and Verification
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
CSE Winter 2008 Introduction to Program Verification January 15 tautology checking.
We will now study some special kinds of non-standard quantifiers. Definition 4. Let  (x),  (x) be two fixed formulae of a language L n such that x is.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Introduction to Proofs
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Types and Programming Languages Lecture 3 Simon Gay Department of Computing Science University of Glasgow 2006/07.
Introduction to Proofs. The use of Reasoning and Logic in proofs Inductive Reasoning- “reasoning from detailed facts to general principles” – Specific.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Software Verification 1 Deductive Verification Prof. Dr. Holger Schlingloff Institut für Informatik der Humboldt Universität und Fraunhofer.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and proofs
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
Propositional Logic (a.k.a. Sentential Logic)
The Propositional Calculus
Information Technology Department
Lecture 5 Floyd-Hoare Style Verification
The Foundations: Logic and Proofs
Logics for Data and Knowledge Representation
A Brief Summary for Exam 1
Knowledge and reasoning – second part
Search techniques.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Techniques for Proving the Completeness of a Proof System Hongseok Yang Seoul National University Cristiano Calcagno Imperial College

Completeness Question Completeness: Is a proof system powerful enough to verify all true facts? Proof system for classical propositional logic: ` P ) (Q ) R) ` (P ) (Q ) Q’)) ) ((P ) Q) ) (P ) Q’)) ` :: P ) P ` P ` P ) Q ` Q Truth: P holds (denoted ² P) iff P always evaluates to true by the “table method.” Completeness Theorem: if ² P, then ` P. Exercise: Prove ` ((q ) r) ) q) ) q.

Reasons for Studying Completeness 1. Sometimes it is easier to show the truth of a formula than to derive the formula. 2. The completeness result shows that nothing is missing in a proof system. 3. The completeness result formalizes what a proof system achieves. 4. With a completeness result, a paper about a proof system has more chances to get accepted.

Goal of My Talk To present common techniques for showing the completeness, so that you can apply them to your own problem. In particular, to explain the following concepts: maximally consistent set truth lemma Lindenbaum lemma If time permits, I will briefly explain what I’m working on with Calcagno in Imperial college.

Simple Modal Logic P := q | : P | P ) P |  P Proof system: usual rules in classical logic with the following additional ones for the modality: ` P `  P `  (P ) Q) ) (  P )  Q) Example: student, ð phd, ðð professor deadlock, ð deadlock, : ð : deadlock

Semantics A model M is a triple (M, R:M $ M, I:Symb !P (M)). Interpretation of Simple Modal Logic M,m ² q iff m 2 I(q) M,m ² : P iff M,m 2 P M,m ² P ) Q iff if M,m ² P, then M,m ² Q M,m ²  P iff for all n, if R(m,n), then M,n ² P Example: M=years, R(n,m) iff m=n+1, I(phd)={2001,…}, I(student)={1982,…,2001}

Completeness Question P is valid (denoted ² P) iff for all models (M,R,I) and all m in M, (M,R,I),m ² P. Completeness: If ² P, then ` P. General guide: consider the contrapositive! Contrapositive: if 0 P, then 2 P. Guide: for each P such that 0 P, construct a model (M,R,I) with m in M such that (M,R,I),m ² : P.

Strategy for Constructing a Required Model Build a model M = (M,R,I) such that 1. [term model] each m in M is a set of formulas; 2. [truth lemma] for all m and Q, m ² Q iff Q is in m; 3. there exists n in M containing : P. This model is what we are looking for. (Why?) How to build such a model?

Inferring Requirements from the Truth Lemma Let M =(M,R,I) be a model such that each m in M is a set of formulas. Try to use induction to show the truth lemma for M : for all m in M and Q, m ² Q iff Q is in m. What conditions do R and I satisfy?

Inferring Requirements from the Truth Lemma Let M =(M,R,I) be a model such that each m in M is a set of formulas. Try to use induction to show the truth lemma for M : for all m in M and Q, m ² Q iff Q is in m. What conditions do R and I need to satisfy? 1. Q is not in m iff : Q is in m. 2. If both Q and Q ) Q’ are in m, then Q’ is in m. 3. If R(m,n) and ð Q is in m, then Q is in n. 4. m is in I(q) iff q is in m.

Maximally Consistent Set A set m of formulas is maximally consistent iff 1. for all Q, only one of Q and : Q is in m; and 2. if Q 0,Q 1,...,Q n 2 m and ` Q 0 ) Q 1 ) … ) Q n ) Q’, then Q’ in m. By turning the conditions into the definition (almost directly), we can construct the required model: M consists of maximally consistent sets of formulas; R(m,n) iff for all ð Q in m, Q in n; m 2 I(p) iff p 2 m. The proof for the truth lemma “almost” works.

Lindenbaum Lemma Still need to show two facts: If m ²  Q, then  Q is in m. There exists m in M such that m ² : P. Lindenbaum Lemma: Let {Q 0,Q 1,…,Q n } be a set of formulas. If 0 Q 0 ) Q 1 ) … ) Q n ) false, then there is a maximally consistent set m s.t. Q 0, Q 1, …, Q n 2 m. Try to show the two properties with Lindenbaum Lemma.

Summary We constructed “canonical” model (M,R,I): M consists of maximally cons. sets of formulas. R(m,n) iff for all  P in m, P is in n. m 2 I(p) iff p in m. The model satisfies the following properties: truth lemma: m ² P iff P is in m. If 0 : P, then there is m such that P 2 m. These two properties lead to the completeness.

My Work with Calcagno Interested in the completeness of Boolean BI wrt PCM models. Conceptual implication: supports that BBI is a logic for computational resources. “Practical” implication: shows that the proof rules in separation logic are powerful enough. Roughly, the question is similar to asking whether our model logic are complete wrt injective models. (M,R,I) is injective iff R(m,n) Æ R(m,n’) ) n=n’ We found a method to transform the “canonical” model to an injective one, while preserving the satisfiability of formulas.