Inverse Entailment in Nonmonotonic Logic Programs Chiaki Sakama Wakayama University, Japan.

Slides:



Advertisements
Similar presentations
Explanation-Based Learning (borrowed from mooney et al)
Advertisements

Logic Programming Automated Reasoning in practice.
1 Inductive Equivalence of Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics ILP
Automated Reasoning Systems For first order Predicate Logic.
Hoare’s Correctness Triplets Dijkstra’s Predicate Transformers
Coordination between Logical Agents Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics CLIMA-V September 2004.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
(CSC 102) Lecture 12 Discrete Structures. Previous Lecture Summary Floor and Ceiling Functions Definition of Proof Methods of Proof Direct Proof Disproving.
Knowledge Representation and Reasoning (KR): A vibrant subfield of AI Jia You.
Everything You Need to Know (since the midterm). Diagnosis Abductive diagnosis: a minimal set of (positive and negative) assumptions that entails the.
Cs774 (Prasad)L7Negation1 Negation by Failure
CS128 – Discrete Mathematics for Computer Science
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
The idea of completion In LP one uses “if” but mean “iff” [Clark78] This doesn’t imply that -1 is not a natural number! With this program we mean: This.
Default and Cooperative Reasoning in Multi-Agent Systems Chiaki Sakama Wakayama University, Japan Programming Multi-Agent Systems based on Logic Dagstuhl.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
Induction Sections 4.1 and 4.2 of Rosen Fall 2010
Restricted Satisfiability (SAT) Problem
Extended LPs In Normal LPs all the negative information is implicit. Though that’s desired in some cases (e.g. the database with flight connections), sometimes.
Knoweldge Representation & Reasoning
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
Intro to AI Fall 2002 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 11: Nonmonotonic Reasoning Motivation: beyond FOL + resolution Closed-world.
KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ
Adapted from Discrete Math
Predicates and Quantifiers
Discrete Mathematics and Its Applications
2007/9/15AIAI '07 (Aix-en-Provence, France)1 Reconsideration of Circumscriptive Induction with Pointwise Circumscription Koji Iwanuma 1 Katsumi Inoue 2.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Theoretical basis of GUHA Definition 1. A (simplified) observational predicate language L n consists of (i) (unary) predicates P 1,…,P n, and an infinite.
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.
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
Learning by Answer Sets Chiaki Sakama Wakayama University, Japan Presented at AAAI Spring Symposium on Answer Set Programming, March 2001.
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
1 Nonmonotonic Inductive Logic Programming Chiaki Sakama Wakayama University, Japan Invited Talk at LPNMR 2001.
Combining Answer Sets of Nonmonotonic Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
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.
Automated Reasoning Systems For first order Predicate Logic.
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.
C. Varela1 Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
On Abductive Equivalence Katsumi Inoue National Institute of Informatics Chiaki Sakama Wakayama University MBR
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Chapter 1 Logic and proofs
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Simple Logic.
3. The Logic of Quantified Statements Summary
CSNB 143 Discrete Mathematical Structures
Knowledge Representation and Reasoning
Semantics of Datalog With Negation
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Logics for Data and Knowledge Representation
CS 416 Artificial Intelligence
Carlos Varela Rensselaer Polytechnic Institute November 10, 2017
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
MAT 3100 Introduction to Proof
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Answer Set Programming
Carlos Varela Rennselaer Polytechnic Institute August 30, 2007
Presentation transcript:

Inverse Entailment in Nonmonotonic Logic Programs Chiaki Sakama Wakayama University, Japan

Inverse Entailment B : background theory (Horn program) E : positive example (Horn clause) B  H  E  B  (H  E)  B  (E  H)  B  E  H A possible hypothesis H (Horn clause) is obtained by B and E.

Problems in Nonmonotonic Programs 1. Deduction theorem does not hold. 2. Contraposition is undefined. The present IE technique cannot be used in nonmonotonic programs. Reconstruction of the theory is necessary in nonmonotonic ILP.

Normal Logic Programs (NLP) An NLP is a set of rules of the form: A 0  A 1 , … , A m , not A m+1 , … , not A n (A i : atom, not: Negation as failure) A Nested Rule is a rule of the form: A  R where R is a rule An LP-literal is L HB + where HB + = HB  {not A | A  HB }

Stable Model Semantics [Gelfond& Lifschitz,88] An NLP may have none, one, or multiple stable models in general. An NLP having exactly one stable model is called categorical. An NLP is consistent if it has a stable model. A stable model coincides with the least model in Horn LPs.

Problems of Deduction Theorem in NML [Shoham87] In classical logic, T  F holds if F is satisfied in every model of T. In NML, T  NML F holds if F is satisfied in every preferred model of T. Proposition 3.1 Let P be an NLP. For any rule R, P R implies P  s R, but not vice-versa.

Entailment Theorem (1) Theorem 3.2 Let P be an NLP and R a rule s.t. P {R} is consistent. If P {R}  s A, then P  s AR for any ground atom A. The converse does not hold in general. ex) P={ a not b} has the stable model {a}, then P  s ab . P{b} has the stable model {b}, so P{b}  s a .

