AILog - Logical Reasoning

Similar documents
Expert Systems. A knowledge-based approach to intelligent systems. Intelligent System. Motivation. Approaches & Ingredients. Terminology.

Logic in general. Inference rules and theorem proving

Answers G53KRR

2. The Language of First-order Logic

Algorithmic Software Verification

CS510 Software Engineering

CHAPTER 7 GENERAL PROOF SYSTEMS

Predicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering

Neighborhood Data and Database Security

CSE 459/598: Logic for Computer Scientists (Spring 2012)

HECTOR a software model checker with cooperating analysis plugins. Nathaniel Charlton and Michael Huth Imperial College London

Applied Logic in Engineering

simplicity hides complexity

Trust but Verify: Authorization for Web Services. The University of Vermont

Relations: their uses in programming and computational specifications

Summary Last Lecture. Automated Reasoning. Outline of the Lecture. Definition sequent calculus. Theorem (Normalisation and Strong Normalisation)

Reusable Knowledge-based Components for Building Software. Applications: A Knowledge Modelling Approach

Extending Data Processing Capabilities of Relational Database Management Systems.

COMPUTER SCIENCE TRIPOS

Topic 2: Structure of Knowledge-Based Systems

Lecture 13 of 41. More Propositional and Predicate Logic

INDUCTIVE & DEDUCTIVE RESEARCH APPROACH

2 Probabilistic and Possibilistic Reasoning with Rules

Computational Logic and Cognitive Science: An Overview

Master of Science in Computer Science

Formal Verification and Linear-time Model Checking

On the Modeling and Verification of Security-Aware and Process-Aware Information Systems

Software Modeling and Verification

Copyright 2012 MECS I.J.Information Technology and Computer Science, 2012, 1, 50-63

Cell Phone based Activity Detection using Markov Logic Network

Foundations of Query Languages

Predicate Logic Review

Foundational Proof Certificates

Static Program Transformations for Efficient Software Model Checking

Course Outline Department of Computing Science Faculty of Science. COMP Applied Artificial Intelligence (3,1,0) Fall 2015

Handout #1: Mathematical Reasoning

ON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS

Cassandra. References:

Debugging Prolog Programs. Contents The basic Prolog debugger Tracing program execution Spying on problem predicates

Logical Agents. Explorations in Artificial Intelligence. Knowledge-based Agents. Knowledge-base Agents. Outline. Knowledge bases

Fun with Henry. Dirk Pattinson Department of Computing Imperial College London

Version Spaces.

OVERVIEW HIGHLIGHTS. Exsys Corvid Datasheet 1

Lecture 16 : Relations and Functions DRAFT

Doctor of Philosophy in Computer Science

Journal of Mathematics Volume 1, Number 1, Summer 2006 pp

On the Use of Logical Abduction in Software Engineering

From Logic Programming towards Multi-agent systems

Learning and Inference in Collective Knowledge Bases

Bounded Treewidth in Knowledge Representation and Reasoning 1

The Modal Logic Programming System MProlog

Overview of the TACITUS Project

Lecture 18 of 42. Lecture 18 of 42

Certamen 1 de Representación del Conocimiento

Automata-based Verification - I

Artificial Intelligence

Ampersand and the Semantic Web

Data Access over Large Semi-Structured Databases

Gila Shoes Exercise: IF, MAX, & MIN Step-by-Step

University of Ostrava. Reasoning in Description Logic with Semantic Tableau Binary Trees

Background Biology and Biochemistry Notes A

Rigorous Software Development CSCI-GA

First-order logic. Chapter 8. Chapter 8 1

IAI : Expert Systems

Beyond Propositional Logic Lukasiewicz s System

Software Model Checking. Equivalence Hierarchy

MiddleWare for Sensor Systems keeping things Open

Predicate Logic. For example, consider the following argument:

Module Catalogue for the Bachelor Program in Computational Linguistics at the University of Heidelberg

The Semantic Web Rule Language. Martin O Connor Stanford Center for Biomedical Informatics Research, Stanford University

Formalization of the CRM: Initial Thoughts

MODULE - 9 LECTURE NOTES 5 EXPERT SYSTEMS

[Informed Consent Form for ] Name the group of individuals for whom this consent is written. Explanation Example

Data Modeling & Analysis Techniques. Probability & Statistics. Manfred Huber

Appendix B Checklist for the Empirical Cycle

Jaakko Hintikka Boston University. and. Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION

Monitoring Metric First-order Temporal Properties

Formalization of the CRM: Initial Thoughts

Development of dynamically evolving and self-adaptive software. 1. Background

Language. Johann Eder. Universitat Klagenfurt. Institut fur Informatik. Universiatsstr. 65. A-9020 Klagenfurt / AUSTRIA

On Abduction and Answer Generation through Constrained Resolution

Appendix A: Science Practices for AP Physics 1 and 2

Join Bayes Nets: A New Type of Bayes net for Relational Data

The Meta-Problem of Change

Introduction to Logic in Computer Science: Autumn 2006

Software Model Checking: Theory and Practice

Lecture 1. Basic Concepts of Set Theory, Functions and Relations

Fixed-Point Logics and Computation

Operational Semantics for a Fuzzy Logic Programming System with Defaults and Constructive Answers

Basic Set Theory. 1. Motivation. Fido Sue. Fred Aristotle Bob. LX Semantics I September 11, 2008

Relational Methodology for Data Mining and Knowledge Discovery

