Principles of Knowledge Representation and Reasoning

Similar documents
Modal logics: an introduction

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

A Journey through the Possible Worlds of Modal Logic Lecture 1: Introduction to modal logics

Modal Logic. UIT2206: The Importance of Being Formal. Martin Henz. March 19, 2014

Notes on Modal Logic

Notes on Modal Logic

An Introduction to Modal Logic V

From Syllogism to Common Sense

An Introduction to Modal Logic III

The Modal Logic of Pure Provability

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

Lecture Notes on Classical Modal Logic

Adding Modal Operators to the Action Language A

Mathematical Logics Modal Logic: Introduction*

Systems of modal logic

Logic: Propositional Logic (Part I)

Approximations of Modal Logic K

Handout Lecture 1: Standard Deontic Logic

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

Maximal Introspection of Agents

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Logic: Propositional Logic Truth Tables

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Boxes and Diamonds. An Open Introduction to Modal Logic

Principles of Knowledge Representation and Reasoning

CHAPTER 11. Introduction to Intuitionistic Logic

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Introduction to Modal and Temporal Logic

Module 7 D and Equivalent Systems

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Modal Logic XX. Yanjing Wang

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Modal and temporal logic

Tutorial Exercises 1 (mjs)

Meaning and Reference INTENSIONAL AND MODAL LOGIC. Intensional Logic. Frege: Predicators (general terms) have

Today. Next week. Today (cont d) Motivation - Why Modal Logic? Introduction. Ariel Jarovsky and Eyal Altshuler 8/11/07, 15/11/07

Foundations of Artificial Intelligence

Introduction: What Is Modal Logic?

Non-normal Worlds. Daniel Bonevac. February 5, 2012

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

Many-Valued Non-Monotonic Modal Logics

Nonclassical logics (Nichtklassische Logiken)

S4LP and Local Realizability

C. Modal Propositional Logic (MPL)

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Logic. Propositional Logic: Syntax. Wffs

Propositional Logics and their Algebraic Equivalents

Propositional and Predicate Logic - IV

HENNESSY MILNER THEOREM FOR INTERPRETABILITY LOGIC. Abstract

Monodic fragments of first-order temporal logics

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

Modal Logic. Introductory Lecture. Eric Pacuit. University of Maryland, College Park ai.stanford.edu/ epacuit. January 31, 2012.

Developing Modal Tableaux and Resolution Methods via First-Order Resolution

Semantics and Pragmatics of NLP

Propositional Logic: Part II - Syntax & Proofs 0-0

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Canonical models for normal logics (Completeness via canonicity)

Propositional Logic: Syntax

Axiomatic characterization of the AGM theory of belief revision in a temporal logic

Propositional Logic: Models and Proofs

Filtrations and Basic Proof Theory Notes for Lecture 5

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Advanced Topics in LP and FP

Semantical study of intuitionistic modal logics

Lecture 11: Measuring the Complexity of Proofs

A Remark on Propositional Kripke Frames Sound for Intuitionistic Logic

First-Order Modal Logic and the Barcan Formula

Modal Logic XXI. Yanjing Wang

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

22c:145 Artificial Intelligence

MODAL SATISIFIABILITY IN A CONSTRAINT LOGIC ENVIRONMENT LYNETTE STEVENSON. Submitted in fulfillment of the requirements for the degree of

First-Order Logic (FOL)

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Logics of Rational Agency Lecture 3

Introduction to Logic

Relational dual tableaux for interval temporal logics *

Mathematical Logic Propositional Logic - Tableaux*

Logic. Propositional Logic: Syntax

Foundations of Artificial Intelligence

Lecture 7. Logic. Section1: Statement Logic.

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Characterizing the NP-PSPACE Gap in the Satisfiability Problem for Modal Logic

Fuzzy Description Logics

An Introduction to Modal Logic I

Reasoning Under Uncertainty: Introduction to Probability

Deductive Systems. Lecture - 3

