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

Similar documents
Team Semantics and Recursive Enumerability

One-dimensional Fragment of First-order Logic

A modal perspective on monadic second-order alternation hierarchies

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

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

Lecture 2: Syntax. January 24, 2018

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

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

Abstract model theory for extensions of modal logic

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Foundations of Mathematics

A Tableau Calculus for Minimal Modal Model Generation

A generalization of modal definability

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Introduction to Metalogic

Tecniche di Verifica. Introduction to Propositional Logic

Propositional and Predicate Logic - VII

CS632 Notes on Relational Query Languages I

Herbrand Theorem, Equality, and Compactness

On the Expressive Power of Logics on Finite Models

Logics with Counting. Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK

On the Complexity of the Reflected Logic of Proofs

TR : Binding Modalities

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

From Constructibility and Absoluteness to Computability and Domain Independence

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

A Note on Graded Modal Logic

Finite and Algorithmic Model Theory II: Automata-Based Methods

Qualifying Exam Logic August 2005

Automata, Logic and Games: Theory and Application

Pattern Logics and Auxiliary Relations

On Definability in Multimodal Logic

Modal logics and their semantics

Infinite and Finite Model Theory Part II

Modal Dependence Logic

The Logic of Proofs, Semantically

Algorithmic Model Theory SS 2016

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

DEFINABILITY OF SECOND ORDER GENERALIZED QUANTIFIERS JUHA KONTINEN

Automata Theory and Formal Grammars: Lecture 1

Informal Statement Calculus

Predicate Calculus - Syntax

The predicate calculus is complete

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

Equational Logic. Chapter Syntax Terms and Term Algebras

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

The logic of subset spaces, topologic and the local difference modality K

First-Order Logic. Chapter Overview Syntax

COMP 409: Logic Homework 5

arxiv:math/ v1 [math.lo] 5 Mar 2007

Efficient Reasoning about Data Trees via Integer Linear Programming

Independence-Friendly Cylindric Set Algebras

Friendly Logics, Fall 2015, Lecture Notes 5

Intuitionistic Hybrid Logic

On the Satisfiability of Two-Variable Logic over Data Words

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

CSE 1400 Applied Discrete Mathematics Definitions

Combining Propositional Dynamic Logic with Formal Concept Analysis

Fuzzy Description Logics

On the bisimulation invariant fragment of monadic Σ 1 in the finite

First Order Logic (FOL) 1 znj/dm2017

Expressive number restrictions in Description Logics

6 Coalgebraic modalities via predicate liftings

Ordering Constraints over Feature Trees

Decomposing Modal Logic

ON DEFINABILITY IN MULTIMODAL LOGIC

Marketing Impact on Diffusion in Social Networks

Logic Part I: Classical Logic and Its Semantics

Cambridge University Press Dependence Logic. A New Approach to Independence Friendly Logic

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

Chapter 4: Computation tree logic

Lloyd-Topor Completion and General Stable Models

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

About the relationship between formal logic and complexity classes

Syntactic Characterisations in Model Theory

Nested Epistemic Logic Programs

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents

Comp487/587 - Boolean Formulas

SKETCHY NOTES FOR WEEKS 7 AND 8

Chapter 6: Computation Tree Logic

7 RC Simulates RA. Lemma: For every RA expression E(A 1... A k ) there exists a DRC formula F with F V (F ) = {A 1,..., A k } and

We begin with a standard definition from model theory.

Introduction to Logic in Computer Science: Autumn 2006

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

VC-DENSITY FOR TREES

Bisimulation for conditional modalities

Exercises 1 - Solutions

03 Review of First-Order Logic

Introduction to Turing Machines. Reading: Chapters 8 & 9

MODEL THEORY OF MODAL LOGIC

Syntax and Semantics of Propositional Linear Temporal Logic

A Logical Formulation of the Granular Data Model

Lecture 3: MSO to Regular Languages

CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS

FOUNDATIONS OF MATHEMATICS CHAPTER 1: FOUNDATIONS OF GEOMETRY

Partial Collapses of the Σ 1 Complexity Hierarchy in Models for Fragments of Bounded Arithmetic

TWO-VARIABLE LOGIC WITH COUNTING AND A LINEAR ORDER

Classical First-Order Logic

Transcription:

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates the role of arity of second-order quantifiers in existential second-order logic, also known as Σ 1 1. We identify fragments L of Σ 1 1 where second-order quantification of relations of arity k > 1 is nontrivially) vacuous in the sense that each formula of L can be translated to a formula of a fragment of) monadic Σ 1 1. Let polyadic Boolean modal logic with identity PBML = ) be the logic obtained by extending standard polyadic multimodal logic with built-in identity modalities and with constructors that allow for the Boolean combination of accessibility relations. Let Σ 1 1 PBML= ) be the extension of PBML = with existential prenex quantification of accessibility relations and proposition symbols. The principal result of the article is that Σ 1 1 PBML= ) translates into monadic Σ 1 1. As a corollary, we obtain a variety of decidability results for multimodal logic. The translation can also be seen as a step towards establishing whether every property of finite directed graphs expressible in Σ 1 1 FO2 ) is also expressible in monadic Σ 1 1. This question was left open by Grädel and Rosen 1999). 1 Introduction Properties of existential second-order logic have been widely studied in finite model theory. Existential second-order logic captures the complexity class NP, and there exists a large body of results concerning the expressive power 1

of different fragments of the logic see e.g. [1, 5, 13, 15, 19]). However, there are several issues related to the expressivity of Σ 1 1 that are not understood well. Most notably, Fagin s spectrum arity hierarchy conjecture see [7, 8]) remains a longstanding difficult open problem in finite model theory. Fagin s question is whether there exist sets of positive integers spectra) definable by first-order sentences 1 with predicates of maximum arity k + 1, but not definable by sentences with predicates of arity k. In this article we investigate arity reduction of formulae of existential second-order logic: we identify fragments L of Σ 1 1 where second-order quantification of relations of arity k > 1 is nontrivially) vacuous in the sense that each formula of L can be translated into a formula of a fragment of) monadic Σ 1 1, also known as MSO. Our work is directly related to a novel perspective on modal correspondence theory, and our investigations lead to a variety of decidability results concerning multimodal logics over classes of frames with built-in relations. Our work also aims to provide a stepping stone towards a solution of an open problem of Grädel and Rosen posed in [14]. The objective of modal correspondence theory see [3]) is to classify formulae of modal logic according to whether they define elementary classes of Kripke frames. 2 On the level of frames, modal logic can be considered a fragment of monadic Π 1 1, also known as MSO, and therefore correspondence theory studies a special fragment of MSO. When a modal formula is inspected from the point of view of Kripke frames, the proposition symbols occurring in the formula are quantified universally; it is natural to ask what happens if one also quantifies binary relation symbols occurring in the standard translation of) a modal formula. This question is investigated in [20], where the focus is on the expressivity of multimodal logic with universal prenex quantification of some of) the binary and unary relation symbols occurring in a formula. A question that immediately suggests itself is whether there exists any class of multimodal frames definable in this logic, let us call it Π 1 1ML), but not definable in monadic second-order logic MSO. The question can be regarded as a question of 1 The spectrum of a sentence ϕ is the set of positive integers n such that ϕ has a model of the size n. 2 It is well known that if a class of Kripke frames is definable by a modal formula, then the class is definable by a set of FO formulae iff it is definable by a single FO formula. See [11] for example. Therefore it makes no difference here whether the term elementary is taken to mean definability by a single first-order formula or definability by a set of first-order formulae. 2

