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.

Slides:



Advertisements
Similar presentations
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
Advertisements

Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
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.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
The Theory of NP-Completeness
Abstract Answer Set Solver. Todolist Print the rules of Fig 1.
Efficient Query Evaluation on Probabilistic Databases
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
CS240A: Databases and Knowledge Bases Fixpoint Semantics of Datalog Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
The Theory of NP-Completeness
Winter 2004/5Pls – inductive – Catriel Beeri1 Inductive Definitions (our meta-language for specifications)  Examples  Syntax  Semantics  Proof Trees.
Methods of Proof Chapter 7, second half.
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.
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.
Propositional Calculus Math Foundations of Computer Science.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Answer set programming See Eiter et al 2009.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Logic CL4 Episode 16 0 The language of CL4 The rules of CL4 CL4 as a conservative extension of classical logic The soundness and completeness of CL4 The.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Logical Agents Logic Propositional Logic Summary
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
1 Bisimulations as a Technique for State Space Reductions.
S P Vimal, Department of CSIS, BITS, Pilani
Reading and Writing Mathematical Proofs Spring 2015 Lecture 4: Beyond Basic Induction.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
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,
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
Lecture. Today Problem set 9 out (due next Thursday) Topics: –Complexity Theory –Optimization versus Decision Problems –P and NP –Efficient Verification.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Many valued logics and fixpoint semantics See Melvin Fitting 2002.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk.
Extensions of Datalog Wednesday, February 13, 2001.
1 Datalog with negation Adapted from slides by Jeff Ullman.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Knowledge Representation
Computer Science cpsc322, Lecture 20
Semantics of Datalog With Negation
NP-Completeness Yin Tat Lee
NP-Completeness Yin Tat Lee
Knowledge Representation
Answer Set Programming
Presentation transcript:

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

Web Science & Technologies University of Koblenz ▪ Landau, Germany Implementing DLV

Steffen Staab Advanced Data Modeling 3 of 32 WeST DLV System Architecture

Steffen Staab Advanced Data Modeling 4 of 32 WeST RULE HANDLING AND INTELLIGENT GROUNDING

Steffen Staab Advanced Data Modeling 5 of 32 WeST Intelligent Grounding  Ground Programm has exactly the same answer sets as the original programme  For some syntactically restricted classes of programs (e.g. stratified programs), the “Intelligent Grounding” module already computes the corresponding answer sets.  We assume “safe programmes”, i.e. no variables in the head that are not bound by positive literals in the body.  We assume function-free programmes here. Thomas Eiter, Nicola Leone, Cristinel Mateis, Gerald Pfeifer, Franceseo Scarcello. A Deductive System for Non-Monotonic Reasoning. In: Logic Programming And Nonmonotonic Reasoning. Lecture Notes in Computer Science, 1997, Volume 1265/1997, , Springer.A Deductive System for Non-Monotonic ReasoningLogic Programming And Nonmonotonic Reasoning

Steffen Staab Advanced Data Modeling 6 of 32 WeST Rules and Graphs Handler  Motivation: Overall problem of EDLP is co-NP hard, BUT many of its parts are much easier (e.g. stratified programms are polynomially computable)

Steffen Staab Advanced Data Modeling 7 of 32 WeST Ground Dependency Graph (GG  )  Nodes: atoms Edges: E +, E -, E   Ground Programme:  p(2,3) :- t(2) :- q(1)  q(3) :- p(2,3), NOT t(2). t(3) :- q(3), p(2,3).

Steffen Staab Advanced Data Modeling 8 of 32 WeST Ground Collapsed Positive Dependency Graph (GG +  )  Strongly connected components form modules and become one node (not in the example here)

Steffen Staab Advanced Data Modeling 9 of 32 WeST Non-Ground Collapsed Positive Dependency Graph (G + P )

Steffen Staab Advanced Data Modeling 10 of 32 WeST Summarizing Steps for Analyzing Rules  Given programme P, it computes G + P for the intelligent grounding module (IGM)  Given  from IGM it computes GG   From  and GG  it sets apart  the modules,  syntactical properties (e.g. stratification) for the Model Generator  It computes GG +  for Model Checker to reduce search space  For each component of GG +  it analyzes syntactical properties (e.g. headcycle-freeness) for use by Model Checker

Steffen Staab Advanced Data Modeling 11 of 32 WeST Grounding Init NF = EDBP % Grounded facts initially= DB extension  =  % Grow grounded program from  G + P % Analyze the collapsed ng rule graph Key steps of procedure: 1.Grow rule grounding from node C in G + P without incoming edges (i.e. non-recursive) 2.Grow rule grounding using positive literals (and remove them from the grounded rules!)

Steffen Staab Advanced Data Modeling 12 of 32 WeST

Steffen Staab Advanced Data Modeling 13 of 32 WeST

Steffen Staab Advanced Data Modeling 14 of 32 WeST Example Programme Programme P p(1,2)  p(2,3) :- t(X) :- a(X). q(X)  q(Z) :- p(X,Y), p(Y,Z), NOT t(Y). t(X) :- q(X), p(Y,X) a(2) :- Grounded Programme  p(1,2)  p(2,3) :- t(2) :- q(1)  q(3) :- p(1,2), p(2,3), NOT t(2). t(3) :- q(3), p(2,3) a(2) :- Note: ground(P) contains 40 rule instances, but Instantiate generates only 4.

