1 Programming with Constraints Jia-Huai You Constraint programming languages - based on non-monotonic logic - Answer set programming (ASP) Knowledge Representation.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
50.530: Software Engineering
Lecture 24 MAS 714 Hartmut Klauck
An Introduction to the Model Verifier verds Wenhui Zhang September 15 th, 2010.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Logic.
Knowledge Representation
Knowledge Representation and Reasoning (KR): A vibrant subfield of AI Jia You.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Programming with Constraints Jia-Huai You. Subject of Study Constraint Programming (CP) studies the computational models, languages, and systems for solving.
Answer Set Programming vs CSP: Power of Constraint Propagation Compared Jia-Huai You ( 犹嘉槐 ) University of Alberta Canada.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.5 [P]: Propositions and Inference Sections.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Solving Partial Order Constraints for LPO termination.
Logic Programs and Classical Planning with LTL Constraints Ravi Palla Advisor:J Benton.
Using answer set programming to answer complex queries Chitta Baral (joint work with Michael Gelfond and Richard Scherl) Arizona State University Tempe,
KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ
ANSWERING CONTROLLED NATURAL LANGUAGE QUERIES USING ANSWER SET PROGRAMMING Syeed Ibn Faiz.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Answer set programming See Eiter et al 2009.
1 Mathematical Institute Serbian Academy of Sciences and Arts, Belgrade DEUKS Meeting Valencia, September 9-11, 2008, Valencia New PhD modules proposal.
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
A Logic for Decidable Reasoning about Services Yilan Gu Dept. of Computer Science University of Toronto Mikhail Soutchanski Dept. of Computer Science Ryerson.
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.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
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
Logical Agents Logic Propositional Logic Summary
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
1 Features as Constraints Rafael AccorsiUniv. Freiburg Carlos ArecesUniv. Amsterdam Wiet BoumaKPN Research Maarten de RijkeUniv. Amsterdam.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
Modeling Speech Acts and Joint Intentions in Modal Markov Logic Henry Kautz University of Washington.
NP-Complete problems.
Chapter 5 Constraint Satisfaction Problems
Answer Set Programming (ASP): A new Paradigm for Knowledge Representation and Constraint Programming Some slides are taken from Baral’s talk at AAAI-05.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
What is ASP? CSCE 330 Programming Language Presentation JANICE NEIGHBOR, MICHAEL RICKABAUGH, DAVID THOMAS
Artificial Intelligence & Knowledge Representation National Institute Of Science & Technology Sudeep Misra [1] Artificial Intelligence and Knowledge Representation.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge Representation
Why study programming languages?
CS 4700: Foundations of Artificial Intelligence
EA C461 – Artificial Intelligence Logical Agent
Computability and Complexity
Dr. Rachel Ben-Eliyahu – Zohary
Constraint Satisfaction Problems vs. Finite State Problems
Planning in Answer Set Programming
Complexity 6-1 The Class P Complexity Andrei Bulatov.
Logic: Top-down proof procedure and Datalog
KNOWLEDGE REPRESENTATION
Knowledge Representation
Instructor: Aaron Roth
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
Representations & Reasoning Systems (RRS) (2.2)
Habib Ullah qamar Mscs(se)
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

1 Programming with Constraints Jia-Huai You Constraint programming languages - based on non-monotonic logic - Answer set programming (ASP) Knowledge Representation and Reasoning - Semantics, computation, application

2 Examples 3-Colorability Given a graph (V, E), assign each vertex a color in (r, b, g) such that no two connected vertices have the same color. Hamiltonian Path A path in a graph that reaches each vertex exactly once

3 Examples Planning How do we express “Once a property holds, it remains to hold until an action causes it not to hold.”

4 Goal WANTED: an approach to modeling and solving AI problems (planning, puzzles, combinatorics, …) Diverse domains Constraints Incomplete information Frame problem

5 Solution  The programming paradigm based on the stable model/answer set semantics  Basic idea - Encode problem (specification + instance) as logic program rules - Solutions are stable models of the program

6 Stable Models  Logic program rules ( normal rules)  Grounding: any true atom is derivable by a rule with true body  Minimal  Rules have declarative reading as constraints A  B1,…, Bk, not C1, …, not Cm