modal correspondence theory. Here, however, the correspondence language is MSO rather than FO. For further investigations that involve quantification of binary relations in modal logic, see for example [4, 21]. In the current article we investigate two multimodal logics with existential second-order prenex quantification of accessibility relations and proposition symbols, Σ 1 1PBML = ) and Σ 1 1ML). The logic Σ 1 1ML) is the extension of ordinary multimodal logic with existential second-order prenex quantification of binary accessibility relations and proposition symbols. PBML = is the logic obtained by extending standard polyadic 3 multimodal logic by built-in identity modalities and by constructors that allow for the Boolean combination of accessibility relations see Subsection 2.1). Obviously Σ 1 1PBML = ) is the extension of PBML = with existential second-order prenex quantification of accessibility relations and proposition symbols. We warm up by showing that Σ 1 1ML) translates into monadic Σ 1 1MLE), which is the extension of multimodal logic with the global modality and existential second-order prenex quantification of only proposition symbols. The method of proof is based on the notion of a largest filtration see [3] for the definition). We then push the method and show that Σ 1 1PBML = ) translates into monadic Σ 1 1. Note that both of these results immediately imply that Π 1 1ML) translates into MSO, and therefore show that MSO would be a somewhat dull correspondence language for correspondence theory of Π 1 1ML). The logic PBML = contains a wide variety of logics used in different applications of modal logic. It could be argued that {,,,,,, E, D} is more or less the core collection of operations on binary relations used in extensions of modal logic defined for the purposes of applications. Here,,,,, denote the complement, union, intersection, composition, transitive reflexive closure and converse operations, respectively. The symbols E and D denote the global modality and difference modality. Logics using some of these core operations include for example propositional dynamic logic PDL [9, 16] and its extensions, Boolean modal logic [10, 23], description logics [2, 18, 25], modal logic with the global modality [12] and modal logic with the difference modality [28]. The operations,,, E, D are part of PBML =. One of our principal motivations for studying PBML = is that the logic subsumes a large number of typical extensions of modal logic. Our translation from 3 Modal logics with accessibility relations of arities greater than two are called polyadic. See Section 2.1 for the related definitions. 3

Σ 1 1PBML = ) into MSO gives as a direct corollary a wide range of decidability results for extensions of multimodal logic over various classes of Kripke frames with built-in relations; see Theorem 4.10 below. In addition to applied modal logics, the investigations in this article are directly related to an interesting open problem concerning two-variable logics. Grädel and Rosen ask in [14] the question whether there exists any class of finite directed graphs that is definable in Σ 1 1FO 2 ) but not in MSO. Let BML = denote ordinary Boolean modal logic with a built-in identity relation, i.e., BML = is the restriction of PBML = to binary relations. Lutz, Sattler and Wolter show in the article [24] that BML = extended with the converse operator is expressively complete for FO 2. Therefore, in order to prove that Σ 1 1FO 2 ) MSO, one would have to modify our translation from Σ 1 1BML = ) into MSO such that it takes into account the possibility of using the converse operation. We have succeeded neither in this nor in identifying a Σ 1 1FO 2 ) definable class of directed graphs that is not definable in MSO. However, we find modal logic a promising framework for working on the problem. This article is the journal version of the conference article [17]. 2 Preliminary definitions In this section we discuss technical notions that occupy a central role in the rest of the article. 2.1 Syntax and semantics of Σ 1 1PBML = ) The semantics of PBML = defined in detail below is obtained by combining the semantics of Boolean modal logic with the standard generalization of Kripke semantics to polyadic modal contexts. Let V be a vocabulary containing relation symbols only. A V -model, or a model of the vocabulary V, is an ordinary first-order model see [6]) that gives an interpretation to exactly all the symbols in V. We use this notion of a model in both predicate logic and modal logic. If M is a V -model and w a point in the domain of M, then the pair M, w) is a pointed model of the vocabulary V. Below we shall exclusively consider vocabularies V containing relation symbols only. We let V 1 denote the subset of V containing exactly all the unary relation symbols in V, and we let V h be the subset of V containing 4

exactly all the relation symbols in V of higher arities, i.e., arities greater or equal to two. We define the set MPV ) of modal parameters over V to be the smallest set S satisfying the following conditions. 1. For each k N 2, let id k be a symbol. We assume that none of the symbols id k is in V. We have id k S for all k N 2. The symbol id k is called the k-ary identity symbol. 2. If R V h, then R S. 3. If M S, then M S. 4. If M S and N S, then M N ) S. Each modal parameter M is associated with an arity ArM) defined as follows. 1. If M = id k, then ArM) = k. 2. If M = R V h, then the ArM) is equal to the arity of R. 3. If M = N, then ArM) = ArN ). 4. If M = N 1 N 2 ) and ArN 1 ) = ArN 2 ), then ArM) = ArN 1 ). If ArN 1 ) ArN 2 ), then ArM) = 2. The set of formulae of PBML = of the vocabulary V V -formulae) is defined to be the smallest set F satisfying the following conditions. 1. If P V 1, then P F. 2. If ϕ F, then ϕ F. 3. If ϕ 1, ϕ 2 F, then ϕ 1 ϕ 2 ) F. 4. If ϕ 1,..., ϕ k F and if M MPV ) is a k + 1)-ary modal parameter, then M ϕ 1,..., ϕ k ) F. Operators M are called diamonds. The modal depth Mdϕ) of a formula ϕ is the maximum nesting depth of diamonds in ϕ, defined as follows. 1. MdP ) = 0 for P V 1. 2. Md ϕ) = Mdϕ). 5

3. Md ϕ 1 ϕ 2 ) ) = max {Mdϕ 1 ), Mdϕ 2 )} ). 4. Md M ϕ 1,..., ϕ k ) ) = 1 + max {Mdϕ 1 ),..., Mdϕ k )} ). Let M be a V -model with the domain A. The extension M M of a modal parameter M over M is a relation of the arity ArM) over A. The extension of R V h over M is simply the interpretation R M of the symbol R. For each k N 2, the extension id M k of the symbol id k is the set { w 1,..., w k ) A k w i = w j for all i, j {1,..., k} }. Other modal parameters are interpreted recursively such that the following conditions hold. 1. If M = N, then M M = A ArM) \ N M. 2. If M = N 1 N 2 ), then M M = N M 1 N M 2. Note that if ArN 1 ) ArN 2 ), then N 1 N 2 ) M =. The satisfaction relation for PBML = formulae of the vocabulary V is defined with respect to pointed V -models as follows. 1. If P V 1, then M, w) P w P M. 2. For other formulae, the satisfaction relation is interpreted according to the following recursive clauses. M, w) ϕ M, w) ϕ. M, w), ϕ 1 ϕ 2 ) M, w) ϕ 1 and M, w) ϕ 2. M, w) M ϕ 1,..., ϕ k ) there exist u 1,..., u k DomM) such that w, u 1,..., u k ) M M and M, u i ) ϕ i for all i {1,..., k}. For each V -model M and each formula ϕ of the vocabulary V, we let ϕ M denote the set { w DomM) M, w) ϕ }. The set ϕ M is called the extension of ϕ over M. When ϕ and are formulae of the vocabulary V, we write ϕ if M, w) ϕ M, w) 6