Lecture Notes on Model Checking

COMP304 & COMP521: Knowledge Representation. Wiebe van der Hoek The University of Liverpool United Kingdom

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CS156: The Calculus of Computation Zohar Manna Winter 2010

Modal Probability Logic

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

CHAPTER 2. FIRST ORDER LOGIC

MAI0203 Lecture 7: Inference and Predicate Calculus

On Sequent Calculi for Intuitionistic Propositional Logic

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Introduction to Logic

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

02 Propositional Logic

Introduction: What Is Modal Logic?

Transcription:

Principles of Knowledge Representation and Reasoning Modal Logics Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg May 2 & 6, 2008 Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 1 / 36

Principles of Knowledge Representation and Reasoning May 2 & 6, 2008 Modal Logics Motivation Syntax Semantics Possible Worlds Kripke Semantics Basic notions Relational properties vs. axioms Different logics Analytic Tableaux Tableau Rules Logical Consequence Embedding in FOL Outlook & Literature Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 2 / 36

Motivation Motivation for Studying Modal Logics Notions like believing and knowing require a more general semantics than e.g. propositional logic has. Some KR formalisms can be understood as (fragments of) a propositional modal logic. Application 1: spatial representation formalism RCC8 Application 2: description logics Application 3: reasoning about time Application 4: reasoning about actions, strategies, etc. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 3 / 36

Motivation Motivation for Modal Logics Often, we want to state something where we have an embedded proposition : John believes that it is Sunday. I know that 2 10 = 1024. Reasoning with embedded propositions: John believes that if it is Sunday, then shops are closed. John believes that it is Sunday. This implies (assuming belief is closed under modus ponens): John believes that shops are closed. How to formalize this? Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 4 / 36

Syntax Syntax Propositional logic + operators & (Box & Diamond): ϕ... classical propositional formula ϕ Box ϕ Diamond and have the same operator precedence as. Some possible readings of ϕ: Necessarily ϕ (alethic) Always ϕ (temporal) ϕ should be true (deontic) Agent A believes ϕ (doxastic) Agent A knows ϕ (epistemic) different semantics for different intended readings Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 5 / 36

Semantics Truth-Functional Semantics? Could it be possible to define the meaning of ϕ truth-functionally, i.e. by referring to the truth value of ϕ only? An attempt to interpret necessity truth-functionally: If ϕ is false, then ϕ should be false. If ϕ is true, then...... ϕ should be true is the identity function... ϕ should be false ϕ is identical to falsity Note: There are only 4 different unary Boolean functions {T, F } {T, F }. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 6 / 36

Semantics Possible Worlds Semantics: The Idea In classical propositional logic, formulae are interpreted over single interpretations and are evaluated to true or false. In modal logics one considers sets of interpretations: possible worlds (physically possible, conceivable,... ). Main idea: Consider a world (interpretation) w and a set of worlds W which are possible with respect to w. A classical formula (with no modal operators) ϕ is true with respect to (w, W ) iff ϕ is true in w. ϕ is true wrt (w, W ) iff ϕ is true in all worlds in W. ϕ is true wrt (w, W ) iff ϕ is true in some world in W. Meanings of and are inter-related by: ϕ ϕ. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 7 / 36

Semantics Possible Worlds Semantics: An Example current world w a b possible worlds W a b a b a b Examples: a b is true relative to (w, W ). a is not true relative to (w, W ). (a b) is true relative to (w, W ). Question: How to evaluate modal formulae in w W? For each world, we specify a set of possible worlds. frames Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 8 / 36

Semantics Kripke Semantics Frames, Interpretations, and Worlds A (Kripke, relational) frame is a pair F = W, R where W is a non-empty set (of worlds) and R W W (the accessibility relation). For (w, v) R we write also w R v. We say that v is an R-successor of w and that v is reachable (or R-reachable) from w. A (Σ)-interpretation (or model) based on the frame F = W, R is a triple I = W, R, π, where π is a function from worlds to truth assignments: π : W (Σ {T, F }). Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 9 / 36