Program Transformation and Its Applications to Software Synthesis and Verification

! " # The Logic of Descriptions. Logics for Data and Knowledge Representation. Terminology. Overview. Three Basic Features. Some History on DLs

METHODS OF ADAPTIVE EXTRACTION AND ANALYSIS OF KNOWLEDGE FOR KNOWLEDGE-BASE CONSTRUCTION AND FAST DECISION MAKING

Introduction to tuple calculus Tore Risch

How To Program In Scheme (Prolog)

A Logic Approach for LTL System Modification

Programming Languages in Artificial Intelligence

Module 9. User Interface Design. Version 2 CSE IIT, Kharagpur

Semantics and Ontology of Logistic Cloud Services*

Transcription:

p. 1/11 AILog - Logical Reasoning Representation and reasoning system for logical reasoning Includes facilities normally found in tools for (logical) knowledge systems Supports various (sophisticated) reasoning methods Supports reasoning with uncertainty using ideas from probabilistic logics However, experimental tool, not meant for development of real-world applications

p. 2/11 Syntax and semantics Horn clauses (similar but not identical to Prolog): Negation by failure: A <- B 1 & & B n. Directives: Askable atoms: askable p. Asumable atoms: asumable p. What follows from a knowledge bases: KB ϕ, with ϕ atom, becomes: ask ϕ. No. ϕ doesn t follow from the knowledge base (what about undecidability?) Answer: ϕ.

p. 3/11 Ask-tell interface Tell: add a clause to the knowledge base (not needed if the knowledge based is loaded into AILog) Ask: query a knowledge base about whether the atom can be derived Example: ailog: tell parent(x, Y) <- mother(x,y). ailog: tell parent(x, Y) <- father(x, Y). ailog: tell mother(bea,alex). ailog: ask parent(u,v). Answer: parent(bea, alex). [ok,more,how,help]: (Note the differences with Prolog)

p. 4/11 Askable atoms During the reasoning process, atoms can be asked to users: ailog: tell parent(x, Y) <- mother(x,y). ailog: tell parent(x, Y) <- father(x, Y). ailog: askable mother(x,y). ailog: ask parent(bea,alex). Is mother(bea, alex) true? [yes,no,unknown,why,help]: yes. Answer: parent(bea, alex). When the atom is asked, it should be fully instantiated when the result returns

p. 5/11 Trace and explanation facilities Trace: as in Prolog meant to follow the reasoning process step-by-step Expanation facilities: Why: why is a particular question asked? (Will go through a potential derivation) How: how was a particular fact derived? (Will go through a derivation that was already successful) Whynot: why is it not possible to derive a fact?

p. 6/11 AILog and knowledge systems Domain (wine recommendation, tax advice, holiday advice, medicine, mathematics,...) Logical Theory propositional logic predicate logic resolution Automatic Reasoning Program (ARP)

p. 7/11 Example knowledge base askable age(patient) = V. askable duration(patient,heart,pain) = V. askable diabetic(patient).... sclerotic_arteries(patient) <- age(patient) = A & A > 50.... disorder(patient,stable_angina_pectoris) <- state(patient,atherosclerosis) & state(patient,ischaemia,reversible) & o2_demand(patient,heart,increased). condition(patient,emergency) <- disorder(patient,myocardial_infarction). condition(patient,no_emergency) <- disorder(patient,stable_angina_pectoris)

p. 8/11 Why What is the value of duration(john, heart, pain)? [value,unknown,why,help]: why. duration(john, heart, pain)=a is used in the rule state(john, ischaemia, irreversible) <- 1: ischaemia(john, heart) ** 2: duration(john, heart, pain)=a 3: A>30 4: state(john, coronary_vasodilatation) [Number,why,help,ok]: why. state(john, ischaemia, irreversible) is used in the rule disorder(john, unstable_angina_pectoris) <- 1: o2_demand(john, heart, normal) ** 2: state(john, ischaemia, irreversible) 3: state(john, atherosclerosis) [Number,why,help,ok]:

p. 9/11 How ailog: ask disorder(john,y). Is pain(john) true? [yes,no,unknown,why,help]: yes. What is the value of duration(john, heart, pain)? [value,unknown,why,help]: 50. Is pattern(john, pain, left_lateral_thoracic) true? [yes,no,unknown,why,help]: no. Is pattern(john, pain, right_lateral_thoracic) true? [yes,no,unknown,why,help]: why. pattern(john, pain, right_lateral_thoracic) is used in the rule ischaemia(john, heart) <- 1: pain(john) ** 2: pattern(john, pain, right_lateral_thoracic) [Number,why,help,ok]: how 1. You told me pain(john) is true. pattern(john, pain, right_lateral_thoracic) is used in the rule ischaemia(john, heart) <- 1: pain(john) ** 2: pattern(john, pain, right_lateral_thoracic) [Number,why,help,ok]:

p. 10/11 Methods Deductive solution: S is a deductive solution of a problem with associated set of observed findings F iff KB F S where S is a set of solution formulae Abductive/inductive solution: S is an abductive solution of a problem with observed findings F KB S K F is satisfied covering condition Consistency-based solution: S is a consistency-based solution with observed findings F : KB S F

p. 11/11 Conclusions Prolog is a simple and efficient (logic) programming language in which knowledge representation and reasoning systems can be implemented easily AILog is such a knowledge representation and reasoning system: sophisticated reasoning methods (deductive, abductive, consistency-based) reasoning with uncertainty (including Bayesian networks!) user interaction