for all pointed V -models M, w). Let V be a vocabulary containing relation symbols only; V may be empty, and V may contain relation symbols of any finite positive arity. A formula ϕ of Σ 1 1PBML = ) of the vocabulary V V -formula) is a formula of the type S 1... S n, where the variables S i are relation symbols of any positive arity) and is a PBML = formula of the vocabulary V {S 1,..., S n }. The set {S 1,..., S n } is allowed to be empty, so PBML = is a fragment of Σ 1 1PBML = ). The sets V and {S 1,..., S n } are always assumed to be disjoint. Let M, w) be a pointed V -model. We define M, w) ϕ if there exists an expansion M = M, S M 1,..., S M n ) of the model M such that M, w). The set of non-logical symbols of a Σ 1 1PBML = ) formula S 1... S n χ of the vocabulary V is the set of relation symbols of any arity) that belong to V and also actually occur in χ. The symbols id k are not considered to be non-logical symbols. Let BML = be the fragment of PBML = where each modal parameter occurring in a formula is required to be binary. The logic ML is the fragment of BML = where the modal parameters M defining diamonds M are required to be atomic binary relation symbols that belong to the vocabulary considered. Note that the modal parameter id 2 is not considered to be part of the vocabulary. The logic MLE is the extension of ML with the global diamond E, i.e., the diamond id 2 id 2 ). Logics Σ 1 1ML) and Σ 1 1MLE) are the fragments of Σ 1 1PBML = ) defined by extending ML and MLE with existential prenex quantification of binary and unary relation symbols. Monadic Σ 1 1MLE) is the fragment of Σ 1 1MLE) where we only allow second-order quantifiers quantifying unary relation symbols. The logics Π 1 1PBML = ), Π 1 1ML) and Π 1 1MLE) are the counterparts of the logics Σ 1 1PBML = ), Σ 1 1ML) and Σ 1 1MLE), but with universal secondorder quantifiers instead of existential ones. Let V be a vocabulary containing relation symbols only. The set of formulae of the vocabulary V V -formulae) of existential second-order logic, or Σ 1 1, is the set of formulae of the type S 1...S n χ, where χ is a first-order with equality) formula of the vocabulary V ; the sets {S 1,..., S n } and V are always assumed to be disjoint, and the set of non-logical symbols of S 1...S n χ is the 7

set of relation symbols that belong to V and also actually occur in χ. Equality is not considered to be a non-logical symbol. For the semantics of Σ 1 1, see for example [22]. Monadic Σ 1 1 is the fragment of Σ 1 1 where the second-order relation variables S i are unary. Let ϕ be a formula of Σ 1 1PBML = ) or Π 1 1PBML = ) of the vocabulary V. Let x) be a V -formula of Σ 1 1 with exactly one free variable, the first-order variable x. The formulae ϕ and x) of are called V -equivalent if for all pointed V -models M, w), we have M, w) ϕ M, w x = x), where M, w = x) means that the model M satisfies the formula x) of x predicate logic when x is interpreted to be w. The formulae x) and ϕ are uniformly equivalent if they have the same set U of non-logical symbols and if the formulae are U-equivalent. 4 Two Σ 1 1PBML = ) formulae ϕ 1 and ϕ 2 of the vocabulary V are V -equivalent if they are satisfied by exactly the same pointed V -models. The formulae ϕ 1 and ϕ 2 are uniformly equivalent if they have exactly the same set U of non-logical symbols and if the formulae are U-equivalent. Two V -sentences of predicate logic are uniformly equivalent if they have exactly the same set U of non-logical symbols and if they are satisfied by exactly the same U-models. The reason we have chosen to define PBML = exactly the way defined above, is relatively simple. Firstly, BML = extended with the converse modality is expressively complete for FO 2. We do not know whether Σ 1 1FO 2 ) is contained in MSO, but we will show below that Σ 1 1BML = ) MSO by establishing that even the extension Σ 1 1PBML = ) of Σ 1 1BML = ) with polyadic modalities is indeed contained in MSO. Finally, the reason we have included the modalities id k for k 3 in the language of PBML = is mostly due to technical presentation related issues. The reader may, indeed, think that the modalities id k for k 3 are not very canonical. The modalities do, however, have some interesting features. Notice for example that we can easily eliminate the use of conjunction from PBML =. We shall not make any use of this feature below, however. We shall next establish that there is an algorithm that decides, when given a PBML = formula ϕ of any relational vocabulary V, whether there exists a pointed V -model M, w) such that M, w) = ϕ. In other words, PBML = 4 For example the formulae x = x yry, y) and S P S id 2 R P are uniformly equivalent. The set of non-logical symbols of both formulae is {R}. 8

is decidable. This result will be needed below in order to ensure that the translation of Σ 1 1PBML = ) into MSO is effective. There are several simple ways of establishing the decidability of PBML =. One of them involves fluted logic [26]. Fluted logic is a fragment of first-order logic, where the firstorder variables in atomic formulae are are always written in the same order, without ever permuting them. See [26] for the exact definition of the logic. It is easy to see that PBML = translates into fluted logic with identity) simply by using a straightforward generalization of the standard translation see [3]) of modal logic. The article [26] constructs an algorithm that decides, given any formula ϕ of fluted logic with identity) of any relational vocabulary, whether ϕ is satisfiable. Therefore PBML = is decidable. 2.2 Types In the current subsection we define the notion of a type for the logic PBML =. Let V be a finite vocabulary such that V 1. Let m be the maximum arity of the modal parameters in V h. In the case V h =, let m = 0. Let m be an integer such that 2 m and m m. Define the set S V = V h { R R V h } { id k, id k 2 k m } of at most m-ary atomic and negated atomic modal parameters over V. Let k be an integer such that 2 k m. Let S V k) be the set that contains as elements exactly the k-ary modal parameters in S V. Notice that S V k). Let T V k) denote the set whose elements are exactly the subsets T S V k) such that the following conditions are satisfied. 1. Exactly one of the modal parameters id k and id k is in the set T. 2. If R V h is k-ary, then exactly one of the modal parameters R and R is in the set T. Let f be a function with the domain T V k) that maps each T T V k) to an intersection N MPV ) of the elements of T. There may be several ways to choose the order of the members of T and bracketing when writing the modal parameter N. The order and bracketing that f chooses does not matter.) The set { ft ) T T V k) } of modal parameters is the set of k-ary access types over V. We let ATP V k) denote the set of k-ary access types over V. 9

