Relational Proofs Computational Logic Lecture 8

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Chapter 3 Propositional Logic
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
Discrete Mathematics and its Applications
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.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Great Theoretical Ideas in Computer Science.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Great Theoretical Ideas in Computer Science.
CS6133 Software Specification and Verification
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
1/5/2016Hilbertův kalkul1 Lecture 12 Hilbert-like calculus.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Resolution Preliminaries Computational LogicLecture 9 By Prof. Michael Genesereth, Computer Science, Stanford Univ Spring 2005 Modified by Charles Ling.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Decidability.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5- Deduction Theorem.
3. The Logic of Quantified Statements Summary
Gödel's Legacy: The Limits Of Logics
Logical Inference 2 Rule-based reasoning
Announcements No office hours today!
Discrete Mathematics for Computer Science
Knowledge Representation and Reasoning
Logical Inference 2 Rule-based reasoning
Great Theoretical Ideas in Computer Science
Relational Proofs Formal proofs in Relational Logic are analogous to formal proofs in Propositional Logic. The major difference is that there are additional.
Homework: Friday Read Section 4.1. In particular, you must understand the proofs of Theorems 4.1, 4.2, 4.3, and 4.4, so you can do this homework. Exercises.
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CS201: Data Structures and Discrete Mathematics I
Proving Existentials A proof of a statement of the form x P(x) is called an existence proof. If the proof demonstrates how to actually find or construct.
Decidability of logical theories
Propositional Resolution
CSE 311 Foundations of Computing I
Decidable Languages Costas Busch - LSU.
CS157 Greatest Hits The Top 100 Slides of the Course
Natural deduction Gerhard Gentzen.
Principles of proof calculi Natural deduction
First Order Logic Rosen Lecture 3: Sept 11, 12.
MA/CSSE 474 More Math Review Theory of Computation
Metatheorems Computational Logic Lecture 8
Computational Logic Lecture 13
Relational Proofs Computational Logic Lecture 7
Logical Entailment Computational Logic Lecture 3
CSNB234 ARTIFICIAL INTELLIGENCE
Decidability of logical theories
CS201: Data Structures and Discrete Mathematics I
Instructor: Aaron Roth
ece 720 intelligent web: ontology and beyond
Relational Proofs Computational Logic Lecture 7
Properties of Relational Logic
Properties of Relational Logic
Relational Proofs Computational Logic Lecture 7
Resolution Theorem Proving
Herbrand Semantics Computational Logic Lecture 15
Resolution Preliminaries
Herbrand Logic Semantics
Presentation transcript:

Relational Proofs Computational Logic Lecture 8 Michael Genesereth Autumn 2009

Logical Entailment A set of premises logically entails a conclusion if and only if every interpretation that satisfies the premises also satisfies the conclusion.

Propositional Interpretations For a language with n constants, there are 2n interpretations.

Relational Interpretations |i| a b r {,}   {} {,}   {} {,}   {} {,}   {, } {,}   {} {,}   {} {,}   {} {,}   {, } {,}   {} {,}   {} {,}   {} {,}   {, } . . . Infinitely many interpretations.

Logical Entailment and Provability Good News: If  logically entails , then there is a finite proof of  from . And vice versa. More Good News: If  logically entails , it is possible to find such a proof in finite time. Sad News: If  does not logically entail , the process of finding a proof may run forever. Not So Bad News: In many cases, the process can be stopped after finitely many steps.

Formal Proofs A formal proof of  from  is a sequence of sentences terminating in  in which each item is either: 1. a premise (a member of ) 2. an instance of an axiom schema 3. the result of applying a rule of inference to earlier items in the sequence.

Old Rules of Inference Modus Ponens (MP) Modus Tolens (MT) And Introduction (AI) And Elimination (AE)

Universal Generalization Rule of Inference Examples: p(x) p(x)  q(x) x.p(x) x.(p(x)  q(x))

Existential Generalization Rule of Inference Examples: p(a) p(a)  q(a) x.p(x) x.(p(x)  q(x))

Idea for Universal Instantiation Warning: This is not quite right.

Examples y.hates(jane,y) hates(jane,jill) yjill hates(jane,mother(jane)) ymother(jane) hates(jane,y) yy hates(jane,z) yz x.y.hates(x,y) y.hates(jane,y) xjane y.hates(y,y) xy Wrong!!

mother(x) is bound by y in x.hates(x,y). Bounding A term  is bound by  in  if and only if  contains a variable  and there is some free occurrence of  in  and that occurrence lies in the scope of a quantifier of . mother(x) is bound by y in x.hates(x,y). Why? The term mother(x) contains a variable x. There is a free occurrence of y in x.hates(x,y). That occurrence of y lies in scope of quantifier of x.

Substitutability A term  is substitutable for  in  if and only if it is not bound by  in . Some texts say “x is free for y in ” instead of “x is substitutable for y in ”. mother(jane) is free for y in hates(jane,y). mother(x) is free for y in hates(jane,y). mother(x) is free for y in z.hates(z,y). mother(x) is not free for y in x.hates(x,y). mother(x) is free for y in (x.y.l(x,y)  z.h(z,y)).

