Combining Answer Sets of Nonmonotonic Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics.

Slides:



Advertisements
Similar presentations
1 Inductive Equivalence of Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics ILP
Advertisements

Coordination between Logical Agents Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics CLIMA-V September 2004.
The coherence principle Generalizing WFS in the same way yields unintuitive results: pacifist(X)  not hawk(X) hawk(X)  not pacifist(X) ¬ pacifist(a)
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Permits to talk not just about the external world,
A rewritting method for Well-Founded Semantics with Explicit Negation Pedro Cabalar University of Corunna, SPAIN.
Logic Concepts Lecture Module 11.
João Alcântara, Carlos Damásio and Luís Moniz Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática,
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.
José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of.
Catriel Beeri Pls/Winter 2004/5 type reconstruction 1 Type Reconstruction & Parametric Polymorphism  Introduction  Unification and type reconstruction.
PDDL: A Language with a Purpose? Lee McCluskey Department of Computing and Mathematical Sciences, The University of Huddersfield.
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.
Winter 2004/5Pls – inductive – Catriel Beeri1 Inductive Definitions (our meta-language for specifications)  Examples  Syntax  Semantics  Proof Trees.
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.
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
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.
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.
Chapter 7 Reasoning about Knowledge by Neha Saxena Id: 13 CS 267.
Belief Revision Lecture 1: AGM April 1, 2004 Gregory Wheeler
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Katanosh Morovat.   This concept is a formal approach for identifying the rules that encapsulate the structure, constraint, and control of the operation.
2007/9/15AIAI '07 (Aix-en-Provence, France)1 Reconsideration of Circumscriptive Induction with Pointwise Circumscription Koji Iwanuma 1 Katsumi Inoue 2.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
CSE & CSE6002E - Soft Computing Winter Semester, 2011 More Rough Sets.
Learning by Answer Sets Chiaki Sakama Wakayama University, Japan Presented at AAAI Spring Symposium on Answer Set Programming, March 2001.
Trust-Aware Optimal Crowdsourcing With Budget Constraint Xiangyang Liu 1, He He 2, and John S. Baras 1 1 Institute for Systems Research and Department.
1 Nonmonotonic Inductive Logic Programming Chiaki Sakama Wakayama University, Japan Invited Talk at LPNMR 2001.
A Language for Updates with Multiple Dimensions João Alexandre Leite 1 José Júlio Alferes 1 Luís Moniz Pereira 1 Halina Przymusinska 2 Teodor Przymusinski.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Steffen Staab Advanced Data Modeling 1 of 32 WeST Häufungspunkte Bifurkation: x n+1 = r x n (1-x n ) Startwert x 0 = 0,25.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Equations, Inequalities, and Mathematical Models 1.2 Linear Equations
From Rough Set Theory to Evidence Theory Roman Słowiński Laboratory of Intelligent Decision Support Systems Institute of Computing Science Poznań University.
EVOlving L ogic P rograms J.J. Alferes, J.A. Leite, L.M. Pereira (UNL) A. Brogi (U.Pisa)
A Logic of Partially Satisfied Constraints Nic Wilson Cork Constraint Computation Centre Computer Science, UCC.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Inverse Entailment in Nonmonotonic Logic Programs Chiaki Sakama Wakayama University, Japan.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
On the Semantics of Argumentation 1 Antonis Kakas Francesca Toni Paolo Mancarella Department of Computer Science Department of Computing University of.
Determining 3D Structure and Motion of Man-made Objects from Corners.
5.1.Static Games of Incomplete Information
Basic Theory (for curve 01). 1.1 Points and Vectors  Real life methods for constructing curves and surfaces often start with points and vectors, which.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Assumption-based Truth Maintenance Systems: Motivation n Problem solvers need to explore multiple contexts at the same time, instead of a single one (the.
An argument-based framework to model an agent's beliefs in a dynamic environment Marcela Capobianco Carlos I. Chesñevar Guillermo R. Simari Dept. of Computer.
Belief dynamics and defeasible argumentation in rational agents M. A. Falappa - A. J. García G. R. Simari Artificial Intelligence Research and Development.
Chapter 8 Relational Database Design. 2 Relational Database Design: Goals n Reduce data redundancy (undesirable replication of data values) n Minimize.
On Abductive Equivalence Katsumi Inoue National Institute of Informatics Chiaki Sakama Wakayama University MBR
2009/6/30 CAV Quantifier Elimination via Functional Composition Jie-Hong Roland Jiang Dept. of Electrical Eng. / Grad. Inst. of Electronics Eng.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
Artificial Intelligence Logical Agents Chapter 7.
October 19th, 2007L. M. Pereira and A. M. Pinto1 Approved Models for Normal Logic Programs Luís Moniz Pereira and Alexandre Miguel Pinto Centre for Artificial.
Chapter 7. Propositional and Predicate Logic
Functions of Complex Variable and Integral Transforms
Web Ontology Language for Service (OWL-S)
Introduction Artificial Intelligent.
7.2 Solving Systems of Equations Algebraically
Maths for Signals and Systems Linear Algebra in Engineering Lecture 6, Friday 21st October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Test-Driven Ontology Development in Protégé
28th September 2005 Dr Bogdan L. Vrusias
Implementation of Learning Systems
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Presentation transcript:

Combining Answer Sets of Nonmonotonic Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics

Compositionality of Logic Programs A desirable feature for declarative knowledge representation languages is compositionality in its semantics. A semantics is compositional if the meaning of a program can be obtained from the meaning of its components.

Compositionality of Logic Programs Semantics of LPs is not compositional wrt the union of programs even for definite programs. For instance, two programs P 1 ={ p ← q } and P 2 ={ q ← } have the least models Φ and {q}, respectively. But the least model of P 1 ∪ P 2 is not obtained by the composition of Φ and {q}. To solve the problem, a number of different compositional semantics for definite programs are proposed.

Combining Knowledge in Multi-Agent Systems In MAS different knowledge/belief of agents are combined/coordinated to solve problems cooperatively/collaboratively. Individual agents in MAS have incomplete information, so combining multiple knowledge is formulated as the problem of composing different nonmonotonic theories.

Difficulty of Composing Nonmonotonic Theories “Nonmonotonic reasoning and compositionality are intuitively orthogonal issues that do not seem easy to be reconciled. Indeed the semantics for extended logic programs are typically non-compositional w.r.t. program union” [Brogi, 2004].

Example There is a trouble in a system which consists of three components c1, c2, and c3. After some diagnoses, an expert E1 concludes that the trouble would be caused by either c1 or c2. Another expert E2 concludes that it would be caused by either c2 or c3. E1 has no knowledge on the component c3, and E2 has no knowledge on c1.

Example – cont. Two experts’ diagnoses are encoded as: E1: c1 ; c2 ← E2: c2 ; c3 ← Merging these programs, E1 ∪ E2 has two answer sets: { c2 } and { c1, c3 }. The first one is the common solution, while the second one is cooperative. Two solutions have different grounds and would be acceptable to each expert.

Example – cont. E1 knows that c1 is older than c2, so c1 is more likely to disorder. On the other hand, E2 knows that c2 is more fragile than c3 and is more likely to cause the trouble. Two experts then modify their diagnoses as: E1’: c1 ← not c2, c2 ← ¬ c1 E2’: c2 ← not c3, c3 ← ¬ c2 Merging two programs, E1’ ∪ E2’ has the single answer set: { c2 }, which reflects the result of diagnoses of E2’ but does not reflect E1’.

Problem E1’ puts weight on c1 relative to c2, and E2’ puts weights on c2 relative to c3. Simple merging has the effect of preferring c2 to c1 as c2 is included in a relatively lower stratum than c1. However, there is no reason to conclude c2 as the plausible solution. Because the local preference in E1’ or E2’ does not necessarily imply the global preference in E1’ ∪ E2’.

Purpose Composition of nonmonotonic theories is not achieved by simple program union. The problem is then how to build a compositional semantics of NM theories. In this study we consider composition of extended disjunctive programs (EDP) under the answer set semantics.

Extended Disjunctive Program A program consists of rules of the form: L 1 ; … ; L l ← L l+1,…, L m, not L m+1,…, not L n where L i is a literal and not represents NAF. A program is NAF-free if it contains no NAF. For each rule r of the above form, head(r) = { L 1,…, L l }, body+(r) = { L l+1,…, L m }, and body-(r)={ L m+1,…, L n }.

Answer Sets For an NAF-free EDP P, a set S is an answer set of P if it is a minimal set satisfying every rule in P and is logically closed (i.e., S=Lit if S is contradictory). For any EDP P, a set S is an answer set of P if S is an answer set of the reduct s P. Here, the rule head(r) ∩S ← body+(r) is included in s P if body+(r) ⊆ S and body-(r) ∩S = Φ for any rule r in the ground instantiation of P.

Remark The definition of reduct is different from the original one in [Gelfond&Lifschitz, 1991]. In GL-reduction, the rule head(r) ← body+(r) is included in the reduct P s if body-(r) ∩S = Φ. Two reducts produce the same answer sets, i.e., for any EDP P, S is an answer set of s P iff S is an answer set of P s.

Example P: p ; q ←, q ← p, r ← not p. For S={ q, r }, P s becomes P s : p ;q ←, q ← p, r ←, while s P becomes s P : q ←, r ←. Two reducts produce the same answer set S.

Combining Answer Sets Let S and T be two sets of literals. Then, define S ∪ T = S ∪ T, if S ∪ T is consistent; Lit, otherwise. Let AS(P) be the set of answer sets of P. Then, define AS(P 1 ) ∪ AS(P 2 ) = { S ∪ T | S ∈ AS(P 1 ) and T ∈ AS(P 2 ) }

Compositional Semantics Given two consistent programs P 1 and P 2, the program Q satisfying AS(Q) = min(AS(P 1 ) ∪ AS(P 2 ) ) is called a composition of P 1 and P 2. The set AS(Q) is called the compositional semantics of P 1 and P 2. +

Example For AS(P 1 ) = { {p}, {q} } and AS(P 2 ) = { {p}, {r} }, the compositional semantics becomes AS(Q) = {{p}, {q, r}}.

Properties Let P 1 and P 2 be two consistent programs, and Q a result of composition. Then, for any S ∈ AS(Q), there is T ∈ AS(Pi) for i=1,2 such that T ⊆ S. † Every answer set in the compositional semantics extends some answer sets of the original programs.

Properties Def. Let P 1 and P 2 be two consistent programs, and Q a result of composition. When AS(Q)=AS(P 1 ), P 1 absorbs P 2. † When one program absorbs another program, the compositional semantics coincides with one of the original programs. P 1 absorbs P 2 iff for any S ∈ AS(P 1 ) there is T ∈ AS(P 2 ) such that T ⊆ S.

Properties Def. A literal L is a consequence of credulous/skeptical reasoning in P (written as L ∈ crd(P) / L ∈ skp(P) ) if L is included in some/every answer set of P. Let P 1 and P 2 be two consistent programs. When a result Q of composition is consistent, 1. crd(Q) = crd(P 1 ) ∪ crd(P 2 ) ; 2. skp(Q) = skp(P 1 ) ∪ skp(P 2 ). † A consistent compositional semantics combines skeptical consequences of P 1 and P 2, and any information included in an answer set of Q has its origin in an answer set of either P 1 or P 2.

Properties † Composition of consistent programs may become inconsistent. ex) Composing AS(P 1 )={{p}} and AS(P 2 )={{ ¬ p}} becomes AS(Q)={ Lit }. Let P 1 and P 2 be consistent programs, and Q a result of composition. Then, Q is consistent iff there are S ∈ AS(P 1 ) and T ∈ AS(P 2 ) such that S ∪ T is consistent.