Let M be a k-ary access type over V, and let R V h {id k } be a k-ary atomic modal parameter. We write R M if R does not occur in M. Let U V and let N be a k-ary access type over U. We say that N is consistent with M or alternatively, M is consistent with N ), if for all k-ary symbols R U h {id k }, we have R M iff R N. Let M, w) be a pointed model of the vocabulary V. We define τm,w),m 0 := P Q. P V 1, M,w) P Q V 1, M,w) Q The formula τm,w),m 0 is the type of M, w) of the modal depth 0 and up to the arity m. We choose the bracketing and ordering of conjuncts of the formulae τm,w),m 0 such that if for some pointed V -models N, v) and N, v ) the types τn,v),m 0 and τ N 0,v ),m are uniformly equivalent, then actually τn,v),m 0 = τ N 0,v ),m. In other words, if two types of pointed V -models of the modal depth 0 and up to the arity m are uniformly equivalent, then they are in fact the one and the same formula. We let TP 0 V,m denote the set containing exactly the formulae τ such that for some pointed model M, w) of the vocabulary V, the formula τ is the type of M, w) of the modal depth 0 and up to the arity m. Clearly the set TP 0 V,m is finite. Let n N and assume we have defined formulae τm,w),m n for all pointed models M, w), and assume also that TP n V,m is a finite set containing exactly all these formulae. We define τ n+1 M,w),m := τ n M,w),m { M σ 1,..., σ k ) 1 k m 1, M ATP V k + 1), σ 1,..., σ k TP n V,m, M, w) M σ 1,..., σ k ) } { M σ 1,..., σ k ) 1 k m 1, M ATP V k + 1), σ 1,..., σ k TP n V,m, M, w) M σ 1,..., σ k ) }. The formula τ n+1 M,w), m is the type of M, w) of the modal depth n + 1 and up to the arity m. Again we assume some standard ordering of the conjuncts 10

and some standard bracketing, so that if two types τ n+1 n+1 M,w), m and τn,v), m of pointed V -models M, w) and N, v) are uniformly equivalent, then the types are the same formula. We let TP n+1 V,m be the set containing exactly the formulae τ such that for some pointed model M, w) of the vocabulary V, the formula τ is the type of M, w) of the modal depth n + 1 and up to the arity m. We observe that the set TP n+1 V,m is finite. Since PBML= is decidable, there is an algorithm that constructs for each triple V, m, n) the set TP n V,m. This fact is used in the proof below establishing that Σ 1 1PBML = ) translated effectively into MSO. We list a number of properties of types that are straightforward to prove. Let M, w) be a pointed model of the vocabulary U, where U may be infinite. Assume that U 1. Let V U be a finite vocabulary and let m be as defined above, i.e., m is at least two and greater or equal to the maximum arity of the symbols in V h. Assume that V 1. Let n N. Firstly, M, w) satisfies exactly one type in TP n V,m. Also, for all τ TP n V,m and all l n, there exists exactly one type σ TP l V,m such that τ σ. Notice also that for each type τ TP n V,m, there exists some pointed V -model that satisfies τ. Let α TP n V,m and let be an arbitrary formula of the vocabulary V and of some modal depth n n. Assume that the maximum arity of the modal parameters that occur in is at most m. Now either α or α, and thus, for all points u, v α M, we have M, u) iff M, v). Finally, is V -equivalent to {α TP n V,m α }. Notice that =, where is defined to be the formula P P ) for some P V 1. 3 Σ 1 1ML) translates into monadic Σ 1 1MLE) In this subsection we show how to translate Σ 1 1ML) formulae to uniformly equivalent formulae of monadic Σ 1 1MLE). The translation is based on the notion of a largest filtration see [3] for the definition). The principal idea is to fix a fresh unary predicate P α for each subformula α of the quantifier free part of the Σ 1 1ML) formula to be translated. The translation is given in full detail below, but intuitively, the fresh predicates P α encode extensions of the formulae α, and information concerning extensions of the formulae α can be recursively recovered from the information encoded by the unary predicates P α. We begin by fixing a Σ 1 1ML) formula ϕ. We will first show how to translate ϕ to a uniformly equivalent formula ϕ x) of MSO. We will then 11

establish that that the first-order part of ϕ x) translates to a uniformly equivalent formula of MLE. Let ϕ := Q, where Q is a string of existential second-order quantifiers and a formula of ML. Let V 1 and V 2 denote the sets of unary and binary relation symbols, respectively, that occur in. Define V = V 1 V 2. Let Q 1 and Q 2 denote the sets of unary and binary relation symbols, respectively, that occur in Q. Define Q = Q 1 Q 2. Let SUB denote the set of subformulae of the formula. We fix a unary relation symbol P α for each formula α SUB. The symbols P α are assumed not to occur in ϕ. We then define a collection of auxiliary formulae needed in order to define the translated formula ϕ x). Let P, α, β γ), R ρ, S σ SUB, where P V 1, R V 2 \ Q 2 and S Q 2. We define ) P := x P P x) P x), ) α := x P α x) P α x), ) βγ) := x P βγ) x) P β x) P γ x)), ) R ρ := x P R ρ x) yrx, y) P ρ y)), ) S σ := x P S σ x) yaccess S x, y) P σ y)), where Access S x, y) := P χ y) P S χ x) ). S χ SUB Finally, we define δ := α α SUB 12

and ϕ x) := Q δ P x)), where Q is a string of existential quantifiers that quantify the predicate symbols P Q 1 and also the symbols P α such that α SUB. We then prove that M, w) ϕ implies M, w = x ϕ x). Assume that M, w) ϕ. Therefore there exists an expansion M 2 of M by interpretations of the binary and unary symbols in Q such that we have M 2, w). We define an expansion M 1 of M by interpretations of the unary symbols occurring in Q. For the symbols P Q 1, we let P M 1 = P M 2. For the symbols P α, where α SUB, we define P M 1 α = α M 2. Lemma 3.1. Let S σ SUB, where S Q 2, and let v DomM). Then M 2, v) S σ iff M 1, v x = y Access S x, y) P σ y) ). Proof. Assume M 2, v) S σ. Thus v, u) S M 2 for some point u σ M 2 = P M 1 σ. To establish that M 1, v x = y Access S x, y) P σ y) ), it therefore suffices to prove that for all S χ SUB, if u P M 1 χ, then v P M 1 S χ. Therefore assume that u P M 1 χ for some formula S χ SUB. As χ M 2 = P M 1 χ, we have u χ M 2. Since v, u) S M 2, we have M 2, v) S χ. As S χ M 2 = P M 1 S χ, we must have v P M 1 S χ, as desired. Assume then that M 1, v x = y Access S x, y) P σ y) ). Hence M 1, v u = Access x y Sx, y) for some u P M 1 σ = σ M 2. Now, by the definition of the formula Access S x, y), we observe that v P M 1 S σ. As S σ M 2 = P M 1 S σ, we have v S σ M 2. Therefore M 2, v) S σ, as desired. Lemma 3.2. Under the assumption M, w) ϕ, we have M, w x = ϕ x). 13