Semantics Kripke Semantics Semantics: Truth in a World A formula ϕ is true in world w of an interpretation I = W, R, π under the following conditions: I, w = a iff π(w)(a) = T I, w = I, w = I, w = ϕ iff I, w = ϕ I, w = ϕ ψ iff I, w = ϕ and I, w = ψ I, w = ϕ ψ iff I, w = ϕ or I, w = ψ I, w = ϕ ψ iff if I, w = ϕ then I, w = ψ I, w = ϕ ψ iff I, w = ϕ if and only if I, w = ψ I, w = ϕ iff I, u = ϕ for all u s.t. wru I, w = ϕ iff I, u = ϕ for at least one u s.t. wru Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 10 / 36

Semantics Basic notions Satisfiability and Validity A formula ϕ is satisfiable in an interpretation I (or in a frame F, or in a class of frames C) if there exists a world in I (or an interpretation I based on F, or an interpretation I based on a frame contained in the class C, respectively) such that I, w = ϕ. A formula ϕ is true in an interpretation I (symbolically I = ϕ) if ϕ is true in all worlds of I. A formula ϕ is valid in a frame F or F-valid (symbolically F = ϕ) if ϕ is true in all interpretations based on F. A formula ϕ is valid in a class of frames C or C-valid (symbolically C = ϕ) if F = ϕ for all F C. K is the class of all frames named after Saul Kripke, who invented this semantics. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 11 / 36

Semantics Basic notions Validity: Some Examples 1. ϕ ϕ 2. (ϕ ϕ) 3. ϕ, if ϕ is a classical tautology 4. (ϕ ψ) ( ϕ ψ) (axiom schema K) Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 12 / 36

Semantics Basic notions Validity: Some Examples Theorem K is K-valid. (K = (ϕ ψ) ( ϕ ψ)) Proof. Let I be an interpretation and let w be a world in I. Assumption: I, w = (ϕ ψ), i.e., in all worlds u with wru, if ϕ is true then also ψ is. (Otherwise K is true in any case.) If ϕ is false in w, then ( ϕ ψ) is true and K is true in w. If ϕ is true in w, then both (ϕ ψ) and ϕ are true in w. Hence both ϕ ψ and ϕ are true in every world u accessible from w. Hence ψ is true in any such u, and therefore w = ψ. Since I and w were arbitrary, the argument goes through for any I, w, i.e., K is K-valid. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 13 / 36

Semantics Basic notions Non-validity: Example Proposition is not K-valid. Proof. A counterexample is the following interpretation: I = {w},, {w (a T )}. We have I, w = because there is no u such that wru. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 14 / 36

Semantics Basic notions Non-validity: Example Proposition ϕ ϕ is not K-valid. Proof. A counterexample is the following interpretation: We have I, w = a, but I, w = a. I = {w},, {w (a F )}. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 15 / 36

Semantics Basic notions Non-validity: Another Example Proposition ϕ ϕ is not K-valid. Proof. A counterexample is the following interpretation: with I = {u, v, w}, {(u, v), (v, w)}, π π(u) = {a T } π(v) = {a T } π(w) = {a F } This means I, u = a, but I, u = a. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 16 / 36

Semantics Relational properties vs. axioms Accessibility and Axiom Schemata Let us consider the following axiom schemata: T: ϕ ϕ (knowledge axiom) 4: ϕ ϕ (positive introspection) 5: ϕ ϕ (or ϕ ϕ: negative introspection) B: ϕ ϕ D: ϕ ϕ (or ϕ ϕ: disbelief in the negation)... and the following classes of frames, for which the accessibility relation is restricted as follows: T: reflexive (wrw for each world w) 4: transitive (wru and urv implies wrv) 5: euclidian (wru and wrv implies urv) B: symmetric (wru implies urw) D: serial (for each w there exists v with wrv) Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 17 / 36

