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

Similar documents
Modal logics: an introduction

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

Model Theory of Modal Logic Lecture 5. Valentin Goranko Technical University of Denmark

Notes on Modal Logic

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

MODEL THEORY OF MODAL LOGIC

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

Notes on Modal Logic

Principles of Knowledge Representation and Reasoning

Mathematical Logics Modal Logic: Introduction*

Existential definability of modal frame classes

An Introduction to Modal Logic III

Modal logics and their semantics

Final Exam (100 points)

T Reactive Systems: Temporal Logic LTL

ALGORITHMIC CORRESPONDENCE AND COMPLETENESS IN MODAL LOGIC. I. THE CORE ALGORITHM SQEMA

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

An Invitation to Modal Logic: Lecture 1

Model Theory of Modal Logic Lecture 4. Valentin Goranko Technical University of Denmark

C. Modal Propositional Logic (MPL)

Abstract model theory for extensions of modal logic

An Introduction to Modal Logic I

Global vs. Local in Basic Modal Logic

A generalization of modal definability

First-Order Modal Logic and the Barcan Formula

Technical Modal Logic

Timo Latvala. February 4, 2004

Neighborhood Semantics for Modal Logic Lecture 3

Propositional and Predicate Logic - VII

Propositional Logic Truth-functionality Definitions Soundness Completeness Inferences. Modal Logic. Daniel Bonevac.

Tecniche di Verifica. Introduction to Propositional Logic

Modal Logic XVI. Yanjing Wang

Monodic fragments of first-order temporal logics

Neighborhood Semantics for Modal Logic Lecture 5

CS206 Lecture 21. Modal Logic. Plan for Lecture 21. Possible World Semantics

Propositional Logic Language

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations

Logic: Propositional Logic (Part I)

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

Lecture 7. Logic. Section1: Statement Logic.

A Proof of Kamp s theorem

A Note on Graded Modal Logic

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Nested Epistemic Logic Programs

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms

COMBINING MODAL LOGICS

Logics above S4 and the Lebesgue measure algebra

A Propositional Dynamic Logic for Instantial Neighborhood Semantics

Combining Propositional Dynamic Logic with Formal Concept Analysis

Algebraizing Hybrid Logic. Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation

General methods in proof theory for modal logic - Lecture 1

Boxes and Diamonds. An Open Introduction to Modal Logic

Nonclassical logics (Nichtklassische Logiken)

Systems of modal logic

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège

Fuzzy Description Logics

Flat Coalgebraic Fixed Point Logics

Relational Reasoning in Natural Language

TR : Public and Private Communication Are Different: Results on Relative Expressivity

Normal Forms for Priority Graphs

Propositional Logic: Syntax

Tableau-based decision procedures for the logics of subinterval structures over dense orderings

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

From Frame Properties to Hypersequent Rules in Modal Logics

Algebraic Canonicity in Non-Classical Logics

03 Review of First-Order Logic

Goldblatt-Thomason-style Theorems for Graded Modal Language

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

From Syllogism to Common Sense

6 Coalgebraic modalities via predicate liftings

Semantical study of intuitionistic modal logics

Formale Systeme II: Theorie

Relations to first order logic

Comp487/587 - Boolean Formulas

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

A PROOF OF KAMP S THEOREM

Some Exponential Lower Bounds on Formula-size in Modal Logic

Local variations on a loose theme: modal logic and decidability

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

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

Adding Modal Operators to the Action Language A

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic

Modal Dependence Logic

Monotonic Modal Logics

Ultraproducts of Admissible Models for Quantified Modal Logic

A Resolution Method for Modal Logic S5

Survey on IF Modal Logic

Completeness Results for Memory Logics

MONADIC FRAGMENTS OF INTUITIONISTIC CONTROL LOGIC

Generalizing the Goldblatt-Thomason Theorem and Modal Definability

A modal perspective on monadic second-order alternation hierarchies

Bisimulation for Neighbourhood Structures

Formalizing knowledge-how

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

Abstract In this paper, we introduce the logic of a control action S4F and the logic of a continuous control action S4C on the state space of a dynami

DIPLOMAMUNKA. William J. Brown Logic and Theory of Science

Hybrid Logic Dependency Semantics

cse541 LOGIC FOR COMPUTER SCIENCE

Transcription:

Model Theory of Modal Logic Lecture 1: A brief introduction to modal logic Valentin Goranko Technical University of Denmark Third Indian School on Logic and its Applications Hyderabad, 25 January, 2010

