Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Discrete Math Methods of proof 1.
Introduction to Proofs
Possible World Semantics for Modal Logic
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.
Semantics of SL and Review Part 1: What you need to know for test 2 Part 2: The structure of definitions of truth functional notions Part 3: Rules when.
Logic Concepts Lecture Module 11.
Elementary Number Theory and Methods of Proof
Truth Trees Intermediate Logic.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Axiomatic Semantics.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Automated Proof Generation for EG Bram van Heuveln Spring 2003 AI & Reasoning Lab, RPI.
Using Existential Graphs for Automated Theorem Proving
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
Existential Graphs: Beta Introduction to Logic. Alpha Review: Symbolization ‘P’ ‘not P’ ‘P and Q’ ‘P or Q’ ‘if P then Q’ F EG PP PP P  Q P  Q P 
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
Using the EG Applet Bram van Heuveln. Contents General Comments –Some general comments regarding the use of the applet Work Area –Instructions for creating.
Sentential Logic(SL) 1.Syntax: The language of SL / Symbolize 2.Semantic: a sentence / compare two sentences / compare a set of sentences 3.DDerivation.
Proving the implications of the truth functional notions  How to prove claims that are the implications of the truth functional notions  Remember that.
Alpha: Symbolization and Inference Bram van Heuveln Minds and Machines Lab RPI.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Axiomatic Semantics ICS 535.
The semantics of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of truth-value assignments   A truth-value assignment:
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.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Propositional Logic Review
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Methods of Proof & Proof Strategies
Logic Introduction to Logic.
CSE 755, part3 Axiomatic Semantics Will consider axiomatic semantics (A.S.) of IMP: ::=skip | | | | ; | | Only integer vars; no procedures/fns; vars declared.
Introduction to Proofs
Reading and Writing Mathematical Proofs
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Proofs 1/25/12.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
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
Existential Graphs Intermediate Logic. Existential Graphs A graphical logic system developed by C.S. Peirce almost 100 years ago. Peirce studied semiotics:
Course Overview and Road Map Computability and Logic.
Automated Theorem Proving: Resolution and Davis-Putnam Intermediate Logic.
A Java implementation of Peirce’s Alpha Graphs Bram van Heuveln (RPI) Dennis Higgins (SUNY Oneonta) SUNY Oneonta undergraduate programmers: Elizabeth Hatfield,
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Of 38 lecture 13: propositional logic – part II. of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as.
Overview Mathematical Induction Derivations Recursive Inference Parse Trees Equivalence of Inference, Derivations, and Parse Trees.
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.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Lecture 3 The Languages of K, T, B and S4. 2 Last time we extended the language PC to the language S5 by adding two new symbols ‘□’ (for ‘It is necessary.
C HAPTER 3 Describing Syntax and Semantics. D YNAMIC S EMANTICS Describing syntax is relatively simple There is no single widely acceptable notation or.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
The Existential Graphs Project Rensselaer Reasoning Group September 12, 2001.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Chapter 3 The Real Numbers.
Great Theoretical Ideas in Computer Science
Elementary Metamathematics
Automated Proof Generation for EG
CS 220: Discrete Structures and their Applications
Chapter 7. Propositional and Predicate Logic
CS344 : Introduction to Artificial Intelligence
Presentation transcript:

Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI

Overview This presentation discusses: –Formal Syntax of Alpha –Formal Semantics of Alpha –Soundness of Alpha –Completeness of Alpha

Formalizing Alpha Formal Syntax  1. is an Alpha Graph, with  an Alpha Graph. 2. Alpha Graphs are recursively defined as follows: is an Alpha Graph. is an Alpha Graph, with P an atomic statement. is an Alpha Graph, with  and  Alpha Graphs. P 

Formalizing Alpha Formal Semantics A truth-assignment h is a function that assigns either True or False to any Alpha Graph in accordance with:  1. h( 2. h( 3. h( 4. h( P  ) = True iff is h(  ) = False. ) = True. ) = True or False. ) = True iff h(  ) = True and h(  ) = True.

Formalizing Alpha Consequence Let us use the following notation: –h |=  iff h(  ) = True –|=  iff for any truth-assignment h: h |=  Let us define: –  is a truth-functional consequence of  iff for any truth-assignment h: if h |=  then h |= .

Formalizing Alpha Soundness and Completeness Let us use the symbol  TF to indicate truth- functional consequence: –   TF  iff  is a truth-functional consequence of . Let us use the symbol  EG to indicate truth- functional provability in Alpha: –   EG  iff there exists a formal proof from  to . We will show two things: –Alpha is truth-functionally sound: For any  and  : if   EG  then   TF  –Alpha is truth-functionally complete: For any  and  : if   TF  then   EG 

Soundness Proving Soundness A straightforward way to demonstrate the soundness of some system S is to demonstrate that each of the inference rules of S is sound. If the inference rules deal with subproofs, such a proof can actually become rather technical, even if the soundness of each inference rules is intuitive clear (see e.g. proof of soundness of F in “Language, Proof, and Logic”). The good news is that Alpha does not deal with subproofs. However, the bad news is that, except for double cut, the soundness of Alpha’s inference rules is not intuitive. To make the soundness of the inference rules more intuitive, we use the notion of a recursive conditional reading as well as 3 less commonly used inference rules.

Soundness 2 Rules of Inference and 1 Rule of Equivalence p  r  (p  q)  r Strengthening the Antecedent Weakening the Consequent Absorption Case 1 Absorption Case 2 p  (q  r)  p  r p and q  r  p and (q  p)  r p and q  r  p and q  (r  p)

Soundness Recursive Conditional Reading P QRS This graph can be read as: ‘if P is true then Q is true, but if P is true, then it is also true that if R is true then S true’. Hence the conditional ‘if R then S’ is conditionally true. Thus, as more and more conditions get added, the truth of more and more statements can be asserted. One can see graphs with multiple cuts inside each other as expressing recursively conditioned conditionals. For example:

Soundness Relative Recursive Conditional Reading I 11  2k-1  2k  00 Relative to any subgraph  existing at an odd level 2k-1, one can see the graph as a whole in the above manner (note: if there is no cut next to , then one has to add an empty double cut next to  to make it work). 

Soundness Relative Recursive Conditional Reading II The Recursive Conditional Reading (RCR) of a graph relative to a subgraph  existing at odd level 2k – 1 is defined as follows:  0 &  1   2 & (  1   3 )   4  (  1     2k-1   )   2k 11  2k-1  2k  00 

Soundness Relative Recursive Conditional Reading III 11  2k-1  2k  00 Relative to any subgraph  existing at an even level 2k, one can see the graph as a whole in the above manner. 

Soundness Relative Recursive Conditional Reading IV The Recursive Conditional Reading (RCR) of a graph relative to a subgraph  existing at even level 2k is defined as follows:  0 &  1   2 & (  1   3 )   4  (  1     2k-1 )   2k   11  2k-1  2k  00 

Soundness Soundness of Insertion 11  2k-1  2k  00 11  2k-1  2k  00 IN   0 &  1   2 &  (  1     2k-1 )   2k  0 &  1   2 &  (  1     2k-1   )   2k p  r  (p  q)  r  ? Insertion corresponds to Strengthening the Antecedent

Soundness Soundness of Erasure 11  2k-1  2k  00 11  2k-1  2k  00 E   0 &  1   2 &  (  1     2k-1 )   2k p  (q  r)  p  r  0 &  1   2 &  (  1     2k-1 )  (  2k   )  ? Erasure corresponds to Weakening the Consequent

Soundness Soundness of Iteration/Deiteration To demonstrate the soundness of iteration and deiteration, it suffices to demonstrate that the subgraph that has the original at level 0 is equivalent to the corresponding subgraph in the result of the iteration or deiteration.     IT/DE      ?

Soundness Soundness of Iteration/Deiteration Case 1 11  2k-1  2k   11  2k-1  2k   IT/DE   &  1   2 &  (  1     2k-1)   2k  &  1   2 &  (  1     2k-1   )   2k p and q  r  p and (q  p)  r  ? Iteration/Deiteration (Case 1) corresponds to Absorption (Case 1)

Soundness Soundness of Iteration/Deiteration Case 2 11  2k-1  2k   11  2k-1  2k   IT/DE   &  1   2 &  (  1     2k-1 )   2k p and q  r  p and q  (r  p)  &  1   2 &  (  1     2k-1 )  (  2k   )  ? Iteration/Deiteration (Case 2) corresponds to Absorption (Case 2)

Completeness Proving Completeness On the next slides, we will provide a direct proof of the completeness of Alpha that very much follows the strategy used in “Language, Proof, and Logic” to prove that system F is complete.

Completeness Alpha Consistency and Alpha Completeness A graph  is Alpha inconsistent iff    EG  or   EG A graph  is Alpha complete iff for any graph  :   EG

Completeness Either-Or Lemma For any graph  : if  is Alpha consistent and Alpha complete, then for any graph  :   EG  or   EG  but not both   EG  and   EG  Proof: Suppose  is Alpha consistent and Alpha complete. Then: By Alpha completeness:   EG  or   EG  Now suppose   EG  and   EG       EG    Contradiction, so not both. Then: i.e.  is Alpha inconsistent.   EG  and   EG 

Completeness Deduction Theorem For any graphs  and  :   EG  iff  EG Proof: ‘if’:   EG  ‘only if’:    EG 

Completeness Transposition Lemma For any graphs  and  :   EG  iff  EG Proof: ‘only if’: Suppose   EG . Then (Ded. Thm.):  EG So:  EG  ‘if’: Suppose   EG . Then (‘only if’):  EG  So:    EG    

Completeness Expansion Theorem For any graph  : if  is Alpha consistent, then there exists a  ’ =   for some  such that  ’ is Alpha consistent and Alpha complete.  =  ’ As = Set of all atomic statements While As   : Select and remove some A from As  ’ = {  if   EG A or   EG A  A otherwise Proof: Obtain  ’ from the following routine: Next two slides:  ’ is Alpha consistent and Alpha complete.

Completeness Expansion Theorem (Alpha Consistency of  ’) To prove:  ’ as obtained by the routine is Alpha consistent. Step: Suppose  is Alpha consistent, and suppose that adding A  As Base:  is Alpha consistent to  makes  ’ =  A Alpha inconsistent, i.e:  A  EG Then:  A   A  EG So (Transposition Theorem):  EG  A  A Hence (Ded. Thm):   EG A So, A would not be added to . Contradiction, so adding A keeps  Alpha consistent. Proof: By induction we’ll show that at any point  ’ is Alpha consistent

Completeness Expansion Theorem (Alpha Completeness of  ’) Base: For every atomic statement A,  ’  EG A or  ’  EG ii Step: Case 1:  =  1  2 By inductive assumption:  ’  EG  i or  ’  EG If  ’  EG  1 and  ’  EG  2 then  ’   ’  ’  EG  1  2 If  ’  EG 11 or  ’  EG 22 then  ’  EG  1  2 by IN Case 2:  = ’’ By inductive assumption:  ’  EG  ’ or  ’  EG ’’ Hence,  ’  EG  ’  A ’’ To prove:  ’ as obtained by the routine is Alpha complete. Proof: By induction on the composition of any statement . or  ’  EG  

Completeness Consistency Lemma For any graph  : if  is Alpha consistent and Alpha complete, then  is consistent. Proof: Suppose  is Alpha consistent and Alpha complete. Define truth-value assignment h as follows: For any atomic statement A: h(A) = True iff   EG A (the Either-Or Lemma guarantees that h is well-defined). On the next slide we’ll show that for any graph  : h(  ) = True iff   EG  Finally, because   EG , h(  ) = True. Hence,  is consistent.

Completeness Consistency Lemma (Continued) Base: For every atomic statement A, h(A) = True iff   EG A (def. h) Step: Case 1:  =  1  2 By inductive assumption: h(  i ) = True iff   EG  i So, h(  1  2 ) = True iff h(  1 ) = True and h(  1 ) = True iff   EG  1 and   EG  2 iff (trivial)   EG  1  2 iff   EG  Case 2:  = ’’ By ind. assumption: h(  ’) = true iff   EG  ’ Hence, h(  ) = True iff h(  ’) = false iff not   EG  ’ iff To prove: for any graph  : h(  ) = True iff   EG  Proof: By induction on the composition of any statement . (Either-Or Lemma)   EG ’’ iff   EG 

Completeness The Central Theorem For any graph  : if  is Alpha consistent, then  is consistent. Proof: Suppose  is Alpha consistent. By the Expansion Theorem there exists a  ’ =   for some  such that  ’ is Alpha consistent and Alpha complete. By the Consistency Lemma, this  ’ is consistent. So,   is consistent. Therefore,  is consistent.

Completeness Basic Completeness Theorem For any  : if  TF  then  EG  Proof: Suppose  TF  Thenis inconsistent. Hence (Central Theorem):is Alpha inconsistent.   Therefore  EG So (Transposition Theorem):  EG 

Completeness Completeness Theorem For any  and  : if   TF  then   EG  Proof: Suppose   TF  Then  TF Hence (Basic Completeness Theorem):  EG Therefore (Deduction Theorem):   EG     