KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ 85287.

Slides:



Advertisements
Similar presentations
Logic Programming Automated Reasoning in practice.
Advertisements

Answering complex questions and performing deep reasoning in advance question answering systems Chitta Baral 1, Michael Gelfond 2 and Richard Scherl 3.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Ontological Logic Programming by Murat Sensoy, Geeth de Mel, Wamberto Vasconcelos and Timothy J. Norman Computing Science, University of Aberdeen, UK 1.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Logic Use mathematical deduction to derive new knowledge.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
The ancestor problem For the ancestor problem we have the following rules in AnsProlog: anc(X,Y)
Converting formulas into a normal form Consider the following FOL formula stating that a brick is an object which is on another object which is not a pyramid,
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Logic.
Knowledge Representation and Reasoning (KR): A vibrant subfield of AI Jia You.
For Friday Finish chapter 10 No homework (get started on program 2)
Cs774 (Prasad)L7Negation1 Negation by Failure
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
1 Programming with Constraints Jia-Huai You Constraint programming languages - based on non-monotonic logic - Answer set programming (ASP) Knowledge Representation.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
NaLIX: A Generic Natural Language Search Environment for XML Data Presented by: Erik Mathisen 02/12/2008.
A First Attempt towards a Logical Model for the PBMS PANDA Meeting, Milano, 18 April 2002 National Technical University of Athens Patterns for Next-Generation.
Knowledge Acquisitioning. Definition The transfer and transformation of potential problem solving expertise from some knowledge source to a program.
Introduction to CSE 591: Autonomous agents - theory and practice. Chitta Baral Professor Department of Computer Sc. & Engg. Arizona State University.
Using answer set programming to answer complex queries Chitta Baral (joint work with Michael Gelfond and Richard Scherl) Arizona State University Tempe,
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.
NONMONOTONIC LOGIC AHMED SALMAN MALIK. OVERVIEW Monotonic Logic Nonmonotonic Logic Usage and Applications Comparison with other forms of logic Related.
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
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.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Learning by Answer Sets Chiaki Sakama Wakayama University, Japan Presented at AAAI Spring Symposium on Answer Set Programming, March 2001.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
CSC 423 ARTIFICIAL INTELLIGENCE LOGICAL AGENTS. 2 Introduction This chapter introduces knowledge-based agents. The concepts that we discuss—the representation.
Using answer set programming to answer complex queries Chitta Baral (joint work with Michael Gelfond, Texas Tech U and Richard Scherl, Monmouth U) Arizona.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Fall 98 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases and inferences Logic as a representation.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Introduction to Software Engineering Lecture 1.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
Computer Science, Algorithms, Abstractions, & Information CSC 2001.
For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
Inverse Entailment in Nonmonotonic Logic Programs Chiaki Sakama Wakayama University, Japan.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
1 Knowledge Based Systems (CM0377) Introductory lecture (Last revised 28th January 2002)
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
RULES Patty Nordstrom Hien Nguyen. "Cognitive Skills are Realized by Production Rules"
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Issues in Temporal and Causal Inference Pei Wang Temple University, USA Patrick Hammer Graz University of Technology, Austria.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Limitations of First-Order Logic
CS 4700: Foundations of Artificial Intelligence
Knowledge and reasoning – second part
Introduction to Knowledge-bases
Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
Knowledge and reasoning – second part
Answer Set Programming
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

KNOWLEDGE REPRESENTATION, REASONING AND DECLARATIVE PROBLEM SOLVING Chitta Baral Arizona State University Tempe, AZ

Introduction Long term goal of this line of research: Make programs, systems, interfaces and agents behave intelligently.

What is intelligence? Some characteristics of intelligent entities: - They can reason. - They can make decisions, and plans. - They can learn. - They can communicate: * take commands, queries, requests, preferences; * act, return answers, plans, decisions, control commands.

Reasoning Reasoning can not be done in vacuum. We need knowledge to reason with. Mathematically, a reasoning task can be expressed as:KB |= Conclusion. Questions: *In what language(s) KB and Conclusion are expressed? *How is |= defined?

Decision making and planning Need data and knowledge to make decisions and plans. Need to be able to express what a valid plan is, and when a decision is optimal or preferred. Thus, need to be able to express preferences and optimality criteria.

