Definability in Rationals with Real Order in the Background

Similar documents
Connectivity. Topics in Logic and Complexity Handout 7. Proof. Proof. Consider the signature (E, <).

Finite Model Theory: First-Order Logic on the Class of Finite Models

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

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

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

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers

Qualifying Exam Logic August 2005

Spectra of Monadic Second-Order Formulas with One Unary Function

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Decidability of integer multiplication and ordinal addition. Two applications of the Feferman-Vaught theory

First Order Convergence and Roots

Finite and Algorithmic Model Theory II: Automata-Based Methods

Model Theory on Finite Structures

Datalog and Constraint Satisfaction with Infinite Templates

arxiv: v1 [cs.pl] 19 May 2016

Math 225A Model Theory. Speirs, Martin

A local normal form theorem for infinitary logic with unary quantifiers

Database Theory VU , SS Ehrenfeucht-Fraïssé Games. Reinhard Pichler

Expressiveness of predicate logic: Some motivation

A Proof of Kamp s theorem

Friendly Logics, Fall 2015, Lecture Notes 5

Elementary Equivalence, Partial Isomorphisms, and. Scott-Karp analysis

Recursive definitions on surreal numbers

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

at the Background Yuri Gurevich Microsoft Research One Microsoft Way Redmond, WA , USA Alexander Rabinovich

1 Topology Definition of a topology Basis (Base) of a topology The subspace topology & the product topology on X Y 3

arxiv: v1 [math.lo] 1 Jun 2011

Infinite and Finite Model Theory Part II

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

Notes on ordinals and cardinals

Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back

Automata on linear orderings

VC-DENSITY FOR TREES

RANK HIERARCHIES FOR GENERALIZED QUANTIFIERS

HW 4 SOLUTIONS. , x + x x 1 ) 2

A GEOMETRIC ZERO-ONE LAW

Introduction. Itaï Ben-Yaacov C. Ward Henson. September American Institute of Mathematics Workshop. Continuous logic Continuous model theory

AN INTRODUCTION TO GEOMETRIC STABILITY THEORY

From Constructibility and Absoluteness to Computability and Domain Independence

Part II. Logic and Set Theory. Year

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

Finite Model Theory Tutorial. Lecture 1

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

A Model Theoretic Proof of Completeness of an Axiomatization of Monadic Second-Order Logic on Infinite Words

On the strong cell decomposition property for weakly o-minimal structures

Mathematical Foundations of Logic and Functional Programming

Rabin Theory and Game Automata An Introduction

Duplicator Spoiler Games Exposition by William Gasarch

The constructible universe

Hierarchy among Automata on Linear Orderings

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

Basics of Model Theory

THE COMPLEXITY OF RANDOM ORDERED STRUCTURES

Metric Spaces and Topology

TABLEAU SYSTEM FOR LOGIC OF CATEGORIAL PROPOSITIONS AND DECIDABILITY

LINDSTRÖM S THEOREM SALMAN SIDDIQI

The Vaught Conjecture Do uncountable models count?

CHURCH SYNTHESIS PROBLEM and GAMES

HOW DO ULTRAFILTERS ACT ON THEORIES? THE CUT SPECTRUM AND TREETOPS

DISJOINT-UNION PARTIAL ALGEBRAS

2.2 Lowenheim-Skolem-Tarski theorems

Definability in the Enumeration Degrees

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Logical Theories of Trees

POINT SET TOPOLOGY. Definition 2 A set with a topological structure is a topological space (X, O)

2.2 Some Consequences of the Completeness Axiom

An uncountably categorical theory whose only computably presentable model is saturated

Gödel s Completeness Theorem

DIVIDING AND WEAK QUASI-DIMENSIONS IN ARBITRARY THEORIES

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. II - Model Theory - H. Jerome Keisler

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA address:

Herbrand Theorem, Equality, and Compactness

4 The semantics of full first-order logic

2 RENATA GRUNBERG A. PRADO AND FRANKLIN D. TALL 1 We thank the referee for a number of useful comments. We need the following result: Theorem 0.1. [2]

Three Variables Suffice for Real-Time Logic

Incomplete version for students of easllc2012 only. 94 First-Order Logic. Incomplete version for students of easllc2012 only. 6.5 The Semantic Game 93