Proof. We establish the claim of the lemma by proving that M 1, w x = δ P x). Since M 2, w) and M 2 = P M 1, we have M 1, w x = P x). The nontrivial part in the argument establishing that M 1 = δ involves showing that M 1 = S σ for each S σ SUB, where S Q 2. This follows directly by Lemma 3.1, as P M 1 S σ = S σ M 2. We then establish that M, w = x ϕ x) implies M, w) ϕ. Therefore we assume that M, w = x ϕ x). Therefore there exists an expansion M 1 of M by interpretations of the unary symbols occurring in Q such that M 1, w = δ x P x). We define an expansion M 2 of M by interpretations of the binary and unary symbols that occur in Q. For the symbols P Q 1, we define P M 2 = P M 1. For the symbols S Q 2, we let v, u) S M 2 if and only if M 1, v u = Access x, y). x y S Lemma 3.3. Let α SUB and v DomM). We have M 2, v) α iff M 1, v x = P αx). Proof. We establish the claim of the lemma by induction on the structure of α. Since M 1 = δ, the claim holds trivially for all atomic formulae P V 1. Also, the cases where α is of form β, β γ) or R β, where R V 2 \ Q 2, are straightforward since M 1 = δ. Assume that M 2, v) S σ, where S Q 2 and S σ SUB. Therefore v, u) S M 2 for some u σ M 2. Hence M 1, v u = Access x, y) by the x y S definition of S M 2 M. We also have P 1 σ = σ M 2 by the induction hypothesis. Therefore u P M 1 σ, whence we have M 1, v x = y Access S x, y) P σ y) ). Therefore, as M 1 = S σ, we have M 1, v x = P S σx). For the converse, we assume that M 1, v x = P S σx). As M 1 = S σ, we have M 1, v x = y Access S x, y) P σ y) ). Hence there exists some element u P M 1 σ such that M 1, v u = Access x, y). x y S and as Therefore v, u) S M 2 by the definition of S M 2. Since u P M 1 σ 14

σ M 2 M = P 1 σ by the induction hypothesis, we may therefore conclude that M 2, v) S σ. By Lemma 3.3 we immediately observe that since M 1, w = P x x), we must have M 2, w). Therefore M, w) ϕ. This, together with Lemma 3.2, justifies the following conclusion. Theorem 3.4. Each formula of Σ 1 1ML) translates to a uniformly equivalent formula of MSO. The translation is effective. We then establish that ϕ x) is in fact expressible in monadic Σ 1 1MLE). This is easy. Fix a symbol S Q 2 and let A be the subset of SUB that contains exactly all the formulae of the form S χ. The formula y Access S x, y) P σ y) ) is uniformly equivalent to the following formula of MLE. E P S χ P σ P χ P χ )) B A S χ B S χ B S χ A\B Thus we see that for each sentence α, where α SUB, there exists a formula of MLE that is uniformly equivalent to the formula x = x α. We may therefore draw the following conclusion. Theorem 3.5. Each formula of Σ 1 1ML) translates to a uniformly equivalent formula of monadic Σ 1 1MLE). The translation is effective. The following corollaries are immediate. Corollary 3.6. Each formula of Π 1 1ML) translates to a uniformly equivalent formula of monadic Π 1 1MLE). The translation is effective. Corollary 3.7. Let C be a class of unimodal Kripke frames W, R 0 ) with a binary relation R 0. Let I be a set of indices such that 0 I, and define D = { W, {R i } i I ) R i W W, W, R 0 ) C }. If the satisfiability problem of MLE w.r.t. the class C is decidable, then the satisfiability problem of ML w.r.t. D is decidable. 15

4 Σ 1 1PBML = ) translates into MSO In this section we prove that each formula of Σ 1 1PBML = ) can be translated to a uniformly equivalent formula of MSO. The translation bears some similarity to the translation of Σ 1 1ML) into monadic Σ 1 1MLE), but is much more complicated. Instead of using the notion of a largest filtration and subformulae, the translation from Σ 1 1PBML = ) into MSO is based on types. One of the main ideas in the translation is to use fresh unary predicates P τ in order to encode extensions of types τ of PBML = formulae. In addition to types, the translation also uses fresh unary predicates that encode information concerning extensions of access types. 4.1 An effective translation In the current subsection we define an effective translation of formulae of Σ 1 1PBML = ) to uniformly equivalent formulae of MSO. Effectivity of the translation follows from the decidability of PBML =. Let us fix a Σ 1 1PBML = ) formula ϕ and show how it is translated. Let ϕ := Q, where Q is vector of existential second-order quantifiers and a formula of PBML =. For presentation related results, assume w.l.o.g. that Md) 2 and that each symbol in Q occurs in. We let m denote the maximum arity of the modal parameters that occur in. Since Md) 2, the formula must contain diamonds, and therefore m exists and m 2. V h Let V 1 denote the set of unary relation symbols that occur in, and let be the set of relation symbols of higher arities occurring in. Let V = V 1 V h. Some of the relation symbols in V may occur in the quantifier prefix Q and some may not. Let Q 1 denote the set of unary relation symbols that occur in Q. The set of relation symbols of higher arities occurring in Q is denoted by Q h. Let Q = Q 1 Q h. For each k N 2, we let ATP k) denote the set containing exactly the k-ary access types over V. For each n N, we let TP n denote the set TP n V, m of types. We define TP = TP i. i Md) 16

We then fix a set of fresh i.e., not occurring in ϕ) unary predicate symbols. We fix a unique unary predicate symbol P τ for each τ TP. We also fix a unary predicate symbol P M, β) for each pair M, β) such that for some k {1,..., m 1}, we have M ATP k + 1) and β TP Md) 1 ) k. The translation ϕ x) of ϕ is the formula ) ) P P τ P M, β) )τ x), TP P Q 1 k {1,...,m 1} M ATP k+1), β TP Md) 1 ) k where x) is a first-order formula to be defined below in one free variable, x. We let Q denote the above vector of monadic existential secondorder quantifiers. One fundamental idea in the translation we will define is that the symbols P τ are used in order to encode the extensions of the types τ TP. This is manifest in the way the model M 1 is defined below and also in the content of Lemma 4.6. While the symbols P τ store information about extensions of types, the symbols P M, β ) are used in order to encode information about the extensions of the access types M ATP ArM)). We use the symbols P M, β ) when we define the formulae Access M x, y 1,..., y k ) below. The formulae Access M x, y 1,..., y k ) encode information about the extensions of the access types M ATP k + 1) in a way made explicit in Lemmata 4.1 and 4.5. Before fixing the translation ϕ x) of ϕ, we define a number of auxiliary formulae. The first formula we define ensures that for all n {0,..., Md)}, the extensions of the predicate symbols P τ, where τ TP n, always cover all of the domain of any model and never overlap each other. We define uniq := x P τ x) ))) P σ x). 0 i Md) τ TP i σ TP i, σ τ The next formula asserts that each symbol P β, where β TP Md) 1, must be interpreted such that for all symbols P τ, where Mdτ) < Mdβ), the extension of P β is either fully included in the extension of P τ or does not overlap with it. We let 17

