Knowledge Representation and Reasoning Logics for Artificial Intelligence

Similar documents
Knowledge Representation and Reasoning Logics for Artificial Intelligence

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

COMP4418 Knowledge Representation and Reasoning

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

Notes for Chapter 12 Logic Programming. The AI War Basic Concepts of Logic Programming Prolog Review questions

Logic: TD as search, Datalog (variables)

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

INF5390 Kunstig intelligens. First-Order Logic. Roar Fjellheim

Lecture 4: January 12, 2015

Logic and its Applications

Knowledge Representation. CS 486/686: Introduction to Artificial Intelligence

What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 37 Resolution Rules

Constraint Solving. Systems and Internet Infrastructure Security

Automated Reasoning PROLOG and Automated Reasoning 13.4 Further Issues in Automated Reasoning 13.5 Epilogue and References 13.

Logic Programming and Resolution Lecture notes for INF3170/4171

Inf2D 12: Resolution-Based Inference

Semantic Types (Sorts) in SNePS 3 Presentation to SNeRG March 28, 2008

6. Inference and resolution

Knowledge Representation and Reasoning Logics for Artificial Intelligence

PROPOSITIONAL LOGIC (2)

Visually Interacting with a Knowledge Base

Resolution (14A) Young W. Lim 6/14/14

SAT solver of Howe & King as a logic program

Towards a Logical Reconstruction of Relational Database Theory

Integrity Constraints (Chapter 7.3) Overview. Bottom-Up. Top-Down. Integrity Constraint. Disjunctive & Negative Knowledge. Proof by Refutation

Knowledge Representation

Dipartimento di Elettronica Informazione e Bioingegneria. Cognitive Robotics. SATplan. Act1. Pre1. Fact. G. Gini Act2

Resolution in FO logic (Ch. 9)

Programming Languages Third Edition

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING

System Description: iprover An Instantiation-Based Theorem Prover for First-Order Logic

Logic Programming Languages

Declarative Programming. 2: theoretical backgrounds

6.034 Notes: Section 10.1

Chapter 9: Constraint Logic Programming

Diagnosis through constrain propagation and dependency recording. 2 ATMS for dependency recording

Full Clausal Logic - Syntax: clauses

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

DATABASE THEORY. Lecture 11: Introduction to Datalog. TU Dresden, 12th June Markus Krötzsch Knowledge-Based Systems

Implementação de Linguagens 2016/2017

Introduction to Logic Programming

AND-OR GRAPHS APPLIED TO RUE RESOLUTION

Logic (or Declarative) Programming Foundations: Prolog. Overview [1]

1 Inference for Boolean theories

Software Engineering Lecture Notes

Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies

Outline. Forward chaining Backward chaining Resolution. West Knowledge Base. Forward chaining algorithm. Resolution-Based Inference.

Ontology and Database Systems: Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies

Artificial Intelligence. Chapters Reviews. Readings: Chapters 3-8 of Russell & Norvig.

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Data Integration: Datalog

Propositional Logic. Part I

Description Logics Reasoning Algorithms Concluding Remarks References. DL Reasoning. Stasinos Konstantopoulos. IIT, NCSR Demokritos

Logic Languages. Hwansoo Han

Description logic reasoning using the PTTP approach

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

Finite Model Generation for Isabelle/HOL Using a SAT Solver

Automatic Reasoning (Section 8.3)

Linear Clause Generation by Tableaux and DAGs

Lecture 14: Lower Bounds for Tree Resolution

X-KIF New Knowledge Modeling Language

logic with quantifiers (informally)

Chapter 16. Logic Programming Languages

An Experimental CLP Platform for Integrity Constraints and Abduction

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

Logical reasoning systems

CS221 / Autumn 2017 / Liang & Ermon. Lecture 17: Logic II

2SAT Andreas Klappenecker

Mixed Integer Linear Programming

Answer Sets and the Language of Answer Set Programming. Vladimir Lifschitz

THE PREDICATE CALCULUS

Markov Logic: Representation

PROTEIN: A PROver with a Theory Extension INterface

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012

Introduction to predicate calculus

CSE 473 Lecture 12 Chapter 8. First-Order Logic. CSE AI faculty

CS215 Logic Programming with Prolog

Declarative programming. Logic programming is a declarative style of programming.

Chapter 16. Logic Programming Languages ISBN

Losp for Predicate Calculus

DPLL(Γ+T): a new style of reasoning for program checking

Logic Programming and Reasoning about Actions

Modeling and Reasoning with Bayesian Networks. Adnan Darwiche University of California Los Angeles, CA

CLF: A logical framework for concurrent systems

Data Integration: Logic Query Languages

Notes on Default Reasoning

Automated Reasoning. Natural Deduction in First-Order Logic

An Approach to Abductive Reasoning in Equational Logic

Typed Lambda Calculus for Syntacticians

Towards a Semantic Web Modeling Language

Conjunctive queries. Many computational problems are much easier for conjunctive queries than for general first-order queries.

Evolving model evolution

Set 9: Planning Classical Planning Systems. ICS 271 Fall 2013

Introduction & Review

Polarized Rewriting and Tableaux in B Set Theory

Lecture 7: January 15, 2014

Inference Graphs: Combining Natural Deduction and Subsumption Inference in a Concurrent Reasoner