Universal Instantiation

Existential Instantiation I

Examples y.p(y) p(c) y.y*y=0 1*1=0 Wrong! y.y*y=x c*c=x Wrong!

Existential Instantiation II

Examples y.y*y=x f(x)*f(x)=x f(4)*f(4)=4 f(6)*f(6)=6 sqrt(x)*sqrt(x)=x log(x)*log(x)=x Wrong!

Formal Proofs A formal proof of  from  is a sequence of sentences terminating in  in which each item is either: 1. a premise (a member of ) 2. an instance of an axiom schema 3. the result of applying a rule of inference to earlier items in the sequence.

Example Everybody loves somebody. Everybody loves a lover. Show that Jack loves Jill.

Harry and Ralph Every horse can outrun every dog. Some greyhounds can outrun every rabbit. Harry is a horse. Ralph is a rabbit. Can Harry outrun Ralph?

Harry and Ralph (continued)

Harry and Ralph (continued)

Mendelson Logic Mendelson Logic is that subset of Relational Logic in which there are only two operators, viz.  and , and one quantifier, viz. . Fortunately, all sentences in Relational Logic can be reduced to logically equivalent sentences with these operators by applying the following rules. (  )  ((  )  (  )) (  )  (  ) (  )  (  ) (  )  (  ) . .

Mendelson Rules of Inference Modus Ponens (MP) Universal Generalization (UG)

Mendelson Axiom Schemata II:   (  ) ID: (  (  ))  ((  )  (  )) CR: (  )  ((  )  ) (  )  ((  )  ) UD: .(  )  (. .) UI: .  [] where  is free for  in 

Provability A sentence  is provable from a set of sentences  if and only if there is a finite formal proof of  from  using only Modus Ponens, Universal Generalization, and the Mendelson axiom schemata. Soundness Theorem: If  is provable from , then  logically entails . Completeness Theorem (Godel): If  logically entails , then  is provable from .

Decidability A class of questions is decidable if and only if there is a procedure such that, when given as input any question in the class, the procedure halts and says yes if the answer is positive and no if the answer is negative. Example: For any natural number n, determining whether n is prime.

Semidecidability A class of questions is semidecidable if and only if there is a procedure that halts and says yes if the answer is positive. Obvious Fact: If a class of questions is decidable, it is semidecidable.

Semidecidability of Logical Entailment

Decidability Not Proved Note that we have not shown that logical entailment for Relational Logic is decidable. The procedure may not halt. p(x)  p(f(x)) p(f(f(a))) p(f(b))? We cannot just run procedure on negated sentence because that may not be logically entailed either! p(f(b))?

Undecidability of Logical Entailment Metatheorem: Logical Entailment for Relational Logic is not decidable. Proof: Suppose there is a machine p that decides the question of logical entailment. Its inputs are  and . We can encode the behavior of this machine and its inputs as sentences and ask whether the machine halts as a conclusion. What happens if we give this description and question to p? It says yes. Yes  p f No

Undecidability (continued) It is possible to construct a larger machine p’ that enters an infinite loop if p says yes and halts if p says no. We can also encode a description of this machine as a set of sentences and ask whether the machine halts as a conclusion. What happens if we give this description and question to p’? If p says yes, then p’ runs forever, contradicting the hypothesis that p computes correctly. If p says no, then p’ halts, once again leading to contradiction. QED No p Halts 

Closure The closure S* of a set S of sentences is the set of all sentences logically entailed by S. S*={ | S|=} Set of Sentences: Closure: p(a) p(a) p(x)p(f(x)) p(f(a)) p(f(f(a))) p(a)  p(f(a)) p(x)p(f(x)) …

Theories A theory is a set of sentences closed under logical entailment, i.e. T is a theory if and only if T*=T. A theory T is finitely axiomatizable if and only if there is a finite set  of sentences such that T=*. A theory T is complete if and only, for all , either T or T. Note: Not every theory is complete. Consider the theory consisting of all consequences of p(a,b). Does this include p(b,a)? Does it include p(b,a)?

Relationships on Theories Decidable Semidecidable Finitely Axiomatizable

Arithmetization of Logical Entailment The theory of arithmetic is the set of all sentences true of the natural numbers, 0, 1, +, *, and <. Fact: It is possible to assign numbers to sentences such that (1) Every sentence  is assigned a unique number n. (2) The question of logical entailment |= can be expressed as a numerical condition r(n,n). Conclusion: The theory of arithmetic is not decidable.

Incompleteness Theorem Metatheorem (Godel): If  is a finite subset of the theory of arithmetic, then * is not complete. Variant: Arithmetic is not finitely axiomatizable. Proof: If there were a finite axiomatization, then the theory would be decidable. However, arithmetic is not decidable. Therefore, there is no finite axiomatization.

Summary Logical Entailment for Relational Logic is semidecidable. Logical Entailment for Relational Logic is not decidable. Arithmetic is not finitely axiomatizable in Relational Logic.