1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,

Slides:



Advertisements
Similar presentations
CS4026 Formal Models of Computation Part II The Logic Model Lecture 1 – Programming in Logic.
Advertisements

Completeness and Expressiveness
First-Order Logic.
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
Logic Programming Automated Reasoning in practice.
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
1 Inductive Equivalence of Logic Programs Chiaki Sakama Wakayama University Katsumi Inoue National Institute of Informatics ILP
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
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
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Methods of Proof Chapter 7, second half.
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.
Predicate Calculus.
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.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
Quantified Formulas - Decision Procedure Daniel Kroening, Ofer Strichman Presented by Changki Hong 07 NOV 08.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
LDK R Logics for Data and Knowledge Representation Modeling First version by Alessandro Agostini and Fausto Giunchiglia Second version by Fausto Giunchiglia.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
The Bernays-Schönfinkel Fragment of First-Order Autoepistemic Logic Peter Baumgartner MPI Informatik, Saarbrücken.
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.
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.
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.
1 How to decide Query Containment under Constraints using a Description Logic Ian Horrocks, Ulrike Sattler, Sergio Tessaris, and Stephan Tobies presented.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
1 Finite Model Theory Lecture 1: Overview and Background.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
DEDUCTION PRINCIPLES AND STRATEGIES FOR SEMANTIC WEB Chain resolution and its fuzzyfication Dr. Hashim Habiballa University of Ostrava.
ece 627 intelligent web: ontology and beyond
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.
CSE-291: Ontologies in Data Integration Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
1 Datalog with negation Adapted from slides by Jeff Ullman.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Introduction to Logic for Artificial Intelligence Lecture 2
Semantics of Datalog With Negation
A Brief Summary for Exam 1
MA/CSSE 474 More Math Review Theory of Computation
Automated Reasoning in Propositional Logic
Methods of Proof Chapter 7, second half.
Dichotomies in CSP Karl Lieberherr inspired by the paper:
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001, full version to appear in AIJ)

2 Finitary normal logic programs A class of normal logic programs (logic programs with negation in the bodies), such that: – Domain may be infinite – But: credulous and skeptical entailment under the stable semantics is still computable – A form of compactness holds – Problem solving below the second level of the polynomial hierarchy (answer set programming with finite domains) to all semi-decidable problems

3 Answer Set Programming Here: logic programming with negation as failure under the stable model semantics Answer set solvers currently successfully used to solve search problems (with finite domains) but deal only with function-free programs Aim of the paper: How to overcome limitations by introducing function symbols But: Unlimited use of function symbols leads to undecidability…

4 In this paper: finitary programs Identify a very expressive fragment of normal logic programs whose non-ground credulous and skeptical consequences under stable semantics are r.e.-complete and a form of compactness holds This fragment generalizes acyclic programs and can effectively deal with function symbols and recursion Existing reasoners only need slight modifications! Since the theory underlying finitary programs shows how to answer queries using only a strict subset of the program’s ground instantiation, and since program instantiation is one of the most expensive computations for existing engines, the techniques developed for finitary programs may increase performance of solvable problems, even in the absence of function symbols.

5 Overview Preliminaries Conditions for finitary programs Example Theoretical Properties Recognizing finitary programs How to apply existing inference engines Conclusions Relevant for us?

6 Preliminaries (1) A normal Logic Program is a set of rules: where A is an (FO) atom and L i are literals. The GL-Reduct P I of a program P wrt. a Herbrand Interpretation I is the program obtained by removing from Ground(P) all rules with negative body literals which are in I and removing negative body literals from all remaining rules. M is a stable model of P if M is a minimal model of P M A formula F is credulously (sceptically) true if it is true in some (any) stable model. HeadBody

7 Preliminaries (2) Dependency Graph: Graph over the ground atoms of P with edges from A to B labeled "+" ("-") if B appears positively (negatively) in some rule of Ground (P) A ≥ + B respectively A ≥ − B if there is a directed path from A to B in the dependency graph with an even (respectively odd) number of negative edges each atom depends positively on itself (A ≥ + A) we write A ≥ B if either A ≥ + B or A ≥ − B we write A ≥ ± B if A ≥ + B and A ≥ − B Particularly, programs with odd-cycles, that is, cycles with an odd number of negative edges, are problematic, since they may "kill" stability of models: Simplest odd-cycle: p(X) :- not p(X).

8 Finitary programs: What makes inferences hard Inference/query answering for normal programs is not r.e. because of two factors: 1.Unrestricted recursion with function symbols makes positive programs Turing equivalent 2.Odd-cycles in the dep. Graph play a nasty role in query answering: the stable model semantics does not enjoy the property of relevance, that is, a goal G cannot be answered using only the rules which G depends syntactically on: example: and there can be (due to function symbols) infinitely many odd- cycles. Idea: If odd-cycles are finitely many and recursion is terminating, then queries can be answered using a finite program of the program instantiation!

9 Finitary programs: Definition In other words, the cardinality of {B | A ≥ B} must be finite for all A. This typically holds for most classical definitions of predicates on recursive structures such as lists, where each terms of body literals also occur in the head, often as strict sub-terms of the head's arguments, e.g.: The class of finitary programs can now be defined as follows:

10 Example: QBF Satisfiability: Given a QBF q and an environment I defining all free variables in q, I satisfies q iff qbf(q,I) is in the unique stable model of the above program, where q is encoded accordingly. Defines an infinite set of constants Defines satisfiability of a QBF QBFs are propositional formulae where quantifiers are allowed over propositions, e.g.:

11 Theoretical Properties: For finitary programs, all queries can be correctly answered by reasoning with a finite portion of Ground(P ), called the relevant subprogram!

12 Theoretical Properties: What follows: 1) whether a ground formula F is a credulous or skeptically consequence of a program P depends only on R(P,F). 2) Compactness, i.e. if you find a finite inconsistent subprogram in P, then there is no stable model:

13 Theoretical Properties: For ground goals and finitary programs deciding skeptical/credulous entailment is decidable For non-ground goals and finitary programs deciding skeptical/credulous existential entailment is semi-decidable Note that existential entailment CAN be undecidable, i.e. not rec. enumerable if the program is not finitary!

14 Recognizing finitary programs Here comes the bad news: Deciding whether a program is finitary is undecidable by itself  (each condition by itself is undecidable) But: We know that we can safely extend pure Datalog with things like list operators (membership, appending, etc.) Idea: Tool to recognize "typical recursion patterns" at least (sound, but incomplete of course…)

15 Recognizer & Reasoner, roughly: Finitary program recognizer: Identify potentially cyclic atom dependencies Recursive domain predicate identification (similar to notion of safety of rules, but identifying "safety" in terms of recursion) Check for potential odd-cycles on potentially recursive rules Reasoner: There's an XSB based implementation of a skeptical resolution calculus algorithm. The author proposes how to integrate with current Stable Model semantics Engines (by beforehand computing R(F,P) )

16 Relevant for WSMO Reasoner? When taking Horn rules or well-founded semantics, only the first part of the definition of finitary is relevant. Might increase efficiency of Stable Model Semantics Reasoners in general (sounds in this sense related/combinable with techniques such as magic sets? Didn't think that through in detail) The recognizer for finitary programs seems interesting!