Hrushovski s Fusion. A. Baudisch, A. Martin-Pizarro, M. Ziegler March 4, 2007

Synthesis of Finite-state and Definable Winning Strategies

FIRST ORDER SENTENCES ON G(n, p), ZERO-ONE LAWS, ALMOST SURE AND COMPLETE THEORIES ON SPARSE RANDOM GRAPHS

Analysis III. Exam 1

CHAPTER 8: EXPLORING R

Algebras with finite descriptions

A generalization of modal definability

Games and Isomorphism in Finite Model Theory. Part 1

Structure Theorem and Strict Alternation Hierarchy for FO 2 on Words

The length-ω 1 open game quantifier propagates scales

Boolean Algebras. Chapter 2

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

Foundations of Mathematics

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

5 Set Operations, Functions, and Counting

Connectivity. Corollary. GRAPH CONNECTIVITY is not FO definable

Finite and Infinite Sets

Informal Statement Calculus

Congruence Boolean Lifting Property

March 3, The large and small in model theory: What are the amalgamation spectra of. infinitary classes? John T. Baldwin

Section 7.5: Cardinality

On Subrecursive Representability of Irrational Numbers, Part II

CONSERVATION by Harvey M. Friedman September 24, 1999

Transcription:

Definability in Rationals with Real Order in the Background YURI GUREVICH, Microsoft Research and Dept EECS, University of Michigan, One Microsoft Way, Redmond, WA 98052, USA. E-mail: gurevich@microsoft.com ALEXANDER RABINOVICH, Department of Computer Science, Beverly Sackler School of Exact Sciences, Tel Aviv University, Israel 69978. E-mail: rabino@math.tau.ac.il Abstract The paper deals with logically definable families of sets (or point-sets) of rational numbers. In particular we are interested whether the families definable over the real line with a unary predicate for the rationals are definable over the rational order alone. Let ffi(x; Y ) and ψ(y ) range over formulas in the first-order monadic language of order. Let Q be the set of rationals and F be the family of subsets J of Q such that ffi(q; J) holds over the real line. The question arises whether, for every ffi, F can be defined by means of an appropriate ψ(y ) interpreted over the rational order. We answer the question negatively. The answer remains negative if the first-order logic is strengthened to weak monadic second-order logic. The answer is positive for the restricted version of monadic second-order logic where set quantifiers range over open sets. The case of full monadic second-order logic remains open. Keywords: Definability, expressibility, monadic logic of order. 1 Introduction We consider the monadic second-order theory of linear order. For the sake of brevity, linearly ordered sets will be called chains. Let A = ha <i be a chain. A formula ffi(t) with one free individual variable t defines a point-set on A which contains exactly the points of A that satisfy ffi(t). As usual we identify a subset of A with its characteristic predicate and we will say that such a formula defines a predicate on A. More generally, a formula χ(x) with one free monadic predicate variable defines the set of those predicates (or the family of those point-sets) on A that satisfy χ(x). This family is said to be definable by χ(x) in A: The second kind of definability is more general because a set Y can be adequately represented by the family ffyg : y 2 Y g. Suppose that A is a subchain of B = hb;<i. With a formula χ(x; A) we associate the following family of point-sets (or set of predicates) fp : P A and χ(p; A) holds in Bg on A: This family is said to be definable by χ in A with B in the background. Note that in such a definition bound individual (respectively predicate) variables of χ range over B (respectively over subsets of B). Hence, it is reasonable to expect that the presence of a background chain B allows one to define point sets (or families of point-sets ) on A which are not definable inside A. In [3] we proved J. Logic Computat., Vol. 12 No. 1, pp. 1 11 2002 cfl Oxford University Press