Recommended: Some course readings 1. Valentin Goranko and Martin Otto: Model Theory of Modal Logic, Chapter in: Handbook of Modal Logic, P. Blackburn, J. van Benthem, F. Wolter (eds.), Kluwer, 2007, pp. 249-329. 2. Patrick Blackburn, Maarten de Rijke, and Yde Venema: Modal Logic, Cambridge University Press, 2002. Supplementary: 3. Valentin Goranko and Dimiter Vakarelov: Elementary Canonical Formulae: Extending Sahlqvist Theorem, Annals of Pure and Applied Logics, 2006, vol. 141, 1-2, pp. 180-217. 4. Willem Conradie, Valentin Goranko and Dimiter Vakarelov: Algorithmic correspondence and completeness in modal logic. I. The core algorithm SQEMA, Logical Methods in Computer Science, vol. 2 (1:5) 2006, pp.1-26.

Modal logic: some historical remarks Aristotle: the Sea-battle tomorrow argument. Necessary truths. Future truths. Medieval (modal) logic: mostly about theological issues. Leibniz: A is necessarily true if it is true in all possible worlds. C.I. Lewis: problems with the classical ( material ) implication: Irrelevance/non-causality: If the Sun is hot, then 2+2=4. Ex falsum quodlibet: If 2+2=5 then the Moon is made of cheese. Monotonicity: If I put sugar in my tea, then it will taste good. If I put sugar and I put petrol in my tea then it will taste good. Lewis proposal: to introduce a strong implication A B := (A B), where X means X is necessarily true.

The emergence of modern modal logic Until the late 1950s: a collection of syntactic theories. The beginning of modern modal logic: in early 1960s with the introduction of the relational semantics by Saul Kripke. The philosophical idea behind the Kripke semantics is Leibniz definition of necessary truth. Vigorous development of formal modal logic since the 1960s. A wide variety of modal systems, with different interpretations of the modal operators emerge. Gradually, modal logic changes focus and becomes increasingly popular as a versatile, suitably expressive, and computationally well-behaved framework for logical specification and reasoning in various areas of CS and AI.

Modes of truth. Variety of modal reasoning and logics. Necessary and possible truths. Alletic logics. Truths over time. Temporal reasoning. Temporal logics. Reasoning about spatial relations. Spatial logics. Reasoning about ontologies. Description logics. Reasoning about knowledge. Epistemic logics. Reasoning about beliefs. Doxastic logics. Reasoning about obligations and permissions. Deontic logics. Reasoning about program executions. Logics of programs. Specification of transition systems. Logics of computations. Reasoning about many agents and their knowledge, beliefs, goals, actions, strategies, etc. Logics of multiagent systems.

The basic propositional modal logic ML: syntax Language of ML: logical connectives,,, and a unary modal operator, and a set of atomic propositions AP = {p 0, p 1,...}. Formulae: ϕ = p ϕ ϕ ϕ ϕ Definable propositional connectives: := ; ϕ ψ := ( ϕ ψ); ϕ ψ := (ϕ ψ); ϕ ψ := (ϕ ψ) (ψ ϕ). The dual operator of : ϕ = ϕ.

Meanings of the modal operators In aletic logic: ϕ: ϕ is necessarily true ; ϕ: ϕ is possibly true ; In deontic logic: ϕ: ϕ is obligatory ; ϕ: ϕ is permitted ; In logic of beliefs: ϕ: the agent believes ϕ ; ϕ: the agent does not disbelieve ϕ ; In logic of knowledge: ϕ: the agent knows that ϕ ; ϕ: ϕ is consistent with the agent s knowledge ; In temporal logic: ϕ: ϕ will always be true, ϕ: ϕ will become true sometime in the future, In logic of (non-deterministic) programs: ϕ: ϕ will be true after every execution of the program, ϕ: ϕ will be true after some execution of the program. In logic of topological spaces: ϕ is true at w iff w is in the interior of (the extension of) ϕ ; ϕ is true at w iff w is in the closure of (the extension of) ϕ.

Some important modal formulae T: p p; D: B: 4: 5: K: p p; p p; p p; p p; (p q) ( p q); Exercise: think which of these formulae should be accepted as valid principles for each of the various meanings of the modal operators.

Semantic structures for modal logic: Kripke frames Kripke frame: a pair F = (W, R), where: W = dom(f) is a non-empty set of possible worlds, R W 2 is an accessibility relation between possible worlds. Thus, a Kripke frame is a directed graph, possibly with loops. Depending on the context, the elements of W, are also called states, points, etc. We will denote R(w) := {u W Rwu}. A pointed frame is a pair (F, w) where w dom(f).

Kripke frame: example w 2 w 3 w 1 w 6 w 4 w 5

Kripke structures A Kripke structure (Kripke model) over a Kripke frame F = W, R is a pair M = F, V where V : AP P(W ) is a valuation, assigning to every atomic proposition p the set of states in W where p is declared true. The set W is the domain of M, denoted dom(m). We often specify Kripke structures directly: M = W, R, V Sometimes, instead of using valuation, a Kripke structure is specified by a labelling function L : W P(AP), where L(w) comprises the atomic propositions true at the possible world w. A pointed Kripke structure is a pair (M, w) where w dom(m).