Entailment Theorem (2) Theorem 3.2 Let P be an NLP and R a rule s.t. P {R} is consistent. If P  s A  R and P  s R , then P {R}  s A for any ground atom A.

Contraposition in NLP In NLPs a rule is not a clause by the presence of NAF. A rule and its contraposition wrt  and not are semantically different. ex) {a} has the stable model {a} , while { not a} has no stable model.

Contrapositive Rules Given a rule R of the form: A 0  A 1 , … , A m , not A m+1 , … , not A n its contrapositive rule c R is defined as not A 1 ; … ; not A m ; not not A m+1 ; … ; not not A n  not A 0 where ; is disjunction and not not A is nested NAF.

Properties of Nested NAF [Lifschitz et al, 99] not A 1 ; … ; not A m ; not not A m+1 ; … ; not not A n  not A 0 is semantically equivalent to  A 1 , … , A m , not A m+1 , … , not A n , not A 0 In particular, not A  is equivalent to  A not not A  is equivalent to  not A

Contrapositive Theorem Theorem 4.1 Let P be an NLP, R a (nested) rule, and c R its contrapositive rule. Then, P  s R iff P  s c R

Inverse Entailment in NLP Theorem 5.3 Let P be an NLP and R a rule s.t. P {R} is consistent. For any ground LP-literal L, if P {R}  s L and P  s not L, then P {not L}  s not R where P {not L} is consistent.

Induction Problem Given: a background KB as a categorical NLP a ground LP-literal L s.t. P  s not L, L=A represents a positive example; L=not A represents a negative example a target predicate to be learned

Induction Problem Find: a hypothetical rule R s.t. P {R}  s L P {R} is consistent R has the target predicate in its head

Computing Hypotheses When P{R}  s L and P  s not L, P {not L}  s not R (by Th5.3) By P  s not L, it is simplified as P  s not R Put M + ={ |  HB + and P  s }.Then, M +  not R Let r 0 = where M +. Then, M +  not r 0

Relevance Given two ground LP-literals L 1 and L 2, define L 1 ~L 2 if L 1 and L 2 have the same predicate and contain the same constants . L 1 in a ground rule R is relevant to L 2 if (i) L 1 ~L 2 or (ii) L 1 shares a constant with L 3 in R s.t. L 3 is relevant to L 2. Otherwise, L 1 is irrelevant to L 2.

Transformations 1. When r 0 = 0 contains any LP-literal irrelevant to the example, drop them and put r 1 = 1 2. When r 1 = 1 contains both an atom A and a conjunction B s.t. ABP, put r 2 = 1 –{A}. 3. When r 2 = 2 contains not A with the target pred., put r 3 =A 2 –{not A} 4. Construct r 4 s.t. r 4 =r 3.

Inverse Entailment Rule Theorem 5.5 When R ie is a rule obtained by the transformation sequence, M +  not R ie holds. When PR ie is consistent, we say that R ie is computed by the inverse entailment rule.

Example(1) P: bird(x) penguin(x), bird(tweety), penguin(polly). L: flies(tweety). target: flies M + ={bird(t),bird(p),penguin(p), not penguin(t),not flies(t),not flies(p)}

Example(1) r 0 :  bird(t),bird(p),penguin(p), not penguin(t),not flies(t),not flies(p). Dropping irrelevant LP-literals: r 1 :  bird(t),not penguin(t),not flies(t). Shifting the target to the head: r 3 : flies(t) bird(t),not penguin(t). Replacing tweety by x: r 4 : flies(x) bird(x),not penguin(x).

Example(2) P: flies(x) bird(x), not ab(x), bird(x) penguin(x), bird(tweety), penguin(polly). L: not flies(polly). target: ab M + ={bird(t),bird(p),penguin(p), not penguin(t),flies(t),flies(p), not ab(t),not ab(p)}.

Example(2) r 0 :  bird(t),bird(p),penguin(p), not penguin(t),not ab(t),not ab(p). Dropping irrelevant LP-literals: r 1 :  bird(p),penguin(p),not ab(p). Dropping implied atoms in P: r 2 :  penguin(p),not ab(p). Shifting the target and generalize: r 4 : ab(x) penguin(x).

Properties of the IE rule It is not correct for the computation of rules satisfying P{R} s L.  The meaning of a rule changes by its representation form. It is not complete for the computation of rules satisfying P{R} s L.  The transformation sequence filters out useless hypotheses.

Correctness Issue a  b, c = b  a, c = c  a, b =  a, b, c ★ Independence of its written form a  b, c  not b  not a, c  not c  not a, b   not a, b, c ★ Dependence on its written form

Completeness Issue B: q(a), r(b) r(f(x))  r(x) E: p(a) H: p(x)  q(x) p(x)  q(x),r(b) p(x)  q(x),r(f(b)), …… ! Infinite number of hypotheses exist in general (and many of them are useless)

Summary New inverse entailment rule in nonmonotonic ILP is introduced. The effects in ILP problems are demonstrated by some examples. Future research includes: Extension to non-categorical programs (having multiple stable models). Exploiting practical applications.