2 Definability in Rationals with Real Order in the Background THEOREM 1.1 For any closed subset F of the reals, a family of point-sets is definable in a subchain F = hf;<i of the reals if and only if it is definable in F with the chain of the reals in the background. In fact, we proved a somewhat stronger theorem, namely, there is a uniform way to translate a definition (in the closed subchains of the reals) with the reals in the background into a definition without a background. On the other hand, it was shown in [3] THEOREM 1.2 There exists an open subset G of the reals and a family of point-sets which is definable in G with the reals in the background and is not definable in G. Note that the notions of definable family of point sets and definable family of point sets with a background can be naturally adopted to the first-order and other languages. For example, let P; A be unary predicate names and let ffi (respectively χ) be first-order sentence in the signature f<; P g (respectively f<; P; Ag). LetA = ha <i be a chain. A family F of subsets of A is definable by ffi in A if P 2F() ha <; Pi j= ffi. Suppose that A is a subchain of B = hb;<i. A family F of subsets of A is definable by χ in A with B in the background if P 2F()hB <; P; Ai j= χ. Analysing the proofs in [3] one can see that Theorems 1.1 and 1.2 also hold when definable is replaced by first-order definable. We were unable to resolve the following Problem: Is it true that a family of point-sets is definable in the chain Q of rationals if and only if it is definable in Q with the chain of reals in the background? We have not solved the problem, but have some related results. We prove the following theorem. THEOREM 1.3 There is a family of point sets which is first-order definable in Q with the chain of reals in the background and is not first-order definable in Q. Then we consider the weak interpretation of monadic language of order. Under this interpretation the bound monadic variables range over finite subsets. We prove that Theorem 1.3 holds when first-order definable is replaced by definable in weak monadic logic, i.e. THEOREM 1.4 There is a family of point sets which is definable by a formula of weak monadic logic in Q with the chain of reals in the background and is not definable by a formula of weak monadic logic in Q. Finally, we consider the interpretation of monadic logic in which bound variables range over the open subsets of the chain. We show that under this interpretation definability in Q is the same as definability in Q with the chain of reals in the background. THEOREM 1.5 Under the open sets interpretation of monadic second order language, a family of point-sets is definable in Q if and only if it is definable in Q with the chain of reals in the background. The paper is organized as follows: in Section 2 we fix notations and recall some well-known theorems. Section 3 and Section 4 deal with definability in first-order monadic logic and