Kripke structure: example w 2 {p,q} w 3 {p} w 1 {q} w 6 {p,q} w 4 {q} w 5 {} The valuation: V (p) = {w 2, w 3, w 6 }, V (q) = {w 1, w 2, w 4, w 6 }.

Kripke semantics of modal logic Truth of a formula ϕ at a possible world u in a Kripke model M = (W, R, V ), denoted M, u = ϕ, is defined as follows: M, u = p iff u V (p); M, u = ; M, u = ϕ iff M, u = ϕ; M, u = ϕ 1 ϕ 2 iff M, u = ϕ 1 and M, u = ϕ 2 ; M, u = ϕ iff M, w = ϕ for some w W such that Ruw. Respectively, M, u = ϕ if M, w = ϕ for every w W such that Ruw. An important feature of modal logic: the notion of truth is local, i.e., at a state of a model. However, modal formulae cannot refer explicitly to possible worlds.

Truth of modal formulae: exercises w 1 {q} w 2 {p,q} w 4 {q} M w 3 {p} w 5 {} w 6 {p,q} Check the following: M, w 1? = p. Yes. M, w 1? = q q. No. M, w 1? = q. Yes.? M, w 2 = (q q). Yes.? M, w 2 = (p q). No. M, w 3? = ( q p). Yes.

Extension of a formula The extension of a formula ϕ in a Kripke model M = (W, R, V ) is the set of states in M satisfying the formula: ϕ M := {w M, w = ϕ}. The extension of a formula ϕ M can be computed inductively on the construction of ϕ: M = ; p M = V (p) ϕ M = W \ ϕ M ; ϕ 1 ϕ 2 M = ϕ 1 M ϕ 2 M ; ϕ M = {w R(w) ϕ M }. The respective clause for : ϕ M = {w R(w) ϕ M }.

Model checking of modal formulae Model checking is a procedure checking whether a given model satisfies given property, usually specified in some logical language. Model checking may, or may not, be algorithmically decidable, depending on the logical formalism and the class of models under consideration. The main model checking problems for modal logic are: 1. Local model checking: given a Kripke model M, a state u M and a modal formula ϕ, determine whether M, u = ϕ; 2. Global model checking: given a Kripke model M and a modal formula ϕ, determine the set ϕ M. We are also interested in model satisfiability checking: given a Kripke model M and a formula ϕ, determine whether ϕ M.

Global model checking of modal formulae: exercises M Compute the following: w 2 {p,q} w 3 {p} p M = {w 1, w 2, w 6 }. p p M = {w 2, w 6 }. w 1 {q} w 6 {p,q} (p p) M = {w 1, w 2, w 5 }. w 4 {q} w 5 {} q (p p) M = {w 1, w 2, w 4, w 5, w 6 }. ( p q) M =?

Global model checking of modal formulae: algorithm Global model checking of modal formulae: given a (finite) Kripke model M and a formula θ, compute the extensions ϕ M for all subformulae ϕ of θ recursively, by labelling all possible worlds with those subformulae of θ that are true at those worlds, as follows: The labelling of atomic propositions is given by the valuation. The propositional cases are routine. ϕ M consists of all states which have a successor in ϕ M, i.e., labelled by ϕ. Question: What is the worst case complexity of global model checking of a modal formula ϕ is a given finite Kripke model M in terms of the length of the formula ϕ? in terms of the size of the model M?

Propositional multi-modal logic Modal language: ML(τ, AP), where: τ is a set of modalities α τ. Each α τ labels a modal diamond operator α. AP is a (countable) set of propositional variables or atomic propositions. The formulae of ML(τ, AP) are recursively defined as follows: where p AP and α τ. φ := p φ 1 φ 2 α φ, Constant formula: formula not containing atomic propositions. The logical constant and connectives,,, are defined as standard abbreviations. Box operator dual to α : [α], defined by [α] φ := α φ.

Multi-modal Kripke frames and structures Let ML(τ, AP) be a multi-modal language. A (Kripke) τ-frame is a relational τ-structure where: W ; F = W, {R α } α τ R α W W for each α τ. Kripke τ-structure: M = F, V = W, {R α } α τ, V.

Modal operators in Kripke frames Given a τ-frame F = W, {R α } α τ, every R α defines two unary operators, R α and its dual [R α ], on P(W ) as follows: and R α (X ) := {w W wr α u for some u X }, [R α ](X ) := R α (X ) = {w W wr α u for all u X }, where A := W \ A (the complement of A in W ).

