Knowledge Representation (Overview)

Similar documents
INTRODUCTION TO NONMONOTONIC REASONING

Tutorial: Nonmonotonic Logic

A Brief Introduction to Nonmonotonic Reasoning

Tutorial: Nonmonotonic Logic (Day 1)

Pei Wang( 王培 ) Temple University, Philadelphia, USA

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty

Propositional Logic: Logical Agents (Part I)

CogSysI Lecture 9: Non-Monotonic and Human Reasoning

Chapter 13 Uncertainty

Argumentation-Based Models of Agent Reasoning and Communication

Modal logics: an introduction

A Theorem Prover for Prioritized Circumscription

Reasoning in Uncertain Situations

Reasoning Under Uncertainty: Introduction to Probability

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

Logic Databases (Knowledge Bases)

Handout Lecture 8: Non-monotonic logics

A Strong Relevant Logic Model of Epistemic Processes in Scientific Discovery

ESSENCE 2014: Argumentation-Based Models of Agent Reasoning and Communication

Integrating State Constraints and Obligations in Situation Calculus

Default Reasoning - Motivation

Reasoning with Inconsistent and Uncertain Ontologies

09 Modal Logic II. CS 3234: Logic and Formal Systems. October 14, Martin Henz and Aquinas Hobor

Reasoning Under Uncertainty: Introduction to Probability

Logic. (Propositional Logic)

Nonmonotonic Logic. Daniel Bonevac. April 16, Accident victims who are cool to the touch may be in shock.

Artificial Intelligence II

Two-Valued Logic Programs

MULTI-AGENT ONLY-KNOWING

Propositional Logic: Logical Agents (Part I)

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

IS HUMAN REASONING REALLY NONMONOTONIC?

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Model Theory of Modal Logic Lecture 1: A brief introduction to modal logic. Valentin Goranko Technical University of Denmark

Commonsense Reasoning and Argumentation

Preface to the First Edition. xxvii 0.1 Set-theoretic Notation xxvii 0.2 Proof by Induction xxix 0.3 Equivalence Relations and Equivalence Classes xxx

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Nested Epistemic Logic Programs

Inductive, Abductive and Pragmatic Reasoning

Argumentation and rules with exceptions

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

First-Degree Entailment

Semantics and Inference for Probabilistic Ontologies

Bayesian Reasoning. Adapted from slides by Tim Finin and Marie desjardins.

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

MAKING ARGUMENT SYSTEMS COMPUTATIONALLY ATTRACTIVE Argument Construction and Maintenance 1

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

A theory of modular and dynamic knowledge representation

Confirmation Theory. Pittsburgh Summer Program 1. Center for the Philosophy of Science, University of Pittsburgh July 7, 2017

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Principles of Knowledge Representation and Reasoning

Action, Failure and Free Will Choice in Epistemic stit Logic

Towards Tractable Inference for Resource-Bounded Agents

Change, Change, Change: three approaches

Negation as failure (Normal logic programs)

First Order Logic: Syntax and Semantics

In Defense of Jeffrey Conditionalization

Logic: Propositional Logic (Part I)

Default Logic Autoepistemic Logic

Uncertainty. Introduction to Artificial Intelligence CS 151 Lecture 2 April 1, CS151, Spring 2004

Reasoning by Cases in Structured Argumentation.

-1- THE PROBABILITY THAT TWEETY IS ABLE TO FLY Giangiacomo Gerla Dipartimento di Matematica e Fisica, Università di Camerino ITALY.

Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs

Logical Representations. LING 7800/CSCI 7000 Martha Palmer 9/30/2014

