José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of.

Slides:



Advertisements
Similar presentations
SCL: A Logic Standard for Semantic Integration Christopher Menzel Philosophy Department Texas A&M University
Advertisements

Updates plus Preferences Luís Moniz Pereira José Júlio Alferes Centro de Inteligência Artificial Universidade Nova de Lisboa Portugal JELIA’00, Málaga,
Automated Reasoning Systems For first order Predicate Logic.
Hoare’s Correctness Triplets Dijkstra’s Predicate Transformers
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
A rewritting method for Well-Founded Semantics with Explicit Negation Pedro Cabalar University of Corunna, SPAIN.
Well-founded Semantics with Disjunction João Alcântara, Carlos Damásio and Luís Moniz Pereira Centro de Inteligência Artificial.
The International RuleML Symposium on Rule Interchange and Applications Local and Distributed Defeasible Reasoning in Multi-Context Systems Antonis Bikakis,
The Logic(s) of Logic Programming João Alcântara Carlos Viegas Damásio Luís Moniz Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática,
João Alcântara, Carlos Damásio and Luís Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática, Faculdade.
ISBN Chapter 3 Describing Syntax and Semantics.
João Alcântara, Carlos Damásio and Luís Moniz Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática,
A Preliminary Study on Reasoning About Causes Pedro Cabalar AI Lab., Dept. of Computer Science University of Corunna, SPAIN.
Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa Pierangelo Dell’Acqua Dept. of Science and Technology.
Modelling Hybrid Control Systems with Behaviour Networks Pierangelo Dell’Acqua Anna Lombardi Dept. of Science and Technology - ITN Linköping University,
Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
Logic Programming for Evolving Agents J.J. Alferes J.A. Leite L.M. Pereira.
Models -1 Scientists often describe what they do as constructing models. Understanding scientific reasoning requires understanding something about models.
1 Preference Reasoning in Logic Programming José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa,
Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa Pierangelo Dell’Acqua Dept. of Science and Technology.
Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa Pierangelo Dell’Acqua Dept. of Science and Technology.
A Logic-Based Approach to Model Supervisory Control Systems Pierangelo Dell’Acqua Anna Lombardi Dept. of Science and Technology - ITN Linköping University,
1 L. M. Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal P. Dell’Acqua, M. Engberg Dept. of Science and Technology.
Reductio ad Absurdum Argumentation in Normal Logic Programs Luís Moniz Pereira and Alexandre Miguel Pinto CENTRIA – Centro de Inteligência Artificial,
Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa Pierangelo Dell’Acqua Dept. of Science and.
Combining Societal Agents’ Knowledge João Alexandre Leite José Júlio Alferes Luís Moniz Pereira CENTRIA – Universidade Nova de Lisboa Universidade de Évora,
Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of Science and Technology.
Towards a Model of Evolving Agents for Ambient Intelligence Pierangelo Dell’Acqua Dept. of Science and Technology Linköping University, Sweden ASAmI’07.
João Alexandre Leite Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa { jleite, lmp Pierangelo.
Describing Syntax and Semantics
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.
Knowledge Representation and Reasoning José Júlio Alferes Luís Moniz Pereira.
Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of Science and Technology.
Multi-dimensional Dynamic Knowledge Representation João Alexandre Leite José Júlio Alferes Luís Moniz Pereira CENTRIA – New University of Lisbon Wien,
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.
Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Aida Vitória Dept. of Science.
Chapter 7 Reasoning about Knowledge by Neha Saxena Id: 13 CS 267.
Belief Revision Lecture 1: AGM April 1, 2004 Gregory Wheeler
1 CENTRIA, Dept. Informática da Faculdade de Ciências e Tecnologia, Universidade Nova de Lisboa, Caparica, Portugal. 2 Institute of Computer Science,
Preferential Theory Revision Pierangelo Dell’Acqua Dept. of Science and Technology - ITN Linköping University, Sweden Luís Moniz Pereira Centro de Inteligência.
Combining Answer Sets of Nonmonotonic Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics.
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.
IDEAS 2011 I nternational D atabase E ngineering & A pplications S ymposium September 21-23, Lisbon – Portugal Aggregates and Priorities in P2P Data Management.
Pre and Post Preferences over Abductive Models Luís Moniz Pereira 1 Gonçalo Lopes 1 Pierangelo Dell'Acqua 2 Pierangelo Dell'Acqua 2 1 CENTRIA – Universidade.
Modelling Adaptive Controllers with Evolving Logic Programs Pierangelo Dell’Acqua Anna Lombardi Dept. of Science and Technology - ITN Linköping University,
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Actions Planning and Defeasible Reasoning Guillermo R. Simari Alejandro J. García Marcela Capobianco Dept. of Computer Science and Engineering U NIVERSIDAD.
Preference Revision via Declarative Debugging Pierangelo Dell’Acqua Dept. of Science and Technology - ITN Linköping University, Sweden EPIA’05, Covilhã,
EVOlving L ogic P rograms J.J. Alferes, J.A. Leite, L.M. Pereira (UNL) A. Brogi (U.Pisa)
MINERVA A Dynamic Logic Programming Agent Architecture João Alexandre Leite José Júlio Alferes Luís Moniz Pereira ATAL’01 CENTRIA – New University of Lisbon.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
L. M. Pereira, J. J. Alferes, J. A. Leite Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal P. Dell’Acqua Dept. of Science.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
NMR98 - Logic Programming1 Learning with Extended Logic Programs Evelina Lamma (1), Fabrizio Riguzzi (1), Luís Moniz Pereira (2) (1)DEIS, University of.
LDK R Logics for Data and Knowledge Representation ClassL (part 2): Reasoning with a TBox 1.
International Conference on Fuzzy Systems and Knowledge Discovery, p.p ,July 2011.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Propositional SAT The search for a model of a given proposition.
1 Temporal logic. 2 Prop. logic: model and reason about static situations. Example: Are there truth values that can be assigned to x,y simultaneously.
Abduction CIS308 Dr Harry Erwin. Contents Definition of abduction An abductive learning method Recommended reading.
Our views on the Future of Logic Based Agents Luís Moniz Pereira José Júlio Alferes & Joint WorkshopLondon, 8 March 1999.
Logic Program Semantics Background Luís Moniz Pereira U.I. at Jakarta, Jan/Feb 2006 AI Centre, Universidade Nova de Lisboa.
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.
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Logics for Data and Knowledge Representation
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of Science and Technology - ITN Linköping University, Sweden

Contribution  The paper presents a compilation of programs formalizing update plus preference reasoning into standard generalized logic programs, and shows the correctness of the transformation.  The compilation is based on: - a transformation into normal programs of sequences of general logic programs updates. - a transformation of logic programs with preferences.

Update reasoning  Updates model dynamically evolving worlds.  Updates differ from revisions which are about an incomplete static world model.  Knowledge, whether complete or incomplete, can be updated to reflect world change.  New knowledge may contradict and override older one. New models may also be created by removing such contradictions.

Preference reasoning  Preferences are employed with incomplete knowledge when several models are possible  Preferences act by choosing some of the possible models  They do this via a partial order among rules. Rules will only fire if they are not defeated by more preferred rules

Preference and updates combined  Despite their differences preferences and updates display similarities.  Both can be seen as wiping out rules:  in preferences the less preferred rules, so as to remove models which are undesired.  in updates the older rules, inclusively for obtaining models in otherwise inconsistent theories.  This view helps put them together into a single uniform framework.  In this framework, preferences can be updated.

LP Framework Atomic formulae: A objective atom not A default atom Formulae: every L i is an objective or default atom generalized rule L 0  L 1  L n

LP Framework Let N={ n 1,…, n k } be a set of constants containing a unique name for each generalized rule. Let P be a set of generalized rules and R a set of priority rules. Then (P,R) is a prioritized logic program. Z is a literal n r <n u or not n r <n u priority rule Z  L 1  L n n r <n u means that rule r is preferred to rule u

Dynamic Prioritized Programs Let S={1,…,s,…} be a set of natural numbers. We call the elements i  S states. Let (Pi,Ri) be a prioritized logic program for every i  S, then  {(Pi,Ri) : i  S} is a dynamic prioritized program. Intuitively, the meaning of such a sequence results from updating (P 1, R 1 ) with the rules from (P 2, R 2 ), and then updating the result with … the rules from (P n, R n )

Example Suppose a scenario where Stefano watches programs on football, tennis, or the news. (1) In the initial situation, being a typical italian, Stefano prefers both football and tennis to the news and, in case of international competitions, he prefers tennis over football. In this situation, Stefano has two alternative TV programmes equally preferable: football and tennis. f  not t, not n (r 1 ) t  not f, not n (r 2 ) n  not f, not t (r 3 ) n 1 <n 3 n 2 <n 3 n 2 <n 1  us x<y  x<z, z<y P1 R1

Example (2) Next, suppose that a US-open tennis competition takes place: Now, Stefano's favourite programme is tennis. us  (r 4 ) P2R2 (3) Finally, suppose that Stefano's preferences change and he becomes interested in international news. Then, in case of breaking news he will prefer news over both football and tennis. bn  (r 5 ) P3 not (n 1 <n 3 )  bn not (n 2 <n 3 )  bn n 3 <n 1  bn n 3 <n 2  bn R3

Preferred Stable Models Let P =  {(Pi,Ri) : i  S} be a dynamic prioritized program, Q =  { Pi  Ri : i  S }, PR =  i (Pi  Ri), and M an interpretation of P. Def. Default and Rejected rules Default(PR,M) = {not A :  (A  Body) in PR and M |  body } Reject(s,M,Q) = { r  Pi  Ri :  r’  Pj  Rj, head(r)=not head(r’), i<j  s and M |= body(r’) }

Preferred Stable Models Def. Unsupported and Unprefered rules Unsup(PR,M) = {r  PR : M |= head(r) and M |  body - (r)} Unpref(PR,M) is the least set including Unsup(PR, M) and every rule r such that:  r’  (PR – Unpref(PR, M)) : M |= r’ < r,  M |= body + (r’) and [not head(r’)  body - (r) or  (not head(r)  body - (r’) and M |= body(r))]

Preferred Stable Models Def. Preferred stable models Let s be a state, P =  {(Pi,Ri) : i  S} a dynamic prioritized program, and M a stable model of P. M is a preferred stable model of P at state s iff M = least( [X - Unpref(X, M)]  Default(PR, M) ) where: PR =  i  s (Pi  Ri) Q =  { Pi  Ri : i  S } X = PR - Reject(s,M,Q)

Transformation  (s,P) = DLP(s,P)   r  Q  (r)  DA  SPO Let s be a state and P =  {(Pi,Ri) : i  S} a dynamic prioritized program. Let Q =  i  s Pi Def.  (s,P) transformation

DLP(s,P) Transformation The DLP(s,P) transformation models the dynamic aspects of update reasoning: DLP(s,P) = RP  UR  IR  DR  RR  CS

DLP(s,P) Transformation (RP) Rewritten program rules with A Fi  A 1,…,A n,A - n+1,…,A - m with A - Fi  A 1,…,A n,A - n+1,…,A - m A  A 1,…,A n,not A n+1,…,not A m not A  A 1,…,A n,not A n+1,…,not A m Replace any rule in Fi=Pi  Ri of the form: and of the form:

(UR) Update rules A i  A Fi A - i  A - Fi (IR) Inheritance rules A i  A i-1, not A - Fi A - i  A - i-1, not A Fi (DR) Default rules A0-A0- DLP(s,P) Transformation

(RR) Rejection rules reject(n r )  A Ft reject(n r )  A - Ft for any rule r in Fi=Pi  Ri and for all i < t  s (CS) Current state rules A  A s A -  A - s false  A, A - DLP(s,P) Transformation

 (r) Transformation The  (r) transformation models preference reasoning. If r = not A  A 1,…,A n,not A n+1,…,not A m then ř = not Ă  Ă 1,…, Ă n,not Ă n+1,…,not Ă m Let [.] be a function from literals to objective atoms: [A] = A [not A] = A - Notation

 (r) Transformation  (r) rules: consists of the following collection of rules, for A  body + (r), not C  body - (r) and any rule u  Q:  ap(n r ), not reject(n r ) ok(n r ), [body(r)], [body - (ř)] ok(n r ), A -, Ă - ok(n r ), C, Č [head(ř)] ap(n r ) bl(n r ) Suppose that Q = { r 1,…, r k }

 (r) Transformation  ry(n r,n r1 ),…,ry(n r,n rk ) not (n u < n r ) (n u < n r ), ap(n u ) (n u < n r ), bl(n u ) ko(n u ) reject(n u ) not ok(n r ), not reject(n r ) [head(r)], C ok(n r ) ry(n r,n u ) ry(n r,n u ) false ko(n r )

Transformation (DA) Default atom rules Ă -  not Ă (SPO) Strict partial order false  n r < n r false  n r1 < n r2, n r2 < n r3, (n r1 < n r3 ) -

Properties of  (r) Let s be a state, P =  {(Pi,Ri) : i  S} a dynamic prioritized program and M a stable model of P. Let Q =  i  s Pi. Then, the following properties hold: -  r  Q if reject(n r )  M, then ok(n r )  M -  r  Q if reject(n r )  M, then ( ap(n r )  M iff bl(n r )  M ) -  r  Q if ko(n r )  M iff r  Unsup(Q,M) -  r  Q if reject(n r )  M, then ( ko(n r ) implies bl(n r ) )

Properties of  (s,P) Let s be a state and P a dynamic prioritized program. An interpretation M a stable model of  (s,P) iff M, restricted to the language of P, is a preferred stable model of P at state s. Thm. Correctness of  (s,P)

Conclusions  We presented a compilation into normal programs of logic programs subject to updates and preferences combined under the stable model semantics.  The preference part of our transformation is modular or incremental wrt. the update part of the transformation.  The size of the transformed program  (s,P) in the worst case is quadratic on the size of the original dynamic prioritized program P.  An implementation of the transformation is available at:

Future work  Garbage collection of dynamic logic programs.  Combining updates and preferences under the well-founded semantics.  Exploring some application areas: * abductive reasoning with updatable preferences. * dynamically reconfigurable web-sites which adapt to updatable user profiles.