Extending valuations to all modal formulae In any Kripke structure M = F, V the valuation V can be extended over the set of all formulae, so that V (φ) = {w M M, w = φ}. The extension of V is defined recursively as follows: V ( ) := V (φ 1 φ 2 ) := V (φ 1 ) V (φ 2 ) V ( α φ) := R α (V (φ)) Thus, for every formulae ϕ, V (ϕ) = φ M. Exercise: : Determine V ( φ), V (φ 1 φ 2 ), V (φ 1 φ 2 ), and V ([α] φ) Remark: In algebraic terms the extended valuation is the unique homomorphism from the free τ-algebra of formulae to the modal algebra associated with the model M, extending V.

Validity and satisfiability of modal formulae A τ-formula φ is: (i) true at the state w of the τ-structure M = F, V, denoted M, w = φ, if w V (φ). We also say that φ is true in the pointed structure (M, w). A formula, true at a state of some τ-structure is satisfiable. (ii) valid in M, denoted M = φ, if M, w = φ for every w dom(f), i.e., if V (φ) = dom(f). (iii) (locally) valid at the state w of F, denoted F, w = φ, if M, w = φ for every τ-structure M over F. Then, we also say that φ is valid in the pointed frame (F, w). (iv) valid in F, denoted F = φ, if F, w = φ for every w dom(f). Equivalently, F = φ if M = φ for every τ-structure M over F. (v) valid, denoted = φ, if F = φ for every τ-frame F.

Relational languages associated with a modal language With the modal language ML(τ, AP), we associate the following purely relational signatures: (i) the relational version of τ, containing = and a family of binary relational symbols R α for α τ, again denoted by τ. (ii) the expansion τ AP of the relational signatures τ by unary predicates {P 0, P 1,...} associated with the atomic propositions p 0, p 1,... AP. FO(τ) and FO(τ AP ) are the first-order languages with signatures τ and τ AP, respectively. We regard τ-frames as τ-structures, and Kripke structures over τ-frames as τ AP -structures, with P i interpreted as V (p i ). Wherever necessary, we will highlight the distinction by writing = FO to explicitly refer to first-order semantics.

The standard translation of modal logic into FOL Let VAR = {x 0, x 1,...} be the set of individual variables of FO(τ AP ). The formulae of ML(τ) are translated into FO(τ AP ) by means of the following standard translation, parameterised with the variables from VAR: ST(p i ; x) := P i x for every p i AP. ST( ; x) :=. ST(φ 1 φ 2 ; x) := ST(φ 1 ; x) ST(φ 2 ; x). ST( α φ; x) := y(xr α y ST(φ; y)), where y is the first variable in VAR \ {x}. Exercise: : show that: ST( φ; x) ST(φ; x), ST(φ 1 φ 2 ; x) ST(φ 1 ; x) ST(φ 2 ; x), ST(φ 1 φ 2 ; x) ST(φ 1 ; x) ST(φ 2 ; x), ST([α] φ; x) := y(xr α y ST(φ; y)).

The standard translation of modal logic into FO 2 Note that only the variable x is free in ST(φ; x). Moreover, for the standard translation of any modal formula it suffices to re-use, alternatively, only two variables, x and y. In particular: ST( α φ; y) := x(yr α x ST(φ; x)). This yields a translation of modal logic into the two-variable fragment FO 2 of first-order logic. Remark: the standard translation of any modal formula falls into the guarded fragment of first-order logic.

Standard translation in basic modal logic: some examples L 0 : the FO language with =, a binary predicate R, and individual variables VAR = {x 0, x 1,...}. L 1 : the FO language extending L 0 with a set of unary predicates {P 0, P 1,...}, corresponding to the atomic propositions p 0, p 1,... Some examples of standard translations of modal formulae into L 1 : 1. ST( p p; x) = y(rxy Py) Px. 2. ST( p p; x) = y(rxy Py) z(rxz u(rzu Pu)). 3. ST( p; x) = y(rxy z(ryz u(rzu Pu))) y(rxy x(ryx y(rxy Py))). 4. ST( p p) = y(rxy z(ryz Pz)) u(rxu v(ruv Pv)) y(rxy x(ryx Px)) y(rxy x(ryx Px)). 5. ST( p ( q p); x) =?

The semantic effect of the standard translation in Kripke structures Proposition For every pointed Kripke structure (M, w) and φ ML: M, w = φ iff M, w = FO ST(φ; x)[x := w]. Consequently, for every Kripke structure M: M = φ iff M = FO xst(φ; x).

The semantic effect of the standard translation in Kripke frames Proposition For every pointed Kripke frame (F, w) and φ ML with atomic propositions among p 0,..., p n : F, w = φ iff F, w = P 0... P n ST(φ; x)[x := w]. Consequently, for every Kripke frame F: F = φ iff F = P 0... P n xst(φ; x). Thus: in terms of truth and validity in Kripke structures, ML is a fragment of the first-order language L 1, while in terms of validity in Kripke frames, it is a fragment of universal monadic second order logic over L 0.