From: AAAI Technical Report FS Compilation copyright 1994, AAAI ( All rights reserved. Forget It!

Nonclassical logics (Nichtklassische Logiken)

A Closed-Form Solution to the Ramification Problem (Sometimes)

DISHONEST REASONING BY ABDUCTION. Chiaki Sakama Wakayama University

Uncertain Entailment and Modus Ponens in the Framework of Uncertain Logic

Logic Background (1A) Young W. Lim 12/14/15

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

CITS2211 Discrete Structures Proofs

1) partial observability (road state, other drivers' plans, etc.) 4) immense complexity of modelling and predicting tra_c

Philosophy 244: #8 Counterfactuals, Neighborhood Semantics, Probability, Predicative Necessity, etc.

Combining Modes of Reasoning: an Application of Abstract Argumentation

The Conditional in Mental Probability Logic

Suggested solutions to the 6 th seminar, ECON4260

KRR. Example. Example (formalization) Example (cont.) Knowledge representation & reasoning

Phil 317: [handout #6] Donald Davidson: Mental Events

Logic for Computer Science - Week 4 Natural Deduction

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

MAI0203 Lecture 7: Inference and Predicate Calculus

DEONTIC MODALS: WHY ABANDON THE CLASSICAL SEMANTICS?

Propositional Logic: Methods of Proof (Part II)

Deliberative Agents Knowledge Representation I. Deliberative Agents

Argumentation with Abduction

Revising Nonmonotonic Theories: The Case of Defeasible Logic

On Axiomatic Rejection for the Description Logic ALC

Reasons for Rejecting a Counterfactual Analysis of Conclusive Reasons

Agent Communication and Belief Change

Formal (Natural) Deduction for Predicate Calculus

Logic and Artificial Intelligence Lecture 22

Contamination in Formal Argumentation Systems

Measuring the Good and the Bad in Inconsistent Information

Possibilistic Logic. Damien Peelman, Antoine Coulon, Amadou Sylla, Antoine Dessaigne, Loïc Cerf, Narges Hadji-Hosseini.

Outline. Adaptive Logics. Introductory Remarks (2) Introductory Remarks (1) Incomplete Survey. Introductory Remarks (3)

Why on earth did you do that?!

A Possibilistic Extension of Description Logics

Belief revision: A vade-mecum

Transcription:

Knowledge Representation (Overview) Marek Sergot October 2017

Knowledge Representation includes reasoning a huge sub-field of AI a variety of representation/modelling formalisms, mostly (these days, always) based on logic assorted representation problems So these days, more or less: applied (computational) logic

KR 2016: 15th International Conference on Principles of Knowledge Representation and Reasoning, Cape Town Argumentation Belief revision and update, belief merging, etc. Commonsense reasoning Contextual reasoning Description logics Diagnosis, abduction, explanation Inconsistency- and exception tolerant reasoning, paraconsistent logics KR and autonomous agents: intelligent agents, cognitive robotics, multi-agent systems KR and data management, data analytics KR and decision making, game theory, social choice KR and machine learning, inductive logic programming, knowledge discovery and acquisition KR and natural language processing KR and the Web, Semantic Web

KR 2016: 15th International Conference on Principles of Knowledge Representation and Reasoning, Cape Town Logic programming, answer set programming, constraint logic programming Nonmonotonic logics, default logics, conditional logics Ontology formalisms and models Philosophical foundations of KR Preferences: modeling and representation, preference-based reasoning Reasoning about action and change: action languages, situation calculus, causality Reasoning about knowledge and belief, dynamic epistemic logic, epistemic and doxastic logics Reasoning systems and solvers, knowledge compilation Spatial and temporal reasoning, qualitative reasoning Uncertainty, vagueness, many-valued and fuzzy logics

KR 2016: Programme KR and Data Management 1 Argumentation 1 Short Papers: Automated Reasoning Logic prog/inconsistency Temporal and Spatial Reasoning 1 Automated Reasoning and Computation 1 Short Papers: Reasoning about Action Uncertainty Planning and Strategies KR and Data Management 2 Description Logic 1 Epistemic Reasoning 1 Short Papers: Description Logic Argumentation Automated Reasoning and Computation 2 Decision Theory, Rationality, and Uncertainty KR and Data Management 3 Belief Revision and Nonmonotonicity Description Logic 2 Reasoning about Action, Causality Argumentation 2 Epistemic Reasoning 2 Argumentation 3 Temporal and Spatial Reasoning 2

Aims of this course Logic Logic classical (propositional) logic!!

Aims of this course Logic Logic classical (propositional) logic!! Computational logic Logic programming Prolog!!

Aims of this course Logic Logic classical (propositional) logic!! Computational logic Logic programming Prolog!! Non-monotonic logics (methods and examples)

Aims of this course Logic Logic classical (propositional) logic!! Computational logic Logic programming Prolog!! Non-monotonic logics (methods and examples) Some examples defeasible (non-monotonic) rules action + inertia + causality priorities (preferences) practical reasoning : what should I do?

From SOLE 2014... The most interesting of all the courses offered... My only suggestion for improvement would be to offer this course in the first term and...

From SOLE 2014... The most interesting of all the courses offered... My only suggestion for improvement would be to offer this course in the first term and... Prof Marek Sergot is the most lucid, patient, engaging, humourous, enthusiastic and approachable lecturer one could ever hope to have. It is a privilege to encounter such a lecturer.

From SOLE 2014... The most interesting of all the courses offered... My only suggestion for improvement would be to offer this course in the first term and... Prof Marek Sergot is the most lucid, patient, engaging, humourous, enthusiastic and approachable lecturer one could ever hope to have. It is a privilege to encounter such a lecturer. This happened on several occasions and I believe it is not acceptable.

Logic of conditionals ( if... then... ). material implication (A B = A B) strict implication causal conditionals counterfactuals conditional obligations defeasible (non-monotonic) conditionals

Example A recent article about the Semantic Web was critical about the use of logic for performing useful inferences in the Semantic Web, citing the following example, among others: People who live in Brooklyn speak with a Brooklyn accent. I live in Brooklyn. Yet I do not speak with a Brooklyn accent.

Example A recent article about the Semantic Web was critical about the use of logic for performing useful inferences in the Semantic Web, citing the following example, among others: People who live in Brooklyn speak with a Brooklyn accent. I live in Brooklyn. Yet I do not speak with a Brooklyn accent. According to the author, each of these statements is true, but each is true in a different way. The first is a generalization that can only be understood in context.

Example A recent article about the Semantic Web was critical about the use of logic for performing useful inferences in the Semantic Web, citing the following example, among others: People who live in Brooklyn speak with a Brooklyn accent. I live in Brooklyn. Yet I do not speak with a Brooklyn accent. According to the author, each of these statements is true, but each is true in a different way. The first is a generalization that can only be understood in context. The article was doubtful that there are any practical ways of representing such statements. www.shirky.com/writings/semantic syllogism.html.

His point (the classical syllogism) In logic programming notation: x (p(x) q(x)) p(a) q(a) q(x) p(x) p(a) q(a)

Solution We need either or both of: a new kind of conditional a special kind of defeasible entailment x (p(x) q(x)) p(a) q(a) There is a huge amount of work on this in AI! This is the main technical core of the course

Non-monotonic logics Classical logic is monotonic: If KB = α then KB X = α New information X always preserves old conclusions α.

Non-monotonic logics Classical logic is monotonic: If KB = α then KB X = α New information X always preserves old conclusions α. Default reasoning is typically non-monotonic. Can have: KB = α but KB X = α

Non-monotonic logics Classical logic is monotonic: If KB = α then KB X = α New information X always preserves old conclusions α. Default reasoning is typically non-monotonic. Can have: KB = α but KB X = α BIRDS {bird(frank)} = flies(frank) But BIRDS {bird(frank)} {penguin(frank)} = flies(frank)

Can Susan Vote in the US? res Cuba res NAmerica res Cuba δ 1 : cit US res NAmerica δ 3 > δ 2 > δ 1 δ 2 : cit Cuba res Cuba δ 3 : vote US cit US cit US cit Cuba % ( cit Cuba cit US ) cit Cuba cit US vote US cit Cuba % ( cit Cuba vote US )

Multiple extensions: The Nixon diamond Quakers are typically pacifists. Republicans are typically not pacifists.

Multiple extensions: The Nixon diamond Quakers are typically pacifists. Republicans are typically not pacifists. Richard Nixon is a Quaker. Richard Nixon is a Republican Is Nixon is a pacifist or not?

Defeasible conditional imperatives F! α law: wife: friends:! (drink drive)! drive! drink law > wife law > friends

Defeasible conditional imperatives F! α law: wife: friends:! (drink drive)! drive! drink law > wife law > friends wife > friends: friends > wife: {drive, drink} {drink, drive}

Example: a problem of practical moral reasoning (Katie Atkinson and Trevor Bench-Capon) Hal, a diabetic, has no insulin. Without insulin he will die. Carla, also a diabetic, has (plenty of) insulin. Should Hal take Carla s insulin? (Is he so justified?) If he takes it, should he leave money to compensate? Suppose Hal does not know whether Carla needs all her insulin. Is he still justified in taking it? Should he compensate her? (Why?)

Hal, Carla and Dave has insulin(carla) has insulin(dave) diabetic(dave) has insulin(x)! take from(x)! take from(x) diabetic(x)! take from(x)!take from(x)! pay(x)! pay(x) :: life(hal) :: property(x) :: life(x) :: property(x) :: property(hal) take from(x) not has insulin(x) take from(x) take from(y), X Y

Hal, Carla and Dave has insulin(carla) has insulin(dave) diabetic(dave) Altruistic Hal: life(x) > life(hal) > property(y) > property(hal) { take from(dave), take from(carla), pay(dave), pay(carla)}

Hal, Carla and Dave has insulin(carla) has insulin(dave) diabetic(dave) Altruistic Hal: life(x) > life(hal) > property(y) > property(hal) { take from(dave), take from(carla), pay(dave), pay(carla)} Selfish Hal: life(hal) > life(x) > property(hal) > property(y) { take from(dave), take from(carla), pay(dave), pay(carla)} {take from(dave), take from(carla), pay(dave), pay(carla)}

Hal, Carla and Dave has insulin(carla) has insulin(dave) diabetic(dave) Altruistic Hal: life(x) > life(hal) > property(y) > property(hal) { take from(dave), take from(carla), pay(dave), pay(carla)} Selfish Hal: life(hal) > life(x) > property(hal) > property(y) { take from(dave), take from(carla), pay(dave), pay(carla)} {take from(dave), take from(carla), pay(dave), pay(carla)} Callous Hal: life(hal) > property(hal) > life(x) > property(y) { take from(dave), take from(carla), pay(dave), pay(carla)} {take from(dave), take from(carla), pay(dave), pay(carla)}

Some sources of defeasible reasoning Typical and stereotypical situations Generalisations and exceptions.

The Qualification Problem (1) All birds can fly... flies(x) bird(x)

The Qualification Problem (1) All birds can fly... flies(x) bird(x)... unless they are penguins... flies(x) bird(x), penguin(x)

The Qualification Problem (1) All birds can fly... flies(x) bird(x)... unless they are penguins... flies(x) bird(x), penguin(x)... or ostriches... flies(x) bird(x), penguin(x), ostrich(x)

The Qualification Problem (1) All birds can fly... flies(x) bird(x)... unless they are penguins... flies(x) bird(x), penguin(x)... or ostriches... flies(x) bird(x), penguin(x), ostrich(x)... or wounded... flies(x) bird(x), penguin(x), ostrich(x), wounded(x)

The Qualification Problem (1) All birds can fly... flies(x) bird(x)... unless they are penguins... flies(x) bird(x), penguin(x)... or ostriches... flies(x) bird(x), penguin(x), ostrich(x)... or wounded... flies(x) bird(x), penguin(x), ostrich(x), wounded(x)... or dead, or sick, or glued to the ground, or...

The Qualification Problem (2) Let BIRDS be the set of rules about flying birds. Even if we could list all these exceptions, classical logic would still not allow BIRDS {bird(frank)} = flies(frank)

The Qualification Problem (2) Let BIRDS be the set of rules about flying birds. Even if we could list all these exceptions, classical logic would still not allow BIRDS {bird(frank)} = flies(frank) We would also have to affirm all the qualifications:

The Qualification Problem (2) Let BIRDS be the set of rules about flying birds. Even if we could list all these exceptions, classical logic would still not allow BIRDS {bird(frank)} = flies(frank) We would also have to affirm all the qualifications: penguin(frank) ostrich(frank) wounded(frank) dead(frank) sick(frank) glued to ground(frank).

Some sources of defeasible reasoning Typical and stereotypical situations Generalisations and exceptions Conventions of communication Closed World Assumptions Circumscription Autoepistemic reasoning (reasoning about your own beliefs) Burdens of proof (e.g. in legal reasoning) Persistence and change in temporal reasoning.

Temporal reasoning: The Frame Problem Actions change the truth value of some facts, but almost everything else remains unchanged. Painting my house pink changes the colour of the house to pink... but does not change:

Temporal reasoning: The Frame Problem Actions change the truth value of some facts, but almost everything else remains unchanged. Painting my house pink changes the colour of the house to pink... but does not change: the age of my house is 93 years

Temporal reasoning: The Frame Problem Actions change the truth value of some facts, but almost everything else remains unchanged. Painting my house pink changes the colour of the house to pink... but does not change: the age of my house is 93 years the father of Brian is Bill

Temporal reasoning: The Frame Problem Actions change the truth value of some facts, but almost everything else remains unchanged. Painting my house pink changes the colour of the house to pink... but does not change: the age of my house is 93 years the father of Brian is Bill the capital of France is Paris.

Temporal reasoning: The Frame Problem Actions change the truth value of some facts, but almost everything else remains unchanged. Painting my house pink changes the colour of the house to pink... but does not change: the age of my house is 93 years the father of Brian is Bill the capital of France is Paris. Qualification problems!

Temporal reasoning: Default Persistence ( Inertia ) Actions change the truth value of some facts, but almost everything else remains unchanged. p[t] p[t + 1] Some facts persist by inertia, until disturbed by some action. Closely connected to forms of causality

Temporal reasoning: Ramifications win causes rich

Temporal reasoning: Ramifications win causes rich lose causes rich

Temporal reasoning: Ramifications win causes rich lose causes rich rich happy

Temporal reasoning: Ramifications win causes rich lose causes rich rich happy So an occurrence of win indirectly causes happy.

Material implication Everyone in Ward 16 has cancer. x ( in ward 16(x) has cancer(x) ) But compare:

Material implication Everyone in Ward 16 has cancer. x ( in ward 16(x) has cancer(x) ) But compare: x ( in ward 16(x) has cancer(x) ) Being in Ward 16 causes you to have cancer. x has cancer because x is in Ward 16.

The paradoxes of material implication A (B A) A (A B) ( A A) B ( (A B) C ) ( (A C) (B C) ) (A B) (B A)

Logic of conditionals ( if... then... ) material implication (classical ) strict implication intuitionistic implication causal conditionals counterfactuals conditional obligations defeasible (non-monotonic) conditionals.

A favourite topic action Action state change/transition agency + causality what is it to act? Actual cause something happened who caused it? what caused it?

Agency: an example of proximate cause s 0 water poison intact alive(c) τ 1 a:poisons s 1 water poison intact alive(c) τ 2 b:pricks s 2 water poison intact alive(c) τ 3 c:goes s 3 water poison intact dead(c) J.A. McLaughlin. Proximate Cause. Harvard Law Review 39(2):149 199 (Dec. 1925)

Aims Logic Logic classical (propositional) logic!! Computational logic Logic programming Prolog!! Non-monotonic logics (core methods and examples) Some examples (temporal reasoning, action + causality, practical reasoning,... )

Contents (not necessarily in this order) Logic: models, theories, consequence relations Logic databases/knowledge bases (in general) Defeasible reasoning, defaults, non-monotonic logics, non-monotonic consequence Some specific non-monotonic formalisms normal logic programs, extended logic programs, Reiter default logic,..., nonmonotonic causal theories,... Answer Set Programming priorities and preferences Temporal reasoning: action, change, persistence (and various related concepts) If time permits, examples from practical reasoning, action, norms... more about priorities and preferences

Assumed knowledge Basic logic: syntax and semantics; propositional and first-order logic. Elementary set theory Basic logic programming: syntax and semantics, inference and procedural readings (Prolog), negation as failure helpful but not essential Previous AI course(s) definitely not essential.

Assumed knowledge Basic logic: syntax and semantics; propositional and first-order logic. Elementary set theory Basic logic programming: syntax and semantics, inference and procedural readings (Prolog), negation as failure helpful but not essential Previous AI course(s) definitely not essential. There is no (compulsory) practical lab work though you are encouraged to implement/run the various examples that come up.

Assumed knowledge Basic logic: syntax and semantics; propositional and first-order logic. Elementary set theory Basic logic programming: syntax and semantics, inference and procedural readings (Prolog), negation as failure helpful but not essential Previous AI course(s) definitely not essential. There is no (compulsory) practical lab work though you are encouraged to implement/run the various examples that come up. Recommended reading References for specific topics will be given in the notes. For background: any standard textbook on AI (not esssential)

Other possible topics, not covered in this course Assorted rule-based formalisms; procedural representations Structured representations (1) old fashioned (frames, semantic nets, conceptual graphs), and their new manifestations Structured representations (2) VERY fashionable description logics (previously terminological logics ) See e.g: http://www.dl.kr.org Ontologies Develop ontology for application X and world-fragment Y. Ontology as used in AI means conceptual framework.

Other possible topics, not covered in this course Goals, plans, mentalistic structures (belief, desire, intention,... ) associated in particular with multi-agent systems. Belief system dynamics: belief revision no time Argumentation Probabilistic approaches (various) Some of these topics are covered in other MEng/MAC courses.

Description logic (example) Bavaria Germany Person Lager Beer Sam: Person

Description logic (example) Bavaria Germany Person Lager Beer Sam: Person Person drinks Beer Person lives in Germany

Description logic (example) Bavaria Germany Person Lager Beer Sam: Person Person drinks Beer Person lives in Germany Person lives in.bavaria Sam: Person lives in.bavaria

Description logic (example) Bavaria Germany Person Lager Beer Sam: Person Person drinks Beer Person lives in Germany Person lives in.bavaria Sam: Person lives in.bavaria Person lives in.bavaria Person drinks.lager

Description logic (example) Bavaria Germany Person Lager Beer Sam: Person Person drinks Beer Person lives in Germany Person lives in.bavaria Sam: Person lives in.bavaria Person lives in.bavaria Person drinks.lager Conclude: Sam: Person drinks.lager