Composing Programs Given programs P 1,..., P k, define P 1 ; … ; P k = { head(r 1 ) ; … ; head(r k ) ← body(r 1 ),...,body(r k ) | r i ∈ P i (1≤i≤k) }. Let P 1 and P 2 be two consistent programs s.t. AS(P 1 )={ S 1,...,S m } and AS(P 2 )={ T 1,...,T n }. Then, define P 1 ◎ P 2 = R(S 1,T 1 ); … ; R(S m,T n ) where R(S,T)= S P 1 ∪ T P 2 and R(S 1,T 1 ),...,R(S m,T n ) is any enumeration of the R(S i,T j )’s for S i ∈ AS(P 1 ) (i=1,...,m) and T j ∈ AS(P 2 ) (j=1,...,n).

Example (1) P 1 : p ← not q, q ← not p, s ← p P 2 : p ← not r, r ← not p where AS(P 1 ) = { {p,s}, {q} } and AS(P 2 ) = { {p}, {r} }. There are four R(S,T)’s such that R({p,s},{p}): p←, s← p R({p,s},{r}): p←, s← p, r← R({q},{p}): q←, p← R({q},{r}): q←, r←

Example (2) Then, P 1 ◎ P 2 contains p;q←, p;r←, p;q;r←, q;s← p, q;r;s← p, p;q;s← p, p;r;s← p. Among them, yellow rules are redundant and eliminated, the result then becomes p;q←, p;r←, q;s← p.

