Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Advertisements

SLD-resolution Introduction Most general unifiers SLD-resolution
Argumentation Based on the material due to P. M. Dung, R.A. Kowalski et al.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
1 Inductive Equivalence of Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics ILP
Weakening the Causal Faithfulness Assumption
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,
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
Network Theory and Dynamic Systems Game Theory: Mixed Strategies
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.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
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.
A Preliminary Study on Reasoning About Causes Pedro Cabalar AI Lab., Dept. of Computer Science University of Corunna, SPAIN.
Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI.
11 November 2005 Foundations of Logic and Constraint Programming 1 Negation: Declarative Interpretation ­An overview First Order Formulas and Logical Truth.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
1 CA 208 Logic Ex3 Define logical entailment  in terms of material implication  Define logical consequence |= (here the semantic consequence relation.
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
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.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
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.
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.
Belief Revision Lecture 1: AGM April 1, 2004 Gregory Wheeler
© Patrick Blackburn, Johan Bos & Kristina Striegnitz Horn clauses A literal is an atomic formula or its negation A clause is a disjunction of literals.
Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)
1 Knowledge Based Systems (CM0377) Lecture 12 (Last modified 2nd May 2002)
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.
Quasigroups Defaults Foundations of AI. Given an N X N matrix, and given N colors, color the matrix in such a way that: -all cells are colored; - each.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Combining Answer Sets of Nonmonotonic Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics.
Formal Semantics of Programming Languages 虞慧群 Topic 3: Principles of Induction.
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.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
Inverse Entailment in Nonmonotonic Logic Programs Chiaki Sakama Wakayama University, Japan.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Relational Data Model.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Nikolaj Bjørner Microsoft Research DTU Winter course January 2 nd 2012 Organized by Flemming Nielson & Hanne Riis Nielson.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
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.
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.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Many valued logics and fixpoint semantics See Melvin Fitting 2002.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Software Verification 1 Deductive Verification Prof. Dr. Holger Schlingloff Institut für Informatik der Humboldt Universität und Fraunhofer.
1 Datalog with negation Adapted from slides by Jeff Ullman.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
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.
Knowledge Representation and Reasoning
Computability and Complexity Issues of Extended RDF
The Propositional Calculus
Semantics of Datalog With Negation
PROPOSITIONAL LOGIC - SYNTAX-
CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng
Advanced Data Modeling Minimal Models
Presentation transcript:

Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007

Steffen Staab Advanced Data Modeling 2 of 36 WeST Controversy p :- not p. Justification postulate  Requests dependable justifications for derived truths.  Some programs do not have a model (cf above) Consistency postulate  Every syntactically correct set of normal clauses is consistent and must therefore have a model.  {p} is a model for the program above

Steffen Staab Advanced Data Modeling 3 of 36 WeST Controversy p :- not q. q :- not p Justification postulate  Requests dependable justifications for derived truths.  Both {p} and {q} are reasonable models Consistency postulate  Every syntactically correct set of normal clauses is consistent and must therefore have a model.

Steffen Staab Advanced Data Modeling 4 of 36 WeST Stable model semantics Definition: Gelfond-Lifschitz transformation Let S be a (possibly infinite) set of ground normal clauses, i.e. of formulas of the form A :- L 1, …., L n where n ¸ 0 and A is a ground atom and the L i are ground literals. Let B µ B P. The Gelfond-Lifschitz transform GL B (S) of S with respect to B is obtained from S as follows: 1. remove each clause whose antecedent contains a literal : A with A 2 B. 2. remove from the antecedents of the remaining clauses all negative literals.

Steffen Staab Advanced Data Modeling 5 of 36 WeST Example Gelfond-Lifschitz transformation Program: brother(X,Y) :- brother(X,Z),brother(Z,Y), not =(X,Y). brother(chico,harpo). brother(harpo,chico). ************************************************************************************ Grounded Program: brother(chico,chico) :- brother(chico,harpo),brother(harpo,chico), not =(chico,chico) brother(chico,harpo) :- brother(chico,chico),brother(chico,harpo), not =(chico,harpo) …[5 more]… brother(harpo,harpo) :- brother(harpo,chico), brother(chico,harpo), not =(harpo,harpo) brother(chico,harpo). brother(harpo,chico).

Steffen Staab Advanced Data Modeling 6 of 36 WeST Example Gelfond-Lifschitz transformation S={ brother(chico,chico) :- brother(chico,harpo),brother(harpo,chico), not =(chico,chico) brother(chico,harpo) :- brother(chico,chico),brother(chico,harpo), not =(chico,harpo) …[5 more]… brother(harpo,harpo) :- brother(harpo,chico), brother(chico,harpo), not =(harpo,harpo) brother(chico,harpo). brother(harpo,chico). } Ex 1: B={brother(chico,harpo), brother(harpo,chico), =(chico,chico), =(harpo,harpo)} GL_B(S)={ brother(chico,chico) :- brother(chico,harpo),brother(harpo,chico), not =(chico,chico) brother(chico,harpo) :- brother(chico,chico),brother(chico,harpo), not =(chico,harpo) …[5 more]… brother(harpo,harpo) :- brother(harpo,chico), brother(chico,harpo), not =(harpo,harpo) brother(chico,harpo), brother(harpo,chico). }