pack := x y Pβ x) P β y) ) β TP Md) 1 Pτ x) P τ y) )). τ TP <Md) 1 Let k be an integer such that 1 k m 1 and let M ATP k + 1). The next formula encodes information about the relation that the k + 1)-ary access type M defines over a V -model. Access M x, y 1,..., y k ) := ) P M, β ) x) P β1 y 1 )... P βk y k ). β 1,...,β k ) = β TP Md) 1 ) k We then define formulae χ τ x) that recursively force the interpretations of the predicate symbols P τ to match the extensions of the types τ TP. The content of this assertion is reflected in the proof of) Lemma 4.6. First, let τ TP 0. We define χ τ x) := P x) Qx). P V 1, τ P Q V 1, τ Q Now let τ TP n+1, where 0 n Md) 1. We define χ + τ x) := y 1...y k Access M x, y 1,..., y k ) k {1,...,m 1}, M ATP k+1), σ 1,...,σ k ) TP n )k, τ M σ 1,...,σ k ) ) P σ1 y 1 )... P σk y k ), 18

χ τ x) := k {1,...,m 1}, M ATP k+1), σ 1,...,σ k ) TP n )k, τ M σ 1,...,σ k ) y 1...y k Access M x, y 1,..., y k ) ) P σ1 y 1 )... P σk y k ), and χ τ x) := P τ x) χ + τ x) χ τ x), where τ is the unique type in TP n such that τ τ. Let k {1,..., m 1} and A ATP k + 1), where A. Let β 1,..., β k ) = β TP Md) 1 ) k. The next formula encodes information about the set of k + 1)-ary access types that connect an element of the domain of a V -model to k-tuples of elements u 1,..., u k ) such that for all i, the element u i satisfies the type β i. We define A, β ) x) := M A y 1...y k Access M x, y 1,..., y k ) ) P β1 y 1 )... P βk y k ). Our next aim is to define formulae cons and cons that ensure that information about extensions of the access types over V is always consistent with interpretation of the access types over V \ Q, i.e., the access types describing non-quantified accessibility relations. Let k be an integer such that 1 k m 1. Fix a linear order on ATP k + 1). For each set S ATP k + 1), let Si) denote the i-th member of the set S with respect to the linear order. Let A ATP k + 1) be a nonempty set of access types. For each i {1,..., A }, define a k-tuple y i = y i1,..., y ik ) of variable symbols. Fix the collection of tuples so that no variable symbol is used twice. Let y j y l denote the formula y jn = y ln ). n {1,..., k} 19

Let χ Ai) x, y i ) denote a first-order formula stating that the k + 1)-tuple x, y i ) is connected according to the unique k + 1)-ary access type over V \ Q that is consistent with the access type Ai) A. Let β = β 1,..., β k ) be a k-tuple of types in TP Md) 1. We let χ A, β ) x) := y 1...y A j, l {1,..., A }, j l y j y l χai) x, y i ) P β1 y i1 )... P βk y ik ) ) ). i {1,..., A } We define cons := x A, β ) x) χ A, β ) x) ) ). k {1,...,m 1}, A ATP k+1), A, β TP Md) 1 ) k Let R ATP V \Qk + 1), i.e., R is a k + 1)-ary access type over V \ Q. We let CR) denote the set of k + 1)-ary access types over V that are consistent with R. Let χ R x, y 1,..., y k ) denote a first-order formula stating that the k+1)-tuple x, y 1,..., y k ) is connected according to the access type R. Let β = β 1,..., β k ) be a k-tuple of types in TP Md) 1. Let M be k + 1)-ary access type over V. We let and χ R, β ) x) := y 1...y k χr x, y 1,..., y k ) P β1 y 1 )... P βk y k ) ) M, β ) x) := z 1...z k AccessM x, z 1,..., z k ) P β1 z 1 )... P βk z k ) ). We define cons := x χ R, β ) x) )) M, β ) x). k {1,...,m 1}, M CR) R ATP V \Q k+1), β TP Md) 1 ) k 20

Finally, we define δ := uniq pack cons cons τ TP ) x P τ x) χ τ x) and ϕ x) := Q δ P α x) ). α TP Md), α We then fix an arbitrary pointed model M, w) of the vocabulary V \Q. In the next two subsections we establish that M, w) ϕ M, w x = ϕ x). 4.2 Proving that Σ 1 1PBML = ) MSO : part one In this subsection we show that M, w) ϕ implies M, w = x ϕ x). Thus we assume that M, w) ϕ. Therefore there exists some expansion M h of M by interpretations of the symbols in Q such that M h, w). The subscript h in M h stands for the word higher and indicates that M h is an expansion of M by interpretations of symbols of arity one and higher arities. We then define an expansion M 1 of M by interpreting the unary symbols in Q 1 and also the unary symbols of the type P τ and P M, β ), where τ is a type in TP, and where M ATP k + 1) and β TP Md) 1 ) k for some k {1,..., m 1}. For each P Q 1, we define P M 1 = P M h. For each τ TP, we let = τ M h. Let k {1,..., m 1}. Let M ATP k + 1) and P M 1 τ β 1,..., β k ) = β TP Md) 1 ) k. We define P M 1 to be exactly the set of elements v DomM) such that M, β ) for some tuple u 1,..., u k ) DomM)) k, we have v, u 1,..., u k ) M M h and u i β i M h for all i {1,..., k}. In other words, we define P M 1 M, β ) = M β 1,..., β k ) M h. 21

Next we discuss a number of auxiliary lemmata, and then establish that M 1, w = x x). Recall that x) is the first-order part of the translation ϕ x) of ϕ. The following lemma establishes how the formula Access M x, y 1,..., y k ) encodes information about the action of the diamond operator M on M h. Lemma 4.1. Let n be an integer such that we have 0 n < Md). Let k {1,..., m 1}, and let τ 1,..., τ k ) be a tuple of types in TP n. Let M ATP k + 1) and v DomM). We have M h, v) M τ 1,..., τ k ) M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ). Proof. Assume that M h, v) M τ 1,..., τ k ). Thus there exists some tuple such that v, u 1,...u k ) M M h. Let u 1,..., u k ) τ 1 M h... τ k M h β 1,..., β k ) = β TP Md) 1 ) k be the k-tuple of types in TP Md) 1 such that we have u i β i M h for all i {1,..., k}. Thus v P M 1, and therefore M, β ) M 1, v u 1... u k = Access M x, y 1,..., y k ). x y 1 y k As u i τ i M h = P M 1 τ i for all i {1,..., k}, we have Therefore M 1, v u 1... u k = Access M x, y 1,..., y k ) P τ1 y 1 )... P τk y k ). x y 1 y k M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ), as desired. In order to deal with the converse direction, assume that M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ). 22