Properties The operation ◎ is commutative and associative. For two consistent programs P 1 and P 2, AS(P 1 ◎ P 2 ) = min(AS(P 1 ) ∪ AS(P 2 )). +

Composition vs. Merging For two consistent NAF-free EDPs P 1 and P 2, if P 1 ∪ P 2 is consistent, P 1 ◎ P 2 is consistent. For two consistent NAF-free ELPs P 1 and P 2, P 1 ◎ P 2 ⊆ P 1 ∪ P 2. For two consistent NAF-free ELPs P 1 and P 2, U ⊆ V holds for the answer set U of P 1 ◎ P 2 and the answer set V of P 1 ∪ P 2.

Compositional Semantics for Multi-Agent Coordination. Let P 1 and P 2 be two consistent programs, and Q a result of composition. Then, any answer set S ∈ AS(Q) is conservative if it satisfies every rule in P 1 ∪ P 2.

Example P 1 : p ← not q, q ← not p, s ← p P 2 : p ← not r, r ← not p where AS(P 1 ) = { {p,s}, {q} } and AS(P 2 ) = { {p}, {r} }. The compositional semantics is AS(Q)={{p,q}, {p,s}, {q,r}}. Among them, {p,s} and {q,r} satisfy every rule in P 1 ∪ P 2, so they are conservative. Note: {p,q} does not satisfy s ← p in P 1.