Semantics Relational properties vs. axioms Connection between Accessibility Relations and Axiom Schemata (1) Theorem Axiom schema T (4, 5, B, D) is T- valid (4-, 5-, B-, or D-valid, respectively). Proof. For T and T:Let F be a frame from class T. Let I be an interpretation based on F and let w be an arbitrary world in I. If ϕ is not true in world w, then axiom T is true in w. If ϕ is true in w, then ϕ is true in all accessible worlds. Since the accessibility relation is reflexive, w is among the accessible worlds, i.e., ϕ is true in w. This means that also in this case T is true in w. This means, T is true in all worlds in all interpretations based on T-frames. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 18 / 36

Semantics Relational properties vs. axioms Connection between Accessibility Relations and Axiom Schemata (2) Theorem If T (4, 5, B, D) is valid in a frame F, then F is a T-Frame (4-, 5-, B-, or D-frame, respectively). Proof. For T and T: Assume that F is not a T-frame. We will construct an interpretation based on F that falsifies T. Because F is not a T-frame, there is a world w such that not wrw. Construct an interpretation I such that w = p and v = p for all v such that wrv. Now w = p and w = p, and hence w = p p. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 19 / 36

Different logics Different Modal Logics Name Property Axiom schema K (ϕ ψ) ( ϕ ψ) T reflexivity ϕ ϕ 4 transitivity ϕ ϕ 5 euclidicity ϕ ϕ B symmetry ϕ ϕ D seriality ϕ ϕ Some basic modal logics: K KT 4 = S4 KT 5 = S5. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 20 / 36

Different logics Different Modal Logics logics = K T 4 5 B D alethic necessarily possibly Y Y Y Y Y Y epistemic known possible Y Y Y Y Y Y doxastic believed possible Y N Y Y N Y deontic obligatory permitted Y N Y? Y? N Y temporal always in the future sometimes Y Y/N Y N N N/Y Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 21 / 36

Analytic Tableaux Proof Methods How can we show that a formula is C-valid? In order to show that a formula is not C-valid, one can construct a counterexample (= an interpretation that falsifies it). When trying out all ways of generating a counterexample without success, this counts as a proof of validity. Method of (analytic/semantic) tableaux Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 22 / 36

Analytic Tableaux Tableau Method A tableau is a tree with nodes marked as follows: w = ϕ, w = ϕ, and wrv. A branch that contains nodes marked with w = ϕ and w = ϕ is closed. All other branches are open. If all branches are closed, the tableau is called closed. A tableau is constructed by using the tableau rules. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 23 / 36

Analytic Tableaux Tableau Rules Tableau Rules for the Propositional Logic w = ϕ ψ w = ϕ w = ψ w = ϕ ψ w = ϕ w = ψ w = ϕ w = ϕ w = ϕ ψ w = ϕ w = ψ w = ϕ ψ w = ϕ w = ψ w = ϕ ψ w = ϕ w = ψ w = ϕ ψ w = ϕ w = ψ w = ϕ w = ϕ Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 24 / 36

Analytic Tableaux Tableau Rules Additional Tableau Rules for the Modal Logic K w = ϕ v = ϕ if wrv is on the branch already w = ϕ wrv v = ϕ for new v w = ϕ wrv v = ϕ for new v w = ϕ v = ϕ if wrv is on the branch already Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 25 / 36

Analytic Tableaux Tableau Rules Properties of K Tableaux Proposition If a K-tableau is closed, the truth condition at the root cannot be satisfied. Theorem (Soundness) If a K-tableau with root w = ϕ is closed, then ϕ is K-valid. Theorem (Completeness) If ϕ is K-valid, then there is a closed tableau with root w = ϕ. Proposition (Termination) There are strategies for constructing K-tableaux that always terminate after a finite number of steps, and result in a closed tableau whenever one exists. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 26 / 36