Computer-Aided Program Design

Transcription:

Knowledge Representation and Reasoning Logics for Artificial Intelligence Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science University at Buffalo, The State University of New York Buffalo, NY 14260-2000 shapiro@cse.buffalo.edu copyright c 1995, 2004 2010 by Stuart C. Shapiro Page 1

Contents Part I 1. Introduction............................................................ 4 2. Propositional Logic.................................................... 19 3. Predicate Logic Over Finite Models................................... 173 4. Full First-Order Predicate Logic...................................... 224 5. Summary of Part I....................................................362 Part II 6. Prolog................................................................ 375 7. A Potpourri of Subdomains........................................... 411 8. SNePS................................................................ 429 9. Belief Revision/Truth Maintenance................................... 511 10. The Situation Calculus............................................... 569 11. Summary............................................................ 588

Part III 12. Production Systems...................................................601 13. Description Logic..................................................... 610 14. Abduction............................................................ 627 Page 3

5 Summary of Part I Artificial Intelligence (AI): A field of computer science and engineering concerned with the computational understanding of what is commonly called intelligent behavior, and with the creation of artifacts that exhibit such behavior. Knowledge Representation and Reasoning (KR or KRR): A subarea of Artificial Intelligence concerned with understanding, designing, and implementing ways of representing information in computers, and using that information to derive new information based on it. KR is more concerned with belief than knowledge. Given that an agent (human or computer) has certain beliefs, what else is reasonable for it to believe, and how is it reasonable for it to act, regardless of whether those beliefs are true and justified. Page 362

What is Logic? Logic is the study of correct reasoning. There are many systems of logic (logics). Each is specified by specifying: Syntax: Specifying what counts as a well-formed expression Semantics: Specifying the meaning of well-formed expressions Intensional Semantics: Meaning relative to a Domain Extensional Semantics: Meaning relative to a Situation Proof Theory: Defining proof/derivation, and how it can be extended. Page 363

Any system that consists of Relevance of Logic a collection of symbol structures, well-formed relative to some syntax; a set of procedures for adding new structures to that collection based on what s already in there. is a logic. But: Do the symbol structures have a consistent semantics? Are the procedures sound relative to that semantics? Soundness is the essence of correct reasoning. Page 364

KR and Logic Given that a Knowledge Base is represented in a language with a well-defined syntax, a well-defined semantics, and that reasoning over it is a well-defined procedure, a KR system is a logic. KR research can be seen as a search for the best logic to capture human-level reasoning. Page 365

Relations Among Inference Problems Syntax Derivation Theoremhood A 1,..., A n Q A 1... A n Q A 1,..., A n = Q = A 1... A n Q Semantics Logical Entailment Validity ( Soundness) ( Completeness) Page 366

Inference/Reasoning Methods Given a KB/set of assumptions A and a query Q: Model Finding Direct: Find satisfying models of A, see if Q is True in all of them. Refutation: Find if A { Q} is unsatisfiable. Natural Deduction Direct: Find if A Q. Resolution Direct: Find if A Q (incomplete). Refutation: Find if A Q is inconsistent. Page 367

Classes of Logics Propositional Logic Finite number of atomic propositions and models. Model finding and resolution are decision procedures. Finite-Model Predicate Logic Finite number of terms, atomic formulae, and models. Reducible to propositional logic. Model finding and resolution are decision procedures. First-Order Logic Infinite number of terms, atomic formulae, and models. Not reducible to propositional logic. There are no decision procedures. Resolution plus factoring is refutation complete. Page 368

Logics We Studied 1. Standard Propositional Logic 2. Clause Form Propositional Logic 3. Standard Finite-Model Predicate Logic 4. Clause Form Finite-Model Predicate Logic 5. Standard First-Order Predicate Logic 6. Clause Form First-Order Predicate Logic Page 369

Proof Procedures We Studied 1. Direct model finding: truth tables, decreasoner, relsat (complete search) walksat, gsat (stochastic search) 2. Semantic tableaux (model-finding refutation) 3. Wang algorithm (model-finding refutation), wang 4. Hilbert-style axiomatic (direct), brief 5. Fitch-style natural deduction (direct) 6. Resolution (refutation), prover, SNARK Page 370

Utility Notions and Techniques 1. Material implication 2. Possible properties of connectives commutative, associative, idempotent 3. Possible properties of well-formed expressions free, bound variables open, closed, ground expressions 4. Possible semantic properties of wffs contradictory, satisfiable, contingent, valid 5. Possible properties of proof procedures sound, consistent, complete, decision procedure, semi-decision procedure Page 371

More Utility Notions and Techniques 5. Substitutions application, composition 6. Unification most general common instance (mgci), most general unifier (mgu) 7. Translation from standard form to clause form Conjunctive Normal Form (CNF), Skolem functions/constants 8. Resolution Strategies subsumption, unit preference, set of support 9. The Answer Literal Page 372

Unification Unification is a least-commitment method of choosing a substitution for Universal Instantiation ( E). Unification is correct pattern matching when both structures have variables. Unification is generally needed in backward chaining systems. Page 373

AI-Logic Connections AI Logic rules or domain rules non-atomic assumptions or non-logical axioms inference engine procedures rules of inference knowledge base derivation Page 374