Notes Conservative answer sets are acceptable to each agent because they satisfy the original programs. Conservative answer sets do not always exist in compositional semantics. We introduce a permissible version of compositional semantics that retains persistent beliefs of each agent in coordination.

Persistent Beliefs Persistent Beliefs in a program P are distinguished as PB ⊆ P where PB is the set of rules that should be satisfied by the compositional semantics.

Permissible Composition Let P 1 and P 2 be two consistent programs, and PB 1 and PB 2 their persistent beliefs, respectively. A program Ω is called permissible composition of P 1 and P 2 if it satisfies the condition: AS(Ω) = { S | S ∈ min(AS(P 1 ) ∪ AS(P 2 ) ) and S satisfies PB 1 ∪ PB 2 }. The set AS(Ω) is called the permissible compositional semantics of P 1 and P 2. Any answer set in AS(Ω) is called a permissible answer set. +

Properties The permissible compositional semantics reduces to the compositional semantics when PB 1 ∪ PB 2 =Φ. Conservative answer sets are permissible answer sets with PB 1 ∪ PB 2 = P 1 ∪ P 2. Every permissible answer set satisfies persistent beliefs of each agent, and extends some answer sets of an agent by additional information of another agent.

Program Composition for Permissible Semantics Let P 1 and P 2 be two consistent programs, and Ω a result of permissible composition. Then, AS(Ω) = AS( (P 1 ◎ P 2 ) ∪ IC(PB 1 ) ∪ IC(PB 2 ) ), where IC(PB)={← body(r), not_head(r) | head(r)← body(r) ∈ PB } and not_head(r) = { not L 1,..., not L l } for head(r)={ L 1,..., L l }.

Example P 1 : p ← not q, q ← not p, s ← p, P 2 : p ← not r, r ← not p. Let PB1={ s ← p } and PB2= Φ. Then, (P 1 ◎ P 2 ) ∪ IC(PB 1 ) ∪ IC(PB 2 ) becomes p;q ←, p;r ←, q; s ← p, ← p, not s, which has two permissible answer sets {p,s} and {q,r}.

Final Remarks Simple union of different programs does not reflect the meaning of individual programs. We then took an approach of retaining belief of each agent and combine answer sets of different programs. Program composition should be distinguished from revision or update, where one of the two information sources is known more reliable.

Final Remarks From the viewpoint of answer set programming, program composition is considered a program development under a specification that requests a program reflecting the meanings of two or more programs. Future work includes investigation of other types of program composition for multi-agent coordination, and their characterization in computational logic.