7 ASP vs. Logic Programming  Logic Programming – Single intended model – Domain possibly infinite –Unification and lifting to nonground case – Extensive use of recursion –Can specify any recursively enumerable set append([ ], X, X). append([X|Y], Z, [X|M]) :- append(Y,Z,M).

8 ASP vs. Logic Programming  ASP based on stable models – Several stable models, each as a solution – Function free programs – Finite domains – Limited use of recursion – Not intended to have full computability

9 Example: 3-colorability Given a graph (V, E), assign each vertex a color in (r, b, g) such that no two connected vertices have the same color. clrd(V,r)  vtx(V), not clrd(V,b), not clrd(V,g) clrd(V,g)  vtx(V), not clrd(V,r), not clrd(V,b) clrd(V,b)  vtx(V), not clrd(V,r), not clrd(V,g)  clr(C), edge(V,U), clrd(V,C), clrd(U,C)

10 Stable Models vs. SAT Rules with exceptions Rules with exceptions Frame Axioms Frame Axioms fly(X)  bird(X), not ab_bird(X) ab_bird(X)  penguin(X) ab_bird(X)  no_wings(X) on(X,Y,T2)  nextState(T2,T1), on(X,Y,T1), not moving(X,T1)

11 Why ASP? Highly expressive Highly expressive Compact representation Compact representation Efficient computation Efficient computation Bases for building advanced KR systems Bases for building advanced KR systems

12 Example: Hamiltonian Path  A path in a graph that reaches each node exactly once  A challenge for SAT solvers as no compact SAT encoding (with linear number of atoms) is known  Easily represented by a disjunctive program Given facts about Given facts about arc(X,Y) arc(X,Y) node(X) node(X)

13 A disjunctive program for Hamiltonian path reached(X)  start(X) reached(X)  reached(Y), inPath(Y,X) inPath(X,Y) v outPath(X,Y)  arc(X,Y)  inPath(X,Y), inPath(X,Y1), Y <> Y1  inPath(X,Y), inPath(X1,Y), X <> X1  node(X), not reached(X)

14 A number of Systems have been built  smodels by Ilkka Niemela’s group at HUT by Ilkka Niemela’s group at HUT  dlv by Nicola Leone et al. at TU Wien by Nicola Leone et al. at TU Wien

15 Some Research Issues Fundamental questions :  Why ASP Why not just propositional logic? Why not just propositional logic?  Is there a real need to resort to logic programming? No formal argument yet No formal argument yet

16 Some Research Issues  Semantics - Are there other suitable semantics for ASP? - Are there other suitable semantics for ASP? - stable models don’t tolerant “paradoxes” - stable models don’t tolerant “paradoxes” shave(X,Y)  not shave(Y,Y)

17 Some Research Issues  Language Extension - Other useful constructs - Other useful constructs - The complexity of the resulting language - The complexity of the resulting language - How to implement them - How to implement them E.g. Cardinality constraints v {p1,…,pn} u  Body

18 Some Research Issues  Computation - Efficient implementation - Efficient implementation - Top-down vs. bottom-up - Top-down vs. bottom-up - ASP vs. SAT vs. Other constraint solvers - ASP vs. SAT vs. Other constraint solvers  Modeling and application - Programming methodologies - Programming methodologies

19 Some of my recent papers “ Compiling defeasible networks to general logic programs,” Artificial Intelligence, 1999 “ Compiling defeasible networks to general logic programs,” Artificial Intelligence, 1999 “Unfolding partiality and disjunctions in stable model semantics,” KR “Unfolding partiality and disjunctions in stable model semantics,” KR “An abductive approach to disjunctive logic programs,” J. Logic Programming, 2000 “An abductive approach to disjunctive logic programs,” J. Logic Programming, 2000 “Loop checks for logic programs with functions” “Loop checks for logic programs with functions” Theoretical Computer Science (to appear )

20 Some of my recent papers “ Nonmonotonic reasoning as prioritized argumentation”, IEEE TKDE (to appear) “ Nonmonotonic reasoning as prioritized argumentation”, IEEE TKDE (to appear) “Rewrite systems for abduction”, forthcoming …