Definability in Rationals with Real Order in the Background 3 weak monadic logic. Some of the results here are of independent interest. In Section 5 we consider the interpretations of monadic logic in which bound variables range over the open and closed subsets. 2 Preliminaries Notation We use k; l; m; n for natural numbers; Q for the set of rational numbers, R for the set of reals, Z forthesetofintegers,n for the set of natural numbers; Q + for non-negative rational numbers and R + for non-negative reals. We use standard notation for ordinals, e.g.! is the order type of natural numbers,! Λ is the order type of negative integers,! k is the order type of lexicographically ordered k-tuples of natural numbers. As usual in set theory, a natural number n can be viewed as a linear order, namely the initial segment (f0;::;n 1g; <) of the standard ordering of natural numbers. Let fi = h<; P 1 ;:::;P n i be a signature with binary predicate name < and unary predicate names P 1 ;:::P n.leta 1 = hj A 1 j;< A1 ; P A1 1 ;:::;PA1 n i and let A 2 = hj A 2 j;< A2 ; P A2 1 ;:::;PA2 n i be structures for fi. The structure A = A 1 + A 2 for fi is defined as follows: 1. The universe is fh1;a 1 i : a 1 2j A 1 jg [ fh2;a 2 i : a 2 2j A 2 jg. 2. hi; ai < A hj; bi iff i =1and j =2,ori = j and a< Ai b. 3. hi; ai 2Pk A Ai iff a 2 Pk. It is clear that if < A1 and < A2 are linear orders on j A 1 j and j A 2 j respectively, then < A is a linear order on j A j. Let fi be the signature as above and let A 1 be a structure for fi and let B = hj B j; < B i be a chain. The structure A = A 1 B for fi is defined as follows: 1. The universe is fha 1 ;bi : a 1 2j A 1 j and b 2j B jg. 2. ha 1 ;b 1 i < A ha 2 ;b 2 i iff b 1 < B b 2,orb 1 = b 2 and a 1 < A1 a 2. 3. ha; bi 2Pk A A1 iff a 2 Pk. It is clear that the operations + and are associative, when, as usual, one does not distinguish between isomorphic structures. We use j= for the satisfaction relation between structures and formulas. We use j= w for the satisfaction relations between structures and monadic formulas when bound monadic variables range over the finite subsets of the structures. We use n for the indiscernability by first order formulas of quantifier rank n. We use ß f n for indiscernability [2]. by the n-round Ehrenfeucht games appropriate for the weak monadic second-order logic [2]. For reader s convenience we recall the definition of those games. The playing board is composed of two structures A 1 and A 2 of the same signature. Given two structures A 1 and A 2. The game H n (A 1 ; A 2 ) is played by two players Spoiler and Duplicator. The game is played n rounds. In the ith round Spoiler first chooses one of the structures A li (l i = 1; 2) and then points out in the chosen structure an arbitrary finite sequence a li i;1 ; ali i;2 ;:::ali of elements. Then Duplicator chooses in the other structure i;ki A 3 l1 a sequence of k i elements a 3 li i;1 ; a3 li i;2 ;:::a3 li i;ki.afternrounds we have k 1 + k 2 + :::k n pairs.

4 Definability in Rationals with Real Order in the Background a 1 1;1 $ a2 1;1 a 1 1;2 $ a2 1;2. a 1 1;k 1 $ a 2 1;k 1 9 >= >; first move.. a 1 n;1 $ a 2 n;1 a 1 n;2 $ a2 n;2. a 1 n;kn $ a2 n;kn Duplicator wins if the correspondence written above is a partial isomorphism. Spoiler 9 >= >; nth move wins if and only if Duplicator does not win. We write A 1 ß f n A 2 if Duplicator has a winning strategy in the game H n (A 1 ; A 2 ). It is clear that ß f n is an equivalence relation. THEOREM 2.1 (Ehrenfeucht [2]) If structures A 1 and A 2 are ß f n sentence ffi with at most n quantifiers A 1 j= w ffi iff A 2 j= w ffi. equivalent, then for every weak monadic Let A beachainanda<bbe elements of A. Weuse(a; b) for the subchain of A which consists of all elements between a and b;weuse( 1;a) (respectively (a; 1)) for the subchain which consists of all elements which are less than a (respectively greater than a). Similar notation is used for the closed and for half open intervals of A. LEMMA 2.2 ( Ehrenfeucht [2]) Assume that A; B are chains. Assume that 1. For every finite sequence a 1 < a 2 < ::: < a n of elements of A there is a sequence b 1 <b 2 <:::<b n of elements of B such that ( 1;;a 1 ] ß f k ( 1;b 1],and(a n ; 1) ß f k (b n ; 1), and(a i ;a i+1 ] ß f k (b i;b i+1 ],and 2. for every finite sequence b 1 < b 2 < ::: < b n of elements of B there is a sequence a 1 <a 2 <:::<a n of elements of A such that ( 1;a 1 ] ß f k ( 1;b 1],and(a n ; 1) ß f k (b n ; 1), and(a i ;a i+1 ] ß f k (b i;b i+1 ]. Then A ß f k+1 B. The following lemma is well known and easy to check (see [4] for similar lemmas). LEMMA 2.3 1. If A 1 n A 2 and A 0 1 n A 0 2 then A 1 + A 0 1 n A 2 + A 0 2. 2. If A 1 n A 2 and B 1 n B 2 then A 1 B 1 n A 2 B 2. 3. If A 1 ß f n A 2 and A 0 1 ßf n A0 then 2 A 1 + A 0 1 ßf n A 2 + A 0. 2 4. If A 1 ß f n A 2 and B 1 ß f n B 2 then A 1 B 1 ß f n A 2 B 2. LEMMA 2.4 k n m for k; m 2 n (see [1]).

Definability in Rationals with Real Order in the Background 5 3 Definability in monadic first-order logic of order LEMMA 3.1 k n! +! Λ for k 2 n. PROOF. Straightforward induction on n; use Lemma 2.4 and Theorem 2.3(1). COROLLARY 3.2 Z is elementarily equivalent to Z + Z. PROOF. We will prove that Z n Z + Z for every n. Indeed, Z =! Λ +2 n +! n! Λ +(! +! Λ )+! =(! Λ +!) +(! Λ +!) =Z + Z: Let Q 0 be the structure hq + ;<;f0gi where Q + is the set of non-negative rationals, < is the standard order on Q + and f0g is the unary predicate that contains only 0. The following is straightforward LEMMA 3.3 1. Q 0 Z is isomorphic to hq; <; P Z i where Q are the rationals, < is the standard order on the rationals and P Z is interpreted as the set of integers. 2. Q 0 (Z +Z) is isomorphic to hq; <; P i where Q are the rationals, < is the standard order on the rationals and P is interpreted as a subset fu i : i 2 Zg[fv i : i 2 Zg,whereu i and v i are rational numbers, u i <u i+1, v i <v i+1 and lim i!1 u i =lim i! 1 v i = ff for some irrational number ff and fu i : i 2 Zg (respectively fv i : i 2 Zg) is unbounded in Q from below (respectively, from above). COROLLARY 3.4 There is no sentence ffi in the language of first-order logic of order with an additional unary relation P such that the following are equivalent 1. hq; <; P ij= ffi. 2. there exists an irrational number ff such that for all q 1 <ff<q 2 there are points of P both in (q 1 ; ff) and (ff; q 2 ). PROOF. Ifsuchffi exists then (by Lemma 3.3) the structure Q 0 (Z + Z) satisfies ffi and structure Q 0 Z does not satisfy ffi. However, these structures are elementarily equivalent (by Corollary 3.2 and Lemma 2.3(2)). Contradiction. LEMMA 3.5 There is a sentence ffi in the language of first-order logic of order with additional unary relations P; Q such that hr; <; Q; P ij= ffi iff P is a subset of the set Q of rationals and there exists an irrational number ff such that for all q 1 < ff < q 2 there are points of P both in (q 1 ; ff) and (ff; q 2 ). PROOF. Immediate. Finally, Theorem 1.3 follows from Lemma 3.5 and Corollary 3.4. Indeed, the family of all point-sets P which have an irrational number ff both as its left and right limit point is not definable in the set Q of rationals, but is definable in Q with the reals in the background.

6 Definability in Rationals with Real Order in the Background 4 Definability in weak monadic logic of order THEOREM 4.1! k ß f k!k +! k A for every linear order A. PROOF. The proof is similar to the Ehrenfeucht proof that for any ordinals ff and fi, ifff = fi(mod! k ) then ff ß f k fi (Theorem 12 in [2]). It proceeds by induction on k. The basis (k=1) is trivial, because both structures are infinite. Now let us assume that the theorem is true for some k. Let Spoiler choose a sequence a 1 ;:::a n on his first move. We can assume, without restriction of generality, that a 1 < :::<a n. We will show that Duplicator can choose elements b 1 <:::<b n in the second structure such that ( 1;a 1 ] ß f k ( 1;b 1], and(a n ; 1) ß f k (b n; 1), and(a i ;a i+1 ) ß f k (b i;b i+1 ). Therefore, according to Theorem 2.2, we obtain that our structures are ß f k+1 equivalent. Let us describe how Duplicator should reply to the above move of Spoiler. If Spoiler have chosen his first move in the structure! k+1 then Duplicator will choose the same elements in the first component of! k+1 +! k+1 A. Thefirstn segments are identical. The segment (a n ; 1) has the order type of! k+1 and the segment (b n ; 1) has the order type of! k+1 +! k+1 A =! k +! k (! +! A); by the inductive hypothesis both these segments are ß f k equivalent to!k. This completes our arguments for the case when Spoiler chooses elements in! k+1. Assume that Spoiler chooses elements in! k+1 +! k+1 A. We define a sequence of auxiliary ordinals d i (i =1;:::;n). Define d 1 as a 1 if a 1 is in the first summand of! k+1 +! k+1 A; defined 1 as! k + d if a 1 = hd; ji 2! k+1 A for some j 2 A. For i =1;:::;n 1 define d i+1 according to the following cases: Case 1. a i and a i+1 are in the first summand! k+1 or there is j such that a i and a i+1 are both in the same jth summand of! k+1 A. In this case we define d i+1 be the order type of (a i ;a i+1 ]. Case 2. The other case. Then a i+1 is some element (d; j) of! k+1 A. Define d i+1 =! k + d. It is clear that d i <! k+1 : (4.1) Observe that d 1 ß f k ( 1;a 1]: (4.2) Indeed, if a 1 is in the first summand of! k+1 +! k+1 A, then these two segments are isomorphic. If a 1 is dth elements of jth component of! k+1 A, then ( 1;a 1 ]=! k+1 +! k+1 ( 1;j)+d =! k +! k (! +! ( 1;j)) + d and therefore, by the inductive hypothesis, ( 1;a 1 ] is ß f k equivalent to d 1. Similar arguments show that for i =1;:::;n 1 d i+1 ß f k (a i;a i+1 ]: (4.3) Define b i as d 1 + ::: + d i. It follows from (4.1) that b 1 < b 2 ::: < b n <! k+1,and hence (b n ; 1) ß f k!k ß f k (a n; 1). From (4.2) and (4.3) it follows that ( 1;a 1 ] ß f k

Definability in Rationals with Real Order in the Background 7 ( 1;b 1 ] and (a i ;a i+1 ] ß f k (b i;b i+1 ]. Therefore, according to Theorem 2.2, we obtain that our structures are ß f k+1 equivalent. COROLLARY 4.2 There is no sentence in the weak monadic logic of order that defines the set of Dedekind complete linear orders. PROOF. Observe that! k is Dedekind complete and! k +! k! Λ is not. Applying Theorem 4.1 and Theorem 2.1 we obtain Corollary 4.2. The same arguments show COROLLARY 4.3 There is no sentence in the weak monadic logic of order that defines the set of well-ordered chains. COROLLARY 4.4 There is no sentence ffi in the weak monadic language of order with an additional unary relation P such that the following are equivalent: 1. hq; <; P ij= ffi; 2. there exists an irrational number ff such that for all q 1 <ff<q 2 there are points of P both in (q 1 ; ff) and (ff; q 2 ). PROOF. Toward a contradiction, let ffi be a sentence in a prenex normal form that expresses the above property and let k be the number of quantifiers in ffi. Let Q 0 be as in Section 3 and let Q 1 be hq; <; ;i. Observe that Q 1 + Q 0! k does not satisfy ffi and Q 1 + Q 0 (! k +! k! Λ ) satisfies ffi (both of the constructed chains are countable and dense, so they are order-isomorphic to Q). However, these structures are ß f k equivalent by Theorem 4.1 and Lemma 2.3. This contradicts Theorem 2.1. This corollary together with Lemma 3.5 imply THEOREM 4.5 There is a family of point sets which is definable in Q with the chain of reals in the background by a weak monadic formula and is not definable in Q by a weak monadic formula. 5 Open and closed sets interpretations of monadic second-order language Let A be a linear order. An interval J of A is said to be open if (1) sup(j) either does not exist or it exists, but does not belong to J and (2) the same for inf. A subset of A is said to be open if it is the union of a family of disjoint open intervals. We will be interested in the chain of reals and the chain of rationals; on these chains the above definition of an open set is equivalent to the standard topological definition. A subset O of A is said to be perforated if it is open and for any two distinct maximal intervals I and J in O there is a non-empty open interval H such that all the points of H are between the points of I and the points of J. Observe that

8 Definability in Rationals with Real Order in the Background LEMMA 5.1 Every open set is a union of two disjoint perforated sets. PROOF. LetG be an open set. Let S be the relation on maximal open intervals of G defined as follows: I and J are in S iff there is no non-empty open interval H such that all the points of H are between the points of I and the points of J. It is clear that S is reflexive and symmetric. Let S Λ be the transitive closure of S. Observe that S Λ is an equivalence relation. Every equivalence class C of S Λ is a set of intervals. These intervals are naturally ordered. This order is either finite or else has one of the following order types:! or! Λ or Z. In each of these cases, the order of intervals is isomorphic to a contiguous segment of integers. Fix such an isomorphism ο. Call a member I of C odd (respectively even) if so is the number ο(i). Let P 1 be the union of all odd intervals (in all equivalence classes of S Λ ), and let P 2 be the union of all even intervals. It is clear that G = P 1 [ P 2 and that P 1 ;P 2 are disjoint perforated open sets. First, we consider two interpretations of the language of monadic second-order logic: in the first one, the bound monadic variables range over open sets; in the second one, the bound monadic variables range over perforated sets; free monadic variables are interpreted as arbitrary sets. We use j= open and j= perf for the satisfaction relation under the first and the second interpretations respectively. LEMMA 5.2 For every monadic formula ffi(t 1 ;:::;t k ;X 1 ;:::;X n ) there is a monadic formula ψ(t 1 ;:::; t k ;X 1 ;:::;X n ) such that for all a 1 ;:::;a k 2 R and P 1 ;:::;P n R hr;a 1 ;:::;a k ;P 1 ;:::;P n ij= open ffi(t 1 ;:::;t k ;X 1 ;:::;X n ) iff hr;a 1 ;:::;a k ;P 1 ;:::;P n ij= perf ψ(t 1;:::;t k ;X 1 ;:::;X n ): PROOF. By Lemma 5.1, every open set is the union of two perforated sets. For every bound variable Y i introduce two bound variables Z i and U i and replace in ffi substrings 9Y i by 9Z i 9U i and t 2 Y i replace by t 2 Z i _ t 2 U i. For the second reduction we introduce canonical formulas and show that every monadic formula under the perforated sets interpretation in some sense is equivalent to a canonical formula. Below we use variables U i which always range over sets of the form fa 2 R : a > ff; where ff is irrational g; these variables will be always bound. We use variables O i to range over perforated sets; they might be bound or free. X i will range over arbitrary subsets of rational numbers; X i are always free. Variables v i will range over the rational numbers and they always will be bound; t i will range over the reals and they always will be free. Contains(O; U) is interpreted as perforated set O contains the infimum (in R) ofu. The formula U i ffi U j is interpreted as the infimum of U i is less than the infimum of U j. The formula t fi U is interpreted as t is less than the infimum of U. (Contains and ffi are predicates over the set variables.) Q is a unary predicate name interpreted as the set of rational numbers. Consider the formulas constructed from

Definability in Rationals with Real Order in the Background 9 1. Contains(O i ;U j ). 2. U i ffi U j. 3. t fi U. 4. u 2 Z, whereu is a first-order variable v i or t j and Z is a monadic variable O i, U j or X k. 5. u 2 Q, whereu is a first-order variable v i or t j and Q is the predicate name interpreted as the set of rationals. 6. u i <u j,whereu i and u j are individual variables. by applying the Boolean connectives, quantification over perforated set variables O i, quantification over U j, and quantifiers 9v i 2 Q. Quantifiers of the form 9v i 2 R are not allowed. Such a formula is a C formula if all v i are bound by 9v i 2 Q. We use j=can for the satisfaction relation of C formulas. LEMMA 5.3 For every formula ffi(q; t 1 ;:::;t k ;X 1 ;:::X n ;O 1 ;:::O m ) of monadic second-order language of order there exists a C-formula ffi tr (Q; t 1 ;:::;t k ;X 1 ;:::X n ;O 1 ;:::O m ) such that for a 1 ;:::a k 2 R and P 1 ;:::;P n Q and perforated sets G 1 ;:::G m hr;q;a 1 ;:::;a k ;P 1 ;:::;Pn;G 1 ;:::;Gmi j= perf ffi(q; t 1 ;:::;t k ;X 1 ;:::;Xn;O 1 ;:::;Om) iff hr;q;a 1 ;:::;a k ;P 1 ;:::;Pn;G 1 ;:::;Gmi j=can ffi tr (Q; t 1 ;:::;t k ;X 1 ;:::;Xn;O 1 ;:::;Om) PROOF. The proof proceeds by induction on formulas. The only non-trivial case is the quantification over the individual variables. So assume that we know how to construct ffi tr 1 and we will show how to construct the translation for 9t:ffi 1. We use ψfv=tg for the formula obtained by replacing all free occurrences of t in ψ by v. The translation of 9t:ffi 1 is defined as 9v 2 Q:ffi tr 1 fv=tg_9u t:ff 1,wherev (respectively U t ) is a fresh individual (respectively monadic) variable and ff 1 is obtained from ffi tr 1 by the following transformations: Replace 1. t<w by w 2 U t, where w is an individual variable. 2. v <t by v 62 U t. 3. t 0 <t byt 0 fi U t. 4. t fi U by U t ffi U. 5. t 2 X i and t 2 Q by False. 6. t 2 U by U ffi U t. 7. t 2 O by Contain(O; U t ). It is easy to verify that the translation indeed satisfies Lemma 5.3. The next lemma provides a reduction from the definability by canonical formulas in Q with the chain of reals in the background to the definability in Q under the perforated set interpretation.

10 Definability in Rationals with Real Order in the Background LEMMA 5.4 Let ffi(q; X 1 ;:::;X n ) be a C formula (without free individual variables and free perforated set variables). There exists a formula ψ(x 1 ;:::;X n ) in the language of monadic secondorder logic of order such that for all P 1 ;:::;P n Q hr; Q;P 1 ;:::;P n ij=can ffi(q; X 1 ;:::;X n ) iff hq;p 1 ;:::;P n ij= perf ψ(x 1;:::;X n ): PROOF. Observe that if U i = fa 2 R : a>ff i g for an irrational number ff i then and hq;<;q U i ij=(8tt 0 :t2 U ^ t 0 >t! t 0 2 U ) ^:9t 0 : (8t: t > t 0 $ t 2 U ) U j ffi U i if and only if hq;<;q U i ; Q U j j= 9t: t 2 U j ^ t 62 U i : Moreover, if O is a perforated subset of reals and U = fa 2 R : a>ffg for some irrational ff then (a) O Q is a perforated subset of rationals and (b) Contain(O; U) if and only if there is an open (in Q)intervalI such that I ρ O Q and the sets I U and I n (I U) are non-empty. Note also that in ffi all individual variables range over Q, because ffi is a canonical formula without free individual variables. Therefore, ψ can be constructed as follows: replace in ffi 1. U j ffi U i by 9t: t 2 U j ^ t 62 U i. 2. 9U by 9U: (8tt 0 :t2 U ^ t 0 >t! t 0 2 U ) ^:9t 0 : (8t: t > t 0 $ t 2 U )^. 3. Contain(O; U) by 9t 1 t 2 :t 1 <t 2 ^ t 1 2 O ^ t 2 2 O ^ t 1 62 U ^ t 2 2 U ^8t: t 1 <t< t 2! t 2 O. (Actually this is the only place where we use the fact that O are interpreted as perforated sets.) 4. 9v 2 Q by 9v. The following is immediate: LEMMA 5.5 For every monadic formula ffi(x 1 ;:::;X n ) there is a monadic formula ψ(x 1 ;:::;X n ) such that for every P 1 ;:::;P n Q hq;p 1 ;:::;P n ij= perf ffi(x 1;:::;X n ) iff hq;p 1 ;:::;P n ij= open ψ(x 1 ;:::;X n ) From Lemmas 5.2 5.5 we obtain that under the open sets interpretation, definability in Q with the reals in the background is equivalent to definability in Q. THEOREM 5.6 For every monadic formula ffi(q; X 1 ;:::;X n ) there is a monadic formula ψ(x 1 ;:::;X n ) such that for every P 1 ;:::;P n Q hr; Q;P 1 ;:::;P n ij= open ffi(q; X 1 ;:::;X n ) iff hq;p 1 ;:::;P n ij= open ψ(x 1 ;:::;X n ): Hence, THEOREM 5.7 A family of point sets is definable in Q by a monadic second-order formula under the open sets interpretation if and only if it is definable in Q with the reals in the background under the open sets interpretation.

Definability in Rationals with Real Order in the Background 11 Under the closed sets interpretation the bound monadic predicate variables range over the closed subsets. COROLLARY 5.8 A family of point sets is definable in Q by a monadic second-order formula under the closed sets interpretation if and only if it is definable in Q with the reals in the background under the closed sets interpretation. PROOF. We provide a reduction between the open sets interpretation and the closed sets interpretation. Let ffi be a formula and let ψ be obtained from ffi when for every bound monadic variable X and every individual variable t, t 2 X is replaced by t 62 X. It is obvious that a family of point sets is definable by ffi under the open (respectively closed) sets interpretation if and only if the family is definable by ψ under the closed (respectively open) sets interpretation. This reduction together with Theorem 5.7 give the desirable result. References [1] H.-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer Perspectives in Mathematical Logic, 1995. [2] A. Ehrenfeucht. An application of games to the completeness problem for formalized theories. Fundamenta Mathematicae, 49, 129 141, 1961. [3] Y. Gurevich and A. Rabinovich. Definability and Undefinability with Real Order in the Background. Journal of Symbolic Logic, 65, 946 958, 2000. [4] H. Läuchli. A decision procedure for the weak second order theory of linear order. In Contributions to Mathematical Logic, Proceedings of Logic Colloquium Hanover 1966, North-Holland, 1968. Received 17 December 1999