Decision making … cont. Questions: * How is knowledge expressed? * How is the goal of a plan expressed? * How are optimality criteria and preferences expressed? * Given data and knowledge what are the options that are enumerated? (How are `models’ defined?)

Learning In what language do we express what is learned? Learning also can not be done (efficiently) in vacuum. Background knowledge and focus are important.

Communication: What vs How? Request for Coffee: the two secretaries. –Secretary1: Sir, there is no water in the coffee pot; what should I do? –Secretary2: Coffee on desk every morning the boss is in; except in summer, when there is a glass of cold water, …

What vs How? How: Exact step by step instructions. What: A high level directive or request whose detailed implementation is left up to the intelligent entity. The more high level the directives and requests an entity can handle … How are the high level directives expressed? Knowledge, and reasoning are also needed to handle them.

The fundamental issue Need appropriate languages to be able to express knowledge, queries, preferences, high-level directives, etc. Recall, KB |= Conclusion. –Syntax for KB and Conclusion. –Semantics that defines ‘|=’. –Semantics: Enumerating the ‘models’ of KB.

Some expected properties of Knowledge Calculus! Must make it easier to add and revise knowledge. –Ordering should not matter that much. –It should be possible that KB |= Concl and KB + New Knowledge |=\= Concl. (This rules out any monotonic logic, such as first- order predicate calculus, to be the language for knowledge representation.)

Some expected properties..cont. Must allow default reasoning. –The Tweety flies example. Birds normally fly. Tweety is a bird. Penguins are birds that do not fly. |= Tweety flies. KB + Tweety is a penguin |= Tweety does not fly. –The airline databases. (Closed world assumption)

Expected properties … cont. Intuitive syntax (for the knowledge writer) –Bird(X) => Flies(X) is often more intuitive than ~Bird(X) V Flies(X). –If-then form seems to be quite intuitive. –Nesting is hard. ( ( ) ( ( ) ) )

Expected properties … cont. Semantics. –Easily definable. –If high complexity, then sound (and useful) approximations. Some structure –Subclasses with different degrees of complexity and expressiveness.

AnsProlog : a possible candidate Syntax: A collection of statements of the form A0 or … or Ak  B1, …, Bm, not C1, … not Cn.

The Tweety example in AnsProlog Fly(X)  Bird(X), not Ab(X). Bird(X)  Penguin(X). Ab(X)  Penguin(X). Bird(tweety). T |= Fly(tweety). T + Penguin(tweety) |= ~ Fly(tweety).

Transitive Closure in AnsProlog ancestor(X,Y)  ancestor(X,Z), parent(Z,Y). ancestor(X,Y)  parent(X,Y). parent(a,b). parent(b,c). parent(c,d). parent(e,f).

Differences with … Prolog: Ordering matters in Prolog; can not handle cycles with not. Logic Programming: It is a class of languages and many different semantics are proposed for not. Classical Logic: –  is not reverse implication. –Disjunction symbol or is non-classical. –The negation as failure symbol not is non-classical. –The classical negation symbol ~ is also used.

Planning: a DPS example. The planning problem. –Actions: puton(X,Y), lift, open, a. –Fluents: on(X,Y), lifted, opened, closed, f. –States: state of the world. Often represented by a set of fluents true in that state. – A simple goal: collection of fluents that need to be true in a state that we want the world to be in.

A simple planning domain initially ~f. initially ~g. b causes f if g. a causes g. finally f. a;b is a plan that achieves the goal.

Planning in AnsProlog. Describing the initial state. ~ holds(f, 1). ~holds(g, 1). Describing effect of actions. holds(f,T+1)  occurs(b,T), holds(g,T). holds(g,T+1)  occurs(a,T). Describing what does not change. holds(f,T+1)  holds(f,T), not ~holds(f,T+1). ~holds(f,T+1)  ~holds(f,T), not holds(f,T+1).

Planning in AnsProlog … cont Enumerating possible plans. other-occurs(A,T)  occurs(B,T), A =\= B. occurs(A,T)  not other-occurs(A,T). Eliminating ‘models’ which do not encode a plan.  not holds(f, plan-length+1). All ‘models’ (answer sets) encode a plan.

Building blocks towards a knowledge calculus. Subclasses and their properties. –Definite, normal, extended, disjunctive. –Acyclic, signed, stratified, call-consistent, order- consistent. Properties –Existence of consistent answer sets. –Existence of unique answer sets. –Complexity of entailment. –Expressibility of the entailment relation. –Relation between the literals in an answer set and the program.

Properties … cont. –Transforming programs. –Equivalence of programs. –Formal relation with other languages. (classical logic, default logic, etc.) –Splitting programs – modular analysis, and computation of answer sets. –Systematic building of programs from components: program composition.

Example Prop. -- Expressibility Normal function-free AnsProlog: Pi 1 P (Co- NP) Function-free AnsProlog: Pi 2 P. AnsProlog: Pi 1 1

Relation between literals in an answer set and the program. If ‘f’ is in an answer set ‘A’ of a program P, then there must be a rule in P such that … If an answer set ‘A’ of a program P satisfies the body of a rule ‘r’ of P then, the head of that rule …

Applications Reasoning –Reasoning with incomplete information, default reasonong. –Reasoning with preferences and priorities, inheritance hierarchies. Declarative problem solving –Planning, job-shop scheduling, tournament scheduling. –Abductive reasoning, explanation generations, diagnosis. –Combinatorial graph problems. –Combinatorial optimizations, combinatorial auctions. –Product configuration.

Applications. (Cont.) Software Engineering: Specification is the program. (rapid prototyping)

Conclusion Representing knowledge and reasoning with it is of fundamental importance in building intelligent entities. AnsProlog is a good candidate for this task. There is now a sizable body of theoretical results, several interpreters, and it has been now used in several applications. This is not my individual work, but has been done by several researchers over the years, most of it in the last ten years.