Analytic Tableaux Tableau Rules Tableau Rules for Other Modal Logics Proofs within more restricted classes of frames allow the use of further tableau rules. For reflexive (T) frames we may extend any branch with wrw. For transitive (4) frames we have the following additional rule: If wrv and vru are in a branch, wru may be added to the branch. For serial (D) frames we have the following rule: If there is w =... or w =... on a branch, then add wrv for a new world v. Similar rules for other properties... Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 27 / 36

Analytic Tableaux Logical Consequence Testing Logical Consequence with Tableaux Let Θ be a set of formulas. When does a formula ϕ follow from Θ: Θ = X ϕ? Test whether in all interpretations on X-frames in which Θ is true, also ϕ is true. Wouldn t there be a deduction theorem we could use? Example: a = K a holds, but a a is not K-valid. There is no deduction theorem as in the propositional logic, and logical consequence cannot be directly reduced to validity! Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 28 / 36

Analytic Tableaux Logical Consequence Tableaux and Logical Implication For testing logical consequence, we can use the following tableau rule: If w is a world on a branch and ψ Θ, then we can add w = ψ to our branch. Soundness is obvious. Completeness is non-trivial. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 29 / 36

Embedding in FOL Connection between propositional modal logic and FOL? There are similarities between the predicate logic and propositional modal logics: 1. vs. 2. vs. 3. the possible worlds vs. the objects of the universe In fact, we can show for many propositional modal logics that they can be embedded in the predicate logic. Modal logics can be understood as a sublanguage of FOL. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 30 / 36

Embedding in FOL Embedding Modal Logics in the Predicate Logic (1) 1. τ(p, x) = p(x) for propositional variables p 2. τ( φ, x) = τ(φ, x) 3. τ(φ ψ, x) = τ(φ, x) τ(ψ, x) 4. τ(φ ψ, x) = τ(φ, x) τ(ψ, x) 5. τ( φ, x) = y(r(x, y) τ(φ, y)) for some new y 6. τ( φ, x) = y(r(x, y) τ(φ, y)) for some new y Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 31 / 36

Embedding in FOL Embedding Modal Logics in the Predicate Logic (2) Theorem φ is K-valid if and only if x τ(φ, x) is valid in the predicate logic. Theorem φ is T-valid if and only if in the predicate logic the logical consequence { xr(x, x)} = xτ(φ, x) holds. Example p (p q) q is K-valid, because x( x (R(x, x ) p(x )) x (R(x, x ) (p(x ) q(x ))) x (R(x, x ) q(x ))) is valid in the predicate logic. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 32 / 36

Outlook & Literature Outlook We only looked at some basic propositional modal logics. There are also: modal first order logics (with quantification and and predicates) multi-modal logics: more than one modality, e.g. knowledge/belief operators for several agents temporal and dynamic logics (modalities that refer to time or programs, respectively) Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 33 / 36

Outlook & Literature Outlook Did we really do something new? Couldn t we have done everything in propositional modal logic in FOL already? Yes but now we know much more about the (restricted) system and have decidable problems! Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 34 / 36

Outlook & Literature Literature I Anil Nerode. Some lectures on modal logic. In F. L. Bauer, editor, Logic, Algebra, and Computation, volume 79 of NATO ASI Series on Computer and System Sciences, pages 281 334. Springer-Verlag, Berlin, Heidelberg, New York, 1991. Melvin Fitting. Basic Modal Logic. In D. M. Gabbay and C. J. Hogger and J. A. Robinson, eds., Handbook of Logic in Artificial Intelligence and Logic Programming Vol. 1: Logical Foundations, Oxford University Press, Oxford, UK, 1993. M. Fitting. Proof Methods for Modal and Intuitionistic Logic. Reidel, 1983. Robert Goldblatt. Logics of Time and Computation. Stanford University, 1992. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 35 / 36

Outlook & Literature Literature II B. F. Chellas. Modal Logic: An Introduction. Cambridge University, 1980. Nebel, Helmert, Wölfl (Uni Freiburg) KRR May 2 & 6, 2008 36 / 36