Steffen Staab Advanced Data Modeling 7 of 36 WeST Example Gelfond-Lifschitz transformation S={ brother(chico,chico) :- brother(chico,harpo),brother(harpo,chico), not =(chico,chico) brother(chico,harpo) :- brother(chico,chico),brother(chico,harpo), not =(chico,harpo) …[5 more]… brother(harpo,harpo) :- brother(harpo,chico), brother(chico,harpo), not =(harpo,harpo) brother(chico,harpo). brother(harpo,chico). } Ex 1: B={brother(chico,harpo), brother(harpo,chico), =(chico,chico), =(harpo,harpo)} GL_B(S)={ brother(chico,chico) :- brother(chico,harpo),brother(harpo,chico), not =(chico,chico) brother(chico,harpo) :- brother(chico,chico),brother(chico,harpo), not =(chico,harpo) …[5 more]… brother(harpo,harpo) :- brother(harpo,chico), brother(chico,harpo), not =(harpo,harpo) brother(chico,harpo), brother(harpo,chico). }

Steffen Staab Advanced Data Modeling 8 of 36 WeST Stable model semantics Definition (stable model): Let S be a (possibly infinite) set of ground normal clauses. An Herbrand interpretation B is a stable model of S, iff it is the unique minimal Herbrand model of GL B (S). Note: A stable model of a set S of normal clauses is a stable model of the (possibly infinite) set of ground instances of S. Lemma: Let S be a set of ground normal clauses and B an Herbrand interpretation. B ² S iff B ² GL B (S)

Steffen Staab Advanced Data Modeling 9 of 36 WeST Stable model semantics Definition (stable model): Let S be a (possibly infinite) set of ground normal clauses. An Herbrand interpretation B is a stable model of S, iff it is the unique minimal Herbrand model of GL B (S). Note: A stable model of a set S of normal clauses is a stable model of the (possibly infinite) set of ground instances of S. Lemma: Let S be a set of normal clauses. Each stable model of S is a minimal Herbrand model of S.

Steffen Staab Advanced Data Modeling 10 of 36 WeST Examples S 1 = { ( p :- not p), (p :- true)} Has the stable model {p}. GL_{p}(S) = {(p:-true)}, which has the unique minimal model {p} It has no other model.

Steffen Staab Advanced Data Modeling 11 of 36 WeST Examples S 2 = { ( p :- not p)} has no stable model. It has the model {p}, but GL_{p}(S) = {}, which has the unique minimal model {} It has the model {}, but GL_{}(S) = { ( p:-true )}, which has the unique minimal model {p}

Steffen Staab Advanced Data Modeling 12 of 36 WeST Examples S 3 = { ( q :- r, not p), (r :- s, not t), (s :- true)} Has the following models:  {s,r,q}, {s,t,q}, {s,t,p},… But after applying GL_B(S) p and t cannot be part of the unique minimal model and {s,r,q} must be! Therefore it has the single stable model {s,r,q}

Steffen Staab Advanced Data Modeling 13 of 36 WeST Examples S 4 = { ( q :- not p), (p :- not q)} Has the following models:  {q}, {p} Both are stable models!

Steffen Staab Advanced Data Modeling 14 of 36 WeST Cautious vs brave (skeptical vs credolous) Logical consequence in stable model semantics  Cautious (skeptical) entailment:  P |= F, iff F is true in all stable models of P  Brave (credulous) entailment:  P |= F, iff F is true in some stable model of P  Main interest typically:  The different models with their different properties

Steffen Staab Advanced Data Modeling 15 of 36 WeST Observations on stable models Stable model semantics coincides with the intuitive understanding based on the „justification postulate“. Unintuitive minimal models of the examples turn out not to be stable and the stability criterion retains only those minimal modes that are intuitive. A set may have several stable models or exactly one or none Each stratifiable set has exactly one stable model.

Steffen Staab Advanced Data Modeling 16 of 36 WeST Example well-founded model S 1 = { ( p :- not p), (p :- true)} Has the well-founded model ({p},{})

Steffen Staab Advanced Data Modeling 17 of 36 WeST Example well-founded model S 2 = { ( p :- not p)} has the well founded model ({},{})

Steffen Staab Advanced Data Modeling 18 of 36 WeST Examples S 3 = { ( q :- r, not p), (r :- s, not t), (s :- true)} Has the well-founded model ({s,r,q},{t,p})

Steffen Staab Advanced Data Modeling 19 of 36 WeST Examples S 4 = { ( q :- not p), (p :- not q)} Has the well-founded model ({},{})

Steffen Staab Advanced Data Modeling 20 of 36 WeST Comparison Stable model semantics  Justification postulate Well-founded semantics  Always one model / consistency postulate If a rule set is stratifiable, then it has a unique minimal model, which is a stable model and at the same time a total well-founded model If a rule set S has a total well-founded model, then this model is also the single stable model of S and vice versa. If a rule set S has a partial well-founded model I that is not total, then S has either no stable model or more than one. In this case a ground atom is true (or false, respectively) in all stable models of S if and only if it is true in I (or false, respectively).

Steffen Staab Advanced Data Modeling 21 of 36 WeST Comparison Stable model semantics  Justification postulate Well-founded semantics  Always one model / consistency postulate Well-founded semantics convey the „agreement“ of stable models. Well-founded semantics cannot distinguish between several justifiable models (S 4 ) and no justifiable model (S 2 )

Steffen Staab Advanced Data Modeling 22 of 36 WeST Side remark p :- odd(X), not odd(X). odd(s(X)) :- not odd(X). Well founded model is: I 2n = ({odd(s(0)), odd(s(s(s(0)))),….,odd(s 2n-1 (0)}, {odd(0),odd(s(s(0))),…,odd(s 2n-2 (0))}) Fixpoint: I  +1 = I   ({},{p}) d.h.  p WFS is undecidable, NAF is semi-decidable