Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Inference Rules Universal Instantiation Existential Generalization
Standard Logical Equivalences
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.
First Order Logic Resolution
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
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.
Logic Use mathematical deduction to derive new knowledge.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Logic Concepts Lecture Module 11.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CS1502 Formal Methods in Computer Science Lecture Notes 10 Resolution and Horn Sentences.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
I NTRO TO L OGIC Dr Shlomo Hershkop March
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Propositional calculus
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
CS6133 Software Specification and Verification
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
Propositional Logic Resolution
The Propositional Calculus
Logical Inference: Through Proof to Truth
Logic Use mathematical deduction to derive new knowledge.
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence: Agents and Propositional Logic.
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Methods of Proof Chapter 7, second half.
Presentation transcript:

Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can be inferred from a wff (or wffs) earlier in the sequence by using one of the rules of inference in R, or c) Di is an instance of a logical axiomin AX The sequence (if exists) D1,..., Dn is called a proof or a deduction of Q from KB. Q is said to be a theorem of KB. KB |- Q : a) by the definition of entailment:

What is soundness? §For every KB and Q, if KB |- Q then KB |= Q §Informally, a proof system is sound if it only generates entailed wffs (every positive answer is correct) (remember that the semantical system is the reference) §A sound proof system is truth-preserving: any model for the original set of wffs (KB) is also a model for the derived set of wffs (Q).

Completeness §One other question we can ask is whether using our proof system we can generate all of the entailed wffs (the system can give all the correct answers) §If we are able to do so, we say that our inference procedure is complete: For every KB and Q, if KB |= Q then KB |- Q Equivalent form: if KB |/- Q then KB ||/- Q

Complexity §Truth-tables are exponential in the number of atoms:2 n interpretations §[Cook 71] showed that Satisfiability is a NP-complete problem. §But in many cases answers can be found very quickly (Horn-Sat is solvable linear time) §in fact really hard problems are quite rare (see hw).

Proof Systems Several proof systems in the literature: §Resolution (the only one we will study) SLD resolution - basis of PROLOG §Tableaux §Natural Deduction §Sequent Calculus (Gentzen) §Axiomatic (Hilbert)

Clauses as wffs §More adequate for computation - canonical form §A literal is either an atom (positive literal) or the negation of an atom (negative literal). §A clause is a disjunction of literals; the empty clause is equivalent to False. §A wwf is in Conjunctive Normal Form (CNF) iff it is a set of clauses (the set is abreviating the conjunction of all the clauses).

Converting arbitrary wffs to CNF §Eliminate implications: A  B becomes  A  B §Move  inwards: Apply De Morgan’s :  (A v B) becomes (  A   B)  (A  B) becomes (  A v  B) Apply double negation rule:   A becomes A

Converting arbitrary wffs to CNF Distribute  over v : (A  B) v C becomes (A v C)  (B v C) Flatten nested conjunctions and disjunctions : (A v B) v C becomes (A v B v C) (A  B)  C becomes (A  B  C) At this point we have a conjunction of clauses ; We must have a set of clauses ! separate the conjuncts

Important Theorem §Let S be a set of wffs and S’ the set of clauses obtained by converting S to CNF. §In Propositional Logic S and S’ are equivalent; but in FOL they are not equivalent in general §But in both logics we have: S is unsatisfiable iff S’ is unsatisfiable. §Therefore, KB |= Q iff S = KB U {  Q}is unsat iff S’ is unsat

Resolution System §Language: Clauses §Logical Axioms: AX = { } §Inference Rules: R = {Resolution} Notice that since the language is clausal, resolution is applied only to clauses: P1 v... v Pi v... v Pn, Q1 v... v  Pi v... v Qm P1v...vPi-1vPi+1v...vPn vQ1v...vQj1vQj+1v...vQm The conclusion is called the resolvent

Resolution System §Soundness Since its only rule is resolution and there are no logical axioms, it is easy to show that the resolution system is sound: show the soundness of the resolution inference rule (show by truth-table that the premisses entail the conclusion) and then show by induction on the length of a proof that if S’ |- False then S’ ||= False.

Resolution System §Completeness: Resolution is not complete P, R |= P V R but P, R |/- P V R But Resolution is Refutation Complete: Let S’ = CNF( KB U {  Q} ) If KB |= Q then S’ |- False P, R,  P,  R |- False

Resolution System To answer if KB |= Q: §Convert S = KB U {  Q} into S’ = CNF(S) convert each formula of S into clauses §Iteratively apply resolution to the clauses in S’ and add the results to S’ either until there are no more resolvents that can be added or until the empty clause is produced.

Refinement Strategies §The procedure described above is inefficient because some resolutions need not be performed at all (are irrelevant). §Refinement strategies disallows certain kinds of resolutions to take place. §Linear resolution with initial set of support

Proof as a search task §State representation: a set of wffs (considered to to be true) §Operators: inference rules §Start state: an initial set of wffs (what is initially considered to to be true) §Goal state: the wff to prove is in our state’s set of known wffs