Therefore, for some tuple we have u 1,..., u k ) P M 1 τ 1... P M 1 τ k, M 1, v u 1... u k = Access M x, y 1,..., y k ). x y 1 y k Therefore v P M 1 for some tuple M, β ) β 1,..., β k ) = β TP Md) 1 ) k such that u i P M 1 β i for all i {1,..., k}. We have Mdτ i ) Mdβ i ) for all i {1,..., k}. Also, by the definition of the model M 1, we have P M 1 σ = σ M h for all σ TP, so each set P M 1 σ is the extension of the type σ. Therefore, as u i P M 1 β i P M 1 τ i for all i {1,..., k}, we conclude that β i M h τi M h for all i {1,..., k}. Hence β 1 M h... β k M h τ 1 M h... τ k M h. Also, as v P M 1 M, β ), we have v, u 1,..., u k ) MM h for some tuple u 1,..., u k) β 1 M h... β k M h. Therefore we conclude that M h, v) M τ 1,..., τ k ), as desired. We then establish a link between interpretations of the formulae χ τ x) and interpretations of the predicate symbols P τ in the model M 1. Lemma 4.2. Let v DomM) and τ TP. We have M 1, v x = P τx) iff M 1, v x = χ τx). for all P V 1, the claim follows directly for all. Throughout the proof, Proof. As P M h = P M 1 τ TP 0. Therefore we may assume that τ TP 1 we let τ denote the unique type in TP Mdτ) 1 such that τ τ. Assume that M 1, v = P x τx). As P M 1 τ = τ M h, we have Mh, v) τ. As τ τ, we have M h, v) τ. Since P M 1 τ = τ M h, we conclude that M 1, v = P x τ x). We then establish that M 1, v = x χ+ τ x) χ τ x). Let k {1,..., m 1} and assume that τ M σ 1,..., σ k ), where we have M ATP k + 1) and 23

σ i TP Mdτ) 1 for all i {1,..., k}. As we have M h, v) τ, we also have M h, v) M σ 1,..., σ k ). Therefore, by Lemma 4.1, M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ). Similarly, if τ M σ 1,..., σ k ), we conclude by Lemma 4.1 that M 1, v x = y Access M x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ). Thus M 1, v = x χ+ τ x) χ τ x), as desired. For the converse, assume that M 1, v x = χ τx). In order to show that M 1, v = P x τx), we will establish that M h, v) τ. As P M 1 τ = τ M h, this suffices. As M 1, v x = P τ x) and P M 1 τ = τ M h, we immediately observe that M h, v) τ. Let τ M σ 1,..., σ k ), where M ATP and σ i TP Mdτ) 1 for all i {1,..., k}. As M 1, v = x χ+ τ x), we have M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ), and therefore M h, v) M σ 1,..., σ k ) by Lemma 4.1. Similarly, if we have τ M σ 1,..., σ k ), then, as M 1, v x = χ τ x), we conclude that M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ), and therefore M h, v) M σ 1,..., σ k ) by Lemma 4.1. Thus M h, v) τ, and hence M 1, v x = P τx), as desired. We then conclude the first direction of the proof of the claim that M, w) ϕ iff M, w x = ϕ x). Lemma 4.3. Under the assumption M, w) ϕ, we have M, w x = ϕ x). Proof. We have assumed that M, w) ϕ and thereby concluded that there exists a model M h such that M h, w). We have then defined the model M 1, and we now establish the claim of the current lemma by proving that M 1, w = x x). Recall that x) is the formula P α x), δ α TP Md), α 24

where δ denotes the formula uniq pack cons cons τ TP ) x P τ x) χ τ x). Let denote a disjunction of exactly all the types α TP Md) such that α. As and are V -equivalent and in fact uniformly equivalent), we have M h, w). Therefore M h, w) α for some α TP Md) occurring in the disjunction. Hence, as α M h = P M 1 α, we conclude that M 1, w = x P α x). We then show that M 1 = cons. Let v DomM) and assume that M 1, v = x A, β ) x) for some nonempty A ATP k + 1) and some tuple of types β 1,..., β k ) = β TP Md) 1 ) k. Recall that Ai) denotes the i-th access type in A with respect to the linear ordering of ATP k + 1) we fixed. As M 1, v = x A, β )x), we conclude by Lemma 4.1 that M h, v) Ai) β 1,..., β k ) for each i {1,..., A }. Thus there must exist A distinct k-tuples u 1,..., u A β 1 M h... β k M h = P M 1 β 1... P M 1 β k such that v, u i ) Ai)) M h for each i. Let Ri denote the access type over V \ Q consistent with Ai). Recall that χ Ai) x, y i ) is a first-order formula stating that the tuple x, y i ) is connected according to the access type R i. We have v, u i ) R M h i = R M 1 i for each i, and thus M 1, v u i1... u i k = χ Ai) x, y i1,..., y ik ) P β1 y i1 )... P βk y ik ) x y i1 y ik for each i. We then establish that M 1 = cons. Let k {1,..., m 1} and let R be a k + 1)-ary access type over V \ Q. Let v DomM) and assume that M 1, v u 1... u k = χ R x, y 1,..., y k ) P β1 y 1 )... P βk y k ) x y 1 y k for some u 1,..., u k DomM). Let M be the k+1)-ary access type such that v, u 1,..., u k ) M M h. Thus Mh, v) M β 1,..., β k ), whence by Lemma 4.1, we have M 1, v x = z 1...z k AccessM x, z 1,..., z k ) P β1 z 1 )... P βk z k ) ). 25

Clearly M is consistent with R and hence we have M CR). Therefore M 1 = cons. We have M 1 = uniq pack directly by properties of types. Therefore, in order to conclude the proof, we only need to establish that for each type τ TP and each v DomM), M 1, v = P x τx) χ τ x). This follows directly by Lemma 4.2. 4.3 Proving that Σ 1 1PBML = ) MSO : part two In this subsection we show that M, w = x ϕ x) implies M, w) ϕ. Thus we assume that M, w = x ϕ x). Therefore there exists an expansion M 1 of M by interpretations of the unary symbols P τ and P M, β ), and also the symbols P Q 1, such that M 1, w = x x). We define an expansion of M by interpreting all the relation symbols in Q. We call the resulting expansion M h. For each P Q 1, we define P M h = P M 1. Let v DomM) and k {1,..., m 1}. Let β = β 1,..., β k ) TP Md) 1 ) k. Let A k+1 ATP k + 1) be the set of access types M ATP k + 1) such that for some tuple u 1,..., u k ) P M 1 β 1... P M 1 β k, we have M 1, v u 1... u k = Access M x, y 1,..., y k ). x y 1 y k As M 1 satisfies the formula cons, we see that there exists a bijection f from the set A k+1 to a set B P M 1 β 1... P M 1 β k such that for all M A k+1, we have v, fm) ) R M 1 M, where R M is the access type in ATP V \Q k +1) consistent with M. Let S Q h be a relation symbol of the arity k + 1. We define, for each M A k+1, ) v, fm) S M h iff S M. Recall that we write S M if S occurs in the type M i.e., S does not occur in M). We then consider the k-tuples in the set P M 1 β 1... P M 1 β k ) \ B. 26