Steffen Staab Advanced Data Modeling 15 of 32 WeST Theorem  Let P be a safe disjunctive datalog program, and  be the ground program generated by Instantiat(P). Then, P and  have the same stable models.

Steffen Staab Advanced Data Modeling 16 of 32 WeST Summary Grounding is a bit like forward chaining (applying immediate consequence operator). However, because of disjunction in the heads it is overgenerating and it is also not retracting implications that fail because of negation.

Steffen Staab Advanced Data Modeling 17 of 32 WeST MODEL GENERATOR

Steffen Staab Advanced Data Modeling 18 of 32 WeST Model Generator 1.Derive what is definitely derivable, 2.Make ‘educated’ guess for one of those literals which have not been decided yet. 3.IF further guesses can be made THEN GOTO 2 ELSE Call MODEL-CHECKER If candidate model is inconsistent or not stable then backtrack, taking knowledge about previous guesses into account to avoid redundancies Nicola Leone, Pasquale Rullo, Francesco Scarcello. Disjunctive Stable Models: Unfounded Sets, Fixpoint Semantics, and Computation. In: Information and Computation, 135(2): , 1997.Disjunctive Stable Models: Unfounded Sets, Fixpoint Semantics, and Computation

Steffen Staab Advanced Data Modeling 19 of 32 WeST Note  The number of candidate models can be exponential  Smart generation of candidate models is crucial  Prune the search space!  Special algorithms for: Polynomial-time algorithm for normal stratified programs Special algorithm for headcycle-free disjunctive programs General algorithm

Steffen Staab Advanced Data Modeling 20 of 32 WeST Unfounded Sets Intuitively  An unfounded set for a disjunctive program P w.r.t. an interpretation I is a set of positive literals that cannot be derived from P assuming the facts in I. [generalization of a technique from well-founded semantics!]

Steffen Staab Advanced Data Modeling 21 of 32 WeST Unfounded Sets Formally:  Let I be an interpretation for a program P. A set X of ground atoms is an unfounded set for P w.r.t. I if, for each a ∈ X, for each rule r ∈ ground(P) such that a ∈ H(r), at least one of the following conditions holds: 1.B(r) ∩ . I ≠ , that is, the body of r is false w.r.t. I 2.B + (r) ∩ X ≠ , that is, some positive body literal belongs to X 3.(H(r)-X) ∩ I ≠ , that is, an atom in the head of r, distinct from a and other elements in X, is true w.r.t. I [generalization of a technique from well-founded semantics!]

Steffen Staab Advanced Data Modeling 22 of 32 WeST Unfounded Sets: Example Program P: a  b :- I = {b} Then {a} is an unfounded set of P wrt I (criterion 3 applies) Intuitively: there is no reason to believe that a is true given I

Steffen Staab Advanced Data Modeling 23 of 32 WeST Unfounded Sets: Example Program P: a  b :- I = {a,b} Then both {a} and {b} are unfounded sets of P wrt I (i.e. we should not believe both!) However, {a,b} is not an unfounded set!

Steffen Staab Advanced Data Modeling 24 of 32 WeST Unfounded Sets: Example Program P: a  b :- a :- b. b :- a. I = {a,b} Then  is the only unfounded set of P wrt I

Steffen Staab Advanced Data Modeling 25 of 32 WeST Definition & Proposition Definition  Let I be an interpretation for a program P.  I is unfounded-free if I ∩ X =  for each unfounded set X for P w.r.t. I. Proposition: Let I be an unfounded-free interpretation for a program P. Then  P has the greatest unfounded set GUS P (I)  GUS P (I) is computable in polynomial time

Steffen Staab Advanced Data Modeling 26 of 32 WeST Monotonic Operator W P Plan:  Compute W P  (  )  Either this is a unique stable model  Otherwise move from W P  (  ) towards the stable models

Steffen Staab Advanced Data Modeling 27 of 32 WeST Immediate Consequence Operator T P Definition:  T P (I) = {a ∈ B P | ∃ r ∈ ground(P) s.t. a ∈ H(r), H(r) – {a} ⊆ .I, and B(r) ⊆ I} Note: T P is deterministic! Definition:  W P (I) = T P (I)  .GUS P (I)

Steffen Staab Advanced Data Modeling 28 of 32 WeST Theorem  Let M be a total interpretation for program P. M is a stable model for P iff M is a fixpoint of W P. Proposition:  Given a propositional program P, W P  (  ) is computable in polynomial time.

Steffen Staab Advanced Data Modeling 29 of 32 WeST Examples Program P: a  b :- W P  (  ) = , i.e. not a model! Program P: b :- NOT c. a  b :- W P  (  ) = {NOT c, b, NOT a}, i.e. total, i.e. stable model

Steffen Staab Advanced Data Modeling 30 of 32 WeST Computing the Stable Models: Main Possibly true literals

Steffen Staab Advanced Data Modeling 31 of 32 WeST Computing the Stable Models: Compute-Stable

Steffen Staab Advanced Data Modeling 32 of 32 WeST FINIS This slide deck is not part of the material for examinations