Let the tuple u 1,..., u k ) belong to this set. Let R be the access type in ATP V \Q k + 1) such that v, u 1,..., u k ) R M 1. As M 1 satisfies cons, we observe that there exists some M ATP k + 1) consistent with R and some tuple u 1,..., u k) P M 1 β 1... P M 1 β k such that M 1, v u 1... u k = Access M x, y 1,..., y k ). x y 1 y k Again let S Q h be a relation symbol of the arity k + 1. We define v, u 1,..., u k ) S M h iff S M. For each v DomM) and k {1,..., m 1}, we go through each tuple β TP Md) 1 ) k, and construct the extensions S M h of the k + 1)-ary symbols S Q h in the described way. This procedure defines the expansion M h of M. As the model M 1 satisfies uniq, the model M h is well defined. Next we discuss a number of auxiliary lemmata and then establish that M h, w). The following lemma is a direct consequence of the way we define the extensions S M h of the relation symbols S Q h. Lemma 4.4. Let v DomM). Let k {1,..., m 1}, M ATP k + 1) and β 1,..., β k ) TP Md) 1 ) k. Then v, u 1,..., u k ) M M h for some u 1,..., u k ) P M 1 β 1... P M 1 β k if and only if we have M 1, v u 1... u k = Access M x, y 1,...y k ) x y 1 y k for some u 1,..., u k ) P M 1 β 1... P M 1 β k. The diamond M encodes information about the relation that the formula Access M x, y 1,..., y k ) defines over M 1. The next lemma establishes this link. Lemma 4.5. Let n be an integer such that 0 n < M d), and let k {1,..., m 1}. Let τ 1,..., τ k ) TP n ) k and M ATP k + 1). Assume that τ i M h = P M 1 τ i for all i {1,..., k}. Let v DomM). Then M h, v) M τ 1,..., τ k ) 27

if and only if M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ). Proof. Assume that M h, v) M τ 1,..., τ k ). Thus v, u 1,..., u k ) M M h for some tuple u 1,..., u k ) τ 1 M h... τk M h = P M 1 τ 1... P M 1 τ k. As M 1 = uniq, we observe that for each i {1,..., k}, there exists exactly one type β i TP Md) 1 such that u i P M 1 β i. Therefore, by Lemma 4.4, we have M 1, v u 1... u k = Access M x, y 1,..., y k ) x y 1 y k for some u 1,..., u k ) P M 1 β 1... P M 1. Pick an arbitrary j {1,..., k}. β k 1. If n = Md) 1, then, as M 1 = uniq and u j P M 1 β j P M 1 τ j, we have β j = τ j, and thus u j P M 1 τ j. 2. If n < Md) 1, then, since M 1 = pack and as u j P M 1 τ j P M 1 β j u j P M 1 β j, we again have u j P M 1 τ j. Therefore M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ), as required. For the converse, assume that M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P τ1 y 1 )... P τk y k ) ). and Therefore for some tuple M 1, v u 1... u k = Access M x, y 1,..., y k ) x y 1 y k u 1,..., u k ) P M 1 τ 1... P M 1 τ k = τ 1 M h... τk M h. 28

As M 1 = uniq, we infer that for each u i, there exists a type β i TP Md) 1 such that u i P M 1 β i. By Lemma 4.4, we therefore have for some tuple v, u 1,..., u k) M M h u 1,..., u k) P M 1 β 1... P M 1 β k. Pick an arbitrary j {1,..., k}. As above, we have the following cases. 1. If n = Md) 1, then, as M 1 = uniq and u j P M 1 β j P M 1 τ j, we have β j = τ j, and thus u j P M 1 τ j. 2. If n < Md) 1, then, since M 1 = pack and as u j P M 1 τ j P M 1 β j u j P M 1 β j, we again have u j P M 1 τ j. Therefore, as we have assumed that P M 1 τ i = τ i M h for all i {1,..., k}, we conclude that M h, v) = M τ 1,..., τ k ), as desired. The next lemma establishes that extensions of the types τ TP and interpretations of the predicate symbols P τ coincide. Lemma 4.6. Let τ TP and v DomM). Then M h, v) τ if and only if M 1, v = P x τx). Proof. We prove the claim by induction on the modal depth of τ. If τ TP 0, then, as M 1 = xp τ x) χ τ x)), the claim follows immediately. Assume that M h, v) τ for some τ TPn+1, where 0 n < Md). We will show that M 1, v x = P τ x) χ+ τ x) χ τ x), and where τ is the type of the modal depth n such that τ τ. This directly implies that M 1, v = P x τx), since M 1 = xp τ x) χ τ x)). As τ τ, we have M h, v) τ. Therefore M 1, v = P x τ x) by the induction hypothesis. In order to establish that M 1, v = x χ+ τ x) χ τ x), let τ M σ 1,..., σ k ), where M ATP k + 1), k {1,..., m 1} and σ i TP n for all i {1,..., k}. Therefore M h, v) M σ 1,..., σ k ). Since 29

by the induction hypothesis we have σ i M h M = P 1 σ i conclude by Lemma 4.5 that for all i {1,..., k}, we M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ). Similarly, if τ M σ 1,..., σ k ), then we have M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ) by the induction hypothesis and Lemma 4.5. Thus M 1, v = x χ+ τ x) χ τ x), and hence M 1, v = P x τx), as desired. For the converse, assume that M 1, v = P x τx), where τ TP n+1. Now, since M 1 = xp τ x) χ τ x)), we conclude that M 1, v = χ x τx). Therefore M 1, v = P x τ x), where τ is the type of the modal depth n such that τ τ. Thus M h, v) τ by the induction hypothesis. Let k {1,..., m 1} and M ATP k + 1). Assume that we have τ M σ 1,..., σ k ) for some σ 1,..., σ k TP n. As M 1, v = χ x τx), we have M 1, v = x χ+ τ x), and therefore M 1, v x = y 1...y k AccessM x, y 1,..., y k ) P σ1 y 1 )... P σk y k ) ). Hence, as we have σ i M h M = P 1 σ i for all i {1,..., k} by the induction hypothesis, we conclude that M h, v) M σ 1,..., σ k ) by Lemma 4.5. Similarly, if τ M σ 1,..., σ k ), we conclude that M h, v) M σ 1,..., σ k ) by the induction hypothesis and Lemma 4.5. We have therefore established that M h, v) τ, as required. We then finally conclude the proof of the claim that M, w x = ϕ x) if and only if M, w) ϕ. Lemma 4.7. Under the assumption M, w x = ϕ x), we have M, w) ϕ. Proof. We have assumed that M, w = x ϕ x) and thereby concluded that there exists a model M 1 such that M 1, w = x x). We have then defined the model M h, and we now establish the claim of current the lemma by showing that M h, w). As M 1, w = x x), we have M 1, w = P x αx) for some type α TP Md) such that α. Therefore M h, w) α by Lemma 4.6. As α, we have, w), as desired. M h 30