\revauthor

Durand, Arnaud \revauthorJones, Neil D. \revauthorMakowsky, Johann A. \revauthorMore, Malika

Fifty years of the spectrum problem:
Survey and new results

A. Durand Équipe de Logique, Université Paris 7, France durand@logique.jussieu.fr   N. D. Jones DIKU, University of Copenhagen, Denmark neil@diku.dk   J. A. Makowsky Faculty of Computer Science, Technion, Haifa, Israel janos@cs.technion.ac.il   M. More Univ Clermont 1, LAIC, France more@laic.u-clermont1.fr
Abstract

In 1952, Heinrich Scholz published a question in the Journal of Symbolic Logic asking for a characterization of spectra, i.e., sets of natural numbers that are the cardinalities of finite models of first order sentences. Günter Asser asked whether the complement of a spectrum is always a spectrum. These innocent questions turned out to be seminal for the development of finite model theory and descriptive complexity. In this paper we survey developments over the last 50-odd years pertaining to the spectrum problem. Our presentation follows conceptual developments rather than the chronological order. Originally a number theoretic problem, it has been approached in terms of recursion theory, resource bounded complexity theory, classification by complexity of the defining sentences, and finally in terms of structural graph theory. Although Scholz’ question was answered in various ways, Asser’s question remains open. One appendix paraphrases the contents of several early and not easily accesible papers by G. Asser, A. Mostowski, J. Bennett and S. Mo. Another appendix contains a compendium of questions and conjectures which remain open.

To be submitted to the Bulletin of Symbolic Logic.

(version 13.2)

Sganarelle: Ah! Monsieur, c’est un spectre:
je le reconnais au marcher.
Dom Juan: Spectre, fantôme, ou diable,
je veux voir ce que c’est.
J.B. Poquelin, dit Molière, Dom Juan, Acte V, scène V

1 Introduction

At the Annual Symposium of the European Association of Computer Science Logic, CSL’05, held in Oxford in 2005, Arnaud Durand, Etienne Grandjean and Malika More organized a special workshop dedicated to the spectrum problem. The workshop speakers and the title of their talks where

  • Annie Chateau (UQAM, Montreal)
    The Ultra-Weak Ash Conjecture is Equivalent to the Spectrum Conjecture, and Some Relative Results

  • Mor Doron (Hebrew University, Jerusalem).
    Weakly Decomposable Classes and Their Spectra (joint work with S. Shelah),

  • Aaron Hunter (Simon Fraser University, Burnaby).
    Closure Results for First-Order Spectra: The Model Theoretic Approach

  • Neil Immerman (University of Massachusetts, Amherst)
    Recent Progress in Descriptive Complexity

  • Neil Jones (University of Copenhagen, Copenhagen)
    Some remarks on the spectrum problem

  • Johann A. Makowsky (Technion–Israel Institute of Technology, Haifa)
    50 years of the spectrum problem

The organizers and speakers then decided to use the occasion to expand the survey talk given by J.A. Makowsky into the present survey paper, rather than publish the talks.

Acknowledgements

We would like to thank A. Chateau, M. Doron, A. Esbelin, R. Fagin, E. Fischer, E. Grandjean, A. Hunter, N. Immerman and S. Shelah for their fruitful comments which helped our preparation of this survey.  

2 The Emergence of the Spectrum Problem

2.1 Scholz’s problem

In 1952, H. Scholz published an innocent question in the Journal of Symbolic Logic [ar:Scholz52]:

1. Ein ungelöstes Problem in der symbolischen Logik. IK𝐼𝐾IK sei der Prädikatenkalkül der ersten Stufe mit der Identität. In IK𝐼𝐾IK ist ein Postulatensystem BP𝐵𝑃BP für die Boole’sche Algebra mit einer einzigen zweistelligen Prädikatenvariablen formalisierbar. θ𝜃\theta sei die Konjunktion der Postulate von PB𝑃𝐵PB. Dann ist θ𝜃\theta für endliche m𝑚m m𝑚m-zahlig erfüllbar genau dann, wennn es ein n>0𝑛0n>0 gibt, sodaß m=2n𝑚superscript2𝑛m=2^{n}.

Hieraus ergibt sich das folgende Problem. H𝐻H sei ein Ausdruck des IK𝐼𝐾IK. Unter dem Spectrum von H𝐻Hsoll die Menge der natürlichen Zahlen verstanden sein, für welche H𝐻H erfüllbar ist. M𝑀M sei eine beliebige Menge von natürlichen Zahlen. Gesucht ist eine hinreichende [hinrerichende] und notwendige Bedingung dafür, daß es ein H𝐻H gibt, sodaß M𝑀M das Spectrum von H𝐻H ist.
(Received September 19, 1951).

In English:

1. An unsolved problem in symbolic logic. Let IK𝐼𝐾IK [Identitätskalkül] be the first order predicate calculus with identity. In IK𝐼𝐾IK one can formalize an axiom system BP𝐵𝑃BP [Boole’sche Postulate] for Boolean algebras with only one binary relation variable. Let θ𝜃\theta be the conjunction of the axioms of BP𝐵𝑃BP. Then θ𝜃\theta is satisfiable in a finite domain of m𝑚m elements if and only if there is an n>0𝑛0n>0 such that m=2n𝑚superscript2𝑛m=2^{n}.

From this results the following problem. Let H𝐻H be an expression of IK𝐼𝐾IK. We call the set of natural numbers, for which H𝐻H is satisfiable, the spectrum of H𝐻H. Let M𝑀M be an arbitrary set of natural numbers. We look for a sufficient and necessary condition that ensures that there exists an H𝐻H, such that M𝑀M is the spectrum of H𝐻H.
(Received September 19, 1951).

This question inaugurated a new column of Problems to be published in the Journal of Symbolic Logic and edited by L. Henkin. Other questions published in the same issue were authored by G. Kreisel and L. Henkin. They deal with a question about interpretations of non-finitist proofs dealing with recursive ordinals and the no-counter-example interpretation (Kreisel), the provability of formulas asserting the provability or independence of provability assertions (Henkin), and the question whether the ordering principle is equivalent to the axiom of choice (Henkin). All in all 9 problems were published, the last in 1956.

The context in which Scholz’s question was formulated is given by the various completeness and incompleteness results for First Order Logic that were the main concern of logicians of the period. An easy consequence of Gödel’s classical completeness theorem of 1929 states that validity of first order sentences in all (finite and infinite) structures is recursively enumerable, whereas Church’s and Turing’s classical theorems state that it is not recursive. In contrast to this, the following was shown in 1950 by B. Trakhtenbrot.

Theorem 2.1 (Trakhtenbrot 50[ar:Trakhtenbrot50])

Validity of first order sentences in all finite structures (f-validity) is not recursively enumerable, and hence satisfiability of first order sentences in some finite structure (f-satisfiability) is not decidable, although it is recursively enumerable.

_

Heinrich Scholz, a German philosopher, was born 17. December 1884 in Berlin and died 30. December 1956 in Münster. He was a student of Adolf von Harnack. He studied in Berlin and Erlangen philosophy and theology and got his habilitation in 1910 in Berin for the subjects philosophy of religion and systematic theology. He received his Ph.D. in 1913 for his thesis Schleiermacher and Goethe. A contribution to the history of German thought. In 1917 he was appointed full professor for philosophy of religion in Breslau (Wroclaw, today Poland). In 1919 he moved to Kiel, and from 1928 on he taught in Münster. From 1924 till 1928 he studied exact sciences and logic and formed in Münster a center for mathematical logic and foundational studies, later to be known as the school of Münster. His chair became in 1936 the first chair for mathematical logic and the foundations of exact sciences. His seminar underwent several administrative metamorphoses that culminated in 1950 in the creation of the Institute for mathematical logic and the foundations of exact sciences, which he led until his untimely death. Among his pupils and collaborators we find W. Ackermann, F. Bachmann, G. Hasenjäger, H. Hermes, K. Schröter and H. Schweitzer. He was also among the founders of the German society bearing the same name (DVMLG). H. Scholz was a Platonist, and he considered mathematical logic as the foundation of epistemology. He is credited for his discovery of Frege’s estate, and for making Frege’s writing accessible to a wider readership. Together with his pupil Hasenjäger he authored the monograph Grundzüge der Mathematischen Logik, published posthumously in 1961.

_

Thus, H. Scholz really asked whether one could prove anything meaningful about f-satisfiablity besides its undecidability.

2.2 Basic facts and questions

In our notation to be used throughout the paper, H. Scholz introduced the following:

Let τ𝜏\tau be a vocabulary, i.e., set of relation and function symbols. Let ϕitalic-ϕ\phi be a sentence in some logic with equality over a vocabulary τ𝜏\tau. Unless otherwise stated the logic will be first order logic FOL(τ)𝐹𝑂𝐿𝜏FOL(\tau). Sometimes we shall also discuss second order logic, or a fragment thereof.

Definition 2.2.

The spectrum spec(ϕ)specitalic-ϕ\textsc{spec}({\phi}) of ϕitalic-ϕ\phi is the set of finite cardinalities (viewed as a subset of {\mathbb{N}}), in which ϕitalic-ϕ\phi has a model.

We denote by Spec the set of spectra of first-order sentences, i.e.,

Spec={spec(ϕ)|ϕ is a first-order formula}Specconditional-setspecitalic-ϕitalic-ϕ is a first-order formula\textsc{Spec}=\{\textsc{spec}({\phi})\ |\ \phi\mbox{\ is a first-order formula}\}

We shall use S,Si𝑆subscript𝑆𝑖S,S_{i} to denote spectra. For the definition of spectra it does not matter whether we use function symbols or not. So, unless otherwise stated, vocabularies will be without function symbols. However, we shall allow function symbols when dealing with sentences of special forms.

Clearly, spec(ϕ)=specitalic-ϕ\textsc{spec}({\phi})=\emptyset if and only if ϕitalic-ϕ\phi is not f-satisfiable. By definition of satisfiability 00 is never part of a spectrum. Very often a spectrum is finite, cofinite or even of the form +={0}superscript0\mathbb{N}^{+}=\mathbb{N}-\{0\}.

Question 2.3

Is it decidable whether, for a given ϕitalic-ϕ\phi, spec(ϕ)=+specitalic-ϕsuperscript\textsc{spec}({\phi})=\mathbb{N}^{+}?

As H. Scholz noted, (the set of) powers of 222 form a spectrum, because they are the cardinalities of finite Boolean algebras. Similarly, powers of primes form a spectrum, because they are the cardinalities of finite fields. For a,b+𝑎𝑏superscripta,b\in\mathbb{N}^{+} there are many ways to construct a sentence ϕitalic-ϕ\phi with spec(ϕ)=a+bspecitalic-ϕ𝑎𝑏\textsc{spec}({\phi})=a+b\mathbb{N}, one of which consists in using one unary function symbol. With a moment of reflection, one sees that spectra have the following closure properties.

Proposition 2.4

Let S1subscript𝑆1S_{1} and S2subscript𝑆2S_{2} be spectra.

  1. (i)

    Then S1S2,S1S2subscript𝑆1subscript𝑆2subscript𝑆1subscript𝑆2S_{1}\cup S_{2},S_{1}\cap S_{2}are also spectra.

  2. (ii)

    Let S1+S2={m+n:mS1,nS2}subscript𝑆1subscript𝑆2conditional-set𝑚𝑛formulae-sequence𝑚subscript𝑆1𝑛subscript𝑆2S_{1}+S_{2}=\{m+n:m\in S_{1},n\in S_{2}\}. Then S1+S2subscript𝑆1subscript𝑆2S_{1}+S_{2}is a spectrum.

  3. (iii)

    Let S1S2={mn:mS1,nS2}subscript𝑆1subscript𝑆2conditional-set𝑚𝑛formulae-sequence𝑚subscript𝑆1𝑛subscript𝑆2S_{1}\star S_{2}=\{m\cdot n:m\in S_{1},n\in S_{2}\}. Then S1S2subscript𝑆1subscript𝑆2S_{1}\star S_{2}is a spectrum.

In the spirit of Question 2.3 we can also ask:

Question 2.5

Which of the following sets are recursive? The set of sentences ϕitalic-ϕ\phi such that

  1. (i)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is finite, cofinite.

  2. (ii)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is ultimately periodic.

  3. (iii)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is, for given a,b𝑎𝑏a,b\in{\mathbb{N}}of the form a+b𝑎𝑏a+b{\mathbb{N}}.

  4. (iv)

    spec(ϕ)=Sspecitalic-ϕ𝑆\textsc{spec}({\phi})=Sfor a given set S+𝑆superscriptS\subseteq{\mathbb{N}}^{+}.

We shall answer Questions 2.3 and 2.5 in Section 3.4.

2.3 Immediate responses to H. Scholz’s problem

The first to publish a paper in response to H. Scholz’s problem was G. Asser [ar:Asser55]. A. Robinson’s review [misc:Robinson-mr] summarizes it as follows:

(\ldots) The present paper is concerned with the characterisation of all representable sets [=spectra]. A rather intricate necessary and sufficient condition is stated for arithmetical function X(n)𝑋𝑛X(n) to be the characteristic function of a representable set. The condition shows that such a function is elementary in the sense of Kalmar. (\ldots) On the other hand, the author establishes that there exist non-representable sets whose characteristic function is elementary. Examples of representable sets (some of which are by no means obvious) are given without proof and the author suggests that further research in this field is desirable.

Asser also noted that his characterization did not establish whether the complement of a spectrum is a spectrum.

About the same time, A. Mostowski [ar:Mostowski56] also considered the problem. H. Curry [misc:Curry-mr] summarizes Mostowski’s paper as follows:

(\ldots) The author proves that for each function f(n)𝑓𝑛f(n) of a class K𝐾K of functions, which is like the class of primitive functions except that at each step all functions are truncated above at n𝑛n, there is a formula H𝐻H that has a model in a set of n+1𝑛1n+1 individuals if and only if f(n)=0𝑓𝑛0f(n)=0. From this he deduces positive solutions to Scholz’s problem in a number of special cases.

It is usually considered that A. Mostowski really proved

Theorem 2.6

All sets of natural numbers, whose characteristic functions are in the second level of the Grzegorzcyk Hierarchy 2superscript2{\mathcal{E}}^{2}, are first order spectra.

The detailed definitions and contents of this theorem will be discussed in Section 4.

In the last 50 years a steady stream of papers appeared dealing with spectra of first order and higher order logics. The problem seems not too important at first sight. However, some of these papers had considerable impact on what is now called Finite Model Theory and Descriptive Complexity Theory.

Open Question 1 (Scholz’s Problem)

Characterize the sets of natural numbers that are first order spectra.

Scholz’s Problem, as stated, is rather vague. He asks for a characterization of a family of subsets of the natural numbers without specifying, what kind of an answer he had in mind. The answer could be in terms of number theory, recursion theory, it could be algebraic, or in terms of something still to be developed. We shall see in the sequel many solutions to Scholz’s Problem, but we consider it still open, because further answers are still possible.

The same question can be asked for any logic, in particular second order logic SO, or fragments thereof, like monadic second order logic MSOL, fixed point logic, etc., as discussed in [bk:EbbinghausF95, bk:Libkin04].

Open Question 2 (Asser’s Problem)

Is the complement of a first order spectrum a first order spectrum?

Here the answer should be yes or no.

The corresponding problem for SO has a trivial solution. Let ϕSO(τ)italic-ϕSO𝜏\phi\in\textsc{SO}({\tau}) with τ={R1,,Rk}𝜏subscript𝑅1subscript𝑅𝑘\tau=\{R_{1},\ldots,R_{k}\}. An integer n𝑛n is in spec(ϕ)specitalic-ϕ\textsc{spec}({\phi}) iff

nR1R2Rkϕ.models𝑛subscript𝑅1subscript𝑅2subscript𝑅𝑘italic-ϕn\models\exists R_{1}\exists R_{2}\ldots\exists R_{k}\phi.

Then, the complement of spec(ϕ)specitalic-ϕ\textsc{spec}({\phi}) is easily seen to be the spectrum of the SO sentence ¬(R1Rkϕ)subscript𝑅1subscript𝑅𝑘italic-ϕ\neg(\exists R_{1}\ldots\exists R_{k}\phi). In passing, note that every SO-spectrum is a SO(τ)SO𝜏\textsc{SO}({\tau}) over a language τ𝜏\tau containing equality only.

However, for fixed fragments of SO, Asser’s Problem remains open. In particular

Open Question 3

Is the complement of a spectrum of an MSOL-sentence again a spectrum of an MSOL-sentence?

2.4 Approaches and themes

In this survey we shall describe the various solutions and attempts to solve Scholz’s and Asser’s problems, and the developments these attempts triggered. We shall emphasize more the various ways the questions were approached, and focus less on the historical order of the papers.

There are several discernible themes:

Recursion Theory

The early authors H. Asser and A. Mostowski approached the question in the language of the theory of recursive functions i.e. they looked for characterization of spectra in terms of recursion schemes, or hierarchies of recursive functions. Most prominently in terms of Kalmar’s elementary functions, the Grzegorczyk hierarchy and hierarchies of arithmetical predicates, in particular rudimentary relations. This line of thought culminates in 1962 in the thesis of J. Bennett [phd:Bennett62]111 It seems that some of Bennet’s unpublished results were rediscovered independently in China in the late 1980ties by Shaokui Mo [ar:Mo91]. We shall discuss his work in Section A.4. . Although G. Asser already characterized first order spectra in such terms, his characterization was not considered satisfactory even by himself, because it did not use standard terms and was not useful in proving that a given set of integers is (or not) a spectrum. We shall discuss the recursion theoretic approach in detail in Section 4.

Complexity Theory

In the 1970s, D. Rödding and H. Schwichtenberg of the Münster school [ar:RoeddingS72] gave a sufficient but not necessary condition: any set of integers recognizable by a deterministic linear space-bounded Turing machine is a first-order spectrum. (This is also a consequence of results of Bennett and Ritchie [phd:Bennett62, ar:Ritchie63], obtained before the emergence of complexity theory.) Further, Rödding and Schwichtenberg showed that sets of integers recognisable using larger space bounds are higher order spectra. C. Christen developed this line further [phd:Christen74, proc:Christen76], independently obtaining a number of the following results.

At the same time the spectrum problem gained renewed interest in the USA. In 1972 A. Selman and N. Jones found an exact solution to Scholz’s original question [proc:JonesS72]: a set of integers is a first order spectrum if and only if it is recognizable by a non-deterministic Turing machine in time O(2cn)𝑂superscript2𝑐𝑛O(2^{c\cdot n}).

This result was independently also obtained by R. Fagin in his thesis [phd:Fagin73], which contains an abundance of further results. Most importantly, R. Fagin studies generalized spectra, which are the projective classes of Tarski, restricted to finite structures, and really laid the foundations for Finite Model Theory and Descriptive Complexity, as can be seen in the monographs [bk:Immerman99, bk:EbbinghausF95, bk:Libkin04]. We shall discuss the complexity theoretic approach in detail in Section 5.

Images and preimages of spectra

From Proposition 2.4 it follows that, if S𝑆S is a first order spectrum and p𝑝p is a polynomial with positive coefficents, then p(S)={p(m):mS}𝑝𝑆conditional-set𝑝𝑚𝑚𝑆p(S)=\{p(m):m\in S\} is also a spectrum. In J. Bennett’s thesis it is essentially proved that there is a first order spectrum S𝑆S and an integer k𝑘k such that {n:2nkS}conditional-set𝑛superscript2superscript𝑛𝑘𝑆\{n:2^{n^{k}}\in S\} is not a spectrum. It is natural to ask what happens to a spectrum under images and preimages of number theoretic functions. The general line of this type of results states that certain images or preimages of spectra of specific forms of sentences are or are not spectra of other specific forms of sentences.

Spectra of syntactically restricted sentences

Already in a paper by L. Löwenheim from 1915 [ar:Loewenheim15] it is noted that, what later will be called the spectrum of a sentence in monadic second order logic (MSOL) with unary relation symbols only, is finite or cofinite. The set of even numbers is the spectrum of an MSOL sentence with one binary relation symbol, and it is ultimately periodic. Further, every ultimately periodic set of positive integers is a spectrum of a first order MSOL sentence with one unary function symbol. Over the last fifty years various papers were written relating restrictions on the use of relation and function symbols, or other syntactic restrictions, to special forms of spectra. R. Fagin, in his thesis, poses the following problem

Open Question 4 (Fagin’s Problem for binary relations)

Is every first order spectrum the spectrum of a first order sentence of one binary relation symbol?

The question is even open, if restricted to any fixed vocabulary that contains at least one binary relation symbol or two unary function symbols.

Much of this line of research is motivated by attempts to solve Fagin’s problem.

Transfer theorems

Another way of studying spectra is given by the following result, again from Fagin’s thesis: If S𝑆S is a spectrum of a purely relational sentence where all the predicate symbols have arity bounded by k𝑘k, then Sk={mk:mS}superscript𝑆𝑘conditional-setsuperscript𝑚𝑘𝑚𝑆S^{k}=\{m^{k}:m\in S\} is a spectrum of a sentence with one binary relation symbol only, or even a spectrum on simple graphs. One can view this an approach combining the study of images and preimages of spectra with either syntactically or semantically restricted spectra. Over the years quite a few results along this line were published. We shall discuss the last three approaches under the common theme of restrictions on vocabularies in detail in Section 6.

Spectra of semantically restricted classes

R. Fagin shows that Asser’s problem has a positive answer if and only if it has a positive answer if restricted to the class of simple graphs. Similarly, in order to understand Fagin’s problem better, one could consider restricted graph classes K𝐾K, and study first order spectra restricted to graphs in K𝐾K. One may think of graphs of bounded degree, planar graphs, trees, graphs of tree-width at most k𝑘k, etc.

Open Question 5 (Fagin’s Problem for simple graphs)

Is every first order spectrum the spectrum of a first order sentence over simple graphs?

Open Question 6

Is every first order spectrum the spectrum of a first order sentence over planar graphs?

For restrictions to graph classes of bounded tree-width, the answer is negative. The reason for this is that spectra of graphs of bounded tree-width are ultimately periodic. In fact, this holds for a much wider class of spectra. E. Fischer and J.A. Makowsky, [ar:FischerM04], have analyzed under what conditions MSOL-spectra are ultimately periodic. We shall discuss their results in detail in Section 8.

This line of thought has not been extensively explored, this may well be a fruitful avenue for studying spectra in the future.

In the sequel of this survey we shall summarize what is known about spectra along these themes. Various solutions to Scholz’s Problem were offered in the literature, varying with the tastes of the times, but there may be still more to come. Asser’s and Fagin’s Problems are still open. Both problems are intimately related to our understanding of definability hierarchies in Descriptive Complexity Theory. They may well serve as benchmarks of our understanding.

3 Understanding Spectra: counting functions and number theory

In this section we formulate various ways to test our understanding of spectra. It will turn out that there still many questions we do not know how to answer.

3.1 Representation of spectra and counting functions

Spectra are sets of positive natural numbers. These sets can be represented in various ways. We shall use the following:

Definition 3.1.

Let M+𝑀superscriptM\subseteq{\mathbb{N}}^{+}, and let m1,m2,subscript𝑚1subscript𝑚2m_{1},m_{2},\ldots an enumeration of M𝑀M ordered by the size of its elements.

  1. (i)

    χM(n)subscript𝜒𝑀𝑛\chi_{M}(n) is the characteristic function of M𝑀M, i.e.,

    χM(n)={1& if nM0 else .subscript𝜒𝑀𝑛cases1otherwise& if 𝑛𝑀0 else \chi_{M}(n)=\cases{1}&\mbox{ if }n\in M\\ 0\mbox{ else }.
  2. (ii)

    ηM(n)subscript𝜂𝑀𝑛\eta_{M}(n) is the enumeration function of M𝑀M, i.e.,

    ηM(n)={mn& if it exists 
    0 else 
    .
    subscript𝜂𝑀𝑛subscriptcases𝑚otherwise𝑛& if it exists 
    0 else 
    \eta_{M}(n)=\cases{m}_{n}&\mbox{ if it exists }\\ 0\mbox{ else }.
  3. (iii)

    γM(n)subscript𝛾𝑀𝑛\gamma_{M}(n) is the counting function of M𝑀M, i.e., γM(n)subscript𝛾𝑀𝑛\gamma_{M}(n) is the number of elements in M𝑀M that are strictly smaller than n𝑛n.

  4. (iv)

    A gap of M𝑀M is a pair of integers g1,g2subscript𝑔1subscript𝑔2g_{1},g_{2} such that g1,g2Msubscript𝑔1subscript𝑔2𝑀g_{1},g_{2}\in M but for each n𝑛n with g1<n<g2subscript𝑔1𝑛subscript𝑔2g_{1}<n<g_{2} we have that nM𝑛𝑀n\not\in M. Now let δM(n)subscript𝛿𝑀𝑛\delta_{M}(n) be the length of the n𝑛nth gap of M𝑀M. Clearly, δM(n)=ηM(n+1)ηM(n)subscript𝛿𝑀𝑛subscript𝜂𝑀𝑛1subscript𝜂𝑀𝑛\delta_{M}(n)=\eta_{M}(n+1)-\eta_{M}(n).

Obvious questions are of the following type:

Open Question 7

Which strictly increasing sequences of positive integers, are enumerating functions of spectra? For instance, how fast can they grow?

Open Question 8

If M𝑀M is a spectrum how can δM(n)subscript𝛿𝑀𝑛\delta_{M}(n) behave?

Coding runs of Turing machines one can easily obtain the following.

Proposition 3.2

For every recursive monotonically increasing function f𝑓f there is a first order formula ϕitalic-ϕ\phi such that δϕ(n)=f(n)subscript𝛿italic-ϕ𝑛𝑓𝑛\delta_{\phi}(n)=f(n).

Various other partial answers to these questions will appear throughout our narrative.

3.2 Prime numbers

An obvious question is whether the primes form a spectrum. If one gets more ambitious one can ask for special sets of primes such as Fermat primes (of the form 22n+1superscript2superscript2𝑛12^{2^{n}}+1), Mersenne primes (of the form 2p1superscript2𝑝12^{p}-1 with p𝑝p a prime), or the set of primes p𝑝p such that p+2𝑝2p+2 is also a prime (twin primes). Even if we do not know whether such a set is finite, which is the case for twin primes, it may still be possible to prove that it is a spectrum. The answer to all these question is yes, because all these sets are easily proved to be rudimentary, see Section 4.

In the sense of the above definitions we have χprimessubscript𝜒𝑝𝑟𝑖𝑚𝑒𝑠\chi_{primes} is the charactersitic function of the set of primes, ηprimes(n)=pnsubscript𝜂𝑝𝑟𝑖𝑚𝑒𝑠𝑛subscript𝑝𝑛\eta_{primes}(n)=p_{n}, and γprimes(n)subscript𝛾𝑝𝑟𝑖𝑚𝑒𝑠𝑛\gamma_{primes}(n) is the counting function of the primes, usually denoted by π(n)𝜋𝑛\pi(n). δprimes(n)subscript𝛿𝑝𝑟𝑖𝑚𝑒𝑠𝑛\delta_{primes}(n) is usually denoted by dnsubscript𝑑𝑛d_{n}. All these functions related to primes are subject to intensive study in the literature, see eg. [bk:Ribenboim89]. As we have said that the primes form a first order spectrum, all the features of these functions observed on primes do occur on spectra.

For instance, π(n)𝜋𝑛\pi(n) is approximated by the integral logarithm li(n)𝑙𝑖𝑛li(n), and it was shown by J.E. Littlewood in 1914, cf. [bk:Ribenboim89] that π(n)li(n)𝜋𝑛𝑙𝑖𝑛\pi(n)-li(n) changes sign infinitely many often. For logical aspects of Littlewood’s theorem, see [ar:Kreisel52].

Let us define {gather} π^+ ={ n : π(n) - li(n) ¿ 0 } \notag
π^- ={ n : π(n) - li(n) ≥0 } \notag A less obvious question concerning spectra and primes is

Open Question 9

Are the sets π+superscript𝜋\pi^{+} and πsuperscript𝜋\pi^{-} spectra?

3.3 Density functions

Many combinatorial functions are defined by linear or polynomial recurrence relations. Among them we have the powers of 222, factorials, the Fibonacci numbers, Bernoulli numbers, Lucas numbers, Stirling numbers and many more, cf. [bk:GrahamKP89].

Question 3.3

Are the sets of values of these combinatorial functions first order spectra?

The answer will be yes in all of these cases. We shall sketch a proof in Section A.3 that is based on the existence of such recurrence relations.

But these functions also allow combinatorial interpretations as counting functions: The powers of 222 count subsets, the factorials count linear orderings, the Stirling numbers are related to counting equivalence relations. We shall see below that in these three examples the combinatorial definitions allow us to give alternative proofs that these sets of numbers are first order spectra.

The spectrum of a sentence ϕitalic-ϕ\phi witnesses the existence of models of ϕitalic-ϕ\phi of corresponding cardinalities. Instead, one could also ask for the number of ways the set {0,1,,n1}=[n]01𝑛1delimited-[]𝑛\{0,1,\ldots,n-1\}=[n] can be made into a model of ϕitalic-ϕ\phi. Alternatively one could count models up to isomorphisms or up to some other equivalence relation.

Combinatorial counting functions come in different flavours;

Definition 3.4.

Let 𝒞𝒞\mathcal{C} be a class of finite τ𝜏\tau-structures. With 𝒞𝒞\mathcal{C} we associate the following counting functions:

  1. (i)

    f𝒞(n)subscript𝑓𝒞𝑛f_{\mathcal{C}}(n) is the number of ways one can interpret the relation symbols of τ𝜏\tau on the universe [n]delimited-[]𝑛[n] such that the resulting structure is in 𝒞𝒞\mathcal{C}. This corresponds to counting labeled structures.

  2. (ii)

    Let Str(τ)(n)𝑆𝑡𝑟𝜏𝑛Str(\tau)(n) denote the number of labeled τ𝜏\tau-structures of size n𝑛n. We put

    prob𝒞(n)=f𝒞(n)Str(τ)(n)𝑝𝑟𝑜subscript𝑏𝒞𝑛subscript𝑓𝒞𝑛𝑆𝑡𝑟𝜏𝑛{\mathit{p}rob}_{\mathcal{C}}(n)=\frac{f_{\mathcal{C}}(n)}{Str(\tau)(n)}

    which can be interpreted as the probability that a labeled τ𝜏\tau-structure of size n𝑛n is in 𝒞𝒞\mathcal{C}.

  3. (iii)

    f𝒞iso(n)superscriptsubscript𝑓𝒞𝑖𝑠𝑜𝑛f_{\mathcal{C}}^{iso}(n) is the number of non-isomorphic models in 𝒞𝒞\mathcal{C} of size n𝑛n.

  4. (iv)

    For an equivalence relation E𝐸E on 𝒞𝒞\mathcal{C} we denote by f𝒞E(n)superscriptsubscript𝑓𝒞𝐸𝑛f_{\mathcal{C}}^{E}(n) the number of non-E–equivalent models in 𝒞𝒞\mathcal{C} of size n𝑛n.

  5. (v)

    If E𝐸E is the k𝑘k-equivalence from Ehrenfeucht-Fraïssé games, f𝒞E(n)superscriptsubscript𝑓𝒞𝐸𝑛f_{\mathcal{C}}^{E}(n) is denoted by N𝒞,k(n)subscript𝑁𝒞𝑘𝑛N_{\mathcal{C},k}(n), and is called an Ash-function, cf. [ar:Ash94] and Section 7.

  6. (vi)

    If 𝒞𝒞\mathcal{C} consists of all the finite models of a sentence ϕitalic-ϕ\phi we write fϕE(n)superscriptsubscript𝑓italic-ϕ𝐸𝑛f_{\phi}^{E}(n) instead of f𝒞E(n)superscriptsubscript𝑓𝒞𝐸𝑛f_{\mathcal{C}}^{E}(n). Similarly for probϕ(n)𝑝𝑟𝑜subscript𝑏italic-ϕ𝑛{\mathit{p}rob}_{\phi}(n).

Counting labeled and non-labeled structures has a rich literature, cf. [bk:HararyP73, bk:Wilf90]. Note that counting non-labeled non-isomorphic structures is in general much harder than the labeled case. The first connection between counting labeled structures and logic is the celebrated 0-1 Law for first order logic:

Theorem 3.5 (0-1 Laws)

For every first order sentence ϕitalic-ϕ\phi over a purely relational vocabulary τ𝜏\tau we have:

  1. (i)

    (Y. Glebskii, D. Kogan, M. Liogonki and V. Talanov [ar:GlebskijKLT69]; R. Fagin [phd:Fagin73])

    limnprobϕ(n)={0&1subscript𝑛𝑝𝑟𝑜subscript𝑏italic-ϕ𝑛cases0otherwise&1\lim_{n\rightarrow\infty}{\mathit{p}rob}_{\phi}(n)=\cases{0}&\\ 1

    and the limit always exists.

  2. (ii)

    (E. Grandjean [ar:Grandjean83a]) Furthermore, the set of sentences ϕitalic-ϕ\phisuch that limnprobϕ(n)=1subscript𝑛𝑝𝑟𝑜subscript𝑏italic-ϕ𝑛1\lim_{n\rightarrow\infty}{\mathit{p}rob}_{\phi}(n)=1is decidable, and in fact 𝐏𝐒𝐩𝐚𝐜𝐞𝐏𝐒𝐩𝐚𝐜𝐞{\mathbf{PSpace}}-complete.

What we are interested in here, is the relationship of such counting functions to spectra. Our example of powers of 222 shows that

2n=fϕ(n)=ηψ(n)superscript2𝑛subscript𝑓italic-ϕ𝑛subscript𝜂𝜓𝑛2^{n}=f_{\phi}(n)=\eta_{\psi}(n)

where ϕitalic-ϕ\phi is an always-true first order sentence with one unary relation symbol, and ψ𝜓\psi is the conjunction of the axioms of Boolean algebras. Similarly,

n!=fϕLIN(n)=ηψ(n)𝑛subscript𝑓subscriptitalic-ϕ𝐿𝐼𝑁𝑛subscript𝜂𝜓𝑛n!=f_{\phi_{LIN}}(n)=\eta_{\psi}(n)

where ϕLINsubscriptitalic-ϕ𝐿𝐼𝑁\phi_{LIN} are the axioms of linear orders, and ψ𝜓\psi describes the following situation:

  1. (i)

    P𝑃P is a unary relation and R𝑅R is an linear order on P𝑃P.

  2. (ii)

    E𝐸E is a ternary relation that is a bijection between the universe (first argument x𝑥x) and all the linear orderings on P𝑃P (remaining two arguments y,z𝑦𝑧y,z).

  3. (iii)

    First we say that there is an x𝑥x that corresponds to R𝑅R; and that for xx𝑥superscript𝑥x\neq x^{\prime} the orderings are different. This says that E𝐸E is injective. To ensure that we get all the orderings on P𝑃P we say that for every ordering and every transposition of two elements in this ordering, there is a corresponding ordering.

Hence, the size of the model of ψ𝜓\psi is the number of linear orderings on P𝑃P.

Clearly, if fϕsubscript𝑓italic-ϕf_{\phi} is not strictly increasing, there is no ψ𝜓\psi with fϕ(n)=ηψ(n)subscript𝑓italic-ϕ𝑛subscript𝜂𝜓𝑛f_{\phi}(n)=\eta_{\psi}(n). For instance, for ϕitalic-ϕ\phi which says that some function is a bijection of a part of the universe to its complement, we have

fϕ(n)={(2mm)m!& if n=2m0 else subscript𝑓italic-ϕ𝑛casesbinomial2𝑚𝑚otherwise𝑚& if 𝑛2𝑚0 else f_{\phi}(n)=\cases{2m\choose m}\cdot m!&\mbox{ if }n=2m\\ 0\mbox{ else }
Open Question 10

Let ϕitalic-ϕ\phi a first order sentence, and fϕsubscript𝑓italic-ϕf_{\phi} be the associated labeled counting function that is monotonically increasing. Is there a first order sentence ψ𝜓\psi such that for all n𝑛n

fϕ(n)=ηψ(n)subscript𝑓italic-ϕ𝑛subscript𝜂𝜓𝑛f_{\phi}(n)=\eta_{\psi}(n)

The converse question seems more complicated. For instance, as we have noted before, the primes pnsubscript𝑝𝑛p_{n} are of the form ηψsubscript𝜂𝜓\eta_{\psi} for some first order ψ𝜓\psi, but we are not aware of any labeled counting function that will produce the primes.

R. Fagin [proc:Fagin74] calls ϕitalic-ϕ\phi categorical if fϕiso(n)1superscriptsubscript𝑓italic-ϕ𝑖𝑠𝑜𝑛1f_{\phi}^{iso}(n)\leq 1 for every n𝑛n. For instance, ϕLINsubscriptitalic-ϕ𝐿𝐼𝑁\phi_{LIN} is categorical. The counting function up to isomorphisms can be bounded by any finite number m𝑚m, using disjunctions of different categorical sentences. So it may be less promising to study for which first order sentences ϕitalic-ϕ\phi there is a ψ𝜓\psi such that fϕiso(n)=ηψ(n)superscriptsubscript𝑓italic-ϕ𝑖𝑠𝑜𝑛subscript𝜂𝜓𝑛f_{\phi}^{iso}(n)=\eta_{\psi}(n), or vice versa.

Surprisingly enough, C. Ash [ar:Ash94] has found a connection between Asser’s Problem and the behaviour of the Ash functions defined in Definition 3.4(v). We shall discuss this in Section 7.

3.4 Sentences with prescribed spectra

In the light of Theorem 3.5 we note that if probϕ(n)𝑝𝑟𝑜subscript𝑏italic-ϕ𝑛{\mathit{p}rob}_{\phi}(n) tends to 111 then spec(ϕ)𝑠𝑝𝑒𝑐italic-ϕspec(\phi) is cofinite. Obviously, the converse does not hold, because there are categorical sentences with models in all finite cardinalities.

Trakhtenbrot’s Theorem says that it is undecidable whether a spectrum is empty, and Grandjean’s Theorem says that it is decidable, whether a sentence is almost always true, i.e. probϕ(n)𝑝𝑟𝑜subscript𝑏italic-ϕ𝑛{\mathit{p}rob}_{\phi}(n) tends to 111. As a partial answer to Questions 2.3 and 2.5 we have:

Proposition 3.6

Let ϕitalic-ϕ\phi be a first order sentence. The following are undecidable:

  1. (i)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is finite, cofinite.

  2. (ii)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is ultimately periodic.

  3. (iii)

    spec(ϕ)specitalic-ϕ\textsc{spec}({\phi})is, for given a,b𝑎𝑏a,b\in{\mathbb{N}}of the form a+b𝑎𝑏a+b{\mathbb{N}}.

  4. (iv)

    spec(ϕ)=Sspecitalic-ϕ𝑆\textsc{spec}({\phi})=Sfor a given set S+𝑆superscriptS\subseteq{\mathbb{N}}^{+}.

Sketch of Proof.

Let φFO𝜑FO\varphi\in\textsc{FO}. We describe the construction of FO-sentences ψ1subscript𝜓1\psi_{1}, ψ2subscript𝜓2\psi_{2}, ψ3subscript𝜓3\psi_{3}, ψ4subscript𝜓4\psi_{4} and ψ5subscript𝜓5\psi_{5} such that spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset if and only if:

  • -

    spec(ψ1)specsubscript𝜓1\textsc{spec}({\psi_{1}}) is finite.

  • -

    spec(ψ2)=+specsubscript𝜓2superscript\textsc{spec}({\psi_{2}})={\mathbb{N}}^{+}.

  • -

    More generally, spec(ψ3)={f(i)|i+}specsubscript𝜓3conditional-set𝑓𝑖𝑖superscript\textsc{spec}({\psi_{3}})=\{f(i)\ |\ i\in{\mathbb{N}}^{+}\} for a given function f𝑓f such that f(i)i𝑓𝑖𝑖f(i)\geq i for all i𝑖i and the graph n=f(i)𝑛𝑓𝑖n=f(i) seen as a binary relation is rudimentary (see Section 4.2 for a precise definition).

  • -

    spec(ψ4)specsubscript𝜓4\textsc{spec}({\psi_{4}}) is cofinite.

  • -

    spec(ψ5)specsubscript𝜓5\textsc{spec}({\psi_{5}}) is ultimately periodic.

Since the problem of emptiness of spectra is undecidable, the announced result follows.

Let 00 and max\max be two constant symbols, let \leq be a binary predicate symbol and let ++ and ×\times be two ternary predicate symbols. Let Arithm(0,max,,+,×)𝐴𝑟𝑖𝑡𝑚0Arithm(0,\max,\leq,+,\times) denote a first-order sentence axiomatizing the usual arithmetic predicates. Our sentences ψisubscript𝜓𝑖\psi_{i} (i=1,,3𝑖13i=1,\ldots,3) consist of the conjunction of Arithm(0,max,,+,×)𝐴𝑟𝑖𝑡𝑚0Arithm(0,\max,\leq,+,\times) with a specific part ψisubscriptsuperscript𝜓𝑖\psi^{\prime}_{i} that we will describe below. We shall use the fact that the Bit𝐵𝑖𝑡Bit predicate222Bit(a,b)𝐵𝑖𝑡𝑎𝑏Bit(a,b) is true iff the bit of rank b𝑏b of a𝑎a is 111. is definable from ++ and ×\times in finite structures, as well as the ternary relation a=bc𝑎superscript𝑏𝑐a=b^{c}. For simplicity, we will assume w.l.o.g. that the signature of φ𝜑\varphi consists of a binary relation R𝑅R only. Let n𝑛n and y𝑦y be new variable symbols. Let φ(n,y)superscript𝜑𝑛𝑦\varphi^{\prime}(n,y) be the formula obtained from φ𝜑\varphi by replacing every quantification xfor-all𝑥\forall x by x<nfor-all𝑥𝑛\forall x<n and x𝑥\exists x by x<n𝑥𝑛\exists x<n, and every atomic formula R(x,x)𝑅𝑥superscript𝑥R(x,x^{\prime}) by Bit(y,x+nx)𝐵𝑖𝑡𝑦𝑥𝑛superscript𝑥Bit(y,x+nx^{\prime}). The idea is that a graph R𝑅R on a set of n𝑛n elements seen as {0,,n1}0𝑛1\{0,\ldots,n-1\} is encoded by the number y<2n2𝑦superscript2superscript𝑛2y<2^{n^{2}} written in binary with a 111 in position a+bn𝑎𝑏𝑛a+bn if and only if R(a,b)𝑅𝑎𝑏R(a,b) holds. Hence for all n+𝑛superscriptn\in{\mathbb{N}}^{+}, we have y<2n2φ(n,y)𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\exists y<2^{n^{2}}\varphi^{\prime}(n,y) if and only if φ𝜑\varphi has a model with n𝑛n elements.

  • -

    Let ψ1m,n,y<max(max=3m×2n2y<2n2φ(n,y))formulae-sequencesubscriptsuperscript𝜓1𝑚𝑛𝑦superscript3𝑚superscript2superscript𝑛2𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\psi^{\prime}_{1}\equiv\exists m,n,y<\max(\max=3^{m}\times 2^{n^{2}}\wedge y<2^{n^{2}}\wedge\varphi^{\prime}(n,y)).

    It is easy to verify that if spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset, then spec(ψ1)specsubscript𝜓1\textsc{spec}({\psi_{1}}) is also empty (hence finite), and conversely, if spec(φ)spec𝜑\textsc{spec}({\varphi})\neq\emptyset, then spec(ψ1)specsubscript𝜓1\textsc{spec}({\psi_{1}}) contains all the integers of the form 3m×2n2superscript3𝑚superscript2superscript𝑛23^{m}\times 2^{n^{2}} for some m+𝑚superscriptm\in{\mathbb{N}}^{+} and nspec(φ)𝑛spec𝜑n\in\textsc{spec}({\varphi}), i.e. spec(ψ1)specsubscript𝜓1\textsc{spec}({\psi_{1}}) is infinite.

  • -

    Let ψ2(n<maxmax2n2)(n<max(max=2n2y<2n2¬φ(n,y)))subscriptsuperscript𝜓2for-all𝑛superscript2superscript𝑛2𝑛superscript2superscript𝑛2for-all𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\psi^{\prime}_{2}\equiv(\forall n<\max\ \max\neq 2^{n^{2}})\vee(\exists n<\max(\max=2^{n^{2}}\wedge\forall y<2^{n^{2}}\neg\varphi^{\prime}(n,y))).

    If spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset, then for all n𝑛n and y𝑦y, the condition y<2n2φ(n,y)𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\exists y<2^{n^{2}}\varphi^{\prime}(n,y) is false, hence spec(ψ2)=+specsubscript𝜓2superscript\textsc{spec}({\psi_{2}})={\mathbb{N}}^{+}. Conversely, if spec(φ)spec𝜑\textsc{spec}({\varphi})\neq\emptyset, then the integers of the form 2n2superscript2superscript𝑛22^{n^{2}} with nspec(φ)𝑛spec𝜑n\in\textsc{spec}({\varphi}) are not in spec(ψ2)specsubscript𝜓2\textsc{spec}({\psi_{2}}).

  • -

    Since the binary relation y=f(x)𝑦𝑓𝑥y=f(x) is rudimentary, it is definable from ++ and ×\times in finite structures. Let ψ3i<max(max=f(i)((n<ii2n2)(n<i(i=2n2y<2n2¬φ(n,y)))))subscriptsuperscript𝜓3𝑖𝑓𝑖for-all𝑛𝑖𝑖superscript2superscript𝑛2𝑛𝑖𝑖superscript2superscript𝑛2for-all𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\psi^{\prime}_{3}\equiv\exists i<\max(\max=f(i)\wedge((\forall n<i\ i\neq 2^{n^{2}})\vee(\exists n<i(i=2^{n^{2}}\wedge\forall y<2^{n^{2}}\neg\varphi^{\prime}(n,y))))).

    The verification that spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset if and only if spec(ψ3)={f(i)|i+}specsubscript𝜓3conditional-set𝑓𝑖𝑖superscript\textsc{spec}({\psi_{3}})=\{f(i)\ |\ i\in{\mathbb{N}}^{+}\} is similar to the previous case.

  • -

    Let ψ4n<max(2n2maxy<2n2¬φ(n,y))subscriptsuperscript𝜓4for-all𝑛superscript2superscript𝑛2for-all𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\psi^{\prime}_{4}\equiv\forall n<\max(2^{n^{2}}\leq\max\longrightarrow\forall y<2^{n^{2}}\neg\varphi^{\prime}(n,y)).

    If spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset, then for all n𝑛n and y𝑦y, the condition y<2n2φ(n,y)𝑦superscript2superscript𝑛2superscript𝜑𝑛𝑦\exists y<2^{n^{2}}\varphi^{\prime}(n,y) is false, hence spec(ψ4)=+specsubscript𝜓4superscript\textsc{spec}({\psi_{4}})={\mathbb{N}}^{+} (hence is cofinite). Conversely, if spec(φ)spec𝜑\textsc{spec}({\varphi})\neq\emptyset, then the integers greater than 2n2superscript2superscript𝑛22^{n^{2}} with nspec(φ)𝑛spec𝜑n\in\textsc{spec}({\varphi}) are not in spec(ψ2)specsubscript𝜓2\textsc{spec}({\psi_{2}}), which is not cofinite.

  • -

    Let ψ5n,m<max(max=2n2×m2y<2n2φ(n,y)n<ny<2n2¬φ(n,y)))\psi^{\prime}_{5}\equiv\exists n,m<\max(\max=2^{n^{2}}\times m^{2}\wedge\exists y<2^{n^{2}}\varphi^{\prime}(n,y)\wedge\forall n^{\prime}<n\forall y^{\prime}<2^{n^{2}}\neg\varphi^{\prime}(n^{\prime},y^{\prime}))).

    If spec(φ)=spec𝜑\textsc{spec}({\varphi})=\emptyset, then spec(ψ5)=specsubscript𝜓5\textsc{spec}({\psi_{5}})=\emptyset (hence is ultimately periodic). Conversely, observe that spec(ψ5)={n0×m2|m+}specsubscript𝜓5conditional-setsubscript𝑛0superscript𝑚2𝑚limit-from\textsc{spec}({\psi_{5}})=\{n_{0}\times m^{2}\ |\ m\in{\mathbb{N}}+\}, where n0=inf(spec(φ))subscript𝑛0infimumspec𝜑n_{0}=\inf(\textsc{spec}({\varphi})). Hence spec(ψ5)specsubscript𝜓5\textsc{spec}({\psi_{5}}) is not ultimately periodic.

3.5 Real numbers and spectra

Let χϕ(n)subscript𝜒italic-ϕ𝑛\chi_{\phi}(n) be the characteristic function of the spectrum of a first order sentence ϕitalic-ϕ\phi. We can associate with ϕitalic-ϕ\phi and a𝑎a\in{\mathbb{Z}} the real number rϕ=a+nχϕ(n)2nsubscript𝑟italic-ϕ𝑎subscript𝑛subscript𝜒italic-ϕ𝑛superscript2𝑛r_{\phi}=a+\sum_{n}\chi_{\phi}(n)2^{-n}.

Definition 3.7.

A real number is first order spectral if it is of the form rϕsubscript𝑟italic-ϕr_{\phi} for some a𝑎a\in{\mathbb{Z}} and some first order sentence ϕitalic-ϕ\phi.

As we have noted ultimately periodic sets of natural numbers are first order spectra, and correspond to rational numbers. Also every ultimately periodic spectrum can be realized by a formula with one function symbol only. We have

Proposition 3.8

Every rational number q𝑞q is first order spectral using a formula with one function symbol only.

Question 3.9

Do the the first order spectral reals form a field?

E. Specker, [ar:Specker49], proved that there is a real x𝑥x primitive recursive in base 222 such that 3x3𝑥3x, x+13𝑥13x+\frac{1}{3}, x2superscript𝑥2x^{2} are not primitive recursive in base 222. A modern treatment can be found in [ar:ChenSuZheng2007]. H. Friedman [misc:Friedman06] mentioned on an internet discussion site that primitive recursive can be replaced in Specker’s Theorem by much lower complexity within the Grzegotczyk Hierarchy. J. Miller kindly provided us, [email:miller], with the more precise statement

Theorem 3.10 (E. Specker, 1949 and H. Friedman 2003)

There is a real x𝑥x which is primitive recursive in base 222 (and can even be taken to be in 2superscript2\mathcal{E}^{2} of the Grzegorczyk Hierarchy), such that 3x3𝑥3x, x+13𝑥13x+\frac{1}{3}, x2superscript𝑥2x^{2} are not primitive recursive in base 222.

Sketch of proof333due to J. Miller.

This can be proved by exploiting the fact that none of these functions 3x,x2,x+1/33𝑥superscript𝑥2𝑥133x,x^{2},x+1/3 are continuous as functions on binary expansions of reals. They can take a number x𝑥x that is not a binary rational to one that is.

Let us focus on 3x3𝑥3x. So, for example, if x=0.0101010101𝑥0.0101010101x=0.0101010101\ldots, then 3x=13𝑥13x=1. We can exploit this as follows. Say we have built the binary expansion of x𝑥x up to position n1𝑛1n-1 and it looks like 0.bformulae-sequence0𝑏0.b (where b𝑏b is a finite string) and that we want to diagonalize against the i𝑖ith primitive recursive function pisubscript𝑝𝑖p_{i}. Compute pi(n)subscript𝑝𝑖𝑛p_{i}(n), step by step. As long as it does not converge, keep building x𝑥x to look like 0.b0010101010101formulae-sequence0𝑏00101010101010.b0010101010101\ldots. If pi(n)subscript𝑝𝑖𝑛p_{i}(n) converges at stage s𝑠s, then use position n+2s𝑛2𝑠n+2s or position n+2s+1𝑛2𝑠1n+2s+1 to spring the delayed trap. If pi(n)=0subscript𝑝𝑖𝑛0p_{i}(n)=0, then let x=0.b001010101011formulae-sequence𝑥0𝑏001010101011x=0.b0010101\ldots 01011. If pi(n)=1subscript𝑝𝑖𝑛1p_{i}(n)=1, then let x=0.b00101010100formulae-sequence𝑥0𝑏00101010100x=0.b0010101\ldots 0100. Either way, pi(n)subscript𝑝𝑖𝑛p_{i}(n) does not correctly compute the n𝑛nth bit of 3x3𝑥3x. Note that we spread out the unbounded search, so that each bit is computed by a bounded (primitive recursive) procedure.

In this way we can diagonalize against 3x,x23𝑥superscript𝑥23x,x^{2} and x+1/3𝑥13x+1/3 being primitive recursive while making x𝑥x primitive recursive. To make x𝑥x to be in 2superscript2\mathcal{E}^{2} one uses the fact that 2superscript2\mathcal{E}^{2} is the same as computable in linear space [ar:Ritchie63].

In the argument above, when we are trying to figure out bit t𝑡t of x𝑥x, we compute pi(n)subscript𝑝𝑖𝑛p_{i}(n) (for some i𝑖i and n𝑛n determined earlier in the construction of x𝑥x) for t𝑡t steps and if it does not halt we output the default bit (alternating between 00 and 111), so it can be made in linear time. Actually, in the case of xasuperscript𝑥𝑎x^{a}2, one has to work a little harder to determine the default bit, but this can definitely be done in linear space (and polynomial time). ∎

We shall see in Section 4, Theorem 4.11, that Theorem 3.10 covers all the spectral reals, therefore the spectral reals do not form a field. More precisely we have the following Corollary:

Corollary 3.11

The spectral reals are not closed under addition nor under multiplication. Furthermore, they are closed under the operation 1x1𝑥1-x iff the complement of a spectrum is a spectrum.

We now turn the question of algebraicity and transcendence of spectral reals. Clearly, every first order spectral real is a recursive real in the sense of A. Turing [ar:Turing36]. Using Liouville’s Theorem444 Liouville’s Theorem states, in simplified form, that a real of the form r=n2f(n)𝑟subscript𝑛superscript2𝑓𝑛r=\sum_{n}2^{-f(n)} where f(n)n!𝑓𝑛𝑛f(n)\geq n! is transcendental. , we can see that many transcendental reals are first order spectral.

Open Question 11

Are there any irrational algebraic reals which are spectral?

One way of analyzing irrational numbers is by counting the number of 111s in their binary representation. For a real r(0,1)𝑟01r\in(0,1) let γr(n)subscript𝛾𝑟𝑛\gamma_{r}(n) be the number of 111s among its first n𝑛n digits. If r=rϕ𝑟subscript𝑟italic-ϕr=r_{\phi} is spectral we have γr(n)=γphi(n)subscript𝛾𝑟𝑛subscript𝛾𝑝𝑖𝑛\gamma_{r}(n)=\gamma_{phi}(n).

In the sequel we follow closely and quote from M. Waldschmidt [ar:Waldschmidt08].

Theorem 3.12 (Bailey, Borwein, Crandall, and Pomerance, 2004, [ar:BBCP04])

Let r𝑟r be a real algebraic number of degree d2𝑑2d\geq 2. Then there is a positive number Cr,dsubscript𝐶𝑟𝑑C_{r,d}, which depends only on r𝑟r, such that γr(n)Cr,dn1dsubscript𝛾𝑟𝑛subscript𝐶𝑟𝑑superscript𝑛1𝑑\gamma_{r}(n)\geq C_{r,d}n^{\frac{1}{d}}.

In other words, if a spectral number rϕsubscript𝑟italic-ϕr_{\phi} is algebraic of degree d2𝑑2d\geq 2, then γϕ(n)Cϕ,dn1dsubscript𝛾italic-ϕ𝑛subscript𝐶italic-ϕ𝑑superscript𝑛1𝑑\gamma_{\phi}(n)\geq C_{{\phi},d}n^{\frac{1}{d}}, for some positive number Cϕ,dsubscript𝐶italic-ϕ𝑑C_{{\phi},d}.

To get more information about irrational numbers r𝑟r we have to look at the binary string complexity of r(0,1)𝑟01r\in(0,1). We consider r𝑟r as an infinite binary word.

Definition 3.13 (Binary string complexity).

The binary string complexity of r𝑟ris the function pr(m)subscript𝑝𝑟𝑚p_{r}(m) which counts, for each m𝑚m the number of distinct binary words w𝑤w of length m𝑚m occuring in r𝑟r. Hence we have 1pr(m)2m1subscript𝑝𝑟𝑚superscript2𝑚1\leq p_{r}(m)\leq 2^{m}, and the function pr(m)subscript𝑝𝑟𝑚p_{r}(m) is non-decreasing.

Conjecture 12 (E. Borel 1950, [ar:Borel50]).

The binary string complexity of an irrational algebraic number r𝑟r should be pr(m)=2msubscript𝑝𝑟𝑚superscript2𝑚p_{r}(m)=2^{m}.

Definition 3.14.

We call a real number r(0,1)𝑟01r\in(0,1) automatic if the n𝑛n-th bit of its binary expansion can be generated by a finite automaton from the binary representation of n𝑛n.

Clearly, the binary string complexity of an automatic real is O(m)𝑂𝑚O(m).

Open Question 13

Is every automatic real a spectral real?

In 1968 A. Cobham, [ar:Cobham68] conjectured that automatic numbers are transcendental. This was proven in 2007 by B. Adamczewski and Y. Bugeaud, [ar:AdamczewskiBugeaud07]. They actually proved a stronger theorem.

Theorem 3.15 (B. Adamczewski and Y. Bugeaud, 2007)

The binary string complexity pr(m)subscript𝑝𝑟𝑚p_{r}(m) of a real irrational algebraic number r𝑟r satisfies

lim infmpr(m)m=+subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚𝑚\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{m}=+\infty

Borel’s Conjecture would imply that the binary string complexity pr(m)subscript𝑝𝑟𝑚p_{r}(m) of a real irrational algebraic number r𝑟r satisfies

lim infmpr(m)2m=1subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚superscript2𝑚1\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{2^{m}}=1
Open Question 14

Does the binary string complexity pr(m)subscript𝑝𝑟𝑚p_{r}(m) of a spectral real r𝑟r satisfy

lim infmpr(m)2m<1subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚superscript2𝑚1\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{2^{m}}<1

or even

lim infmpr(m)2m=0?subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚superscript2𝑚0?\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{2^{m}}=0?

From Theorem 3.15 one gets that the Fibonacci numbers, which will be shown to form a spectrum in Corollary 4.12 of Section 4.3, give us a transcendental spectral number. More generally, we get the following:

Proposition 3.16

Let rϕsubscript𝑟italic-ϕr_{\phi} be a spectral real such that the gap function δϕ(n)subscript𝛿italic-ϕ𝑛\delta_{\phi}(n) is monotonically increasing and grows exponentially. Then pϕ(n)=O(n)subscript𝑝italic-ϕ𝑛𝑂𝑛p_{\phi}(n)=O(n). Therefore, rϕsubscript𝑟italic-ϕr_{\phi} is transcendental.

The analysis of computable reals in binary or b𝑏b-adic presentation is tricky because of the behaviour of the carry, cf. [ar:ChenSuZheng2007a]. Let \mathcal{F} be a class of functions f::𝑓f:{\mathbb{N}}\rightarrow{\mathbb{N}}.

Definition 3.17.

A real number α𝛼\alpha is called \mathcal{F}-Cauchy computable if there are functions f,g,h𝑓𝑔f,g,h\in\mathcal{F} such that for

rn=f(n)g(n)h(n)+1subscript𝑟𝑛𝑓𝑛𝑔𝑛𝑛1r_{n}=\frac{f(n)-g(n)}{h(n)+1}

we have that for all n𝑛n\in{\mathbb{N}}

rnα1n+1.delimited-∣∣subscript𝑟𝑛𝛼1𝑛1\mid r_{n}-\alpha\mid\leq\frac{1}{n+1}.

A real number α[0,1]𝛼01\alpha\in[0,1] in b𝑏b-adic presentation is called \mathcal{F}-computable if there is f:{0,,b1}:𝑓0𝑏1f:{\mathbb{N}}\rightarrow\{0,\ldots,b-1\} such that

α=nf(n)bn𝛼subscript𝑛𝑓𝑛superscript𝑏𝑛\alpha=\sum_{n\in{\mathbb{N}}}f(n)b^{-n}

Note that it is not clear at all how to define spectral Cauchy reals. If \mathcal{F} contains the function 2nsuperscript2𝑛2^{n} then the \mathcal{F} computable reals in b𝑏b-adic presentation are also \mathcal{F}-Cauchy computable. In particular, this is true for =isuperscript𝑖\mathcal{F}=\mathcal{E}^{i} and i3𝑖3i\geq 3.

Open Question 15

Are the b𝑏b-adic 2superscript2\mathcal{E}^{2}-computable reals 2superscript2\mathcal{E}^{2}-Cauchy computable?

Recently, 2superscript2\mathcal{E}^{2}-Cauchy computable reals have received quite a bit of attention, cf. [ar:Skordev2002, ar:Skordev2008]. The following summarizes what is known.

Proposition 3.18 (D. Skordev)
  1. (i)

    The 2superscript2\mathcal{E}^{2}-Cauchy computable reals form a real closed field.

  2. (ii)

    The transcendental numbers e𝑒eand π𝜋\pi, and the Euler constant γ𝛾\gammaand the Liouville number n10an!subscript𝑛superscript10𝑎𝑛\sum_{n\in{\mathbb{N}}}10^{a}{-n!}are 2superscript2\mathcal{E}^{2}-Cauchy computable.

  3. (iii)

    There are 3superscript3\mathcal{E}^{3}-Cauchy computable reals which are not 2superscript2\mathcal{E}^{2}-Cauchy computable.

Let lowsubscript𝑙𝑜𝑤\mathcal{F}_{low} be the smallest class of functions in 2superscript2\mathcal{E}^{2} which contains the constant functions, projections, successor, modified difference, and which is closed under composition and bounded summation. A real α𝛼\alpha is low if α𝛼\alpha is lowsubscript𝑙𝑜𝑤\mathcal{F}_{low}-Cauchy computable. The low reals also form a real closed field. In [ar:TentZiegler2009] low reals are studied and some very deep theorems about low transcendental numbers are obtained, the discussion of which would take too much space.

Open Question 16

Is the inclusion low2subscript𝑙𝑜𝑤superscript2\mathcal{F}_{low}\subseteq\mathcal{E}^{2} proper?

4 Approach I: Recursion Theory

This approach has generated all in all four papers (namely [ar:Asser55] by G. Asser in 1955, [ar:Mostowski56] by A. Mostowski in 1956, [ar:Ritchie63] by R. Ritchie, and [ar:Mo91] by S. Mo in 1991) and two Ph.D. dissertations, namely [phd:Ritchie60] by R. Ritchie in 1960 and [phd:Bennett62] by J. Bennett in 1962. These works share the common feature of being hardly available for many readers on various grounds: Asser’s and Mostowski’s papers are difficult to read because they are more than fifty years old and Asser’s paper is in German. Bennett’s thesis, cited in many papers, is almost equally old and in addition has remained unpublished. Finally, Mo’s paper, though more recent, is in Chinese. This is the reason why we propose in Section A a detailed review of these references, including several sketches of proofs in modern language. In the present section, after some background material, we present a synthetic survey of the recursive approach of the spectrum problem.

4.1 Grzegorczyk’s Hierarchy

For a detailed presentation of the material in this subsection, see eg. [bk:Rose84]. A. Grzegorczyk’s seminal paper [ar:Grzegorczyk53] about classification of primitive recursive functions was published in 1953, one year after Scholz’s question, and two years before Asser’s paper. Hence, Grzegorczyk’s Hierarchy was not the standard way to consider primitive recursive functions in the mid-fifties. And actually, G. Asser and A. Mostowski deal with recursive aspects of spectra, but not explicitly with Grzegorczyk’s classes, though it is the usual framework in which their results are presented. It is only in J. Bennett’s thesis in 1962 and especially in S. Mo’s paper in 1991 that one finds an explicit study of spectra in terms of Grzegorczyk’s classes.

In the sequel a function is always intended to be a function from some ksuperscript𝑘{\mathbb{N}}^{k} to \mathbb{N} (total, unless otherwise specified).

Definition 4.1 (Elementary functions).

The class \mathcal{E} of elementary functions is the smallest class of functions containing the zero, successor, projections, addition, multiplication and modified subtraction functions and which is closed under composition and bounded sum and product (i.e. f(n,x)=i=0ng(i,x)𝑓𝑛𝑥superscriptsubscript𝑖0𝑛𝑔𝑖𝑥f(n,\vec{x})=\sum_{i=0}^{n}g(i,\vec{x}) and f(n,x)=i=0ng(i,x)𝑓𝑛𝑥superscriptsubscriptproduct𝑖0𝑛𝑔𝑖𝑥f(n,\vec{x})=\prod_{i=0}^{n}g(i,\vec{x}), with previously defined g𝑔g). We denote by subscript{\mathcal{E}}_{\star} the elementary relations, i.e. the class of relations whose characteristic functions are elementary.

The class \mathcal{E} was introduced by Kalmár [ar:Kalmar43] and Csillag [ar:Csillag47] in the forties, and contains most usual number-theoretic functions. It also corresponds to Grzegorczyk’s class 3superscript3{\mathcal{E}}^{3}, that we define below.

Definition 4.2 (Primitive recursion).

Let f,g,h𝑓𝑔f,g,h be functions. We say that f𝑓f is defined from g𝑔g and hh by primitive recursion when it obeys a schema: {f(0,x)=g(x)f(n+1,x)=h(n,x,f(n,x))cases𝑓0𝑥𝑔𝑥𝑓𝑛1𝑥𝑛𝑥𝑓𝑛𝑥\left\{\begin{array}[]{lll}f(0,\vec{x})&=&g(\vec{x})\\ f(n+1,\vec{x})&=&h(n,\vec{x},f(n,\vec{x}))\end{array}\right..

The class of primitive recursive functions, denoted by 𝒫R𝒫𝑅\mathcal{P}R, is the smallest class of functions containing the zero function, the successor function, the projection functions, and which is closed under composition and primitive recursion.

For instance, elementary functions are primitive recursive. The following binary function Ack𝐴𝑐𝑘Ack, known as Ackermann’s function, is provably not primitive recursive, whereas all unary specialised functions Ackx:yAck(x,y):𝐴𝑐subscript𝑘𝑥maps-to𝑦𝐴𝑐𝑘𝑥𝑦Ack_{x}:y\mapsto Ack(x,y) are primitive recursive:

{Ack(0,y)=y+1Ack(x+1,0)=Ack(x,1)Ack(x+1,y+1)=Ack(x,Ack(x+1,y))cases𝐴𝑐𝑘0𝑦𝑦1𝐴𝑐𝑘𝑥10𝐴𝑐𝑘𝑥1𝐴𝑐𝑘𝑥1𝑦1𝐴𝑐𝑘𝑥𝐴𝑐𝑘𝑥1𝑦\left\{\begin{array}[]{l}Ack(0,y)=y+1\\ Ack(x+1,0)=Ack(x,1)\\ Ack(x+1,y+1)=Ack(x,Ack(x+1,y))\end{array}\right.

In order to introduce Grzegorczyk’s hierarchy, we need a weaker version of primitive recursion, in which the newly defined functions have to be bounded by some previously defined function.

Definition 4.3 (Bounded recursion).

Let f,g,h,j𝑓𝑔𝑗f,g,h,j be functions. We say that f𝑓f is defined from g𝑔g, hh and j𝑗j by bounded recursion when it obeys a schema: {f(0,x)=g(x)f(n+1,x)=h(n,x,f(n,x))f(n,x)j(n,x)cases𝑓0𝑥𝑔𝑥𝑓𝑛1𝑥𝑛𝑥𝑓𝑛𝑥𝑓𝑛𝑥𝑗𝑛𝑥\left\{\begin{array}[]{lll}f(0,\vec{x})&=&g(\vec{x})\\ f(n+1,\vec{x})&=&h(n,\vec{x},f(n,\vec{x}))\\ f(n,\vec{x})&\leq&j(n,\vec{x})\end{array}\right.

Let fnsubscript𝑓𝑛f_{n} (n=0,1,2,𝑛012n=0,1,2,\ldots) be the following sequence of primitive recursive functions :

  • -

    f0(x,y)=y+1subscript𝑓0𝑥𝑦𝑦1f_{0}(x,y)=y+1,

  • -

    f1(x,y)=x+ysubscript𝑓1𝑥𝑦𝑥𝑦f_{1}(x,y)=x+y,

  • -

    f2(x,y)=(x+1)(y+1)subscript𝑓2𝑥𝑦𝑥1𝑦1f_{2}(x,y)=(x+1)\cdot(y+1),

  • -

    and for k0𝑘0k\geq 0 {fk+3(0,y)=fk+2(y+1,y+1)fk+3(x+1,y)=fk+3(x,fk+3(x,y))casessubscript𝑓𝑘30𝑦absentsubscript𝑓𝑘2𝑦1𝑦1subscript𝑓𝑘3𝑥1𝑦absentsubscript𝑓𝑘3𝑥subscript𝑓𝑘3𝑥𝑦\left\{\begin{array}[]{ll}f_{k+3}(0,y)&=f_{k+2}(y+1,y+1)\\ f_{k+3}(x+1,y)&=f_{k+3}(x,f_{k+3}(x,y))\end{array}\right.

Roughly speaking, the important feature is that the functions fnsubscript𝑓𝑛f_{n} are more and more rapidly growing. Several other similar sequences of increasingly growing functions can be used to define Grzegorczyk’s classes.

Definition 4.4 (Grzegorczyk’s hierarchy).

The Grzegorczyk’s class nsuperscript𝑛{\mathcal{E}}^{n} is the smallest class of functions containing the zero function, the projections functions and fnsubscript𝑓𝑛f_{n} and which is closed under composition and bounded recursion. The associated classes of relations nsuperscriptsubscript𝑛{\mathcal{E}}_{\star}^{n} are defined as the class of relations on integers with a characteristic function in nsuperscript𝑛{\mathcal{E}}^{n}.

Note that, for sake of simplicity, we use the same notation for a class of relations of various arities (eg. 3superscriptsubscript3{\mathcal{E}}_{\star}^{3}) and the class of unary relations (i.e. sets) it contains. Which one is intended will always be clear from the context.

The main features of Grzegorczyk’s classes were studied by A. Grzegorczyk in [ar:Grzegorczyk53] and by R. Ritchie in [ar:Ritchie63].

Theorem 4.5 (A. Grzegorczyk (1953))
  • -

    The functional hierarchy is strict for n0𝑛0n\geq 0, i.e. we have nn+1superscript𝑛superscript𝑛1{\mathcal{E}}^{n}\subsetneq{\mathcal{E}}^{n+1}.

  • -

    The relational hierarchy is strict for n3𝑛3n\geq 3, i.e. we have nn+1subscriptsuperscript𝑛subscriptsuperscript𝑛1{\mathcal{E}}^{n}_{\star}\subsetneq{\mathcal{E}}^{n+1}_{\star}.

  • -

    For the initial levels of the relational hierarchy, we have 0123superscriptsubscript0superscriptsubscript1superscriptsubscript2superscriptsubscript3{\mathcal{E}}_{\star}^{0}\subseteq{\mathcal{E}}_{\star}^{1}\subseteq{\mathcal{E}}_{\star}^{2}\subseteq{\mathcal{E}}_{\star}^{3}.

  • -

    The Kalmár-Csillag class of elementary functions \mathcal{E}is equal to 3superscript3{\mathcal{E}}^{3}.

  • -

    Finally, the full hierarchy corresponds to primitive recursion, i.e. 𝒫R=n=0+n𝒫𝑅superscriptsubscript𝑛0superscript𝑛{\mathcal{P}R}=\bigcup_{n=0}^{+\infty}{\mathcal{E}}^{n}.

Theorem 4.6 (R. Ritchie (1963))

We have 23subscriptsuperscript2subscriptsuperscript3{\mathcal{E}}^{2}_{\star}\neq{\mathcal{E}}^{3}_{\star} [ar:Ritchie63].

Note that the possible separation of the relational classes 0,1,2superscriptsubscript0superscriptsubscript1superscriptsubscript2{\mathcal{E}}_{\star}^{0},{\mathcal{E}}_{\star}^{1},{\mathcal{E}}_{\star}^{2} is still an open question.

Open Question 17

Are the inclusions in

012superscriptsubscript0superscriptsubscript1superscriptsubscript2{\mathcal{E}}_{\star}^{0}\subseteq{\mathcal{E}}_{\star}^{1}\subseteq{\mathcal{E}}_{\star}^{2}

proper?

An important point is that the functional hierarchy deals with the rate at which functions may grow: intuitively, functions in the low level of the hierarchy grow very slowly, while functions higher up in the hierarchy grow very rapidly. However, this feature does not hold for the relational hierarchy, because characteristic functions do not grow at all (they are 01010-1 valued). For instance, the ternary relations z=x+y𝑧𝑥𝑦z=x+y, z=x×y𝑧𝑥𝑦z=x\times y, z=xy𝑧superscript𝑥𝑦z=x^{y} as well as z=Ack(x,y)𝑧𝐴𝑐𝑘𝑥𝑦z=Ack(x,y) all belong to 0superscriptsubscript0{\mathcal{E}}_{\star}^{0}, whereas the corresponding functions provably do not lie in 0superscript0{\mathcal{E}}^{0}.

4.2 Rudimentary relations and strictly rudimentary relations

In addition to primitive recursive classes of relations, we also introduce two new classes of relations with an arithmetical flavour, namely the rudimentary and strictly rudimentary relations. These classes were originally introduced by R. Smullyan [bk:Smullyan61], and a major reference about rudimentary relations and subclasses is J. Bennett’s thesis [phd:Bennett62].

Definition 4.7 (Rudimentary relations).

Denote by Rud the smallest class of relations over integers containing the graphs of addition and multiplication (seen as ternary relations) and closed under Boolean operations (¬\neg, \wedge, \vee) and bounded quantifications (x<yfor-all𝑥𝑦\forall x<y\ldots and x<y𝑥𝑦\exists x<y\ldots).

In spite of its very restricted definition, the class Rud is surprisingly robust (eg. it has several equivalent definitions in the fields of computational complexity, recursion theory, formal languages etc.) and large. For instance, the following formula defines the set of prime numbers:

x>1y<xz<x¬(x=y.z)x>1\ \wedge\ \forall y<x\ \forall z<x\ \neg(\ x=y.z\ )

More (sometimes VERY) sophisticated formulas prove that the ternary relation z=xy𝑧superscript𝑥𝑦z=x^{y} is rudimentary (Bennett [phd:Bennett62]), as well as the graph z=Ack(x,y)𝑧𝐴𝑐𝑘𝑥𝑦z=Ack(x,y) of Ackermann’s function (Calude [ar:Calude87]), which is not primitive recursive (as a function), or the four-ary relation xyz[modt]superscript𝑥𝑦𝑧delimited-[]𝑚𝑜𝑑𝑡x^{y}\equiv z\ [mod\ t] (Hesse, Allender, Barrington [ar:HesseAB02]). Actually, we are not aware of a natural number theoretic relation which is provably not rudimentary.

The following is easy to see.

Proposition 4.8

Rud012Rudsubscriptsuperscript0subscriptsuperscript1subscriptsuperscript2\textsc{Rud}\subseteq{\mathcal{E}}^{0}_{\star}\subseteq{\mathcal{E}}^{1}_{\star}\subseteq{\mathcal{E}}^{2}_{\star}.

However, the equality remains an open question (and would imply Rud=2Rudsubscriptsuperscript2\textsc{Rud}={\mathcal{E}}^{2}_{\star} as well, since the closure of 0subscriptsuperscript0{\mathcal{E}}^{0}_{\star} by polynomial substitution is 2subscriptsuperscript2{\mathcal{E}}^{2}_{\star} whereas Rud is closed under polynomial substitution).

Open Question 18

Are the inclusions in Rud012Rudsubscriptsuperscript0subscriptsuperscript1subscriptsuperscript2\textsc{Rud}\subseteq{\mathcal{E}}^{0}_{\star}\subseteq{\mathcal{E}}^{1}_{\star}\subseteq{\mathcal{E}}^{2}_{\star} proper?

It remains to introduce the strictly rudimentary relations. Let us consider the dyadic representation of integers, i.e. n𝑛n\in{\mathbb{N}} is represented by a word in {1,2}superscript12\{1,2\}^{*}. Compared to binary notation, dyadic notation avoids the problem of leading 00s and yields a bijection between integers and words. When integers are seen as words, it is natural to consider subword quantifications instead of ordinary bounded quantification. We say that w=w1wk𝑤subscript𝑤1subscript𝑤𝑘w=w_{1}\ldots w_{k} is a subword of v=v1vp𝑣subscript𝑣1subscript𝑣𝑝v=v_{1}\ldots v_{p} and we denote wv𝑤𝑣w\!\upharpoonright\!v when there exists 1ip1𝑖𝑝1\leq i\leq p such that w1=vi,,wk=vi+k1formulae-sequencesubscript𝑤1subscript𝑣𝑖subscript𝑤𝑘subscript𝑣𝑖𝑘1w_{1}=v_{i},\ldots,w_{k}=v_{i+k-1}. Of course, if xy𝑥𝑦x\!\upharpoonright\!y, then xy𝑥𝑦x\leq y.

Definition 4.9 (Strictly rudimentary relations).

Denote by Srud the smallest class of relations over integers containing the graphs of dyadic concatenation (seen as a ternary relation) and closed under Boolean operations (¬\neg, \wedge, \vee) and subword quantifications (xyfor-all𝑥𝑦\forall x\!\upharpoonright\!y\ldots and xy𝑥𝑦\exists x\!\upharpoonright\!y\ldots).

There are only few examples of strictly rudimentary relations, e.g. x𝑥x begins (or ends or is a part of) y𝑦y (as dyadic words), x=y𝑥𝑦x=y, the dyadic representation of x𝑥x is a single symbol, the dyadic representation of x𝑥x contains only one type of symbol. On the other hand, several relations are provably not strictly rudimentary such as xy𝑥𝑦x\leq y, x=y+1𝑥𝑦1x=y+1, x𝑥x and y𝑦y have the same dyadic length and the dyadic representation of x𝑥x is of the form 1n2nsuperscript1𝑛superscript2𝑛1^{n}2^{n} for some n𝑛n (V. Nepomnjascii 1978, see [ar:Nepomnjascii78]).

Note that rudimentary relations were originally (and equivalently) defined by Smullyan [bk:Smullyan61] using dyadic concatenation as a basis relation instead of addition and multiplication. Clearly, we have SrudRudSrudRud\textsc{Srud}\subsetneq\textsc{Rud}.

4.3 Recursive and arithmetical characterizations of spectra

In the fifties and sixties, following the tastes of their time, logicians aim at characterizing Spec via recursion and arithmetics. Typically, they wished to obtain the characteristic functions of spectra as the 00-111-valued functions in a class defined by closure of a certain set of simple functions under certain operators (such as composition or various recursion schemas). From this point of view, their results are not totally satisfactory because they are either partial, or somehow cumbersome or unnatural. However, these studies show that the class of spectra is very broad, and that most classical arithmetical sets are spectra.

The class Spec is set within Grzegorczyk’s hierarchy (by G. Asser in [ar:Asser55] and A. Mostowski in [ar:Mostowski56]), from which we can deduce that all rudimentary sets are spectra.

Theorem 4.10 (G. Asser (1955))

Spec3Specsuperscriptsubscript3\textsc{Spec}\subsetneq{\mathcal{E}}_{\star}^{3}

Asser’s theorem is based on a rather complicated and artificial arithmetical characterization of spectra (see Subsection A.1). In particular, Asser’s construction is of no help in proving that a particular set is (or not) spectrum.

Though he actually uses a slightly different class (see Subsection A.2), the following result is usually attributed to Mostowski:

Theorem 4.11 (A. Mostowski (1956))

2Specsuperscriptsubscript2Spec{\mathcal{E}}_{\star}^{2}\subseteq\textsc{Spec}

Note that equality in Mostowski’s theorem remains an open question.

Open Question 19

Is the inclusion in 2Specsuperscriptsubscript2Spec{\mathcal{E}}_{\star}^{2}\subseteq\textsc{Spec} proper?

The following corollary is not stated by A. Mostowski, but can be found in J. Bennett’s thesis. It is worth noting because one of the most fruitful ways in proving that various arithmetical sets are spectra is to prove that they are actually rudimentary.

Corollary 4.12

RudSpecRudSpec\textsc{Rud}\subseteq\textsc{Spec}

For instance, any set defined by a linear or polynomial recurrence condition, such as the Fibonacci numbers (i.e. those numbers appearing in the sequence defined by u0=u1=1subscript𝑢0subscript𝑢11u_{0}=u_{1}=1 and un+2=un+un+1subscript𝑢𝑛2subscript𝑢𝑛subscript𝑢𝑛1u_{n+2}=u_{n}+u_{n+1}), is rudimentary (see [ar:EsbelinM98]). From Corollary 4.12, we deduce that such sets are spectra, as announced in Section 3. Similarly, using the fact that the set of prime numbers is rudimentary and the exponentiation has a rudimentary graph, one proves that the sets of Fermat primes (of the form 22n+1superscript2superscript2𝑛12^{2^{n}}+1), Mersenne primes (of the form 2p1superscript2𝑝12^{p}-1 with p𝑝p a prime), or twin primes (p𝑝p prime such that p+2𝑝2p+2 is also a prime) are rudimentary (hence also spectra).

Note that the question of whether the inclusion in Corollary 4.12 is proper is still open.

Open Question 20

Do we have Rud=SpecRudSpec\textsc{Rud}=\textsc{Spec}?

This problem is further investigated in Subsubsection 6.3.3.

An arithmetic characterization of Spec in terms of strictly rudimentary relations is also given, among many other results (see Subsection A.3), by J. Bennett in his thesis.

Theorem 4.13 (J. Bennett (1962))

A set S𝑆S\subseteq{\mathbb{N}} is in Spec iff it can be defined by a formula of the form y2xjR(x,y)𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦\exists y\!\leq\!2^{x^{j}}R(x,y) for some j1𝑗1j\geq 1, where R𝑅R is in Srud. i.e.,

S={x|y2xjR(x,y)}𝑆conditional-set𝑥𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦S=\{x\in{\mathbb{N}}\ |\ \exists y\!\leq\!2^{x^{j}}R(x,y)\}

for some RSrud and j1𝑅Srud and 𝑗1R\in\textsc{Srud}\hbox{ and }j\geq 1.

J. Bennett also characterizes spectra of higher order logics and shows that the union of spectra of various orders equals the class of elementary relations 3superscriptsubscript3{\mathcal{E}}_{\star}^{3}.

The characterization of spectra stated in Theorem 4.13 is rather simple and elegant. However, once again, it is not really useful in proving that a given set is a spectrum, now because Srud is very restrictive. A somehow similar characterization of Spec using Rud instead of Srud would have been more powerful - but, one gets this way second-order spectra.

Finally, let us note a late paper on the recursive aspect of spectra, namely [ar:Mo91], due to the Chinese logician Mo Shaokui in 1991 (see Subsection A.4). The solution to Scholz’s problem proposed there is of the same type as Bennett’s characterization. However, the only bibliographic references in Mo’s paper are Scholz’s question [ar:Scholz52] and Grzegorczyk’s paper [ar:Grzegorczyk53], so that it can be considered completely independent from all other contributions about spectra. Section A summarises this paper’s results.

5 Approach II: Complexity Theory

The spectrum problem, formulated in the early 1950s, predates complexity theory since the notions of time or space bounded Turing machines first emerged in the 1960s (see [ar:Hartmanis65, ar:Kuroda64]). However, the first results about complexity of spectra appeared very soon (see Subsection 5.3), and computational complexity characterisations of spectra were found, in at least three independent early contexts (see Subsection 5.4). Later on, several refinements and developments of these seminal results have been published (see Subsections 5.7 and  5.8).

Turing machines and other standard models of computation operate on words, not on numbers. Let LΣ𝐿superscriptΣL\subseteq\Sigma^{*} be a set of finite words over a fixed finite alphabet ΣΣ\Sigma. Without loss of generality we assume Σ={0,1}Σ01\Sigma=\{0,1\}, and that input words have no leading zeros.

The archetypical task, given a language L𝐿L, is to study the complexity of deciding membership in L𝐿L of a word x𝑥x as a function of the length |x|𝑥|x|, i.e., asymptotic growth rate of the time, space or other computational resources needed to decide whether xL𝑥𝐿x\in L.

5.1 Complexity and spectra.

In this section, for a fixed sentence ϕitalic-ϕ\phi, the set of natural numbers spec(ϕ)specitalic-ϕ\textsc{spec}({\phi}) is seen as the set of positive instances of a decision problem (given a number n𝑛n, is there a model of ϕitalic-ϕ\phi with n𝑛n elements?).

When dealing with computational complexity, we convert spectra (sets of natural numbers) into languages (over alphabet {0,1}01\{0,1\}). The spectrum problem can thus be rephrased as: What is the computational complexity of the decision problems for spectra?

Complexity classes

Denote by NTIME(f(n))NTIME𝑓𝑛\mathrm{NTIME}({f(n)}) (resp. DTIME(f(n))DTIME𝑓𝑛\mathrm{DTIME}({f(n)})) the class of binary languages accepted in time O(f(n))𝑂𝑓𝑛O(f(n)) by some non-deterministic (resp. deterministic) Turing machine, where n𝑛n is the length of the input. Similarly, let us denote by DSPACE(f(n))DSPACE𝑓𝑛\mathrm{DSPACE}({f(n)}) the class of languages accepted in space O(f(n))𝑂𝑓𝑛O(f(n)) by some deterministic Turing machine. Some well-known complexity classes which concern us here are:

L=DSPACE(logn)NL=NSPACE(logn)LDSPACE𝑛NLNSPACE𝑛\mathrm{L}=\mathrm{DSPACE}({\log n})\subseteq\mathrm{NL}=\mathrm{NSPACE}({\log n})\ \
LINSPACE=DSPACE(n)NLINSPACE=NSPACE(n)LINSPACEDSPACE𝑛NLINSPACENSPACE𝑛\mathrm{LINSPACE}=\mathrm{DSPACE}({n})\subseteq\mathrm{NLINSPACE}=\mathrm{NSPACE}({n})\ \
P=c1DTIME(nc)NP=c1NTIME(nc)Psubscript𝑐1DTIMEsuperscript𝑛𝑐NPsubscript𝑐1NTIMEsuperscript𝑛𝑐\mathrm{P}=\displaystyle\bigcup_{c\geq 1}\mathrm{DTIME}({n^{c}})\subseteq\mathrm{NP}=\displaystyle\bigcup_{c\geq 1}\mathrm{NTIME}({n^{c}})\ \
E=c1DTIME(2cn)NE=c1NTIME(2cn)Esubscript𝑐1DTIMEsuperscript2𝑐𝑛NEsubscript𝑐1NTIMEsuperscript2𝑐𝑛\mathrm{E}=\displaystyle\bigcup_{c\geq 1}\mathrm{DTIME}({2^{c\cdot n}})\subseteq\mathrm{NE}=\displaystyle\bigcup_{c\geq 1}\mathrm{NTIME}({2^{c\cdot n}})

Finally, if CC\mathrm{C} denotes a complexity class, we denote its complement class, i.e. the class of binary languages L𝐿L such that ΣLCsuperscriptΣ𝐿C\Sigma^{*}-L\in\mathrm{C}, by coCcoC\mathrm{coC}.

Of course, the perennial open questions are:

Open Question 21
  1. (i)

    Are any of the inclusions
    LNLLNL\mathrm{L}\subseteq\mathrm{NL}, LINSPACENLINSPACELINSPACENLINSPACE\mathrm{LINSPACE}\subseteq\mathrm{NLINSPACE}, PNPPNP\mathrm{P}\subseteq\mathrm{NP}and ENEENE\mathrm{E}\subseteq\mathrm{NE}proper?

  2. (ii)

    Do any of the equalities NP=coNPNPcoNP\mathrm{NP}=\mathrm{coNP}and NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE}hold?

Surprisingly, the following was shown independently by N. Immermann and R. Szelepcźenyi in 1982, cf. [bk:Immerman99]:

Theorem 5.1 (Immermann, Szelepcźenyi 1982)

NL=coNLNLcoNL\mathrm{NL}=\mathrm{coNL}and NLINSPACE=coNLINSPACENLINSPACEcoNLINSPACE\mathrm{NLINSPACE}=\mathrm{coNLINSPACE}.

In Section 6 we shall also make use of the polynomial time hierarchy PHPH\mathrm{PH} and its linear analogue LTHLTH\mathrm{LTH}.

The class Rud lies between LL\mathrm{L} and LINSPACELINSPACE\mathrm{LINSPACE}, and must be different from one of them.

Proposition 5.2
  1. (i)

    (Nepomnjascii 1970, [ar:Nepomniaschy70]) LRudLRud\mathrm{L}\subseteq\textsc{Rud}

  2. (ii)

    (Wrathall 1978, [ar:Wrathall78]) Rud=LTHRudLTH\textsc{Rud}=\mathrm{LTH}

  3. (iii)

    (Myhill 1960, [rep:Myhill60]) LTHLINSPACELTHLINSPACE\mathrm{LTH}\subseteq\mathrm{LINSPACE}

Open Question 22

Are the inclusions LRud=LTHLINSPACELRudLTHLINSPACE\mathrm{L}\subseteq\textsc{Rud}=\mathrm{LTH}\subseteq\mathrm{LINSPACE} proper?

Number representations by binary or unary words

It is natural to use binary notation for natural numbers (an alternative without leading zeros is Smullyan’s dyadic notation [bk:Smullyan61]). The shortest binary length and dyadic length of the natural number n𝑛n are very close to log2nsubscript2𝑛\lceil\log_{2}n\rceil, whereas its unary length is of course n𝑛n, and we have n=2log2n𝑛superscript2subscript2𝑛n=2^{\log_{2}n}. Consequently, the same (mathematical) computation that is performed by some Turing machine in time eg. O(2c|n|)𝑂superscript2𝑐𝑛O(2^{c\cdot|n|}) when |n|𝑛|n| is the binary length of the natural number input, is also performed (by a slightly different Turing machine) in time O(nc)𝑂superscript𝑛𝑐O(n^{c}) when n𝑛n is the (unary length of the) natural number input.

Unary notation (also called tally notation, i.e. the number n𝑛n is represented by the word 11111\ldots 1 composed of n𝑛n ones) also has its fans, for reasons explained in the description of Fagin’s work. Most results in this section may be stated in either notation, but for sake of simplicity, and unless explicitly stated otherwise, we use binary notation. The length of a binary or unary word x𝑥x is written |x|𝑥|x|.

Recall that Spec denotes the set of spectra of first-order sentences, i.e.,

Spec={spec(ϕ)|ϕ is a first-order sentence}Specconditional-setspecitalic-ϕitalic-ϕ is a first-order sentence\textsc{Spec}=\{\textsc{spec}({\phi})\ |\ \phi\mbox{\ is a first-order sentence}\}

5.2 Spectra, formal languages, and complexity theory

Formal language theory was much studied in the early 1960s, cf. [bk:Harrison78], in particular the Chomsky hierarchy. While the regular and context-free language classes were well-understood, several questions remained open for larger classes. We need here the following:

Theorem 5.3
  1. (i)

    (Ritchie 1963, [ar:Ritchie63]) 2=LINSPACEsubscriptsuperscript2LINSPACE{\mathcal{E}}^{2}_{\star}=\mathrm{LINSPACE}

  2. (ii)

    (Kuroda 1964, [ar:Kuroda64]) A language L𝐿Lis context sensitive iff
    LNLINSPACE𝐿NLINSPACEL\in\mathrm{NLINSPACE}.

For our discussion one should remember that at that time it was then (as now) unknown whether LINSPACE=NLINSPACELINSPACENLINSPACE\mathrm{LINSPACE}=\mathrm{NLINSPACE} and also unknown whether NLINSPACENLINSPACE\mathrm{NLINSPACE} was closed under complementation. The latter was only resolved positively more than 20 years later, see Theorem 5.1.

These open questions showed a tantalising similarity to Scholz’ and Asser’s questions. If we identify characteristic functions with sets, then Bennett’s 196219621962 thesis combined with Asser, Mostowski and Ritchie’s results, yield

LINSPACESpec3 and LINSPACENLINSPACE3.LINSPACESpecsubscriptsuperscript3 and LINSPACENLINSPACEsubscriptsuperscript3\mathrm{LINSPACE}\subseteq\textsc{Spec}\subseteq{\mathcal{E}}^{3}_{\star}\mbox{\ and\ }\mathrm{LINSPACE}\subseteq\mathrm{NLINSPACE}\subseteq{\mathcal{E}}^{3}_{\star}.

This led to a conjecture Spec=?NLINSPACEsuperscript?SpecNLINSPACE\textsc{Spec}\stackrel{{\scriptstyle?}}{{=}}\mathrm{NLINSPACE}, that spectra might be coextensive to the context sensitive languages. The analogy fails, though, since more than n𝑛n “bits of storage” are needed to store an n𝑛n-element model \mathcal{M} of a sentence ϕitalic-ϕ\phi.

5.3 An early paper

One of the first papers explicitly relating spectra to bounded resource machine models of computation is [ar:RoeddingS72] (in German), due to Rödding and Schwichtenberg from Münster in 1972. This switch from recursion theory to complexity theory had been prepared ten years before by Bennett and Ritchie, and Rödding and Schwichtenberg made a step further. The model of computation they use is not Turing machines, but register machines. As Bennett does, Rödding and Schwichtenberg not only consider spectra of first-order sentences, but also higher order spectra, namely spectra of sentences using i𝑖i-th order variables. Let us denote by hospecihosubscriptspec𝑖\textsc{ho}\!-\!\textsc{spec}_{i} the class of spectra of sentences using i𝑖i-th order variables. Let us define the following sequence of functions : let exp0(n)=n𝑒𝑥subscript𝑝0𝑛𝑛exp_{0}(n)=n, and expi+1(n)=2expi(n)𝑒𝑥subscript𝑝𝑖1𝑛superscript2𝑒𝑥subscript𝑝𝑖𝑛exp_{i+1}(n)=2^{exp_{i}(n)}. Along with other results in the field of recursion theory, Rödding and Schwichtenberg prove the following theorem.

Theorem 5.4 (Rödding and Schwichtenberg 197219721972 [ar:RoeddingS72])

For all i𝑖i\in{\mathbb{N}}, we have DSPACE(expi(n))hospeci+1DSPACE𝑒𝑥subscript𝑝𝑖𝑛hosubscriptspec𝑖1\mathrm{DSPACE}({exp_{i}(n)})\subseteq\textsc{ho}\!-\!\textsc{spec}_{i+1}.

In particular, taking i=0𝑖0i=0, first-order spectra are thereby shown to contain DSPACE(n)DSPACE𝑛\mathrm{DSPACE}({n}). Let us finally remark that Rödding and Schwichtenberg did not consider non-deterministic complexity classes.

5.4 First-order spectra and non-deterministic exponential time

Scholz’s original question (see [ar:Scholz52]) was finally answered after twenty years, when Jones and Selman related first-order spectra to non-deterministic time bounded Turing machines. Their result was first published in a conference version in 1972 (see [proc:JonesS72]), and the journal version appeared in 1974 (see [ar:JonesS74]). The following theorem holds.

Theorem 5.5 (Jones and Selman 197219721972 [proc:JonesS72])

Spec=NESpecNE\textsc{Spec}=\mathrm{NE}.

This leads to a complexity theory counterpart of Asser’s question:

Corollary 5.6

Spec=coSpecSpeccoSpec\textsc{Spec}=\mathrm{co}\textsc{Spec}if and only if NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE}.

They note that this does not answer Asser’s question, but it shows the link with a wide range of closure under complement questions, in complexity theory. Presently, we know that many of them are very difficult questions.

Proof ideas.

To see that SpecNESpecNE\textsc{Spec}\subseteq\mathrm{NE}, consider spec(ϕ)Specspecitalic-ϕSpec\textsc{spec}({\phi})\in\textsc{Spec}. Since the sentence ϕitalic-ϕ\phi is fixed, satisfaction ϕmodelsitalic-ϕ{\mathcal{M}}\models\phi can be decided in time that is at most polynomial in the size of model {\mathcal{M}}, where the polynomial’s degree depends on the quantifier nesting depth in ϕitalic-ϕ\phi. A simple guess-and-verify algorithm is: given number x𝑥x, non-deterministically guess an x𝑥x-element model \mathcal{M}, then decide whether ϕmodelsitalic-ϕ{\mathcal{M}}\models\phi is true. Time and space 2cnsuperscript2𝑐𝑛2^{c\cdot n} suffice to store an x𝑥x-element model and check ϕmodelsitalic-ϕ{\mathcal{M}}\models\phi, where constant c𝑐c is independent of x𝑥x and n𝑛n is the length of x𝑥x’s binary notation. Thus the algorithm works in non-deterministic exponential time (as a function of input length n𝑛n).

To show SpecNENESpec\textsc{Spec}\supseteq\mathrm{NE}, let Z𝑍Z be a nondeterministic time-bounded Turing machine that runs in time 2cnsuperscript2𝑐𝑛{2^{c\cdot n}} on inputs of length n𝑛n. Here the input is a word x𝑥x of length n𝑛n. We think of x𝑥x as a binary-coded natural number. Computation C𝐶C can be coded as a word C=𝑐𝑜𝑛𝑓𝑖𝑔0𝑐𝑜𝑛𝑓𝑖𝑔1𝑐𝑜𝑛𝑓𝑖𝑔2cn𝐶subscript𝑐𝑜𝑛𝑓𝑖𝑔0subscript𝑐𝑜𝑛𝑓𝑖𝑔1subscript𝑐𝑜𝑛𝑓𝑖𝑔superscript2𝑐𝑛C={\it config}_{0}{\it config}_{1}\ldots{\it config}_{2^{c\cdot n}} where 𝑐𝑜𝑛𝑓𝑖𝑔0subscript𝑐𝑜𝑛𝑓𝑖𝑔0{\it config}_{0} contains the Turing machine’s input, and each 𝑐𝑜𝑛𝑓𝑖𝑔tsubscript𝑐𝑜𝑛𝑓𝑖𝑔𝑡{\it config}_{t} encodes the tape contents and control point at its t𝑡t-th computational step.

Now we have to find a first-order sentence ϕitalic-ϕ\phi such that:

  1. (i)

    For every input-accepting Z𝑍Z computation, ϕmodelsitalic-ϕ{\mathcal{M}}\models\phi for some model {\mathcal{M}} of cardinality x𝑥x

  2. (ii)

    If Z𝑍Z has no computation that accepts its input, then ϕitalic-ϕ\phi has no model of cardinality x𝑥x

Each 𝑐𝑜𝑛𝑓𝑖𝑔tsubscript𝑐𝑜𝑛𝑓𝑖𝑔𝑡{\it config}_{t} length is at most 2cnsuperscript2𝑐𝑛2^{c\cdot n}, so C𝐶C has length bound 2cn=xcsuperscript2superscript𝑐𝑛superscript𝑥superscript𝑐2^{c^{\prime}\cdot n}=x^{c^{\prime}} for csuperscript𝑐c^{\prime} independent of n𝑛n. A model {\mathcal{M}} of cardinality x𝑥x contains, for each k𝑘k-ary predicate symbol P𝑃P of sentence ϕitalic-ϕ\phi, a relation P¯{0,1,,x1}k¯𝑃superscript01𝑥1𝑘\overline{P}\subseteq\{0,1,\ldots,x-1\}^{k}. Thus a model can in principle “have enough bits” xk=2klogx=2O(|x|)superscript𝑥𝑘superscript2𝑘𝑥superscript2𝑂𝑥x^{k}=2^{k\log x}=2^{O(|x|)} to encode all the symbols of computation C𝐶C.

The remaining task is to actually construct ϕitalic-ϕ\phi so it has a model {\mathcal{M}} of cardinality x𝑥x if and only if Z𝑍Z has a well-formed computation C𝐶C that accepts input x𝑥x. In effect, the task is to use predicate logic to check that C is well-formed and accepts x𝑥x. The technical details are omitted from this survey paper; some approaches may be seen in [ar:JonesS74, phd:Fagin73, phd:Christen74]

5.5 Relationship to the question P=?NPsuperscript?PNP\ \mathrm{P}\stackrel{{\scriptstyle?}}{{=}}\mathrm{NP}

Let UN={L|L1}UNconditional-set𝐿𝐿superscript1\mathrm{UN}=\{L|L\subseteq 1^{*}\} be the set of tally languages (each is a set of unary words over the one-letter alphabet {1}1\{1\}) and let NP1=NPUNsubscriptNP1NPUN\mathrm{NP}_{1}=\mathrm{NP}\cap\mathrm{UN}. Since there is a natural identification between NP1subscriptNP1\mathrm{NP}_{1} and NENE\mathrm{NE}, we can deduce that if P=NPPNP\mathrm{P}=\mathrm{NP}, then NP=coNPNPcoNP\mathrm{NP}=\mathrm{coNP} and NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE}, i.e. the complement of a spectrum is a spectrum. Of course, it also holds that if there is a spectrum whose complement is not a spectrum, i.e. if NEcoNENEcoNE\mathrm{NE}\neq\mathrm{coNE}, then NPcoNPNPcoNP\mathrm{NP}\neq\mathrm{coNP} and PNPPNP\mathrm{P}\neq\mathrm{NP}. The converse implication remains open.

5.6 Independent solutions to Scholz’s problem

The characterization of spectra via non-deterministic complexity classes was independently found also by Christen on the one hand and Fagin on the other hand during their PhD studies.

Claude Christen’s thesis555Claude Christen, born 1943, joined the faculty of CS at the University of Montreal in 1976 and died there, a full professor, prematurely, April 10, 1994. [phd:Christen74] (1974, ETH Zürich, E. Specker) remains unpublished, and only a small part was published in German [proc:Christen76]. Christen discovered all his results independently, and only in the late stage of his work his attention was drawn to Bennett’s work [phd:Bennett62] and the paper of Jones and Selman [proc:JonesS72]. It turned out that most of his independently found results were already in print or published by Fagin after completion of Christen’s thesis.

Ronald Fagin’s thesis (1973, UC Berkeley, R. Vaught) is treasure of results introducing projective classes of finite structures, which he called generalized spectra (see Subsection 5.7) that had wide impact on what is now called descriptive complexity and finite model theory. Most of our knowledge about spectra till about 1985 and, to some extent far beyond that, is contained in the published papers (see [proc:Fagin74, ar:Fagin75a, ar:Fagin75b]) emanating from Fagin’s thesis [phd:Fagin73]. In this survey, these papers are pervasive. Right now, let us begin with reviewing what is said in [proc:Fagin74] about the consequences of the complexity characterization of spectra per se.

Recall that E=c1DTIME(2cn)NEEsubscript𝑐1DTIMEsuperscript2𝑐𝑛NE\mathrm{E}=\bigcup_{c\geq 1}\mathrm{DTIME}({2^{c\cdot n}})\subseteq\mathrm{NE} and let us examine the closure under complementation problem. Since E=coEEcoE\mathrm{E}=\mathrm{coE}, it is clear that if a first-order spectrum is in EE\mathrm{E}, then its complement is also a first-order spectrum. Of course, the question E=?NEsuperscript?ENE\mathrm{E}\stackrel{{\scriptstyle?}}{{=}}\mathrm{NE} is still open. Fagin notes that EE\mathrm{E} contains the spectra of categorical sentences, i.e. sentences that have at most one model for every cardinality. Thus, one obtains a model theoretic question closely related to Asser’s question.

Open Question 23

Is every spectrum the spectrum of a categorical sentence ?

Besides reviewing many natural sets of numbers that are spectra, Fagin also proves by a complexity argument the existence of a spectrum S𝑆S such that {n2nS}conditional-set𝑛superscript2𝑛𝑆\{n\,\mid 2^{n}\in S\} is not a spectrum (see also [Hunter04] for a recent proof by diagonalization).

5.7 Generalized first-order spectra and NPNP\mathrm{NP}: Fagin’s result

Let us spend some time on what is called generalized first-order spectra by Fagin in his 197419741974 paper [proc:Fagin74], and is nowadays more usually refered to as (classes of finite structures definable in) existential second-order logic. Our main goal is to clarify the differences and the connections with ordinary first-order spectra.

In this subsection, we are no longer interested in the size of the finite models of some given sentence, but in the models themselves. Hence, let σ𝜎\sigma and τ𝜏\tau be two disjoint vocabularies, and let ϕitalic-ϕ\phi be a first-order στ𝜎𝜏\sigma\cup\tau-sentence. The generalized spectrum of ϕitalic-ϕ\phi is the class of finite τ𝜏\tau-structures that can be expanded to models of ϕitalic-ϕ\phi. In other words, it is the class of finite models of the existential second-order sentence σϕ𝜎italic-ϕ\exists\sigma\phi with vocabulary τ𝜏\tau. The vocabulary τ𝜏\tau is usually refered to as the built-in vocabulary, whereas σ𝜎\sigma is often called the extra vocabulary. Note that generalized spectra are finite counterparts to Tarski’s projective classes (see [ar:Tarski54]). Fagin’s theorem states the equivalence between generalized spectra and classes of finite structures accepted in NP𝑁𝑃NP.

Theorem 5.7 (Fagin 1974 [proc:Fagin74])

Let τ𝜏\tau be a non-empty vocabulary. A class of finite τ𝜏\tau-structures K𝐾K is a generalized spectrum iff KNP𝐾NPK\in\mathrm{NP}.

If the built-in vocabulary τ𝜏\tau is empty, then the τ𝜏\tau-structures are merely sets. From a computational point of view, it is natural to see such empty structures as unary representations of natural numbers. From a logical point of view, one obtains ordinary spectra. Hence, Fagin rephrases Jones and Selman’s complexity characterization of first-order spectra as follows:

Proposition 5.8

A set S,𝑆S, if regarded as a set of unary words, is a first-order spectrum if and only if SNP1𝑆subscriptNP1S\in\mathrm{NP}_{1}.

Concerning the complement problem for generalized spectra, in view of Fagin’s theorem, it is not surprising that the general case remains open. However, the following is known. If σ𝜎\sigma consists of unary predicates only, it is called unary. It has been proved in several occasions that unary generalized spectra are not closed under complement (see Fagin 1975 [ar:Fagin75b], Hajek 1975 [proc:Hajek75], Ajtai and Fagin 1990 [ar:AjtaiF90]). For instance, it is shown in [ar:Fagin75b] by a game argument that the set of connected simple graphs is not a unary generalized spectrum. In contrast, it is easy to design a monadic existential second-order sentence defining the class of non-connected simple graphs.

Since our survey deals with spectra and not with descriptive complexity as a whole, we will not say any more on this subject. However, let us note that descriptive complexity [bk:Immerman99] emerged as a specific field of research out of Fagin’s paper about generalized spectra.

5.8 Further results and refinements

During the late 1970s and the 1990s, several results were published that generalize Jones and Selman’s result to higher order spectra on the one hand, and that refine this result, in order to obtain correspondences between certain complexity classes and the spectra of certain types of sentences.

In 1977, Lovász and Gács [ar:LovaszGacs77], it is shown essentially that there are generalized first order spectra such that their complement cannot be expressed with a smaller number of variables. To do this they introduced first order reductions, which became a very important tool in finite model theory and descriptive complexity. In fact they were the first to show the existence of decision problems which are 𝐍𝐏𝐍𝐏{\mathbf{NP}}-complete with respect to first order reductions.

First order reductions were used in (un)decidability results early on, [bk:TarskiMR53], and more explicitely in [pr:Rabin65]. For a systematic survey, see [ar:HensonCompton, ar:MakowskyTARSKI]. In the context of generalized spectra they were rediscovered independently also by Immerman in [ar:IMM1], Vardi in [pr:vardi82] and Dahlhaus in [phd:dahlhaus]. First order reductions are of very low complexity, essentially they are uniform 𝐀𝐂0superscript𝐀𝐂0\mathbf{AC}^{0} transductions. The first use of low complexity reduction techniques seems to be Jones [ar:Jones75] who termed them log-rudimentary. Allender and Gore [ar:AllenderGore91] showed them equivalent to uniform 𝐀𝐂0superscript𝐀𝐂0\mathbf{AC}^{0} reductions.

Open Question 24

Is there a universal (complete) spectrum S0subscript𝑆0S_{0} and a suitable notion of reduction such that every spectrum S𝑆S is reducible to S0subscript𝑆0S_{0}?

Note that this question has two flavors, one where we look at spectra in terms of sets of natural numbers, and one where we look at sets of (cardinalities of) finite models and their defining sentences. First order reductions may be appropriate in the latter case.

In 1982, Lynch [ar:Lynch82a] relates the computation time needed to decide property on set of integers to the maximal arity of symbols required in the sentence to define this property. Below, we refine the definition of classes of spectra in order to take into account some specific syntactic restrictions on sentences.

Definition 5.9.

Let d𝑑superscriptd\in\mathbb{N}^{*}, the following classes are defined as follows.

  1. (i)

    specdsubscriptspec𝑑{\textsc{spec}}_{d} (resp. f-specdsubscriptf-spec𝑑{\textsc{f-spec}}_{d}) is the class of spectra of first-order sentences over arbitrary predicate (resp. predicate and function) symbols of arity at most d𝑑d.

  2. (ii)

    spec(k)spec𝑘for-all{\textsc{spec}}(k\forall) (resp. specd(k)subscriptspec𝑑𝑘for-all{\textsc{spec}}_{d}(k\forall)) is the class of spectra of prenex first-order sentences involving at most k𝑘k variables that are all universally quantified (resp. and involving predicate symbols of arity at most d𝑑d). The classes f-spec(k)f-spec𝑘for-all{\textsc{f-spec}}(k\forall) and f-specd(k)subscriptf-spec𝑑𝑘for-all{\textsc{f-spec}}_{d}(k\forall) are analogously defined.

  3. (iii)

    Finally, let specd(+)subscriptspec𝑑{\textsc{spec}}_{d}(+) be the class of spectra of first-order sentences over the language containing one ternary relation interpreted as the addition relation over finite segments of \mathbb{N} and predicate symbols of arity at most d𝑑d

Some inclusions between these classes are easy to obtain: more resources (in terms of arity or number of variables) means more expressive power. Hence, for example, for all i,j𝑖𝑗i,j\in{\mathbb{N}} such that i<j𝑖𝑗i<j:

specispecj,f-specif-specj and specif-speci.formulae-sequencesubscriptspec𝑖subscriptspec𝑗subscriptf-spec𝑖subscriptf-spec𝑗subscript and spec𝑖subscriptf-spec𝑖{\textsc{spec}}_{i}\subseteq{\textsc{spec}}_{j},\ {\textsc{f-spec}}_{i}\subseteq{\textsc{f-spec}}_{j}\mbox{ and }{\textsc{spec}}_{i}\subseteq{\textsc{f-spec}}_{i}.

The following results proves a first relationship between time complexity of computation and “syntactic” complexity of definition.

Proposition 5.10 (Lynch 1982 [ar:Lynch82a])

For all d1𝑑1d\geq 1, NTIME(2dn)specd(+)NTIMEsuperscript2𝑑𝑛subscriptspec𝑑\mathrm{NTIME}({2^{d\cdot n}})\subseteq{\textsc{spec}}_{d}(+).

The converse of this result remains open. It refines the complexity characterization of first-order spectra and has many further developments that we present in Section 6. From a technical point of view, note that Lynch works with so-called “word-models”. Namely, a binary word w𝑤w with length n𝑛n is seen as a structure with universe {0,,n1}0𝑛1\{0,\ldots,n-1\}, equipped with some arithmetics (eg. successor predicate or addition predicate) and with a unary predicate that indicates the positions of the digits 111 of w𝑤w. The methods developed in this paper are re-used later on by several authors.

Open Question 25

Is the inclusion d1𝑑1d\geq 1, NTIME(2dn)specd(+)NTIMEsuperscript2𝑑𝑛subscriptspec𝑑\mathrm{NTIME}({2^{d\cdot n}})\subseteq{\textsc{spec}}_{d}(+) proper?

Finally, Lynch explains that, from an attentive reading of Fagin’s proof, one can only deduce that if some language L𝐿L is in NTIME(2dn)NTIMEsuperscript2𝑑𝑛\mathrm{NTIME}({2^{d\cdot n}}), then L𝐿L is in spec2dsubscriptspec2𝑑{\textsc{spec}}_{2d} i.e. is a the spectrum of a first-order sentence involving predicates of arity at most 2d2𝑑2d. Even though Lynch’s result is not an exact characterization, but only an inclusion, it has been very influential to other researchers.

In a series of papers published between 198319831983 and 199019901990 (see [ar:Grandjean83a, proc:Grandjean83b, ar:Grandjean84, ar:Grandjean85, proc:Grandjean87, ar:Grandjean90b]), Grandjean proposes two fruitful ideas. The first one is to use RAM machines as a natural model of computation for general logical structures instead of Turing machines, which are best fitted for languages (or word structures). The second idea is to remark that the time complexity seems closely related to the syntactical form of the sentences (and more specifically in this case with the number of universally quantified variables). Let NRAM(f(n))NRAM𝑓𝑛\mathrm{NRAM}({f(n)}) be the class of binary languages accepted in time O(f(n))𝑂𝑓𝑛O(f(n)) by a non-deterministic RAM (with successor), where n𝑛n is the length of the input.

Theorem 5.11 (Grandjean 198319831983 [proc:Grandjean83b, ar:Grandjean85, proc:Grandjean87, ar:Grandjean90b])

For all d1𝑑1d\geq 1, we have NRAM(2dn)=f-spec(d)=f-specd(d)NRAMsuperscript2𝑑𝑛f-spec𝑑for-allsubscriptf-spec𝑑𝑑for-all\mathrm{NRAM}({2^{d\cdot n}})={\textsc{f-spec}}(d\forall)={\textsc{f-spec}}_{d}(d\forall).

The case d=1𝑑1d=1 i.e. the case of sentences with one universally quantified variable, is more involved: it requires to encode arithmetic predicates such as linear order or addition that appear intrinsically in the characterization of computation by sentences with one variable. It is developed in the papers [proc:Grandjean87, ar:Grandjean90b]). In passing, this implies that the presence of the addition relation is not mandatory in Proposition 5.10 provided (unary) functions are allowed in the language.

An interesting corollary of the latter characterization is that when the number of (universally quantified) variables is fixed, restricting the language to contain function or relation symbols of arity bounded by d𝑑d only does not weaken the expressive power of sentences and define the same class of spectra. In other words, the following holds.

Corollary 5.12 (Grandjean 198319831983 [proc:Grandjean83b, ar:Grandjean85, proc:Grandjean87, ar:Grandjean90b])

For all d1𝑑1d\geq 1, it holds that f-spec(d)=f-specd(d)f-spec𝑑for-allsubscriptf-spec𝑑𝑑for-all{\textsc{f-spec}}(d\forall)={\textsc{f-spec}}_{d}(d\forall).

The original proof of this result relies on complexity arguments based on the characterization of f-spec(d)f-spec𝑑for-all{\textsc{f-spec}}(d\forall). We give here a purely logical proof 666We thank Étienne Grandjean for kindly giving us this proof..

Proof of Corollary 5.12.

For simplicity of notation, we give the proof in the case d=1𝑑1d=1. Let φtΨ𝜑for-all𝑡Ψ\varphi\equiv\forall t\Psi where ΨΨ\Psi is quantifier-free and whose vocabulary is composed of function symbols of various arities. Let Term(Ψ)TermΨ\textsf{Term}(\Psi) be the set of terms and subterms of ΨΨ\Psi. The first idea is to associate with each element τ𝜏\tau of Term(Ψ)TermΨ\textsf{Term}(\Psi) a new unary function fτsubscript𝑓𝜏f_{\tau}. The definition of fτsubscript𝑓𝜏f_{\tau} is as follows:

  1. (i)

    if τ=t𝜏𝑡\tau=t or τ𝜏\tau is a constant symbol, then fτ(t)=τsubscript𝑓𝜏𝑡𝜏f_{\tau}(t)=\tau,

  2. (ii)

    if τ=f(τ1(t),,τk(t))𝜏𝑓subscript𝜏1𝑡subscript𝜏𝑘𝑡\tau=f(\tau_{1}(t),\ldots,\tau_{k}(t)) for some function symbol f𝑓f of arity k𝑘k, then fτ(t)=f(fτ1(t),,fτk(t))subscript𝑓𝜏𝑡𝑓subscript𝑓subscript𝜏1𝑡subscript𝑓subscript𝜏𝑘𝑡f_{\tau}(t)=f(f_{\tau_{1}}(t),\ldots,f_{\tau_{k}}(t)).

One obtains a new sentence ΨsuperscriptΨ\Psi^{\prime} instead of ΨΨ\Psi by replacing each term τTerm(Ψ)𝜏TermΨ\tau\in\textsf{Term}(\Psi) by fτ(t)subscript𝑓𝜏𝑡f_{\tau}(t) in conjunction with the definition of each function symbol fτsubscript𝑓𝜏f_{\tau}. Let us explain the transformation on some example.

Let ΨΨ\Psi be the following very simple sentence with f𝑓f of arity 222 and g𝑔g of arity 111:

E(f(f(t,g(t)τ1)τ2,t)τ3,t)𝐸subscript𝑓superscript𝑓𝑡subscript𝑔𝑡subscript𝜏1subscript𝜏2𝑡subscript𝜏3𝑡E(\underbrace{f(\overbrace{f(t,\underbrace{g(t)}_{\tau_{1}})}^{\tau_{2}},t)}_{\tau_{3}},t)

Then, ΨsuperscriptΨ\Psi^{\prime} corresponds to:

E(fτ3(t),ft(t))fτ3(t)=f(fτ2(t),ft(t))fτ2(t)=f(ft(t),fτ1(t))fτ1(t)=g(ft(t))ft(t)=t𝐸subscript𝑓subscript𝜏3𝑡subscript𝑓𝑡𝑡subscript𝑓subscript𝜏3𝑡𝑓subscript𝑓subscript𝜏2𝑡subscript𝑓𝑡𝑡subscript𝑓subscript𝜏2𝑡𝑓subscript𝑓𝑡𝑡subscript𝑓subscript𝜏1𝑡subscript𝑓subscript𝜏1𝑡𝑔subscript𝑓𝑡𝑡subscript𝑓𝑡𝑡𝑡\begin{array}[]{l}E(f_{\tau_{3}}(t),f_{t}(t))\wedge f_{\tau_{3}}(t)=f(f_{\tau_{2}}(t),f_{t}(t))\\ \wedge f_{\tau_{2}}(t)=f(f_{t}(t),f_{\tau_{1}}(t))\wedge f_{\tau_{1}}(t)=g(f_{t}(t))\wedge f_{t}(t)=t\end{array}

It is easily seen that the only non unary symbols (here f𝑓f) appear (if they do at all) only as an outermost symbol in atomic formula. Let now f(σ1¯(t))𝑓¯subscript𝜎1𝑡f(\overline{\sigma_{1}}(t)), …, f(σh¯(t))𝑓¯subscript𝜎𝑡f(\overline{\sigma_{h}}(t)) be the list of terms in ΨsuperscriptΨ\Psi^{\prime} involving f𝑓f. The idea is now to replace in ΨsuperscriptΨ\Psi^{\prime} each f(σi¯(t))𝑓¯subscript𝜎𝑖𝑡f(\overline{\sigma_{i}}(t)) by some new term Fi(t)subscript𝐹𝑖𝑡F_{i}(t) where Fisubscript𝐹𝑖F_{i} is of arity one (let’s call this new sentence Ψ′′superscriptΨ′′\Psi^{\prime\prime}) and to write down the relations between each pair Fi(t)subscript𝐹𝑖𝑡F_{i}(t) and Fj(t)subscript𝐹𝑗𝑡F_{j}(t) for i,jh𝑖𝑗i,j\leq h. This provides a new sentence φ=tt(Ψ′′Δ)superscript𝜑for-all𝑡for-allsuperscript𝑡superscriptΨ′′Δ\varphi^{\prime}=\forall t\forall t^{\prime}\ (\Psi^{\prime\prime}\wedge\Delta) where

Δi,jh(σ¯i(t)=σ¯j(t)Fi(t)=Fj(t))Δsubscript𝑖𝑗subscript¯𝜎𝑖𝑡subscript¯𝜎𝑗superscript𝑡subscript𝐹𝑖𝑡subscript𝐹𝑗superscript𝑡\Delta\equiv\bigwedge_{i,j\leq h}(\overline{\sigma}_{i}(t)=\overline{\sigma}_{j}(t^{\prime})\rightarrow F_{i}(t)=F_{j}(t^{\prime}))

The above method shows, when the number of variables is d=1𝑑1d=1 how to replace hh-ary functions by unary functions. However, in order to control the definition of the Fissubscript𝐹𝑖𝑠F_{i}s we introduce one additional quantified variable. To get rid of this additional variable one can proceed as follows. First, the vocabulary is enriched with a binary predicate << interpreted as a linear order on the domain, and hh unary functions N¯jsubscript¯𝑁𝑗\overline{N}_{j} for jh𝑗j\leq h. Let ΔsuperscriptΔ\Delta^{\prime} be the following sentence.

Δ(i,t)(j,x)N¯(j,x)=(σ¯i(t),i,t)(j,x)(h,max)(j,x)(j,x)=(j,x)+1N¯(j,x)<N¯(j,x)(j,x)(h,max)(j,x)(i,t)(i,t)(j,x)=(j,x)+1N¯(j,x)=(σ¯i(t),i,t)N¯(j,x)=(σ¯i(t),i,t)(σ¯i(t)=σ¯i(t)Fi(t)=Fi(t)).superscriptΔabsentfor-all𝑖𝑡𝑗𝑥¯𝑁𝑗𝑥limit-fromsubscript¯𝜎𝑖𝑡𝑖𝑡for-all𝑗𝑥𝑚𝑎𝑥superscript𝑗superscript𝑥superscript𝑗superscript𝑥𝑗𝑥1¯𝑁𝑗𝑥limit-from¯𝑁superscript𝑗superscript𝑥for-all𝑗𝑥𝑚𝑎𝑥superscript𝑗superscript𝑥𝑖𝑡superscript𝑖superscript𝑡superscript𝑗superscript𝑥𝑗𝑥1¯𝑁𝑗𝑥subscript¯𝜎𝑖𝑡𝑖𝑡¯𝑁superscript𝑗superscript𝑥subscript¯𝜎superscript𝑖superscript𝑡superscript𝑖superscript𝑡subscript¯𝜎𝑖𝑡subscript¯𝜎superscript𝑖superscript𝑡subscript𝐹𝑖𝑡subscript𝐹superscript𝑖superscript𝑡\begin{array}[]{l}\Delta^{\prime}\equiv\\ \forall(i,t)\exists(j,x)\ \overline{N}(j,x)=(\overline{\sigma}_{i}(t),i,t)\wedge\\ \forall(j,x)\neq(h,max)\exists(j^{\prime},x^{\prime})\ (j^{\prime},x^{\prime})=(j,x)+1\wedge\overline{N}(j,x)<\overline{N}(j^{\prime},x^{\prime})\wedge\\ \forall(j,x)\neq(h,max)\exists(j^{\prime},x^{\prime})\exists(i,t)\exists(i^{\prime},t^{\prime})\\ \qquad(j^{\prime},x^{\prime})=(j,x)+1\wedge\overline{N}(j,x)=(\overline{\sigma}_{i}(t),i,t)\wedge\overline{N}(j^{\prime},x^{\prime})=(\overline{\sigma}_{i^{\prime}}(t^{\prime}),i^{\prime},t^{\prime})\\ \qquad\wedge(\overline{\sigma}_{i}(t)=\overline{\sigma}_{i^{\prime}}(t^{\prime})\rightarrow F_{i}(t)=F_{i^{\prime}}(t^{\prime})).\end{array}

where (i,t)for-all𝑖𝑡\forall(i,t) stands for 1ihtsubscript1𝑖for-all𝑡\bigwedge_{1\leq i\leq h}\forall t and (j,x)𝑗𝑥\exists(j,x) for 1ihxsubscript1𝑖𝑥\bigvee_{1\leq i\leq h}\exists x; N(j,x)𝑁𝑗𝑥N(j,x) stands for Nj(x)subscript𝑁𝑗𝑥N_{j}(x). Similarly, (j,x)+1𝑗𝑥1(j,x)+1 represents the successor of pair (j,x)𝑗𝑥(j,x) in the lexicographic ordering of pairs (j,x)𝑗𝑥(j,x), j{1,,h}𝑗1j\in\{1,\ldots,h\} and xD𝑥𝐷x\in D. The above sentence expresses the fact that the function N¯¯𝑁\overline{N} (in fact the union of functions N¯jsubscript¯𝑁𝑗\overline{N}_{j}, jh𝑗j\leq h) is an increasing bijection from the set {1,,h}×D1𝐷\{1,\ldots,h\}\times D to the set {(σ¯i(t),i,t)|ih,tD}conditional-setsubscript¯𝜎𝑖𝑡𝑖𝑡formulae-sequence𝑖𝑡𝐷\{(\overline{\sigma}_{i}(t),i,t)|i\leq h,t\in D\}. This sentence plays the same role as the sentence ΔΔ\Delta but this time tuples (σ¯i(t),i,t)subscript¯𝜎𝑖𝑡𝑖𝑡(\overline{\sigma}_{i}(t),i,t) with the same first component σ¯i(t)subscript¯𝜎𝑖𝑡\overline{\sigma}_{i}(t) are contiguous in the numbering N¯¯𝑁\overline{N}. Using a result of Grandjean [ar:Grandjean90b], one can replace the linear ordering << by additional unary functions. ∎

To be complete, one should also mention the earlier (and weaker) result obtained by Pudlák [ar:Pudlak75] by purely logical argument at that time.

Proposition 5.13 (Pudlák 75 [ar:Pudlak75])

f-spec(d)f-specd(2d)f-spec𝑑for-allsubscriptf-spec𝑑2𝑑for-all{\textsc{f-spec}}(d\forall)\subseteq{\textsc{f-spec}}_{d}(2d\forall)for all d1𝑑1d\geq 1.

In the next section, we will examine more closely the expressive power of spectra on restricted vocabulary. The results of this section show that a tight connection exists between nondeterministic complexity classes and classes of spectra defined by limiting the number of universally quantified variables in sentences. A natural question is whether such a connection exists when the language itself is limited. In particular

Open Question 26

Is there a characterization as a complexity class of the classes f-specdsubscriptf-spec𝑑{\textsc{f-spec}}_{d} for all d1𝑑1d\geq 1 ?

This question has also some connections with problems addressed in Section 6.4.

6 Approach III: Restricted vocabularies

6.1 Spectra for monadic predicates

Maybe the simplest way to restrict vocabularies is by limiting the arity of the symbols. In that direction, the smallest restricted class of spectra that can be studied is that of sentences involving only relation symbols of arity one (so-called monadic in the literature). In this case, the following can be proved:

Proposition 6.1 (Löwenheim 1915 [ar:Loewenheim15], Fagin 1975  [ar:Fagin75b])

Let τ𝜏\tau be a vocabulary consisting of unary relation symbols only and ϕMSOL(τ)italic-ϕMSOL𝜏\phi\in\textsc{MSOL}({\tau}). Then the spectrum of ϕitalic-ϕ\phi is finite or co-finite.

Proof.

Use quantifier elimination or Ehrenfeucht-Fraïssé games. ∎

Remark that the even numbers are a spectrum of the following sentence with one unary function:

xf(x)xf2(x)=x.for-all𝑥𝑓𝑥𝑥superscript𝑓2𝑥𝑥\forall x\ f(x)\neq x\wedge f^{2}(x)=x.

Hence, the most trivial extension of monadic relational vocabulary already provide a spectrum which is neither finite nor co-finite. Then, a natural question is whether the converse of Proposition 6.1 is true or not. The following observation can be made by remarking that one can express the cardinality of a finite domain set by an existential first-order formula.

Observation 6.2.

Every finite or co-finite set X𝑋X\subseteq{\mathbb{N}} is a first-order spectrum for a sentence with equality only (i.e., no relation or function symbols).

This contrast with the fact that every SO-spectrum is also an SO-spectrum over equality only. This allows to conclude.

Proposition 6.3

If τ𝜏\tau consists of a finite (possibly empty) set of unary relation symbols, the MSOL(τ)MSOL𝜏\textsc{MSOL}({\tau})-spectra are exactly all finite and cofinite subsets of {\mathbb{N}}.

6.2 Spectra for one unary function

As remarked above, one unary function is enough to define nontrivial spectra. It turns out, however, that a complete characterization of spectra for one unary function (with additional unary relations) is possible.

Definition 6.4.

A set X𝑋X\subseteq{\mathbb{N}} is ultimately periodic if there are a,p𝑎𝑝a,p\in{\mathbb{N}} such that for each na𝑛𝑎n\geq a we have that nX𝑛𝑋n\in X iff n+pX𝑛𝑝𝑋n+p\in X.

The set of even numbers is ultimately periodic with a=p=2𝑎𝑝2a=p=2. Again, one may observe

Observation 6.5.

Every ultimately periodic set X𝑋X\subseteq{\mathbb{N}} is a first order spectrum for a sentence with one unary function and equality only (this is already true if the function is restricted to be a permutation).

Surprisingly, ultimately periodic sets are precisely the spectra of sentences with one unary function [proc:DurandFL97, proc:GurevichS03].

Theorem 6.6 (Durand, Fagin, Loescher 1997, Gurevich, Shelah 2003)

Let ϕitalic-ϕ\phi be a sentence of MSOL(τ)MSOL𝜏\textsc{MSOL}({\tau}) where τ𝜏\tau consists of

  • -

    finitely many unary relation symbols,

  • -

    one unary function and equality only.

Then spec(ϕ)specitalic-ϕ\textsc{spec}({\phi}) is ultimately periodic,

Proof.

The proof of [proc:DurandFL97] uses Ehrenfeucht-Fraïssé game argument and is restricted to the EMSOL(τ)EMSOL𝜏\textsc{EMSOL}({\tau}) case. The generalization of [proc:GurevichS03] is an application of the Feferman-Vaught-Shelah decomposition method. ∎

There exists alternative ways to characterize ultimately periodic sets. Among others, they can also be seen as sets of integers definable in Presburger Arithmetic. Also, since ultimately periodic sets are closed under complementation, one have:

Corollary 6.7

Spectra involving a single unary function symbol are closed under complement.

6.3 Beyond one unary function and transfer theorems

There exist several ways to extend a vocabulary with one unary function: one may choose to add one (or several) new unary function(s) or, in the opposite direction, one may consider vocabularies with only one unrestricted binary relation symbol. It turns out that, up to what will be called ”transfer theorems” in the sequel, both kinds of extension lead to very expressive formulas.

Before going further, notations about classes of spectra need to be refined to take into account the number of symbols of distinct arities. Again, we will distinguish in the sequel whether function symbols are allowed or not. We write f-spec with various indices when function symbols are allowed, and spec when function symbols are not allowed.

Definition 6.8.

A set S𝑆S of integers is in f-speciα,βsuperscriptsubscriptf-spec𝑖𝛼𝛽{\textsc{f-spec}}_{i}^{\alpha,\beta} if there exists a first-order sentence ϕitalic-ϕ\phi such that S=spec(ϕ)𝑆specitalic-ϕS=\textsc{spec}({\phi}) and the vocabulary of φ𝜑\varphi contains only

  • -

    α𝛼\alpha function symbols of arity i𝑖i and

  • -

    at most β𝛽\beta function symbols of arity less than i𝑖i, or relation symbols of arity less or equal to i𝑖i.

Said another way: a set of integers is in speciα,βsuperscriptsubscriptspec𝑖𝛼𝛽{\textsc{spec}}_{i}^{\alpha,\beta} if it can be defined by a first order formula over the language of α𝛼\alpha relation symbols of arity i𝑖i and β𝛽\beta relation symbols of arity less than i𝑖i.

When the number of symbols of arity less than i𝑖i is not restricted, the respective class of spectra are denoted by speciβ,ωsuperscriptsubscriptspec𝑖𝛽𝜔{\textsc{spec}}_{i}^{\beta,\omega} and f-speciβ,ωsuperscriptsubscriptf-spec𝑖𝛽𝜔{\textsc{f-spec}}_{i}^{\beta,\omega}. For example, the class of first order spectra over one unary function and an arbitrary number of monadic relation and constant symbols (studied in Section 6.2) is denoted f-spec11,ωsuperscriptsubscriptf-spec11𝜔{\textsc{f-spec}}_{1}^{1,\omega}. Similarly speciαsuperscriptsubscriptspec𝑖𝛼{\textsc{spec}}_{i}^{\alpha} and f-speciαsuperscriptsubscriptf-spec𝑖𝛼{\textsc{f-spec}}_{i}^{\alpha} are abbreviations for speciα,0superscriptsubscriptspec𝑖𝛼0{\textsc{spec}}_{i}^{\alpha,0} and f-speciα,0superscriptsubscriptf-spec𝑖𝛼0{\textsc{f-spec}}_{i}^{\alpha,0} Finally, in this setting specisubscriptspec𝑖{\textsc{spec}}_{i} abbreviates for speciω,ωsuperscriptsubscriptspec𝑖𝜔𝜔{\textsc{spec}}_{i}^{\omega,\omega} (the same holds for f-specisubscriptf-spec𝑖{\textsc{f-spec}}_{i}).

Let us examine what are the relations between these different classes of spectra. Recall that for all i,j𝑖𝑗i,j\in{\mathbb{N}} such that i<j𝑖𝑗i<j:

specispecj,f-specif-specj and specif-speci.formulae-sequencesubscriptspec𝑖subscriptspec𝑗subscriptf-spec𝑖subscriptf-spec𝑗subscript and spec𝑖subscriptf-spec𝑖{\textsc{spec}}_{i}\subseteq{\textsc{spec}}_{j},\ {\textsc{f-spec}}_{i}\subseteq{\textsc{f-spec}}_{j}\mbox{ and }{\textsc{spec}}_{i}\subseteq{\textsc{f-spec}}_{i}.

The following inclusions are also easy to see. For all i,β𝑖𝛽i,\beta\in{\mathbb{N}},

speciα,ωspeciα+1 and f-speciα,ωf-speciα+1.superscriptsubscriptspec𝑖𝛼𝜔superscriptsubscriptspec𝑖𝛼1superscriptsubscript and f-spec𝑖𝛼𝜔superscriptsubscriptf-spec𝑖𝛼1{\textsc{spec}}_{i}^{\alpha,\omega}\subseteq{\textsc{spec}}_{i}^{\alpha+1}\mbox{ and }{\textsc{f-spec}}_{i}^{\alpha,\omega}\subseteq{\textsc{f-spec}}_{i}^{\alpha+1}.

The relationships between spectra of i𝑖i-ary functions and spectra of i+1𝑖1i+1-ary relations can be made more precise. In [ar:DurandR96], it is shown that a spectrum of a first-order formula involving any number of unary function symbols is also the spectrum of a formula using only one binary relation. This can be generalized to any arity.

Proposition 6.9 ([ar:DurandR96, phd:Durand96])

For every integer i1𝑖1i\geq 1, f-specispeci+11subscriptf-spec𝑖superscriptsubscriptspec𝑖11{\textsc{f-spec}}_{i}\subseteq{\textsc{spec}}_{i+1}^{1}

The converse is not known not be true. All in once, the following chain of inclusions holds.

specif-speci1f-specispeci+11speci+1subscriptspec𝑖superscriptsubscriptf-spec𝑖1subscriptf-spec𝑖superscriptsubscriptspec𝑖11subscriptspec𝑖1{\textsc{spec}}_{i}\subseteq{\textsc{f-spec}}_{i}^{1}\subseteq{\textsc{f-spec}}_{i}\subseteq{\textsc{spec}}_{i+1}^{1}\subseteq{\textsc{spec}}_{i+1}

It seems difficult to prove the converse of any of the inclusions given above. Then, a natural way to study the expressive power of languages relatively to spectrum definition is to reduce them through functional (here polynomial) transformation.

Definition 6.10.

If f::𝑓f:{\mathbb{N}}\rightarrow{\mathbb{N}} and S𝑆S is a set of integers, then f(S)={f(n):nS}𝑓𝑆conditional-set𝑓𝑛𝑛𝑆f(S)=\{f(n):n\in S\} and Si={ni:nS}superscript𝑆𝑖conditional-setsuperscript𝑛𝑖𝑛𝑆S^{i}=\{n^{i}:n\in S\}.

Let 𝒞1subscript𝒞1{\mathcal{C}_{1}} and 𝒞2subscript𝒞2{\mathcal{C}_{2}} be two classes of spectra and f::𝑓f:{\mathbb{N}}\rightarrow{\mathbb{N}} be a function. A natural question is then the following:

Let S𝑆S be a spectrum in 𝒞1subscript𝒞1{\mathcal{C}_{1}} and f𝑓f be a \mathbb{N}\rightarrow\mathbb{N} function, is f(S)𝑓𝑆f(S) a spectrum in 𝒞2subscript𝒞2{\mathcal{C}_{2}}?

In [ar:Fagin75a], Fagin showed an interesting equivalence between spectra defined by different relational languages. Such results have been called transfer theorems since then. The proof can be seen as an extension of the well-known interpretation method of Rabin [proc:Rabin64] with an additional constraint that describes how the domain size of the structure needs to change.

Theorem 6.11 (Fagin 1975 [ar:Fagin75a])

For every i1𝑖1i\geq 1, Sspec2iSispec2𝑆subscriptspec2𝑖superscript𝑆𝑖subscriptspec2S\in{\textsc{spec}}_{2i}\Longleftrightarrow S^{i}\in{\textsc{spec}}_{2}.

Since relational spectra of arity one are finite or cofinite the “transfer” theorem above cannot be extended to spec1subscriptspec1{\textsc{spec}}_{1}. Not too surprisingly, if function symbols are allowed, a similar and more uniform equivalence can be proved.

Proposition 6.12

For every i1𝑖1i\geq 1, Sf-speciSif-spec1𝑆subscriptf-spec𝑖superscript𝑆𝑖subscriptf-spec1S\in{\textsc{f-spec}}_{i}\Longleftrightarrow S^{i}\in{\textsc{f-spec}}_{1}.

The flexibility of unary functions as well as their expressive power are well emphasized by the following result which show that the image of any spectrum under any polynomial transformation is a spectrum involving unary functions only, provided the polynomial is ”big enough”.

Theorem 6.13 (Durand, Ranaivoson 1996 [ar:DurandR96])

Let P(X)[X]𝑃𝑋delimited-[]𝑋P(X)\in\mathbb{Q}[X] of degree mi𝑚𝑖m\geq i and with a strictly positive dominating coefficient. Then,

Sf-speciP(S)={P(n),nS}f-spec1.𝑆subscriptf-spec𝑖𝑃𝑆𝑃𝑛𝑛𝑆subscriptf-spec1S\in{\textsc{f-spec}}_{i}\Rightarrow\lceil P(S)\rceil=\{\lceil P(n)\rceil,\ n\in S\}\in{\textsc{f-spec}}_{1}.

6.3.1 Spectra for one binary relation symbol

An easy consequence of Theorem 6.11 is that for every spectrum S𝑆S, there exists i𝑖i\in{\mathbb{N}}, such that Sispec21superscript𝑆𝑖superscriptsubscriptspec21S^{i}\in{\textsc{spec}}_{2}^{1}. This result underlines the great expressive power of sentences involving exactly one binary relation symbol. Up to polynomial transformation, any spectrum is a spectrum of such a sentence.

Let BINspec21𝐵𝐼𝑁superscriptsubscriptspec21BIN\subseteq{\textsc{spec}}_{2}^{1} be the set of spectra of a symmetric, irreflexive relation (simple graphs). The whole complexity of the spectrum problem is already contained in the apparently weaker question of whether BIN𝐵𝐼𝑁BIN is closed under complement.

Theorem 6.14 (Fagin 1974, [proc:Fagin74])

BIN𝐵𝐼𝑁BINis closed under complement iff the complement of every first order spectrum is also a spectrum.

In fact, one can prove the following stronger result: For all XBIN𝑋𝐵𝐼𝑁X\in BIN the complement Xspec21𝑋superscriptsubscriptspec21{\mathbb{N}}-X\in{\textsc{spec}}_{2}^{1} iff the complement of every first order spectrum is also a spectrum.

Open Question 27 (Fagin 1974, [proc:Fagin74])

Is every first order spectrum in spec21superscriptsubscriptspec21{\textsc{spec}}_{2}^{1}?

6.3.2 Spectra for two unary functions and more

Here again, Proposition 6.12 implies that for any spectrum S𝑆S, there exists an integer i𝑖i such that Sisuperscript𝑆𝑖S^{i} is a spectrum involving unary functions only. This should be compared with the very weak expressive power of sentences involving unary predicates only. We also know that one unary function leads to the very specific class of ultimately periodic sets. The question now is: how many unary function symbols are necessary to obtain an expressive (in the spectrum framework) fragment of first-order logic.

Recall that f-spec1isuperscriptsubscriptf-spec1𝑖{\textsc{f-spec}}_{1}^{i} denotes the set of first order spectra using at most i𝑖i unary function symbols. Obviously, for all positive integer i𝑖i, f-spec1if-spec1i+1superscriptsubscriptf-spec1𝑖superscriptsubscriptf-spec1𝑖1{\textsc{f-spec}}_{1}^{i}\subseteq{\textsc{f-spec}}_{1}^{i+1}

The inclusion between the two first levels is strict, as shown in [ar:Loescher97].

Theorem 6.15 (Loescher 1997 [ar:Loescher97])

The set {n2:n}conditional-setsuperscript𝑛2𝑛\{n^{2}:n\in{\mathbb{N}}\} belongs to the class f-spec12\f-spec11\superscriptsubscriptf-spec12superscriptsubscriptf-spec11{\textsc{f-spec}}_{1}^{2}\backslash{\textsc{f-spec}}_{1}^{1}, hence the inclusion f-spec11f-spec12superscriptsubscriptf-spec11superscriptsubscriptf-spec12{\textsc{f-spec}}_{1}^{1}\subset{\textsc{f-spec}}_{1}^{2} is proper.

In fact, more can be proved on the expressive power of sentences with two unary functions.

Theorem 6.16 (Durand, Fagin and Loescher, 1998, [proc:DurandFL97])

Given k𝑘k and a spectrum S𝑆S in f-spec1ksuperscriptsubscriptf-spec1𝑘{\textsc{f-spec}}_{1}^{k}. Then kS={kn:nS}f-spec12𝑘𝑆conditional-set𝑘𝑛𝑛𝑆superscriptsubscriptf-spec12kS=\{kn:n\in S\}\in{\textsc{f-spec}}_{1}^{2}.

Combined with Proposition 6.12 or with Theorem 6.13, this implies that there is a first order spectrum over two unary function symbols which, written in unary, is 𝐍𝐏𝐍𝐏{{\mathbf{NP}}}-complete. This also implies that there is a transfer result that maps every spectrum to a spectrum over two unary functions.
 

6.3.3 Rudimentary sets and spectra of restricted vocabularies

The relation between rudimentary sets and spectra have been investigated. It has been first observed that the set of primes is in f-spec1subscriptf-spec1{\textsc{f-spec}}_{1} (Grandjean 1988 [ar:Grandjean88]). More generaly, it holds that:

Rudf-spec1 (Olive 1996 [proc:Olive97]).Rudsubscriptf-spec1 (Olive 1996 [proc:Olive97]).\textsc{Rud}\subseteq{\textsc{f-spec}}_{1}\mbox{ (Olive 1996 \cite[cite]{[\@@bibref{}{proc:Olive97}{}{}]}).}

Due to the closure of Rud by polynomial transformation and to the existence of the above described transfer results for spectra, it is clear that, not only, one can improve:

Rudf-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}\subseteq{\textsc{f-spec}}_{1}^{2}

but also

Rud=Spec if and only if Rud=f-spec12RudSpec if and only if Rudsuperscriptsubscriptf-spec12\textsc{Rud}=\textsc{Spec}\mbox{ if and only if }\textsc{Rud}={\textsc{f-spec}}_{1}^{2}

However, in view of the following surprising result, there are evidences that none of these equalities hold.

Theorem 6.17 (Woods, 1981, [phd:Woods81])

If Rud=SpecRudSpec\textsc{Rud}=\textsc{Spec} then NPcoNPNPcoNP\mathrm{NP}\neq\mathrm{coNP} and NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE}

Since the proof is hardly available and given in a different framework in Woods’s thesis, we sketch it below.

Proof.

Let LTHLTH\mathrm{LTH} the linear time analog of the polynomial hierarchy PHPH\mathrm{PH}. Celia Wrathall gave in [ar:Wrathall78] a precise complexity characterization of rudimentary set by proving that LTH=RudLTHRud\mathrm{LTH}=\textsc{Rud}.

The following facts are easy to prove.

  1. (i)

    LTHDSPACE(n)NELTHDSPACE𝑛NE\mathrm{LTH}\subseteq\mathrm{DSPACE}({n})\subseteq\mathrm{NE}

  2. (ii)

    If LTH=DSPACE(n)LTHDSPACE𝑛\mathrm{LTH}=\mathrm{DSPACE}({n}) then LTHLTH\mathrm{LTH} collapses to some level k𝑘k.

  3. (iii)

    If LTHLTH\mathrm{LTH} collapses to some level k𝑘k then PHPH\mathrm{PH} collapses to some level ksuperscript𝑘k^{\prime}.

  4. (iv)

    LTH=DSPACE(n)LTHDSPACE𝑛\mathrm{LTH}=\mathrm{DSPACE}({n}) implies PH=PSPACEPHPSPACE\mathrm{PH}=\mathrm{PSPACE}

If Rud=SpecRudSpec\textsc{Rud}=\textsc{Spec} then, since Spec=NESpecNE\textsc{Spec}=\mathrm{NE}, it holds LTH=DSPACE(n)=NELTHDSPACE𝑛NE\mathrm{LTH}=\mathrm{DSPACE}({n})=\mathrm{NE}. Hence, both LTHLTH\mathrm{LTH} and PHPH\mathrm{PH} collapse.

For the other consequence, suppose NP=coNPNPcoNP\mathrm{NP}=\mathrm{coNP}. In this case, the polynomial hierarchy collapses to NPNP\mathrm{NP} i.e. NP=PHNPPH\mathrm{NP}=\mathrm{PH}. If again Rud=SpecRudSpec\textsc{Rud}=\textsc{Spec} one knows than LTH=DSPACE(n)=NELTHDSPACE𝑛NE\mathrm{LTH}=\mathrm{DSPACE}({n})=\mathrm{NE} and PH=PSPACEPHPSPACE\mathrm{PH}=\mathrm{PSPACE}. Then, since NPNENPNE\mathrm{NP}\subseteq\mathrm{NE} one obtains PSPACE=PHDSPACE(n)PSPACEPHDSPACE𝑛\mathrm{PSPACE}=\mathrm{PH}\subseteq\mathrm{DSPACE}({n}) which contradict the well-known results DSPACE(n)PSPACEDSPACE𝑛PSPACE\mathrm{DSPACE}({n})\subsetneq\mathrm{PSPACE}. ∎

Hence, although the equality Rud=f-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}={\textsc{f-spec}}_{1}^{2} might seem realistic at first sight, its consequences makes it probably hard to prove.

6.4 The unary and the arity hierarchies

The results of the preceding section show that for any spectrum S𝑆S, there is a polynomial P𝑃P such that P(S)𝑃𝑆P(S) is the spectrum of a first order sentence with two unary functions. This underlines the expressive power of this latter class of spectra up to polynomial transformation. However, as we know equality between particular classes of spectra defined, for example, by restriction on the number or the arity of the predicates in the languages is often an open problem. Taking a very particular case, it is even not known whether three unary functions ”say” more than two as far as spectra are concerned. This leads to the following open problems about spectra of unary functions.

Open Question 28 (The unary hierarchy)

Is the following hierarchy proper:

f-spec11f-spec12f-spec13f-spec1k?superscriptsubscriptf-spec11superscriptsubscriptf-spec12superscriptsubscriptf-spec13superscriptsubscriptf-spec1𝑘?{\textsc{f-spec}}_{1}^{1}\subset{\textsc{f-spec}}_{1}^{2}\subseteq{\textsc{f-spec}}_{1}^{3}\subseteq\ldots\subseteq{\textsc{f-spec}}_{1}^{k}\subseteq\ldots?
Open Question 29

Is Rud=f-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}={\textsc{f-spec}}_{1}^{2}?

Open Question 30

Is spec21=f-spec1superscriptsubscriptspec21subscriptf-spec1{\textsc{spec}}_{2}^{1}={\textsc{f-spec}}_{1} or even spec21=f-spec12superscriptsubscriptspec21superscriptsubscriptf-spec12{\textsc{spec}}_{2}^{1}={\textsc{f-spec}}_{1}^{2}?

Both positive or negative answers to these questions would have nontrivial consequences. For example, proving Rudf-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}\neq{\textsc{f-spec}}_{1}^{2} would separate the classes Rud and Spec. In the opposite, we already know that Rud=f-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}={\textsc{f-spec}}_{1}^{2} implies NPcoNPNPcoNP\mathrm{NP}\neq\mathrm{coNP} and NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE}.

Proving that f-spec1kf-spec1k+1superscriptsubscriptf-spec1𝑘superscriptsubscriptf-spec1𝑘1{\textsc{f-spec}}_{1}^{k}\subsetneq{\textsc{f-spec}}_{1}^{k+1} for some integer k𝑘k would also separate Spec from Rud. Similarly, a collapse of the unary hierarchy to some level k𝑘k would have strong consequences. It is easily seen that, testing if a number n𝑛n (as input i.e. in unary) is in the spectrum of a first order sentence over k𝑘k unary functions can be decided by a deterministic polynomial time RAM algorithm that uses kn𝑘𝑛k\cdot n additional non deterministic steps. Since from Theorem 5.11, NRAM(2n)f-spec1NRAMsuperscript2𝑛subscriptf-spec1\mathrm{NRAM}({2^{n}})\subseteq{\textsc{f-spec}}_{1} then, the inclusion f-spec1f-spec1ksubscriptf-spec1superscriptsubscriptf-spec1𝑘{\textsc{f-spec}}_{1}\subseteq{\textsc{f-spec}}_{1}^{k} would imply immediately the following ”trade-off” result on nondeterministic RAM computations (see [proc:DurandFL97]): for any arbitrary constant c𝑐c, any nondeterministic RAM, which given a number n𝑛n as input, runs in time cn𝑐𝑛c\cdot n can be simulated by a RAM which runs in kn𝑘𝑛k\cdot n nondeterministic steps and in a polynomial number of deterministic steps. For c𝑐c greater than k𝑘k (which is fixed) such a result is rather unexpected and would strongly modify our understanding of the relationships between determinism and nondeterminism.


Another natural question concerns the relative expressive power of first order sentences defined by restriction on the arity of the symbols involved in the language. It is open whether any spectrum is the spectrum of a sentence over one binary relation only. The question may be refined as follows (See Fagin [ar:Fagin75a, ar:Fagin93]).

Open Question 31 (The arity hierarchy)

Is the following hierarchy proper:

spec1spec2spec3speck?subscriptspec1subscriptspec2subscriptspec3subscriptspec𝑘?{\textsc{spec}}_{1}\subseteq{\textsc{spec}}_{2}\subseteq{\textsc{spec}}_{3}\subseteq\ldots\subseteq{\textsc{spec}}_{k}\subseteq\ldots?

The same question could be asked for spectra over i𝑖i-ary functions.

Although the above problem is still open, Fagin proved the following partial result.

Theorem 6.18 (Fagin 1975 [ar:Fagin75a])

If speck=speck+1subscriptspec𝑘subscriptspec𝑘1{\textsc{spec}}_{k}={\textsc{spec}}_{k+1} for some integer k𝑘k then, the arity hierarchy collapses and speck=specmsubscriptspec𝑘subscriptspec𝑚{\textsc{spec}}_{k}={\textsc{spec}}_{m} for every mk𝑚𝑘m\geq k.

6.4.1 Collapse of hierarchies and closure under functions

Let 𝒞𝒞\mathcal{C} be a class of spectra and f𝑓f be a \mathbb{N}\rightarrow\mathbb{N} function. Class 𝒞𝒞\mathcal{C} is closed under f𝑓f if for any spectrum S𝑆S in 𝒞𝒞\mathcal{C}, f(S)𝑓𝑆f(S) is in 𝒞𝒞\mathcal{C}. In the spirit of Theorems 6.11 and 6.13 and Proposition 6.12 one can relate the collapse of hierarchies to the possible closure of class of spectra under some function. In [Hunter03], such problems are studied and several related results are given.

Theorem 6.19
  1. (i)

    (Hunter, [Hunter03]) The arity hierarchy collapses to spec21superscriptsubscriptspec21{\textsc{spec}}_{2}^{1}if and only if spec21superscriptsubscriptspec21{\textsc{spec}}_{2}^{1}is closed under function f:nn:𝑓maps-to𝑛𝑛f:n\mapsto\lceil\sqrt{n}\rceil.

  2. (ii)

    The unary hierarchy collapses to f-spec12superscriptsubscriptf-spec12{\textsc{f-spec}}_{1}^{2}if and only if f-spec12superscriptsubscriptf-spec12{\textsc{f-spec}}_{1}^{2}is closed under function f:nn2:𝑓maps-to𝑛𝑛2f:n\mapsto\lceil\frac{n}{2}\rceil.

Proof of (ii).

In  [Hunter03], a result similar to (ii) is proved about the number of binary predicates instead of the number of unary functions. It is not hard to see that his result extends to the case of (ii). ∎

6.5 Higher order spectra

In [ar:Lynch82a], Lynch also proposes a generalization of the characterization given in Proposition 5.10 to higher order spectra. It is shown that the polynomial time hierarchy corresponds to second-order logic. In other words, let 𝐏𝐇1=𝐏𝐇UNsubscript𝐏𝐇1𝐏𝐇UN{\mathbf{PH}}_{1}={\mathbf{PH}}\cap\mathrm{UN} then, a set X𝑋X\subseteq{\mathbb{N}} is a second order spectrum if and only if {1n:nX}𝐏𝐇1conditional-setsuperscript1𝑛𝑛𝑋subscript𝐏𝐇1\{1^{n}:n\in X\}\in{\mathbf{PH}}_{1}.

Consider SOksubscriptSO𝑘\textsc{SO}_{k} the class of second-order formulas where all the second order variables are of arity at most k𝑘k. Let 2Xk={2nk:nX}superscript2superscript𝑋𝑘conditional-setsuperscript2superscript𝑛𝑘𝑛𝑋2^{X^{k}}=\{2^{n^{k}}\in{\mathbb{N}}:n\in X\} for X𝑋X\subseteq{\mathbb{N}}. The following precise characterization can be obtained.

Theorem 6.20 (More and Olive 1997)

[ar:MoreO97] A set X𝑋X is a spectrum of a sentence in SOksubscriptSO𝑘\textsc{SO}_{k} iff 2Xksuperscript2superscript𝑋𝑘2^{X^{k}} is rudimentary.

6.6 Spectra of finite variable logic FOLksuperscriptFOL𝑘\textsc{FOL}^{k}

We denote by FOLksuperscriptFOL𝑘\textsc{FOL}^{k} first order logic with only k𝑘k distinct variables (bound or free), and by SpecFOLk𝑆𝑝𝑒𝑐superscriptFOL𝑘Spec\textsc{FOL}^{k} the set of spectra of sentences of FOLksuperscriptFOL𝑘\textsc{FOL}^{k}. FOLksuperscriptFOL𝑘\textsc{FOL}^{k} has been studied extensively in finite model theory, [Otto95b, GraedelKolaitisVardi97], but somehow the spectrum problem was not adressed for FOLksuperscriptFOL𝑘\textsc{FOL}^{k} in the literature777 While the third author was lecturing in Chennai in January 2009 on the spectrum problem, Dr. S. P. Suresh asked about it. The results below are the fruit of discussions with Amaldev Manuel and Martin Grohe. .

With the same proof as for Proposition 6.1 one gets easily the following.

Proposition 6.21

The spectrum of a sentence in FOL1superscriptFOL1\textsc{FOL}^{1} is finite or cofinite.

Let M𝑀M be a set of natural numbers. Recall that a gap of M𝑀M is a pair of integers g1,g2subscript𝑔1subscript𝑔2g_{1},g_{2} such that g1,g2Msubscript𝑔1subscript𝑔2𝑀g_{1},g_{2}\in M but for each n𝑛n with g1<n<g2subscript𝑔1𝑛subscript𝑔2g_{1}<n<g_{2} we have that nM𝑛𝑀n\not\in M. We define Tow(k,n)𝑇𝑜𝑤𝑘𝑛Tow(k,n) inductively: Tow(0,n)=n𝑇𝑜𝑤0𝑛𝑛Tow(0,n)=n and Tow(k+1,n)=2Tow(k,n)𝑇𝑜𝑤𝑘1𝑛superscript2𝑇𝑜𝑤𝑘𝑛Tow(k+1,n)=2^{Tow(k,n)}.

By coding structures which model iterated powersets one gets immediately the following.

Proposition 6.22

For every k𝑘k there is a ϕFO4italic-ϕ𝐹superscript𝑂4\phi\in FO^{4} such that the spectrum sp(ϕ)𝑠𝑝italic-ϕsp(\phi) contains gaps of size Tow(k,n)𝑇𝑜𝑤𝑘𝑛Tow(k,n).

Four variables are used here to express extensionality of the membership relation, and closure under unions with singletons.

Working a bit harder one can prove the following888M. Grohe, personal communication.

Theorem 6.23 (Grohe)
  1. (i)

    For every Turing machine T𝑇Tthere is a sentence ϕTFOL3subscriptitalic-ϕ𝑇superscriptFOL3\phi_{T}\in\textsc{FOL}^{3}such that

    spϕT={t2:Thas an accepting run of lengtht}𝑠subscript𝑝subscriptitalic-ϕ𝑇conditional-setsuperscript𝑡2𝑇has an accepting run of length𝑡sp_{\phi_{T}}=\{t^{2}:T\ \ \mbox{has an accepting run of length}\ \ t\}
  2. (ii)

    For every recursive function f𝑓fthere is a sentence ϕfsubscriptitalic-ϕ𝑓\phi_{f}in FOL3superscriptFOL3\textsc{FOL}^{3}such that the gaps in the spectrum of ϕfsubscriptitalic-ϕ𝑓\phi_{f}grow faster than f𝑓f.

The key idea is to encode Turing machines on grids, hence the t2superscript𝑡2t^{2} in the statement of the Theorem.

In contrast to the above, it follows from the proof that FOL2superscriptFOL2\textsc{FOL}^{2} has the finite model property and hence is decidable, [GraedelKolaitisVardi97], that the gaps are bounded.

Theorem 6.24

For every ϕFOL2italic-ϕ𝐹𝑂superscript𝐿2\phi\in FOL^{2} the spectrum sp(ϕ)𝑠𝑝italic-ϕsp(\phi) has gaps of size at most 2poly(n)superscript2𝑝𝑜𝑙𝑦𝑛2^{poly(n)}.

Corollary 6.25

The following inclusions are proper:

SpecFOL1SpecFOL2SpecFOL3𝑆𝑝𝑒𝑐superscriptFOL1𝑆𝑝𝑒𝑐superscriptFOL2𝑆𝑝𝑒𝑐superscriptFOL3Spec\textsc{FOL}^{1}\subset Spec\textsc{FOL}^{2}\subset Spec\textsc{FOL}^{3}
Open Question 32 (Finite Variable Hierarchy)

Does the hierarchy SpFOLk𝑆𝑝superscriptFOL𝑘Sp\textsc{FOL}^{k} collapse at level 333?

7 The Ash conjectures

The notion of k𝑘k-equivalence of structures was introduced by Fraïssé [ar:Fraisse54] in 1954 and the game presentation is due to Ehrenfeucht [ar:Ehrenfeucht61] in 1961.

Definition 7.1.

Let σ𝜎\sigma be a vocabulary, let 𝒜𝒜\mathcal{A} and \mathcal{B} be σ𝜎\sigma-structures and let k𝑘k be an integer. The two structures 𝒜𝒜\mathcal{A} and \mathcal{B} are k𝑘k-equivalent if and only if they satisfy the same σ𝜎\sigma-sentences with quantifier depth kabsent𝑘\leq k.

For a detailed presentation of k𝑘k-equivalence, we refer the reader to [bk:EbbinghausF95, bk:Hodges93]. For our purpose, the two most important features of the above notion are the following. For each finite vocabulary σ𝜎\sigma and for each quantifier depth k𝑘k, the number of k𝑘k-equivalence classes of σ𝜎\sigma-structures is finite and we denote it by Mσ,ksubscript𝑀𝜎𝑘M_{\sigma,k}. For each finite vocabulary σ𝜎\sigma, for each quantifier depth k𝑘k and for each k𝑘k-equivalence class of σ𝜎\sigma-structures 𝒞𝒞\mathcal{C}, there exists a σ𝜎\sigma-sentence Ψ𝒞subscriptΨ𝒞\Psi_{\mathcal{C}} of quantifier depth k𝑘k such that, for all σ𝜎\sigma-structure 𝒜𝒜\mathcal{A}, we have 𝒜𝒞𝒜𝒞{\mathcal{A}}\in{\mathcal{C}} if and only if 𝒜Ψ𝒞models𝒜subscriptΨ𝒞{\mathcal{A}}\models\Psi_{\mathcal{C}}.

In 1994, Ash [ar:Ash94] introduces a counting function relative to the k𝑘k-equivalence classes:

Definition 7.2.

Let σ𝜎\sigma be a finite relational vocabulary, and let k𝑘k be a positive integer. Ash’s function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} counts, for each positive integer n𝑛n, the number of k𝑘k-equivalence classes of σ𝜎\sigma-structures of size n𝑛n.

This function is obviously bounded by the total number of classes, Mσ,ksubscript𝑀𝜎𝑘M_{\sigma,k}, and Ash’s conjecture deals with its asymptotic behavior.

Open Question 33 (Ash’s constant conjecture)

Is it true that for any finite relational vocabulary σ𝜎\sigma and any positive integer k𝑘k, the Ash function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually constant?

A weaker version of his conjecture is also proposed:

Open Question 34 (Ash’s periodic conjecture)

Is it true that for any finite relational vocabulary σ𝜎\sigma and any positive integer k𝑘k, the Ash function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually periodic?

Ash shows by a very neat proof that both conjectures imply the spectrum conjecture (i.e. Spec=coSpecSpeccoSpec\textsc{Spec}=\mathrm{co}\textsc{Spec}). Let us present the idea of the proof. Fix σ𝜎\sigma and k𝑘k and assume for simplicity that Nσ,k(n)=asubscript𝑁𝜎𝑘𝑛𝑎N_{\sigma,k}(n)=a for all n𝑛n. Take a quantifier depth k𝑘k first-order σ𝜎\sigma-sentence ϕitalic-ϕ\phi. We exhibit a quantifier depth k𝑘k first-order σsuperscript𝜎\sigma^{\prime}-sentence θasubscript𝜃𝑎\theta_{a} such that spec(θa)=+spec(ϕ)specsubscript𝜃𝑎superscriptspecitalic-ϕ\textsc{spec}({\theta_{a}})={\mathbb{N}}^{+}\setminus\textsc{spec}({\phi}), where σsuperscript𝜎\sigma^{\prime} consists in a𝑎a disjoint copies of σ𝜎\sigma. Let 𝒞1,,𝒞Mσ,ksubscript𝒞1subscript𝒞subscript𝑀𝜎𝑘{\mathcal{C}}_{1},\ldots,{\mathcal{C}}_{M_{\sigma,k}} be the classes of k𝑘k-equivalence of σ𝜎\sigma-structures. All the structures in a given class 𝒞isubscript𝒞𝑖{\mathcal{C}}_{i} agree on ϕitalic-ϕ\phi, i.e. either 𝒜𝒞i𝒜ϕfor-all𝒜subscript𝒞𝑖𝒜modelsitalic-ϕ\forall{\mathcal{A}}\in{\mathcal{C}}_{i}\ {\mathcal{A}}\models\phi or 𝒜𝒞i𝒜¬ϕfor-all𝒜subscript𝒞𝑖𝒜modelsitalic-ϕ\forall{\mathcal{A}}\in{\mathcal{C}}_{i}\ {\mathcal{A}}\models\neg\phi, because ϕitalic-ϕ\phi has quantifier depth k𝑘k. Form the set Xasubscript𝑋𝑎X_{a} consisting of all sets of a𝑎a distinct 𝒞isubscript𝒞𝑖{\mathcal{C}}_{i}s such that 𝒜𝒞i𝒜¬ϕfor-all𝒜subscript𝒞𝑖𝒜modelsitalic-ϕ\forall{\mathcal{A}}\in{\mathcal{C}}_{i}\ {\mathcal{A}}\models\neg\phi. Take θaYXa𝒞YΨ𝒞subscript𝜃𝑎subscript𝑌subscript𝑋𝑎subscript𝒞𝑌subscriptsuperscriptΨ𝒞\theta_{a}\equiv\bigvee_{Y\in X_{a}}\bigwedge_{{\mathcal{C}}\in Y}\Psi^{\prime}_{\mathcal{C}}, where Ψ𝒞subscriptsuperscriptΨ𝒞\Psi^{\prime}_{\mathcal{C}} characterizes 𝒞𝒞\mathcal{C} and is written using a distinct copy of σ𝜎\sigma. The sentence θasubscript𝜃𝑎\theta_{a} has quantifier depth k𝑘k and nspec(θa)𝑛specsubscript𝜃𝑎n\in\textsc{spec}({\theta_{a}}) if and only if there are (at least) a𝑎a distinct k𝑘k-equivalence classes containing a structure 𝒜𝒜\mathcal{A} with size n𝑛n and 𝒜¬ϕmodels𝒜italic-ϕ{\mathcal{A}}\models\neg\phi. Since the total number of k𝑘k-equivalence classes containing a structure 𝒜𝒜\mathcal{A} with size n𝑛n is exactly a𝑎a, there is no class left for a model of ϕitalic-ϕ\phi, and the anounced result follows.

These ideas of Ash’s have not been exploited afterwards, and his paper has remained isolated until recently. In 2006, Chateau and More [ar:ChateauM06] published a second paper related to Ash’s counting functions. For all i+𝑖superscripti\in\mathbb{N}^{+}, note Nσ,k1(i)={n+|Nσ,k(n)=i}superscriptsubscript𝑁𝜎𝑘1𝑖conditional-set𝑛superscriptsubscript𝑁𝜎𝑘𝑛𝑖N_{\sigma,k}^{-1}(i)=\{n\in\mathbb{N}^{+}|N_{\sigma,k}(n)=i\}, the inverse image of the positive integer i𝑖i under the function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k}. Both Ash’s conjectures can be rephrased in terms of the sets Nσ,k1(i)superscriptsubscript𝑁𝜎𝑘1𝑖N_{\sigma,k}^{-1}(i) and are subsumed under the following condition:

Open Question 35 (Ultra-weak Ash conjecture)

Is it true that for any finite relational vocabulary σ𝜎\sigma, for any positive integer k𝑘k and for all i+𝑖superscripti\in\mathbb{N}^{+}, the set Nσ,k1(i)superscriptsubscript𝑁𝜎𝑘1𝑖N_{\sigma,k}^{-1}(i) is a spectrum?

This last conjecture is proved to be a necessary and sufficient condition for the complement of a spectrum to be a spectrum.

Theorem 7.3

Let σ𝜎\sigma be a finite relational vocabulary, and let k𝑘k be a positive integer. For all i+𝑖superscripti\in\mathbb{N}^{+}, the set Nσ,k1(i)superscriptsubscript𝑁𝜎𝑘1𝑖N_{\sigma,k}^{-1}(i) is a spectrum if and only if for every σ𝜎\sigma-sentence φ𝜑\varphi of quantifier depth kabsent𝑘\leq k, the set +spec(φ)superscriptspec𝜑\mathbb{N}^{+}\setminus\textsc{spec}({\varphi}) is a spectrum.

All in all, the spectrum conjecture is true if and only if the ultra-weak Ash conjecture is true.

Note that, in some cases, one gets interesting additional information about complements of spectra. Eg., if the Ash function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually constant, then for every σ𝜎\sigma-sentence φ𝜑\varphi of quantifier depth kabsent𝑘\leq k, the set +\spec(φ)\superscriptspec𝜑\mathbb{N}^{+}\backslash\textsc{spec}({\varphi}) is the spectrum of a sentence of the same quantifier depth as φ𝜑\varphi, over a vocabulary with the same arities as σ𝜎\sigma.

In order to make some progress, particular cases of Ash conjectures may be considered, i.e., by restricting the the sets of pairs (σ,k)𝜎𝑘(\sigma,k). In his original paper, Ash [ar:Ash94] already did so. For instance, he shows that if σ𝜎\sigma is a unary vocabulary, then for all k1𝑘1k\geq 1, Ash’s function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually constant. In [ar:ChateauM06], it is also proved that for all finite relational vocabulary σ𝜎\sigma, Ash’s function Nσ,2subscript𝑁𝜎2N_{\sigma,2} is eventually constant. However, these results are of very limited interest because unary vocabularies or quantifier depth two (see [ar:Mortimer75]) only allow to define finite and cofinite spectra.

In other cases, solving restricted versions of Ash conjectures happens to be as difficult as solving the full conjectures. Let 𝒢𝒢\mathcal{G} be a vocabulary restricted to a single binary relation symbol (i.e. the language of graphs). As already said, Fagin [ar:Fagin75a] shows that, up to a polynomial padding, every spectrum is a spectrum in spec21superscriptsubscriptspec21{\textsc{spec}}_{2}^{1}. Since spectra are closed under inverse images of polynomial, one obtains:

Proposition 7.4

If for all k1𝑘1k\geq 1 and for all i+𝑖superscripti\in\mathbb{N}^{+}, the set N𝒢,k1(i)superscriptsubscript𝑁𝒢𝑘1𝑖N_{\mathcal{G},k}^{-1}(i) is a spectrum, then the (full) spectrum conjecture holds.

It is less known that, as an easy corollary of a result of Grandjean in [ar:Grandjean90b], up to a polynomial padding, every spectrum is the spectrum of a quantifier depth 333 sentence, using an unbounded number of binary relations. Once again, it follows:

Proposition 7.5

If for all binary vocabulary σ𝜎\sigma and for all i+𝑖superscripti\in\mathbb{N}^{+}, the set Nσ,31(i)superscriptsubscript𝑁𝜎31𝑖N_{\sigma,3}^{-1}(i) is a spectrum, then the spectrum conjecture holds.

Since there is no known padding result that uses a finite set of pairs (σ,k)𝜎𝑘(\sigma,k), these results are presently the best possible.

In order to make further progress in solving particular cases of Ash conjectures, Chateau and More introduce a new type of restriction, concerning the semantics of the vocabularies.

Definition 7.6.

Let σ𝜎\sigma be a finite relational vocabulary, and let 𝒞𝒞\mathcal{C} be a class of finite σ𝜎\sigma-structures. For any positive integer k𝑘k, the Ash function for the class 𝒞𝒞{\mathcal{C}}, denoted by N𝒞,ksubscript𝑁𝒞𝑘N_{{\mathcal{C}},k}, counts the number (Mσ,kabsentsubscript𝑀𝜎𝑘\leq M_{\sigma,k}) of non k𝑘k-equivalent structures in 𝒞𝒞{\mathcal{C}} of size n𝑛n for all n1𝑛1n\geq 1.

Let \mathcal{B} be the set of finite Boolean algebras. Clearly, we have: N,k1(1)={2α|α2}superscriptsubscript𝑁𝑘11conditional-setsuperscript2𝛼𝛼2N_{{\mathcal{B}},k}^{-1}(1)=\{2^{\alpha}\in{\mathbb{N}}\ |\ \alpha\geq 2\}, N,k1(0)=+{2α|α2}superscriptsubscript𝑁𝑘10superscriptconditional-setsuperscript2𝛼𝛼2N_{{\mathcal{B}},k}^{-1}(0)=\mathbb{N}^{+}\setminus\{2^{\alpha}\in{\mathbb{N}}\ |\ \alpha\geq 2\} and N,k1(i)=superscriptsubscript𝑁𝑘1𝑖N_{{\mathcal{B}},k}^{-1}(i)=\emptyset for i{0,1}𝑖01i\not\in\{0,1\}. From this example, it follows that we cannot expect Ash’s constant or periodic conjectures to hold for classes of structures. A natural question arises: “Which functions can be Ash’s function for some class of structures?”. Let f:+:𝑓maps-tosuperscriptf:\mathbb{N}^{+}\mapsto\mathbb{N} a function bounded by some constant Mfsubscript𝑀𝑓M_{f} and computable in E𝐸E. Then, it is proved that there exist a vocabulary σ𝜎\sigma, a σ𝜎\sigma-sentence φ𝜑\varphi and a quantifier depth K𝐾K such that f=NModf(φ),K𝑓subscript𝑁𝑀𝑜subscript𝑑𝑓𝜑𝐾f=N_{Mod_{f}(\varphi),K}, where Modf(φ)𝑀𝑜subscript𝑑𝑓𝜑Mod_{f}(\varphi) denotes the class of finite models of φ𝜑\varphi.

Now, let us turn to the ultra-weak Ash conjecture for classes of structures. Consider the class Modf(Ψ)𝑀𝑜subscript𝑑𝑓ΨMod_{f}(\Psi) of finite models of a first-order sentence ΨΨ\Psi.

Open Question 36 (Ultra-weak Ash conjecture for classes of structures)

Is it true that for any finite relational vocabulary σ𝜎\sigma, for any first-order σ𝜎\sigma-sentence ΨΨ\Psi, for any positive integer k𝑘k and for all i𝑖i\in\mathbb{N}, the set NModf(Ψ),k1(i)superscriptsubscript𝑁𝑀𝑜subscript𝑑𝑓Ψ𝑘1𝑖N_{Mod_{f}(\Psi),k}^{-1}(i) is a spectrum?

Only somehow expressive classes of structures are interesting, and in particular it is natural to require that Modf(Ψ)𝑀𝑜subscript𝑑𝑓ΨMod_{f}(\Psi) contains at least one structure of size n𝑛n, for all positive integer n𝑛n.

Theorem 7.7

Let σ𝜎\sigma be a finite relational vocabulary, let ΨΨ\Psi be a first-order σ𝜎\sigma-sentence such that Modf(Ψ)𝑀𝑜subscript𝑑𝑓ΨMod_{f}(\Psi) contains at least one structure of size n𝑛n, for all positive integer n𝑛n and let k𝑘k be a positive integer. For all i+𝑖superscripti\in\mathbb{N}^{+}, the set NModf(Ψ),k1(i)superscriptsubscript𝑁𝑀𝑜subscript𝑑𝑓Ψ𝑘1𝑖N_{Mod_{f}(\Psi),k}^{-1}(i) is a spectrum if and only if for every σ𝜎\sigma-sentence φ𝜑\varphi of quantifier depth kabsent𝑘\leq k which implies ΨΨ\Psi (i.e. every model of φ𝜑\varphi is also a model of ΨΨ\Psi), the set +spec(φ)superscriptspec𝜑\mathbb{N}^{+}\setminus\textsc{spec}({\varphi}) is a spectrum.

In some particular cases, we obtain more information about complements of spectra. For instance, if ΨΨ\Psi expresses that all binary relations in σ𝜎\sigma are functional (which can be done using a quantifier depth 333 sentence), and if k3𝑘3k\geq 3, then all binary relations in the sentence defining +spec(φ)superscriptspec𝜑{\mathbb{N}}^{+}\setminus\textsc{spec}({{\varphi}}) are functional too.

Let us turn to classes of structures for which the study of Ash’s functions is as difficult as the general case. More precisely, let us consider the following classes of structures: let 𝒮𝒢𝒮𝒢\mathcal{SG} be the class of simple graphs; let 222\mathcal{E} be the class of two equivalence relations and let 222\mathcal{F} be the class of two functions.

Proposition 7.8

Let 𝒞{𝒮𝒢,2,2}𝒞𝒮𝒢22{\mathcal{C}}\in\{\mathcal{SG},2\mathcal{E},2\mathcal{F}\}. If for all positive integer k𝑘k and for all i+𝑖superscripti\in\mathbb{N}^{+}, the set N𝒞,k1(i)superscriptsubscript𝑁𝒞𝑘1𝑖N_{{\mathcal{C}},k}^{-1}(i) is a spectrum, then the spectrum conjecture holds.

Once again, this is a consequence of various padding results. Fagin actually proves in [ar:Fagin75a], that simple graphs allow a polynomial padding for all spectra. It is also the case for two unary functions, as proved by Durand, Fagin and Loescher in [proc:DurandFL97]. The last result concerning two equivalence relations is proved in [phd:Chateau03, ar:ErshovLTT65].

8 Approach IV: Structures of bounded width

8.1 From restricted vocabularies to bounded tree-width

In this section we look again at spectra of sentences with one unary function and a fixed set of unary predicates. The finite structures which have only one unary function consist of disjoint unions of components of the form given in Figure 1.

Figure 1: Models of one unary function

They look like directed forests where the roots are replaced by a directed cycle. The unary predicates are just colours attached to the nodes. The similarity of labeled graphs to labeled trees can be measured by the notion of tree-width, and in fact, these structures have tree width at most 222. Inspired by Theorem 6.6, E. Fischer and J.A. Makowsky [ar:FischerM04] generalized Theorem 6.6 by replacing the restriction on the vocabulary by a purely model theoretic condition involving the width of a relational structure. In this section we discuss their results.

8.1.1 Tree-width

In the eighties the notion of tree-width of a graph became a central focus of research in graph theory through the monumental work of Robertson and Seymour on graph minor closed classes of graphs, and its algorithmic consequences [ar:RobertsonSeymour86]. The literature is very rich, but good references and orientation may be found in [bk:Diestel96, ar:Bodlaender93, ar:Bodlaender98]. Tree-width is a parameter that measures to what extent a graph is similar to a tree. Additional unary predicates do not affect the tree-width. Tree-width of directed graphs is defined as the tree-width of the underlying undirected graph999 In [ar:JRST99] a different definition is given, which attempts to capture the specific situation of directed graphs. But the original definition is the one which is used when dealing with hypergraphs and general relational structures. .

Definition 8.1 (Tree-width).

A k𝑘k-tree decomposition of a graph G=(V,E)𝐺𝑉𝐸G=(V,E) is a pair ({XiiI},T=(I,F))conditional-setsubscript𝑋𝑖𝑖𝐼𝑇𝐼𝐹(\{X_{i}\mid i\in I\},T=(I,F)) with {XiiI}conditional-setsubscript𝑋𝑖𝑖𝐼\{X_{i}\mid i\in I\} a family of subsets of V𝑉V, one for each node of T𝑇T, and T𝑇T a tree such that

  1. (i)

    iIXi=Vsubscript𝑖𝐼subscript𝑋𝑖𝑉{\bigcup}_{i\in I}X_{i}=V.

  2. (ii)

    for all edges (v,w)E𝑣𝑤𝐸(v,w)\in E there exists an iI𝑖𝐼i\in I with vXi𝑣subscript𝑋𝑖v\in X_{i} and wXi𝑤subscript𝑋𝑖w\in X_{i}.

  3. (iii)

    for all i,j,kI𝑖𝑗𝑘𝐼i,j,k\in I: if j𝑗j is on the path from i𝑖i to k𝑘k in T𝑇T, then XiXkXjsubscript𝑋𝑖subscript𝑋𝑘subscript𝑋𝑗X_{i}\cap X_{k}\subseteq X_{j} in other words, the subset {tvXt}conditional-set𝑡𝑣subscript𝑋𝑡\{t\mid v\in X_{t}\} is connected for all v𝑣v.

  4. (iv)

    for all iI𝑖𝐼i\in I, |Xi|k+1subscript𝑋𝑖𝑘1|X_{i}|\leq k+1.

A graph G𝐺G is of tree-width at most k𝑘kif there exists a k𝑘k-tree decomposition of G𝐺G. A class of graphs K𝐾K is a TW(k)𝑇𝑊𝑘TW(k)-class iff all its members have tree width at most k𝑘k.

Given a graph G𝐺G and k𝑘k\in\mathbb{N} there are polynomial time, even linear time, algorithms, which determine whether G𝐺G has tree-width k𝑘k, and if the answer is yes, produce a tree decomposition, cf. [ar:Bodlaender98]. However, if k𝑘k is part of the input, the problem is NPNP\mathrm{NP}-complete [ar:ArnborgCorneilProskurowski]

Figure 2: A graph and one of its tree-decompositions

Trees have tree-width 111. The clique Knsubscript𝐾𝑛K_{n} has tree-width n1𝑛1n-1. Furthermore, for fixed k𝑘k, the class of finite graphs of tree-width at most k𝑘k denoted by TW(k)𝑇𝑊𝑘TW(k), is MSOL-definable.

Example 8.2.

The following graph classes are of tree-width at most k𝑘k:

  1. (i)

    Planar graphs of radius r𝑟r with k=3r𝑘3𝑟k=3r.

  2. (ii)

    Chordal graphs with maximal clique of size c𝑐c with k=c1𝑘𝑐1k=c-1.

  3. (iii)

    Interval graphs with maximal clique of size c𝑐c with k=c1𝑘𝑐1k=c-1.

Example 8.3.

The following graph classes have unbounded tree-width and are all MSOL-definable.

  1. (i)

    All planar graphs and the class of all planar grids Gm,nsubscript𝐺𝑚𝑛G_{m,n}.
    Note that if nn0𝑛subscript𝑛0n\leq n_{0} for some fixed n0subscript𝑛0n_{0}\in{\mathbb{N}}, then the tree-width of the grids Gm,n,nn0subscript𝐺𝑚𝑛𝑛subscript𝑛0G_{m,n},n\leq n_{0}, is bounded by 2n02subscript𝑛02n_{0}.

  2. (ii)

    The regular graphs of degree r,r3𝑟𝑟3r,r\geq 3 have unbounded tree-width.

Tree-width for labeled graphs can be generalized to arbitrary relational structures in a straightforward way. Clause (ii) in the above definition is replaced by

(ii-rel)

For each r𝑟r-ary relation R𝑅R, if v¯R¯𝑣𝑅\bar{v}\in R, there exists an iI𝑖𝐼i\in I with v¯Xir¯𝑣superscriptsubscript𝑋𝑖𝑟\bar{v}\in X_{i}^{r}.

This was first used in [ar:FederVardi99].

It is now natural to ask, whether Theorem 6.6 can be generalized to arbitrary vocabularies, provided one restricts the spectrum to structures of fixed tree-width k𝑘k. Indeed, E. Fischer and J. Makowsky [ar:FischerM04] have established the following:

Theorem 8.4 (E. Fischer and J.A. Makowsky (2004))

Let ϕitalic-ϕ\phi be an MSOL sentence and k𝑘k\in{\mathbb{N}}. Assume that all the models of ϕitalic-ϕ\phi are in TW(k)𝑇𝑊𝑘TW(k). Then spec(ϕ)𝑠𝑝𝑒𝑐italic-ϕspec(\phi) is ultimately periodic.

8.2 Extending the logic

First one observes that the logic MSOL can be extended by modular counting quantifiers Ck,msubscript𝐶𝑘𝑚C_{k,m}, where Ck,mxϕ(x)subscript𝐶𝑘𝑚𝑥italic-ϕ𝑥C_{k,m}x\ \phi(x) is interpreted as “there are, modulo m𝑚m, exactly k𝑘k elements satisfying ϕ(x)italic-ϕ𝑥\phi(x)”. We denote the extension of MSOL obtained by adding, for all k,m𝑘𝑚k,m\in{\mathbb{N}} the quantifiers Ck,msubscript𝐶𝑘𝑚C_{k,m}, by CMSOL.

Typical graph theoretic concepts expressible in FOL are the presence or absence (up to isomorphism) of a fixed (induced) subgraph H𝐻H, and fixed lower or upper bounds on the degree of the vertices (hence also r𝑟r-regularity). Typical graph theoretic concepts expressible in MSOL but not in FOL are connectivity, k𝑘k-connectivity, reachability, k𝑘k-colorability (of the vertices), and the presence or absence of a fixed (topological) minor. The latter includes planarity, and more generally, graphs of a fixed genus g𝑔g. Typical graph theoretic concepts expressible in CMSOL but not in MSOL are the existence of an eulerian circuit (path), the size of a connected component being a multiple of k𝑘k, and the number of connected components is a multiple of k𝑘k. All the non-definability statements above can be proved using Ehrenfeucht-Fraïssé games. The definability statements are straightforward.

Second, one observes that very little of the definition of tree-width is used in the proof. The techniques used in the proof of Theorem 8.4 can be adapted to other notions of width of relational structures, such as clique-width, which was introduced first in [ar:CourcelleEngelfrietRozenberg93] and studied more systematically in [ar:CourcelleOlariu00], and to patch-width, introduced in [ar:FischerM04].

8.3 Ingredients of the proof of Theorem 8.4

To prove Theorem 8.4, and its generalizations below, the authors use three tools:

  1. (i)

    A generalization of the Feferman-Vaught Theorem for k𝑘k-sums of labeled graphs to the logic CMSOL, due to B. Courcelle, [ar:courcelle90], and further refined by J.A. Makowsky in [ar:MakowskyTARSKI].

  2. (ii)

    A reduction of the problem to spectra of labeled trees by a technique first used by B. Courcelle in [ar:CourcelleIC95] in his study of graph grammars.

  3. (iii)

    An adaptation of the Pumping Lemma for labeled trees, cf. [bk:hb-forla3-1].

The proof of Theorem 8.4 is quite general. Its proof can be adapted to stronger logics and other notions of width of relational structures. However, the details are rather technical.

8.4 Clique-width

A k𝑘k-coloured τ𝜏\tau-structures is a τk=τ{P1,,Pk}subscript𝜏𝑘𝜏subscript𝑃1subscript𝑃𝑘\tau_{k}=\tau\cup\{P_{1},\ldots,P_{k}\}-structure where Pi,iksubscript𝑃𝑖𝑖𝑘P_{i},i\leq k are unary predicate symbols the interpretation of which are disjoint (but can be empty).

Definition 8.5.

Let 𝔄𝔄\mathfrak{A} be a k𝑘k-coloured τ𝜏\tau-structure.

  1. (i)

    (Adding hyper-edges) Let Rτ𝑅𝜏R\in\tau be an r𝑟r-ary relation symbol.
    ηR,Pj1,,Pjr(𝔄)subscript𝜂𝑅subscript𝑃subscript𝑗1subscript𝑃subscript𝑗𝑟𝔄\eta_{R,P_{j_{1}},\ldots,P_{j_{r}}}(\mathfrak{A}) denotes the k𝑘k-coloured τ𝜏\tau structure 𝔅𝔅\mathfrak{B} with the same universe as 𝔄𝔄\mathfrak{A}, and for each Sτk𝑆subscript𝜏𝑘S\in\tau_{k}, SR𝑆𝑅S\neq R the interpretation is also unchanged. Only for R𝑅R we put

    RB=RA{a¯Ar:aiPjiA}.superscript𝑅𝐵superscript𝑅𝐴conditional-set¯𝑎superscript𝐴𝑟subscript𝑎𝑖superscriptsubscript𝑃subscript𝑗𝑖𝐴R^{B}=R^{A}\cup\{\bar{a}\in A^{r}:a_{i}\in P_{j_{i}}^{A}\}.

    We call the operation η𝜂\eta hyper edge creation, or simply edge creation in the case of directed graphs. In the case of undirected graphs we denote by ηPj1,Pj2subscript𝜂subscript𝑃subscript𝑗1subscript𝑃subscript𝑗2\eta_{P_{j_{1}},P_{j_{2}}} the operation of adding the corresponding undirected edges.

  2. (ii)

    (Recolouring) ρi,j(𝔄)subscript𝜌𝑖𝑗𝔄\rho_{i,j}(\mathfrak{A}) denotes the k𝑘k-coloured τ𝜏\tau structure 𝔅𝔅\mathfrak{B} with the same universe as 𝔄𝔄\mathfrak{A}, and all the relations unchanged but for PiAsuperscriptsubscript𝑃𝑖𝐴P_{i}^{A} and PjAsuperscriptsubscript𝑃𝑗𝐴P_{j}^{A}. We put

    PiB= and PjB=PjAPiA.superscriptsubscript𝑃𝑖𝐵 and superscriptsubscript𝑃𝑗𝐵superscriptsubscript𝑃𝑗𝐴superscriptsubscript𝑃𝑖𝐴P_{i}^{B}=\emptyset\mbox{ and }P_{j}^{B}=P_{j}^{A}\cup P_{i}^{A}.

    We call this operation recolouring.

  3. (iii)

    (modification via quantifier free translation) More generally, for Sτk𝑆subscript𝜏𝑘S\in\tau_{k} of arity r𝑟r and B(x1,,xr)𝐵subscript𝑥1subscript𝑥𝑟B(x_{1},\ldots,x_{r}) a quantifier free τksubscript𝜏𝑘\tau_{k}-formula, δS,B(𝔄)subscript𝛿𝑆𝐵𝔄\delta_{S,B}(\mathfrak{A}) denotes the k𝑘k-coloured τ𝜏\tau structure 𝔅𝔅\mathfrak{B} with the same universe as 𝔄𝔄\mathfrak{A}, and for each Sτksuperscript𝑆subscript𝜏𝑘S^{\prime}\in\tau_{k}, SSsuperscript𝑆𝑆S^{\prime}\neq S the interpretation is also unchanged. Only for S𝑆S we put

    SB={a¯Ar:a¯BA}.superscript𝑆𝐵conditional-set¯𝑎superscript𝐴𝑟¯𝑎superscript𝐵𝐴S^{B}=\{\bar{a}\in A^{r}:\bar{a}\in B^{A}\}.

    where BAsuperscript𝐵𝐴B^{A} denotes the interpretation of B𝐵B in 𝔄𝔄\mathfrak{A}.

Note that the operations of type ρ𝜌\rho and η𝜂\eta are special cases of the operation of type δ𝛿\delta.

Definition 8.6 (Clique-Width, [ar:CourcelleOlariu00, ar:MakowskyTARSKI]).
  1. (i)

    Here τ={RE}𝜏subscript𝑅𝐸\tau=\{R_{E}\} consist of the symbol for the edge relation. Given a graph G=(V,E)𝐺𝑉𝐸G=(V,E), the clique-width of G𝐺G (cwd(G)) is the minimal number of colours required to obtain the given graph as an {RE}subscript𝑅𝐸\{R_{E}\}-reduct from a k𝑘k-coloured graph constructed inductively from coloured singletons and closure under the following operations:

    1. (i.a)

      disjoint union (square-union\sqcup)

    2. (i.b)

      recolouring (ρijsubscript𝜌𝑖𝑗\rho_{i\to j})

    3. (i.c)

      edge creation (ηE,Pi,Pjsubscript𝜂𝐸subscript𝑃𝑖subscript𝑃𝑗\eta_{E,P_{i},P_{j}})

  2. (ii)

    For τ𝜏\taucontaining more than one binary relation symbol, we replace the edge creation by the corresponding hyper edge creation ηR,Pj1,,Pjrsubscript𝜂𝑅subscript𝑃subscript𝑗1subscript𝑃subscript𝑗𝑟\eta_{R,P_{j_{1}},\ldots,P_{j_{r}}}for each Rτ𝑅𝜏R\in\tau.

  3. (iii)

    A class of τ𝜏\tau-structures is a CW(k)𝐶𝑊𝑘CW(k)-class if all its members have clique-width at most k𝑘k.

If τ𝜏\tau contains a unary predicate symbol U𝑈U, the interpretation of U𝑈U is not affected by the operations recoloring or edge creation. Only the disjoint union affects it.

A description of a graph or a structure using these operations is called a clique-width parse term (or parse term, if no confusion arises). Every structure of size n𝑛n has clique-width at most n𝑛n. The simplest class of graphs of unbounded tree-width but of clique-width at most 222 are the cliques. Given a graph G𝐺G and k𝑘k\in\mathbb{N}, determining whether G𝐺G has clique-width k𝑘k is in 𝐍𝐏𝐍𝐏\mathbf{NP}. A polynomial time algorithm was presented for k3𝑘3k\leq 3 in [ar:Corneil-etal99].

It was shown in [ar:FellowsRosamondRoticsSzeider2005a, pr:FellowsRosamondRoticsSzeider2006] that for fixed k4𝑘4k\geq 4 the problem is 𝐍𝐏𝐍𝐏\mathbf{NP}-complete. The recognition problem for clique-width of relational structures has not been studied so far even for k=2𝑘2k=2. The relationship between tree-width and clique-width was studied in [ar:CourcelleOlariu00, ar:GliksonMakowsky03, pr:AdlerAdler08].

Theorem 8.7 (Courcelle and Olariu (2000))

Let K𝐾K be a TW(k)𝑇𝑊𝑘TW(k)-class of graphs. Then K𝐾K is a CW(m)𝐶𝑊𝑚CW(m)-class of graphs with m2k+1+1𝑚superscript2𝑘11m\leq 2^{k+1}+1.

Theorem 8.8 (Adler and Adler (2008))

For every non-negative integer n𝑛n there is a structure 𝔄𝔄\mathfrak{A} with only one ternary relation symbol such that 𝔄TW(2)𝔄𝑇𝑊2\mathfrak{A}\in TW(2) and 𝔄CW(n)𝔄𝐶𝑊𝑛\mathfrak{A}\not\in CW(n).

The following examples are from [ar:MakowskyRotics99, ar:GolumbicRotics01].

Example 8.9 (Classes of clique-width at most k𝑘k).
  1. (i)

    The cographs with k=2𝑘2k=2.

  2. (ii)

    The distance-hereditary graphs with k=3𝑘3k=3.

  3. (iii)

    The cycles Cnsubscript𝐶𝑛C_{n} with k=4𝑘4k=4.

  4. (iv)

    The complement graphs Cn¯¯subscript𝐶𝑛\bar{C_{n}} of the cycles Cnsubscript𝐶𝑛C_{n} with k=4𝑘4k=4.

The cycles Cnsubscript𝐶𝑛C_{n} have tree-width at most 222, but the other examples have unbounded tree-width.

Example 8.10 (Classes of unbounded clique-width).
  1. (i)

    The class of all finite graphs.

  2. (ii)

    The class of unit interval graphs.

  3. (iii)

    The class of permutation graphs.

  4. (iv)

    The regular graphs of degree 444 have unbounded clique-width.

  5. (v)

    The class grids Grid𝐺𝑟𝑖𝑑Grid, consisting of the graphs Gridn×n𝐺𝑟𝑖subscript𝑑𝑛𝑛Grid_{n\times n}.

For more non-trivial examples, cf. [ar:MakowskyRotics99, ar:GolumbicRotics01]. In contrast to TW(k)𝑇𝑊𝑘TW(k), we do not know whether the class of all CW(k)𝐶𝑊𝑘CW(k)-graphs is MSOL-definable.

To find more examples it is useful to note, cf. [ar:MakowskyMarino01c]:

Proposition 8.11

If a graph is of clique-width at most k𝑘k and Gsuperscript𝐺G^{\prime} is an induced subgraph of G𝐺G, then the clique-width of Gsuperscript𝐺G^{\prime} is at most k𝑘k.

In [ar:FischerM04] the following is shown:

Theorem 8.12 (E. Fischer and J.A. Makowsky (2004))

Let ϕCMSOL(τ)italic-ϕCMSOL𝜏\phi\in\textsc{CMSOL}({\tau}) be such that all its finite models have clique-width at most k𝑘k. Then there are m0,n0subscript𝑚0subscript𝑛0m_{0},n_{0}\in{\mathbb{N}} such that if ϕitalic-ϕ\phi has a model of size nn0𝑛subscript𝑛0n\geq n_{0} then ϕitalic-ϕ\phi has also a model of size n+m0𝑛subscript𝑚0n+m_{0}.

From this we get immediately a further generalization of Theorem 8.4.

Corollary 8.13

Let ϕCMSOL(τ)italic-ϕCMSOL𝜏\phi\in\textsc{CMSOL}({\tau}) be such that all its finite models have clique-width at most k𝑘k. Then spec(ϕ)𝑠𝑝𝑒𝑐italic-ϕspec(\phi) is ultimately periodic.

8.4.1 Patch-width

Here is a further generalization of clique-width for which our theorem still works. The choice of operation is discussed in detail in [ar:CourcelleMakowsky00].

Definition 8.14.

Given a τ𝜏\tau-structure 𝔄𝔄\mathfrak{A}, the patch-width of G𝐺G (pwd(G)) is the minimal number of colours required to obtain 𝔖𝔖\mathfrak{S} as a {τ}𝜏\{\tau\}-reduct from a k𝑘k-coloured τ𝜏\tau-structure inductively from fixed finite number of τksubscript𝜏𝑘\tau_{k}-structures and closure under the following operations:

  1. (i)

    disjoint union (square-union\sqcup),

  2. (ii)

    recoloring (ρijsubscript𝜌𝑖𝑗\rho_{i\to j}) and

  3. (iii)

    modifications (δS,Bsubscript𝛿𝑆𝐵\delta_{S,B}).

A class of τ𝜏\tau-structures is a PWτ(k)𝑃subscript𝑊𝜏𝑘PW_{\tau}(k)-class if all its members have patch-width at most k𝑘k.

A description of a τ𝜏\tau-structure using these operations is called a patch term.

Example 8.15.
  1. (i)

    In [ar:CourcelleOlariu00] it is shown that if a graph G𝐺G has clique-width at most k𝑘k then its complement graph G¯¯𝐺\bar{G} has clique-width at most 2k2𝑘2k. However, its patch-width is also k𝑘k as G¯¯𝐺\bar{G} can be obtained from G𝐺G by δE,¬Esubscript𝛿𝐸𝐸\delta_{E,\neg E}.

  2. (ii)

    The clique Knsubscript𝐾𝑛K_{n} has clique-width 222. However if we consider graphs as structures on a two-sorted universe (respectively for vertices and edges), then Knsubscript𝐾𝑛K_{n} has clique-width c(n)𝑐𝑛c(n) and patch-width p(n)𝑝𝑛p(n) where c(n)𝑐𝑛c(n) and p(n)𝑝𝑛p(n) are functions which tend to infinity. This will easily follow from Theorem 8.20. For the clique-width of Knsubscript𝐾𝑛K_{n} as a two-sorted-structure this was already shown in [th:rotics].

Remark 8.16.

In [ar:CourcelleMakowsky00] it is shown that a class of graphs of patch-width at most k𝑘k is of clique-width at most f(k)𝑓𝑘f(k) for some function f𝑓f. It is shown in [ar:FischerMakowskyPATCH] that this is not true for relational structures in general.

In the definition of patch-width we allowed only unary predicates as auxiliary predicates (colours). We could also allow r𝑟r-ary predicates and speak of r𝑟r-ary patch-width. The theorems where bounded patch-width is required are also true for this more general case. The relative strength of clique-width and the various forms of patch-width are discussed in [ar:FischerMakowskyPATCH].

In [ar:FischerM04] the following is shown:

Theorem 8.17 (E. Fischer and J.A. Makowsky (2004))

Let ϕCMSOL(τ)italic-ϕCMSOL𝜏\phi\in\textsc{CMSOL}({\tau}) be such that all its finite models have patch-width at most k𝑘k. Then there are m0,n0subscript𝑚0subscript𝑛0m_{0},n_{0}\in{\mathbb{N}} such that if ϕitalic-ϕ\phi has a model of size nn0𝑛subscript𝑛0n\geq n_{0} then ϕitalic-ϕ\phi has also a model of size n+m0𝑛subscript𝑚0n+m_{0}.

From this we get yet another generalization of Theorem 8.4.

Corollary 8.18

Let ϕCMSOL(τ)italic-ϕCMSOL𝜏\phi\in\textsc{CMSOL}({\tau}) be such that all its finite models have patch-width at most k𝑘k. Then spec(ϕ)𝑠𝑝𝑒𝑐italic-ϕspec(\phi) is ultimately periodic.

More recent work on spectra and patch-width may be found in [pr:Shelah04, pr:DoronShelah06].  

8.5 Classes of unbounded patch-width

Theorem 8.17 gives a new method to show that certain classes K𝐾K of graphs have unbounded tree-width, clique-width or patch-width.

To see this we look at the class Grid𝐺𝑟𝑖𝑑Grid of all grids Gridn×n𝐺𝑟𝑖subscript𝑑𝑛𝑛Grid_{n\times n}. They are known to have unbounded tree-width, cf. [bk:Diestel96], and in fact, every minor closed class of graphs of unbounded tree-width contains these grids. They were shown to have unbounded clique-width in [ar:GolumbicRotics01]. However, for patch-width these arguments do not work. On the other hand Grid𝐺𝑟𝑖𝑑Grid is MSOL-definable, and its spectrum consists of the numbers n2superscript𝑛2n^{2}, so by Theorems 8.12 and 8.17, the unboundedness follows directly.

In particular, as this is also true for every KK𝐾superscript𝐾K^{\prime}\supseteq K, the class of all graphs is of unbounded patch-width.

Without Theorem 8.17, there was only a conditional proof of unbounded patch-width available. It depends on the assumption that the polynomial hierarchy ΣPsuperscriptΣP\Sigma^{\mathrm{P}} does not collapse to 𝐍𝐏𝐍𝐏{\mathbf{NP}}. The argument then procceds as follows:

  1. (i)

    Checking patch-width at most k𝑘k of a structure 𝔄𝔄\mathfrak{A}, for k𝑘k fixed, is in 𝐍𝐏𝐍𝐏{\mathbf{NP}}. Given a structure 𝔄𝔄\mathfrak{A}, one just has to guess a patch-term of size polynomial in the size of 𝔄𝔄\mathfrak{A}.

  2. (ii)

    Using the results of [ar:MakowskyTARSKI] one gets that checking a CMSOL(τ)CMSOL𝜏\textsc{CMSOL}({\tau})-property ϕitalic-ϕ\phi on the class PWτ(k)𝑃subscript𝑊𝜏𝑘PW_{\tau}(k) is in 𝐍𝐏𝐍𝐏{\mathbf{NP}}, whereas, by [ar:MakPnueli96], there are ΣnPsuperscriptsubscriptΣ𝑛P\Sigma_{n}^{\mathrm{P}}-hard problems definable in MSOL for every level ΣnPsuperscriptsubscriptΣ𝑛P\Sigma_{n}^{\mathrm{P}} of the polynomial hierarchy.

  3. (iii)

    Hence, if the polynomial hierarchy does not collapse to 𝐍𝐏𝐍𝐏{\mathbf{NP}}, the class of all τ𝜏\tau-structures is of unbounded patch-width, provided τ𝜏\tau is large enough.

Open Question 37

What is the complexity of checking whether a τ𝜏\tau-structure 𝔄𝔄\mathfrak{A} has patch-width at most k𝑘k, for a fixed k𝑘k?

8.6 Parikh’s Theorem

R. Parikh’s celebrated theorem, first proved in [ar:Parikh66], counts the number of occurences of letters in k𝑘k-letter words of context-free languages. For a given word w𝑤w, the numbers of these occurences is denoted by a vector n(w)k𝑛𝑤superscript𝑘n(w)\in{\mathbb{N}}^{k}, and the theorem states

Theorem 8.19 (Parikh 1966)

For a context-free language L𝐿L, the set Par(L)={n(w)k:wL}𝑃𝑎𝑟𝐿conditional-set𝑛𝑤superscript𝑘𝑤𝐿Par(L)=\{n(w)\in{\mathbb{N}}^{k}:w\in L\} is semilinear.

A set Xs𝑋superscript𝑠X\subseteq{\mathbb{N}}^{s} is linear in ssuperscript𝑠{\mathbb{N}}^{s}iff there is vector a¯s¯𝑎superscript𝑠\bar{a}\in{\mathbb{N}}^{s} and a matrix Ms×r𝑀superscript𝑠𝑟M\in{\mathbb{N}}^{s\times r} such that

X=Aa¯,M¯={b¯s: there is u¯r with b¯=a¯+Mu¯}𝑋subscript𝐴¯𝑎¯𝑀conditional-set¯𝑏superscript𝑠 there is ¯𝑢superscript𝑟 with ¯𝑏¯𝑎𝑀¯𝑢X=A_{\bar{a},\bar{M}}=\{\bar{b}\in{\mathbb{N}}^{s}:\mbox{ there is }\bar{u}\in{\mathbb{N}}^{r}\mbox{ with }\bar{b}=\bar{a}+M\cdot\bar{u}\}

Singletons are linear sets with M=0𝑀0M=0. If M0𝑀0M\neq 0 the series is nontrivial. Xs𝑋superscript𝑠X\subseteq{\mathbb{N}}^{s} is semilinear in ssuperscript𝑠{\mathbb{N}}^{s}iff X𝑋X is a finite union of linear sets Aissubscript𝐴𝑖superscript𝑠A_{i}\subseteq{\mathbb{N}}^{s}. The terminology is from [ar:Parikh66], and has since become standard terminology in formal language theory. We note that for unary languages, Parikh’s Theorem looks at the spectrum of context-free languages.

B. Courcelle has generalized Theorem 8.19 further to context-free vertex replacement graph grammars, [ar:CourcelleIC95]. We want to generalize Theorem 8.19 to spectra. Rather than counting occurences of letters, we look at many-sorted structures and the sizes of the different sorts, which we call many-sorted spectra. In [ar:FischerM04] the following theorem is proved:

Theorem 8.20 (E. Fischer and J.A. Makowsky (2006))

Let K𝐾K be a class of CMSOL-definable many-sorted relational structures which are of patch-width at most k𝑘k. Then the many-sorted spectrum of K𝐾K forms a semilinear set.

Appendix A A review of some hardly accessible references

This section contains a detailed presentation of the material of Subsection 4.3. Note that the proofs sketched here do not necessarily correspond to the original proofs.

A.1 Asser’s paper

In chronological ordering, the first paper related to spectra is [ar:Asser55], in German, due to Asser in 1955. Though it does not use the name “spectrum”, nor refer to Scholz in its title or in the text, the long introduction clarifies the context in which the concept of spectrum was born. The author addresses the general question of classes of cardinal numbers (not only natural numbers) so-called “representable” by a sentence of first-order logic with equality, both in the framework of satisfiability theory and validity theory. Here a first-order sentence φ𝜑\varphi represents a given (finite or infinite) cardinality m𝑚m regarding satisfiablity if there is a structure which domain has cardinality m𝑚m which is a model of φ𝜑\varphi (i.e. for finite m𝑚m, it means mspec(φ)𝑚spec𝜑m\in\textsc{spec}({\varphi})), and regarding validity, if φ𝜑\varphi holds in every structure with cardinality m𝑚m. Asser first notices that φ𝜑\varphi represents m𝑚m regarding satisfiability if and only if ¬φ𝜑\neg\varphi does not represent m𝑚m regarding validity, so that validity reduces to satisfiability via complement. Then, he remarks that, from Löwenheim-Skolem Theorem [ar:Loewenheim15, ar:Skolem20], the representation question in satisfiability theory for infinite cardinalities is trivial: the first-order sentence φ𝜑\varphi either has no infinite model (and in this case it has finite models in finitely many finite cardinalities only) or has models in every infinite cardinality. Hence, the problem actually is about exactly which sets of natural numbers are the set of cardinalities of finite models of first-order sentences, i.e. what we would call spectra. In a footnote, one reads “this question was also asked by Scholz as a problem in [ar:Scholz52]”.

With this background, Asser’s aim is to give a purely arithmetical characterization of spectra. This is done via an arithmetical encoding of finite structures, first-order sentences and satisfiability. Let us make precise Asser’s construction.

Note that in the sequel “characteristic functions” (of sets or relations) are not taken in the usual way: a unary function f𝑓f is said to be the characteristic function of the set of integers n𝑛n such that f(n)=0𝑓𝑛0f(n)=0. It is only a technical matter to come back to the usual definition with little machinery, for instance use χ(n)=1˙f(n)𝜒𝑛1˙𝑓𝑛\chi(n)=1\dot{-}f(n) (so-called modified substraction i.e. x˙y=xy𝑥˙𝑦𝑥𝑦x\dot{-}y=x-y if xy𝑥𝑦x\geq y and 00 otherwise). Using this alternative definition, characteristic functions are not required to be 0-1-valued.

W.l.o.g., let φ𝜑\varphi be a sentence in relational Skolem normal form, i.e. φx1xrxr+1xsψ(x1,xs)𝜑for-allsubscript𝑥1for-allsubscript𝑥𝑟subscript𝑥𝑟1subscript𝑥𝑠𝜓subscript𝑥1subscript𝑥𝑠\varphi\equiv\forall x_{1}\ldots\forall x_{r}\exists x_{r+1}\ldots\exists x_{s}\psi(x_{1},\ldots x_{s}), where ψ(x1,xs)𝜓subscript𝑥1subscript𝑥𝑠\psi(x_{1},\ldots x_{s}) is a Boolean combination of atomic formulas Ri(ai)(xj1,xjai)superscriptsubscript𝑅𝑖subscript𝑎𝑖subscript𝑥subscript𝑗1subscript𝑥subscript𝑗subscript𝑎𝑖R_{i}^{(a_{i})}(x_{j_{1}},\ldots x_{j_{a_{i}}}) with i=1,,t𝑖1𝑡i=1,\ldots,t and of atoms xl1=xl2subscript𝑥subscript𝑙1subscript𝑥subscript𝑙2x_{l_{1}}=x_{l_{2}}. Assume that ψ𝜓\psi contains u𝑢u different atoms of type Ri(ai)(xj1,xjai)superscriptsubscript𝑅𝑖subscript𝑎𝑖subscript𝑥subscript𝑗1subscript𝑥subscript𝑗subscript𝑎𝑖R_{i}^{(a_{i})}(x_{j_{1}},\ldots x_{j_{a_{i}}}) and v𝑣v different atoms of type xl1=xl2subscript𝑥subscript𝑙1subscript𝑥subscript𝑙2x_{l_{1}}=x_{l_{2}}. Let Ψ:{0,1}u+v{0,1}:Ψsuperscript01𝑢𝑣01\Psi:\{0,1\}^{u+v}\longrightarrow\{0,1\} be the Boolean function associated to the propositional version of ψ𝜓\psi (using the convention that 00 encodes true and 111 encodes false).

Denote by Bitk(y,z1,,zk,n)𝐵𝑖subscript𝑡𝑘𝑦subscript𝑧1subscript𝑧𝑘𝑛Bit_{k}(y,z_{1},\ldots,z_{k},n) the binary digit of y𝑦y of rank l=1kzlnl1superscriptsubscript𝑙1𝑘subscript𝑧𝑙superscript𝑛𝑙1\sum_{l=1}^{k}z_{l}\cdot n^{l-1}, assuming y<2nk,z1<n,,zk<nformulae-sequence𝑦superscript2superscript𝑛𝑘formulae-sequencesubscript𝑧1𝑛subscript𝑧𝑘𝑛y<2^{n^{k}},z_{1}<n,\ldots,z_{k}<n. Encode the k𝑘k-ary relation R𝑅R on the domain {0,,n1}0𝑛1\{0,\ldots,n-1\} by the number y<2nk𝑦superscript2superscript𝑛𝑘y<2^{n^{k}} such that Bitk(y,z1,,zk,n)=0𝐵𝑖subscript𝑡𝑘𝑦subscript𝑧1subscript𝑧𝑘𝑛0Bit_{k}(y,z_{1},\ldots,z_{k},n)=0 if and only if R(z1,,zk)𝑅subscript𝑧1subscript𝑧𝑘R(z_{1},\ldots,z_{k}) holds. Let δ(z1,z2)=0𝛿subscript𝑧1subscript𝑧20\delta(z_{1},z_{2})=0 if z1=z2subscript𝑧1subscript𝑧2z_{1}=z_{2} and 111 otherwise. Let Ψ(y1,,yt,x1,,xs,n)superscriptΨsubscript𝑦1subscript𝑦𝑡subscript𝑥1subscript𝑥𝑠𝑛\Psi^{*}(y_{1},\ldots,y_{t},x_{1},\ldots,x_{s},n) be obtained from ΨΨ\Psi by replacing each atom Ri(ai)(xj1,xjai)superscriptsubscript𝑅𝑖subscript𝑎𝑖subscript𝑥subscript𝑗1subscript𝑥subscript𝑗subscript𝑎𝑖R_{i}^{(a_{i})}(x_{j_{1}},\ldots x_{j_{a_{i}}}) by Bitai(yi,xj1,,xjai,n)𝐵𝑖subscript𝑡subscript𝑎𝑖subscript𝑦𝑖subscript𝑥subscript𝑗1subscript𝑥subscript𝑗subscript𝑎𝑖𝑛Bit_{a_{i}}(y_{i},x_{j_{1}},\ldots,x_{j_{a_{i}}},n) and every atoms xl1=xl2subscript𝑥subscript𝑙1subscript𝑥subscript𝑙2x_{l_{1}}=x_{l_{2}} by δ(xl1,xl2)𝛿subscript𝑥subscript𝑙1subscript𝑥subscript𝑙2\delta(x_{l_{1}},x_{l_{2}}). The first-order quantifiers x1xrxr+1xsfor-allsubscript𝑥1for-allsubscript𝑥𝑟subscript𝑥𝑟1subscript𝑥𝑠\forall x_{1}\ldots\forall x_{r}\exists x_{r+1}\ldots\exists x_{s} are dealt with by defining

Ψ(y1,,yt,n)=x1=0n1xr=0n1xr+1=0n1xs=0n1Ψ(y¯,x¯,n).superscriptΨabsentsubscript𝑦1subscript𝑦𝑡𝑛superscriptsubscriptsubscript𝑥10𝑛1superscriptsubscriptsubscript𝑥𝑟0𝑛1superscriptsubscriptproductsubscript𝑥𝑟10𝑛1superscriptsubscriptproductsubscript𝑥𝑠0𝑛1superscriptΨ¯𝑦¯𝑥𝑛\Psi^{**}(y_{1},\ldots,y_{t},n)=\sum_{x_{1}=0}^{n-1}\ldots\sum_{x_{r}=0}^{n-1}\prod_{x_{r+1}=0}^{n-1}\ldots\prod_{x_{s}=0}^{n-1}\Psi^{*}(\overline{y},\overline{x},n).

Note the non-standard use of \sum for for-all\forall and product\prod for \exists, due to the fact that 00 encodes true and 111 encodes false. Finally the characteristic function of the spectrum of the sentence φx1xrxr+1xsψ(x1,xs)𝜑for-allsubscript𝑥1for-allsubscript𝑥𝑟subscript𝑥𝑟1subscript𝑥𝑠𝜓subscript𝑥1subscript𝑥𝑠\varphi\equiv\forall x_{1}\ldots\forall x_{r}\exists x_{r+1}\ldots\exists x_{s}\psi(x_{1},\ldots x_{s}) is χ(n)=y1=02na11yt=02nat1Ψ(y1,,yt,n)𝜒𝑛superscriptsubscriptproductsubscript𝑦10superscript2superscript𝑛subscript𝑎11superscriptsubscriptproductsubscript𝑦𝑡0superscript2superscript𝑛subscript𝑎𝑡1superscriptΨabsentsubscript𝑦1subscript𝑦𝑡𝑛\chi(n)=\prod_{y_{1}=0}^{2^{n^{a_{1}}}-1}\ldots\prod_{y_{t}=0}^{2^{n^{a_{t}}}-1}\Psi^{**}(y_{1},\ldots,y_{t},n). This construction is clearly elementary. Conversely, it is also easy to verify that any function defined as χ(n)=y1=02na11yt=02nat1Ψ(y1,,yt,n)𝜒𝑛superscriptsubscriptproductsubscript𝑦10superscript2superscript𝑛subscript𝑎11superscriptsubscriptproductsubscript𝑦𝑡0superscript2superscript𝑛subscript𝑎𝑡1superscriptΨabsentsubscript𝑦1subscript𝑦𝑡𝑛\chi(n)=\prod_{y_{1}=0}^{2^{n^{a_{1}}}-1}\ldots\prod_{y_{t}=0}^{2^{n^{a_{t}}}-1}\Psi^{**}(y_{1},\ldots,y_{t},n), where ΨsuperscriptΨabsent\Psi^{**} is obtained from some Boolean function ΨΨ\Psi by the same type of construction, is the characteristic function of the spectrum of the corresponding first-order sentence. Hence we have the following result.

Theorem A.1

A set 𝒮𝒮\mathcal{S} is a spectrum iff its characteristic function χ𝜒\chi has the form χ(n)=y1=02na11yt=02nat1Ψ(y1,,yt,n)𝜒𝑛superscriptsubscriptproductsubscript𝑦10superscript2superscript𝑛subscript𝑎11superscriptsubscriptproductsubscript𝑦𝑡0superscript2superscript𝑛subscript𝑎𝑡1superscriptΨabsentsubscript𝑦1subscript𝑦𝑡𝑛\chi(n)=\prod_{y_{1}=0}^{2^{n^{a_{1}}}-1}\ldots\prod_{y_{t}=0}^{2^{n^{a_{t}}}-1}\Psi^{**}(y_{1},\ldots,y_{t},n), where ΨsuperscriptΨabsent\Psi^{**} is obtained from some Boolean function ΨΨ\Psi by the above construction.

Note that Asser judges his result “non satisfactory”, in particular because this paraphrastic characterization is of no help in proving that a given set is or not a spectrum, or in providing any concrete spectrum. However, Asser’s characterization is enough to prove Theorem 4.10, that we restate here for sake of self-containment.

Theorem 4.10  Spec3Specsuperscriptsubscript3\textsc{Spec}\subsetneq{\mathcal{E}}_{\star}^{3}

The inclusion follows from the fact that Theorem A.1 provides elementary characteristic functions for spectra. The properness is obtained by diagonalization.

As a conclusion, Asser asks some questions, that have essentially remained open up to now. First, he asked for a recursive characterization of spectra. He notes that there are actually two different problems. The first one asks for a recursively defined class of functions, i.e. a class of functions defined via some basis functions and closure under some functional operations, such that the unary functions in this class are exactly the characteristic functions of spectra. Second, he asks for a recursively defined class of functions, but now such that the unary functions in it enumerate exactly the spectra, i.e. a set S𝑆S is a spectrum if and only if S=f()𝑆𝑓S=f({\mathbb{N}}) for some f𝑓f in the class. Note that this is not the most commonly admitted meaning for enumeration, because the enumeration functions are usually required to be strictly increasing, which is not the case here.

Next, Asser refers to “work in progress” that proves that a large class of unary functions are characteristic functions of spectra, among which the following arithmetically defined sets: prime numbers, multiples of a given integer k𝑘k, powers of a given k𝑘k, k𝑘k-th powers, composite numbers.a

Finally, the third and most famous open question proposed in this paper is usually known as Asser’s Problem (Open Question 2) and asks whether spectra are closed under complement.

A.2 Mostowski’s paper

A paper almost simultaneous with Asser’s is [ar:Mostowski56], due to A. Mostowski in 1956. It also adresses recursive characterization of spectra, and explicitly uses the name “spectrum”. It is noticed that “The results of Asser overlap in part with results which I have found in 1953 while attempting (unsuccessfully) to solve Scholz’s problem (cf. Roczniki Polskiego Towarzystwa Matematycznego, series I, vol. 1 (1955), p.427). I shall give here proofs of my results which do not overlap with Asser’s.” 101010Thanks to J. Tomasik, we have seen a translation of the Polish reference. It is the abstract of a seminar given by Andrzej Mostowski on October, 16. 1953. In addition to the following material, it is also stated that spectra form a strict subclass of primitive recursive sets, a result which indeed overlaps with Asser’s. .

Here, A. Mostowski defines a class of functions denoted by K𝐾K as follows.

Definition A.2.

The class K𝐾K is the least class

  • containing the functions Zk,Uki,S,Csubscript𝑍𝑘subscriptsuperscript𝑈𝑖𝑘𝑆𝐶Z_{k},U^{i}_{k},S,C respectively defined by:

    • -

      Zk(x1,,xk,n)=0subscript𝑍𝑘subscript𝑥1subscript𝑥𝑘𝑛0Z_{k}(x_{1},\ldots,x_{k},n)=0

    • -

      Uki(x1,,xk,n)=min(xi,n)subscriptsuperscript𝑈𝑖𝑘subscript𝑥1subscript𝑥𝑘𝑛𝑚𝑖𝑛subscript𝑥𝑖𝑛U^{i}_{k}(x_{1},\ldots,x_{k},n)=min(x_{i},n), for i=1,,k𝑖1𝑘i=1,\ldots,k

    • -

      S(x,n)=min(x+1,n)𝑆𝑥𝑛𝑚𝑖𝑛𝑥1𝑛S(x,n)=min(x+1,n)

    • -

      C(x)=n𝐶𝑥𝑛C(x)=n

  • closed under composition: f(x1,,xj1,g(y1,,yp,n),xj+1,,xk,n)𝑓subscript𝑥1subscript𝑥𝑗1𝑔subscript𝑦1subscript𝑦𝑝𝑛subscript𝑥𝑗1subscript𝑥𝑘𝑛f(x_{1},\ldots,x_{j-1},g(y_{1},\ldots,y_{p},n),x_{j+1},\ldots,x_{k},n)

  • closed under recursion: {f(0,x,n)=g(x,n)f(x+1,x,n)=min(h(x,f(x,x,n),x,n),n)cases𝑓0𝑥𝑛𝑔𝑥𝑛𝑓𝑥1𝑥𝑛𝑚𝑖𝑛𝑥𝑓𝑥𝑥𝑛𝑥𝑛𝑛\left\{\begin{array}[]{l}f(0,\vec{x},n)=g(\vec{x},n)\\ f(x+1,\vec{x},n)=min(h(x,f(x,\vec{x},n),\vec{x},n),n)\end{array}\right.

The basis functions Zksubscript𝑍𝑘Z_{k}, Ukisubscriptsuperscript𝑈𝑖𝑘U^{i}_{k} and S𝑆S are intended as the classical zero, projections and successor functions, but the special variable n𝑛n always bounds their values. The function C𝐶C is intended as a maximum function. The functional operations composition and recursion are also bounded by n𝑛n. The main result of Mostowski’s paper is the following theorem.

Theorem A.3

For any unary function fK𝑓𝐾f\in K, the set {n+1|f(n)=0}conditional-set𝑛1𝑓𝑛0\{n+1\ |\ f(n)=0\} is a spectrum.

Let us give an idea of the proof via an example. Consider the functions f𝑓f, g𝑔g and hh defined as follows:

  • -

    f(x,n)=1𝑓𝑥𝑛1f(x,n)=1 if x=0𝑥0x=0 and f(x,n)=0𝑓𝑥𝑛0f(x,n)=0 otherwise.

    I.e. {f(0,n)=S(Z(C(n),n),n)f(x+1,n)=min(Z(f(x,n),n),n)cases𝑓0𝑛𝑆𝑍𝐶𝑛𝑛𝑛𝑓𝑥1𝑛𝑚𝑖𝑛𝑍𝑓𝑥𝑛𝑛𝑛\left\{\begin{array}[]{l}f(0,n)=S(Z(C(n),n),n)\\ f(x+1,n)=min(Z(f(x,n),n),n)\end{array}\right.

  • -

    g(x,n)=0𝑔𝑥𝑛0g(x,n)=0 if x𝑥x is even and g(x,n)=1𝑔𝑥𝑛1g(x,n)=1 otherwise.

    I.e. {g(0,n)=Z(C(n),n)g(x+1,n)=min(f(g(x,n),n),n)cases𝑔0𝑛𝑍𝐶𝑛𝑛𝑔𝑥1𝑛𝑚𝑖𝑛𝑓𝑔𝑥𝑛𝑛𝑛\left\{\begin{array}[]{l}g(0,n)=Z(C(n),n)\\ g(x+1,n)=min(f(g(x,n),n),n)\end{array}\right.

  • -

    h(n)=g(C(n),n)𝑛𝑔𝐶𝑛𝑛h(n)=g(C(n),n).

Clearly we have hK𝐾h\in K and h(n)=0𝑛0h(n)=0 if and only if n𝑛n is even. Let us derive from the definition of hh a sentence ψ𝜓\psi in the vocabulary

σ={,min,max,Succ(2),Rf(3),Rg(3),Rh(2)}𝜎𝑚𝑖𝑛𝑚𝑎𝑥𝑆𝑢𝑐superscript𝑐2superscriptsubscript𝑅𝑓3superscriptsubscript𝑅𝑔3superscriptsubscript𝑅2\sigma=\{\leq,min,max,Succ^{(2)},R_{f}^{(3)},R_{g}^{(3)},R_{h}^{(2)}\}

such that ψ𝜓\psi has a model with n+1𝑛1n+1 elements if and only if h(n)=0𝑛0h(n)=0 (i.e. spec(ψ)spec𝜓\textsc{spec}({\psi}) is the set of odd numbers). The key point of the construction is that the functions in the class K𝐾K can be interpreted as functions on finite structures (eg. from {0,,n}ksuperscript0𝑛𝑘\{0,\ldots,n\}^{k} to {0,,n}0𝑛\{0,\ldots,n\}) without loss of generality, because of the special variable n𝑛n that bounds all their values.

The sentence ψ𝜓\psi first expresses the fact that \leq is a linear ordering, min𝑚𝑖𝑛min and max𝑚𝑎𝑥max are its first and last elements and Succ𝑆𝑢𝑐𝑐Succ its successor relation. Then, ψ𝜓\psi describes the behavior of the predicates Rfsubscript𝑅𝑓R_{f}, Rgsubscript𝑅𝑔R_{g} and Rhsubscript𝑅R_{h} corresponding to the graphs of the functions f𝑓f, g𝑔g and hh. For instance, Rgsubscript𝑅𝑔R_{g} obeys the conjunction of the following sentences:

  • -

    g𝑔g is functional in its first variable:

    x,y(y=max!zRg(x,y,z))for-all𝑥𝑦𝑦𝑚𝑎𝑥𝑧subscript𝑅𝑔𝑥𝑦𝑧\forall x,y\left(y=max\longrightarrow\exists!zR_{g}(x,y,z)\right)

  • -

    the second variable in g𝑔g is always n𝑛n:

    x,y,z(Rg(x,y,z)y=max)for-all𝑥𝑦𝑧subscript𝑅𝑔𝑥𝑦𝑧𝑦𝑚𝑎𝑥\forall x,y,z\left(R_{g}(x,y,z)\longrightarrow y=max\right)

  • -

    description of the base case of the definition of g𝑔g:

    x,y,z[(Rg(x,y,z)x=min)z=min]for-all𝑥𝑦𝑧delimited-[]subscript𝑅𝑔𝑥𝑦𝑧𝑥𝑚𝑖𝑛𝑧𝑚𝑖𝑛\forall x,y,z\left[\left(R_{g}(x,y,z)\wedge x=min\right)\longrightarrow z=min\right]

  • -

    description of the recursive recursive case of the definition of g𝑔g:

    x,y,z[(Rg(x,y,z)¬x=min)\forall x,y,z[(R_{g}(x,y,z)\wedge\neg x=min)

    t,u(Succ(t,x)Rg(t,y,u)Rf(u,y,z))]\longrightarrow\exists t,u(Succ(t,x)\wedge R_{g}(t,y,u)\wedge R_{f}(u,y,z))]

Our goal is then achieved by adding to ψ𝜓\psi the following condition:

x,y(Rh(x,y)(x=maxy=min))for-all𝑥𝑦subscript𝑅𝑥𝑦𝑥𝑚𝑎𝑥𝑦𝑚𝑖𝑛\forall x,y\left(R_{h}(x,y)\longrightarrow(x=max\wedge y=min)\right)

Finally, it is clear that spec(ψ)spec𝜓\textsc{spec}({\psi}) is the set of odd numbers as required.

Mostowski asks if the converse is true, i.e.

Open Question 38

Is every spectrum representable as {n+1|f(n)=0}conditional-set𝑛1𝑓𝑛0\{n+1\ |\ f(n)=0\} for some function fK𝑓𝐾f\in K?

No answer is known up to now.

As a conclusion, new examples of spectra are presented: the set of integers having the form n!𝑛n! for some n𝑛n, and the set {n|n2+1 is prime }conditional-set𝑛superscript𝑛21 is prime \{n\ |\ n^{2}+1\mbox{ is prime }\}. Also, Mostowski asks whether Fermat’s prime numbers, i.e. primes of the form 22n+1superscript2superscript2𝑛12^{2^{n}}+1, form a spectrum. This question can be understood in two different ways, as noticed by Bennett: which one of the sets A={p|p is prime and p=22n+1 for some integer n}𝐴conditional-set𝑝𝑝 is prime and 𝑝superscript2superscript2𝑛1 for some integer 𝑛A=\{p\ |\ p\mbox{ is prime and }p=2^{2^{n}}+1\mbox{ for some integer }n\} and B={n|22n+1 is prime }𝐵conditional-set𝑛superscript2superscript2𝑛1 is prime B=\{n\ |\ 2^{2^{n}}+1\mbox{ is prime }\} is intended ? Using rudimentary relations, the set A𝐴A is easily proved to be a spectrum, whereas it is still not known for the set B𝐵B.

Finally, let us remark that it is ordinarily considered that what Mostowski proved is that the unary relations in 2subscriptsuperscript2{\mathcal{E}}^{2}_{\star} are spectra. This is not exactly the case, but the legend is most probably due to the fact that Bennett attributes this result to Mostowski. However, Bennett also notes that, even if it is easy to prove that K2𝐾superscript2K\subseteq{\mathcal{E}}^{2}, it is not clear that the bounded version of any function in 2superscript2{\mathcal{E}}^{2} (i.e. fb(x1,,xk,n)=min(f(x1,,xk),n)subscript𝑓𝑏subscript𝑥1subscript𝑥𝑘𝑛𝑚𝑖𝑛𝑓subscript𝑥1subscript𝑥𝑘𝑛f_{b}(x_{1},\ldots,x_{k},n)=min(f(x_{1},\ldots,x_{k}),n)) is in K𝐾K. Mostowski’s construction crucially relies on the fact that the functions in K𝐾K are bounded by their last variable, and does not generalize to functions in 2superscript2{\mathcal{E}}^{2}. In contrast, it is not difficult to verify that the bounded versions of addition and multiplication are in K𝐾K, and consequently that the rudimentary relations have their characteristic functions in K𝐾K. Whatever, it is true that the unary relations in 2subscriptsuperscript2{\mathcal{E}}^{2}_{\star} are indeed spectra, see Corollary A.5.

A.3 Bennett’s thesis

This is a huge work titled “On spectra” [phd:Bennett62], but which also deals with a lot of other subjects. Bennett’s thesis is unpublished, and only available via library services. It is one of the remarkable early texts anticipating later developments in finite model theory, definability theory and complexity theory. It contains a characterization (and various definitions) of rudimentary sets and already relates spectra to space bounded Turing machines, thus catching a glimpse of many of the results concerning spectra that were formulated and proved in more modern language after 1970.

Not only first-order spectra are considered by Bennett, but also spectra of higher order logics, and not only sets, but also many-sorted sets, all in all spectra of the whole theory of types. This full generality makes the notations quite clumsy. The use of many-sorted structures corresponds to relations of arity greater than one, and the use of higher order logics provides more complicated relations.

We shall limit ourselves with the cases of one-sorted (i.e. ordinary) spectra of orders one and two. Note that the first item of Theorem A.4 is also stated as Theorem 4.13 in Subsection 4.3.

Theorem A.4 (Bennett, 1962 [phd:Bennett62])
  1. (i)

    A set S𝑆S\subseteq{\mathbb{N}}is a first-order spectrum iff it can be defined by a formula of the form y2xjR(x,y)𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦\exists y\!\leq\!2^{x^{j}}R(x,y)for some j1𝑗1j\geq 1, where R𝑅Ris strictly rudimentary.

  2. (ii)

    A set S𝑆S\subseteq{\mathbb{N}}is a second-order spectrum iff it can be defined by a formula of the form y2xjR(x,y)𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦\exists y\!\leq\!2^{x^{j}}R(x,y)for some j1𝑗1j\geq 1, where R𝑅Ris rudimentary.

Spectra of higher order are characterized by similar features: spectra of order 2n2𝑛2n correspond to rudimentary relations prefixed by an existential quantifier bounded by an iterated exponential 2..2xj2^{\!{}^{.^{.^{2^{x^{j}}}}}} with height n𝑛n, and spectra of order 2n12𝑛12n-1 correspond to strictly rudimentary relations prefixed by an existential quantifier bounded by an iterated exponential with height n𝑛n. Spectra of sentences over a d𝑑d-sorted universe have the same types of characterizations, using y2max(x1,,xd)jR(x1,,xd,y)\exists y\leq 2^{\max(x_{1},\ldots,x_{d})^{j}}\ R(x_{1},\ldots,x_{d},y). Finally, the spectra of the whole type theory are characterized as the elementary relations.

Bennett also introduces several other subrudimentary classes, respectively called “strongly”, “positive” and “extended” rudimentary relations, which yield a bunch of slightly different characterizations of spectra, which may witness various unsuccessful attempts to design a truly satisfactory characterization. In this survey, we shall limit ourselves to Rud and Srud.

Some consequences of the characterization theorem (not all of them are immediate):

Corollary A.5
  1. (i)

    For each n1𝑛1n\geq 1, the class of spectra of order n𝑛nis closed under \wedge, \vee, bounded quantifications, substitution of rudimentary functions, explicit transformations and finite modifications.

  2. (ii)

    For each n1𝑛1n\geq 1, the class of spectra of order 2n2𝑛2nis closed under ¬\neg.

  3. (iii)

    The class of first-order spectra contains the rudimentary relations and 2superscriptsubscript2{\mathcal{E}}_{\star}^{2}.

  4. (iv)

    The class of second-order spectra strictly contains the rudimentary relations.

  5. (v)

    For each n1𝑛1n\geq 1, spectra of order n𝑛nform a subset of spectra of order n+1𝑛1n+1and a strict subset of spectra of order n+2𝑛2n+2.

We propose below a proof of Bennett’s theorem.

Proof of Theorem A.4.

(ii) We first present the second-order case, because it has less technical difficulties.

- First inclusion: {spec(φ)|φSO}{y2xjR(x,y)|j1 and RRud}conditional-setspec𝜑𝜑SOconditional-set𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦𝑗1 and 𝑅Rud\{\textsc{spec}({\varphi})\ |\ \varphi\in\textsc{SO}\}\subseteq\{\exists y\leq 2^{x^{j}}\ R(x,y)\ |\ j\geq 1\hbox{ and }R\in\textsc{Rud}\} i.e. φ𝜑\varphi has a model with x𝑥x elements iff y2xjR(x,y)𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦\exists y\leq 2^{x^{j}}\ R(x,y) is true.

W.l.o.g. we may assume that φ𝜑\varphi has no first-order or second-order free variable (just quantify existentially in case there are any). Assume the second-order variables appearing in φ𝜑\varphi have arities strictly less than j𝑗j. Then we take y=2xj𝑦superscript2superscript𝑥𝑗y=2^{x^{j}}. We encode a second-order variable Z𝑍Z with arity a<j𝑎𝑗a<j by the number z<2xa<y𝑧superscript2superscript𝑥𝑎𝑦z<2^{x^{a}}<y in the usual way. Hence, every second-order quantification QZ(a)𝑄superscript𝑍𝑎QZ^{(a)} in φ𝜑\varphi is translated into the first-order bounded quantification Qz<2xa<y𝑄𝑧superscript2superscript𝑥𝑎𝑦Qz<2^{x^{a}}<y. Recall that Bit(a,b)𝐵𝑖𝑡𝑎𝑏Bit(a,b) is true iff the bit of rank b𝑏b of a𝑎a is 111. Now, every atomic formula Z(z1,,za)𝑍subscript𝑧1subscript𝑧𝑎Z(z_{1},\ldots,z_{a}) is translated into Bit(z,z1+z2x++zaxa1)𝐵𝑖𝑡𝑧subscript𝑧1subscript𝑧2𝑥subscript𝑧𝑎superscript𝑥𝑎1Bit(z,z_{1}+z_{2}\cdot x+\ldots+z_{a}\cdot x^{a-1}). Every first-order quantification qz𝑞𝑧qz in φ𝜑\varphi is translated into the bounded quantification qz<x𝑞𝑧𝑥qz<x. The atomic formulas z=z𝑧superscript𝑧z=z^{\prime} in φ𝜑\varphi remain unchanged. Let φsuperscript𝜑\varphi^{\prime} denote the obtained formula. Finally, let R(y=2xj)φ𝑅𝑦superscript2superscript𝑥𝑗superscript𝜑R\equiv(y=2^{x^{j}})\wedge\varphi^{\prime}.

- Second inclusion: {spec(φ)|φSO}{y2xjR(x,y)|j1 and RRud}conditional-set𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦𝑗1 and 𝑅Rudconditional-setspec𝜑𝜑𝑆𝑂\{\textsc{spec}({\varphi})\ |\ \varphi\in SO\}\supseteq\{\exists y\leq 2^{x^{j}}\ R(x,y)\ |\ j\geq 1\hbox{ and }R\in\textsc{Rud}\} i.e. y2xjR(x,y)𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦\exists y\leq 2^{x^{j}}\ R(x,y) is true iff φ𝜑\varphi has a model with x𝑥x elements.

First, we use three existentially quantified relations, namely (2j)superscript2𝑗\leq^{(2j)} which is bound to be a linear ordering over the j𝑗j-tuples of vertices, +(3j)superscript3𝑗+^{(3j)} which is bound to be the associated addition and ×(3j)superscript3𝑗\times^{(3j)} which is bound to be the associated multiplication. Let us denote by Arithm(,+,×)𝐴𝑟𝑖𝑡𝑚Arithm(\leq,+,\times) the first-order sentence expressing this requirement. Note that we may now use for free any usual arithmetic predicate on numbers bounded by xjsuperscript𝑥𝑗x^{j} (written in x𝑥x-ary notation, i.e. seen as j𝑗j-tuples of integers in {0,,x1}0𝑥1\{0,\ldots,x-1\}). Next, all variables in R𝑅R, including x𝑥x and y𝑦y, are encoded by j𝑗j-ary second-order variables in φ𝜑\varphi in the usual way. For instance if x=l=0p2il𝑥superscriptsubscript𝑙0𝑝superscript2subscript𝑖𝑙x=\sum_{l=0}^{p}2^{i_{l}}, we let X={(i0,0,,0),,(ip,0,,0)}𝑋subscript𝑖000subscript𝑖𝑝00X=\{(i_{0},0,\ldots,0),\ldots,(i_{p},0,\ldots,0)\}.

W.l.o.g. we may assume that all the atomic formulas in R𝑅R are of type uv=w𝑢𝑣𝑤u\cdot v=w (concatenation), which we translate into

Concat(U,V,W)t¯V(t¯)z¯(V(z¯)z¯t¯)z¯(U(z¯)z¯(max¯t¯))z¯(W(z¯)((z¯t¯V(z¯))(z¯>t¯U(z¯t¯)))).\begin{array}[]{l}Concat(U,V,W)\equiv\\ \quad\exists\overline{t}V(\overline{t})\wedge\forall\overline{z}(V(\overline{z})\longrightarrow\overline{z}\leq\overline{t})\wedge\forall\overline{z}(U(\overline{z})\longrightarrow\overline{z}\leq(\overline{max}-\overline{t}))\\ \quad\wedge\forall\overline{z}\left(W(\overline{z})\longleftrightarrow\left(\left(\overline{z}\leq\overline{t}\wedge V(\overline{z})\right)\vee\left(\overline{z}>\overline{t}\wedge U(\overline{z}-\overline{t})\right)\right)\right).\end{array}

Note that this sentence would be cleaner in dyadic than it is in binary, but the whole encoding would also be more complicated because two unary relations are needed to encode an integer in dyadic (the set of 111s and the set of 222s) because its length is fixed.

In order to translate the bounded quantifications in R𝑅R, we also need the following first-order sentence, which expresses the fact that the integers u𝑢u and v𝑣v respectively encoded by U𝑈U and V𝑉V are such that u<v𝑢𝑣u<v.

Smaller(U,V)z¯(V(z¯)¬U(z¯)z¯>z¯¬U(z¯))z¯(V(z¯)U(z¯)z¯>z¯(¬V(z¯)¬U(z¯))z¯<z¯(V(z¯)¬U(z¯))).𝑆𝑚𝑎𝑙𝑙𝑒𝑟𝑈𝑉absent¯𝑧𝑉¯𝑧𝑈¯𝑧for-all¯superscript𝑧¯𝑧𝑈¯superscript𝑧¯𝑧𝑉¯𝑧𝑈¯𝑧for-all¯superscript𝑧¯𝑧𝑉¯superscript𝑧𝑈¯superscript𝑧¯superscript𝑧¯𝑧𝑉¯superscript𝑧𝑈¯superscript𝑧\begin{array}[]{l}Smaller(U,V)\equiv\\ \exists\overline{z}\left(V(\overline{z})\wedge\neg U(\overline{z})\wedge\forall\overline{z^{\prime}}>\overline{z}\neg U(\overline{z^{\prime}})\right)\\ \vee\exists\overline{z}\left(V(\overline{z})\wedge U(\overline{z})\wedge\forall\overline{z^{\prime}}>\overline{z}\left(\neg V(\overline{z^{\prime}})\wedge\neg U(\overline{z^{\prime}})\right)\wedge\exists\overline{z^{\prime}}<\overline{z}\left(V(\overline{z^{\prime}})\wedge\neg U(\overline{z^{\prime}})\right)\right).\end{array}

Now, let Rsuperscript𝑅R^{\prime} be obtained from R𝑅R by applying the following rules: every bounded first-order quantification z<zfor-all𝑧superscript𝑧\forall z<z^{\prime}\ldots is translated into the second order quantification Z(j)Smaller(Z,Z)for-allsuperscript𝑍𝑗𝑆𝑚𝑎𝑙𝑙𝑒𝑟𝑍superscript𝑍\forall Z^{(j)}Smaller(Z,Z^{\prime})\longrightarrow\ldots, and accordingly for z<z𝑧superscript𝑧\exists z<z^{\prime}\ldots; and every atomic formula uv=w𝑢𝑣𝑤u\cdot v=w is translated into Concat(U,V,W)𝐶𝑜𝑛𝑐𝑎𝑡𝑈𝑉𝑊Concat(U,V,W).

It remains to express that X𝑋X encodes the size x𝑥x of the domain, which is done using the binary notation of (max,0,,0)𝑚𝑎𝑥00(max,0,\ldots,0), which represents the largest element of the domain. More precisely, we have max+1=x𝑚𝑎𝑥1𝑥max+1=x, which translates in binary as follows:

Dom(X)z¯(((X(z¯)z¯<z¬X(z¯))¬Bit((max,0,,0),z¯))((z¯<zX(z¯))(X(z¯)Bit((max,0,,0),z¯)))((z¯>z¯(X(z¯)z′′¯<z¯¬X(z′′¯)))Bit((max,0,,0),z¯)))\begin{array}[]{l}Dom(X)\equiv\\ \forall\overline{z}(((X(\overline{z})\wedge\forall\overline{z^{\prime}}<z\neg X(\overline{z^{\prime}}))\longrightarrow\neg Bit((max,0,\ldots,0),\overline{z}))\\ \wedge((\exists\overline{z^{\prime}}<zX(\overline{z^{\prime}}))\longrightarrow(X(\overline{z})\longleftrightarrow Bit((max,0,\ldots,0),\overline{z})))\\ \wedge((\exists\overline{z^{\prime}}>\overline{z}(X(\overline{z^{\prime}})\wedge\forall\overline{z^{\prime\prime}}<\overline{z^{\prime}}\neg X(\overline{z^{\prime\prime}})))\longrightarrow Bit((max,0,\ldots,0),\overline{z})))\\ \end{array}

Finally, φ𝜑\varphi is (2j)+(3j)×(3j)Y(j)X(j)(Arithm(,+,×)Dom(X)R)superscript2𝑗superscript3𝑗superscript3𝑗superscript𝑌𝑗superscript𝑋𝑗𝐴𝑟𝑖𝑡𝑚𝐷𝑜𝑚𝑋superscript𝑅\exists\leq^{(2j)}\exists+^{(3j)}\exists\times^{(3j)}\exists Y^{(j)}\exists X^{(j)}(Arithm(\leq,+,\times)\wedge Dom(X)\wedge R^{\prime}).

(i) Next we turn to the first-order case. We consider the proof of the second-order case and show how it has to be modified in order to fit to the first-order case. Note that the proof is now more tricky, and we use dyadic notation because we have to be more precise.

- First inclusion: {spec(φ)|φFO}{y2xjR(x,y)|j1 and RSrud}conditional-setspec𝜑𝜑𝐹𝑂conditional-set𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦𝑗1 and 𝑅Srud\{\textsc{spec}({\varphi})\ |\ \varphi\in FO\}\subseteq\{\exists y\leq 2^{x^{j}}\ R(x,y)\ |\ j\geq 1\hbox{ and }R\in\textsc{Srud}\}

The main difference concerning φ𝜑\varphi is that it contains no second-order quantifications. Concerning R𝑅R, we have to deal with two differences: bounded quantifications are now replaced by part-of quantifications (z1z2for-allsubscript𝑧1subscript𝑧2\forall z_{1}\!\upharpoonright\!z_{2} and z1z2subscript𝑧1subscript𝑧2\exists z_{1}\!\upharpoonright\!z_{2}) on the one hand and we have to use concatenation instead of arithmetic on the other hand.

However, φ𝜑\varphi does contain free second-order variables, say Z1(a1),,Zk(ak)superscriptsubscript𝑍1subscript𝑎1superscriptsubscript𝑍𝑘subscript𝑎𝑘Z_{1}^{(a_{1})},\ldots,Z_{k}^{(a_{k})}, which we do not encode in the usual way because Srud does not allow to use arithmetical predicates, hence the Bit𝐵𝑖𝑡Bit predicate is not available. Instead, we assume for now that the alphabet is {1,2,,,}12\{1,2,\ast,\star,\bullet\} and we first define a provisional predicate R(x,y)superscript𝑅𝑥𝑦R^{\prime}(x,y). We shall explain later how to get rid of the extra symbols \ast, \star and \bullet to obtain the expected R(x,y)𝑅𝑥𝑦R(x,y).

We use the following encoding: if Z={(x11,,xa1),,(x1p,,xap)}𝑍superscriptsubscript𝑥11superscriptsubscript𝑥𝑎1superscriptsubscript𝑥1𝑝superscriptsubscript𝑥𝑎𝑝Z=\{(x_{1}^{1},\ldots,x_{a}^{1}),\ldots,(x_{1}^{p},\ldots,x_{a}^{p})\}, with pxa𝑝superscript𝑥𝑎p\leq x^{a}, then let z=x11xa1x1pxapz=\star\ast x_{1}^{1}*\ldots*x_{a}^{1}\ast\star\ldots\star\ast x_{1}^{p}*\ldots*x_{a}^{p}\ast\star. Note that we have |z|xaa(|x|+2)𝑧superscript𝑥𝑎𝑎𝑥2|z|\leq x^{a}\cdot a\cdot(|x|+2).

Let us define x0=x(x1)1x_{0}=\ast x\ast(x-1)\ast\ldots\ast 1\ast, i.e. the dyadic representation of x0subscript𝑥0x_{0} is the concatenation of the dyadic representations of all integers in {1,,x}1𝑥\{1,\ldots,x\}, separated by \asts. Note that |x0|x(|x+2|)<x2subscript𝑥0𝑥𝑥2superscript𝑥2|x_{0}|\leq x\cdot(|x+2|)<x^{2}. Finally, let y=z1zkx0y=\bullet z_{1}\bullet\ldots\bullet z_{k}\bullet x_{0}\bullet. Clearly we have y2xj𝑦superscript2superscript𝑥𝑗y\leq 2^{x^{j}} for some j1𝑗1j\geq 1.

Now, R(x,y)superscript𝑅𝑥𝑦R^{\prime}(x,y) will begin with z1yzkyx0y((y=z1zkx0)¬(z1)¬(zk)¬(x0))\exists z_{1}\!\upharpoonright\!y\ \ldots\ \exists z_{k}\!\upharpoonright\!y\ \exists x_{0}\!\upharpoonright\!y\ ((y=\bullet z_{1}\bullet\ldots\bullet z_{k}\bullet x_{0}\bullet)\wedge\neg(\bullet\!\upharpoonright\!z_{1})\wedge\ldots\wedge\neg(\bullet\!\upharpoonright\!z_{k})\wedge\neg(\bullet\!\upharpoonright\!x_{0})\wedge\ldots), in order to retrieve the significant parts of y𝑦y.

We use x0subscript𝑥0x_{0} to replace every first-order quantification ufor-all𝑢\forall u\ldots appearing in φ𝜑\varphi by a part-of quantification ux0(Int(u,x0))for-all𝑢subscript𝑥0𝐼𝑛𝑡𝑢subscript𝑥0\forall u\!\upharpoonright\!x_{0}\left(Int(u,x_{0})\longrightarrow\ldots\right) in Rsuperscript𝑅R^{\prime}, and similarly for u𝑢\exists u\ldots, where Int(u,x0)𝐼𝑛𝑡𝑢subscript𝑥0Int(u,x_{0}) means that u𝑢u is a maximal non-empty string of 111s and 222s in x0subscript𝑥0x_{0}. The most technical part of the proof is to write a strictly rudimentary formula Dom(x0,x)𝐷𝑜𝑚subscript𝑥0𝑥Dom(x_{0},x) which is true iff x0subscript𝑥0x_{0} has the expected form, but for sake of brevity, we do not explicit this formula. In particular, note that we now consider the domain as {1,,x}1𝑥\{1,\ldots,x\} instead of {0,,x1}0𝑥1\{0,\ldots,x-1\} as we did previously. Finally it is not difficult to write a formula Verif(x0,z)𝑉𝑒𝑟𝑖𝑓subscript𝑥0𝑧Verif(x_{0},z) expressing the fact that z𝑧z has the expected form x11xa1x1pxap\star\ast x_{1}^{1}*\ldots*x_{a}^{1}\ast\star\ldots\star\ast x_{1}^{p}*\ldots*x_{a}^{p}\ast\star. Namely, take

Verif(x0,z)uz(uz)uz(((uz)¬(u)uϵ)v1uvau(Int(v1,x0)Int(va,x0)u=v1va))u1,u2,α,β,γz(((z=αu1βu2γz=αu1u2γ)¬(u1)¬(u2))u1u2).\begin{array}[]{l}Verif(x_{0},z)\equiv\exists u\!\upharpoonright\!z\\ (\star u\star\!\upharpoonright\!z)\wedge\forall u\!\upharpoonright\!z(((\star u\star\!\upharpoonright\!z)\wedge\neg(\star\!\upharpoonright\!u)\wedge u\neq\epsilon)\longrightarrow\exists v_{1}\!\upharpoonright\!u\ldots\exists v_{a}\!\upharpoonright\!u\\ (Int(v_{1},x_{0})\wedge\ldots\wedge Int(v_{a},x_{0})\wedge u=\ast v_{1}\ast\ldots\ast v_{a}\ast))\\ \wedge\forall u_{1},u_{2},\alpha,\beta,\gamma\!\upharpoonright\!z(((z=\alpha\star u_{1}\star\beta\star u_{2}\star\gamma\vee z=\alpha\star u_{1}\star u_{2}\star\gamma)\\ \wedge\neg(\star\!\upharpoonright\!u_{1})\wedge\neg(\star\!\upharpoonright\!u_{2}))\longrightarrow u_{1}\neq u_{2}).\end{array}

There are two types of atomic formulas in φ𝜑\varphi: equalities z1=z2subscript𝑧1subscript𝑧2z_{1}=z_{2} and atoms Z(z1,,za)𝑍subscript𝑧1subscript𝑧𝑎Z(z_{1},\ldots,z_{a}). Equalities remain unchanged and Z(z1,,za)𝑍subscript𝑧1subscript𝑧𝑎Z(z_{1},\ldots,z_{a}) is changed into z1zaz\star\ast z_{1}\ast\ldots\ast z_{a}\ast\star\!\upharpoonright\!z. These operations lead to the strictly rudimentary formula φsuperscript𝜑\varphi^{\prime}.

Finally, R(x,y)superscript𝑅𝑥𝑦R^{\prime}(x,y) is z1yzkyx0y((y=z1zkx0)¬(z1)¬(zk)¬(x0)Dom(x0,x)Verif(x0,z1)Verif(x0,zk)φ)\exists z_{1}\!\upharpoonright\!y\ldots\exists z_{k}\!\upharpoonright\!y\exists x_{0}\!\upharpoonright\!y((y=\bullet z_{1}\bullet\ldots\bullet z_{k}\bullet x_{0}\bullet)\wedge\neg(\bullet\!\upharpoonright\!z_{1})\wedge\ldots\wedge\neg(\bullet\!\upharpoonright\!z_{k})\wedge\neg(\bullet\!\upharpoonright\!x_{0})\wedge Dom(x_{0},x)\wedge Verif(x_{0},z_{1})\wedge\ldots\wedge Verif(x_{0},z_{k})\wedge\varphi^{\prime}).

To obtain R𝑅R, it remains to get rid of the alphabet {1,2,,,}12\{1,2,\ast,\star,\bullet\}. Let \ast be a string of 111s which is not a subword of x,x1,,2𝑥𝑥12x,x-1,\ldots,2 and 111. For instance, \ast could be of length |x|+1𝑥1|x|+1. Let =22\star=2\ast 2 and =2222\bullet=22\ast 22. The final length of y𝑦y is polynomially longer than it used to be, which remains acceptable. Finally, take R(x,y)yyy((u(u=1))ϵ=22=2222R)R(x,y)\equiv\exists\ast\!\upharpoonright\!y\ \exists\star\!\upharpoonright\!y\ \exists\bullet\!\upharpoonright\!y\ ((\forall u\!\upharpoonright\!\ast\ (u=1))\wedge\ast\neq\epsilon\wedge\star=2\ast 2\wedge\bullet=22\ast 22\wedge R^{\prime}). Note that strictly rudimentary relations do not define predicates referring to the length of integers, so that \ast cannot be bound to be some specific word like 1|x|+1superscript1𝑥11^{|x|+1}.

- Second inclusion: {spec(φ)|φFO}{y2xjR(x,y)|j1 and RSrud}conditional-set𝑦superscript2superscript𝑥𝑗𝑅𝑥𝑦𝑗1 and 𝑅Srudconditional-setspec𝜑𝜑𝐹𝑂\{\textsc{spec}({\varphi})\ |\ \varphi\in FO\}\supseteq\{\exists y\leq 2^{x^{j}}\ R(x,y)\ |\ j\geq 1\hbox{ and }R\in\textsc{Srud}\}

The main difference with the second-order case concerning φ𝜑\varphi is that it only contains first-order quantifications. However, we are still free to choose as many free second-order variables as we may need. In particular, we still use usual arithmetic predicates on the (j𝑗j-tuples of) elements of the domain, and the previous first-order sentence Arithm(,+,×)𝐴𝑟𝑖𝑡𝑚Arithm(\leq,+,\times) is still required to hold for this purpose. In addition, we introduce the second-order variables X1,X2subscript𝑋1subscript𝑋2X_{1},X_{2} and Y1,Y2subscript𝑌1subscript𝑌2Y_{1},Y_{2}, both of arity j𝑗j, respectively representing the set of positions where x𝑥x and y𝑦y have 111s and 222s and no other second-order variables are introduced. Let Word(X1,X2)𝑊𝑜𝑟𝑑subscript𝑋1subscript𝑋2Word(X_{1},X_{2}) be the sentence expressing the fact that X1subscript𝑋1X_{1} and X2subscript𝑋2X_{2} (and similarly Y1,Y2subscript𝑌1subscript𝑌2Y_{1},Y_{2}) do represent a dyadic word, namely

Word(X1,X2)z¯¬(X1(z¯)X2(z¯))z¯t¯((t¯>z¯(¬X1(t¯)¬X2(t¯)))(t¯z¯(X1(t¯)X2(t¯)))).𝑊𝑜𝑟𝑑subscript𝑋1subscript𝑋2for-all¯𝑧subscript𝑋1¯𝑧subscript𝑋2¯𝑧¯𝑧for-all¯𝑡¯𝑡¯𝑧subscript𝑋1¯𝑡subscript𝑋2¯𝑡¯𝑡¯𝑧subscript𝑋1¯𝑡subscript𝑋2¯𝑡\begin{array}[]{l}Word(X_{1},X_{2})\equiv\forall\overline{z}\neg(X_{1}(\overline{z})\wedge X_{2}(\overline{z}))\\ \wedge\exists\overline{z}\forall\overline{t}((\overline{t}>\overline{z}\longrightarrow(\neg X_{1}(\overline{t})\wedge\neg X_{2}(\overline{t})))\wedge(\overline{t}\leq\overline{z}\longrightarrow(X_{1}(\overline{t})\vee X_{2}(\overline{t})))).\end{array}

Concerning R𝑅R, we may assume w.l.o.g. that it only contains part-of quantifications qzx𝑞𝑧𝑥qz\!\upharpoonright\!x and qzy𝑞𝑧𝑦qz\!\upharpoonright\!y and no qzz𝑞𝑧superscript𝑧qz\!\upharpoonright\!z^{\prime} for z{x,y}superscript𝑧𝑥𝑦z^{\prime}\not\in\{x,y\}.

The main trick is that a part-of quantification zy𝑧𝑦\exists z\!\upharpoonright\!y\ldots (for instance) will be replaced by 2j2𝑗2j first-order quantifications z1¯z2¯(z1¯z2¯)¯subscript𝑧1¯subscript𝑧2¯subscript𝑧1¯subscript𝑧2\exists\overline{z_{1}}\exists\overline{z_{2}}\left(\overline{z_{1}}\leq\overline{z_{2}}\wedge\ldots\right), where z1¯¯subscript𝑧1\overline{z_{1}} and z2¯¯subscript𝑧2\overline{z_{2}} encode the positions where z𝑧z begins and ends, as a subword of y𝑦y.

We have to translate the atomic formulas uv=w𝑢𝑣𝑤u\cdot v=w. W.l.o.g. we may rewrite R𝑅R in an equivalent formula by replacing everywhere uv=w𝑢𝑣𝑤u\cdot v=w with (uv=wuyvywy)(uv=wuyvywx)(uv=wuxvxwx)𝑢𝑣𝑤𝑢𝑦𝑣𝑦𝑤𝑦𝑢𝑣𝑤𝑢𝑦𝑣𝑦𝑤𝑥𝑢𝑣𝑤𝑢𝑥𝑣𝑥𝑤𝑥(u\cdot v=w\wedge u\!\upharpoonright\!y\wedge v\!\upharpoonright\!y\wedge w\!\upharpoonright\!y)\vee(u\cdot v=w\wedge u\!\upharpoonright\!y\wedge v\!\upharpoonright\!y\wedge w\!\upharpoonright\!x)\vee\ldots\vee(u\cdot v=w\wedge u\!\upharpoonright\!x\wedge v\!\upharpoonright\!x\wedge w\!\upharpoonright\!x). Hence, there are 888 slightly different cases to be taken care of. We limit ourselves with the case uvwuyvywy𝑢𝑣𝑤𝑢𝑦𝑣𝑦𝑤𝑦u\cdot v\cdot w\wedge u\!\upharpoonright\!y\wedge v\!\upharpoonright\!y\wedge w\!\upharpoonright\!y. The corresponding formula Concatyyy(u1¯,u2¯,v1¯,v2¯,w1¯,w2¯)𝐶𝑜𝑛𝑐𝑎subscript𝑡𝑦𝑦𝑦¯subscript𝑢1¯subscript𝑢2¯subscript𝑣1¯subscript𝑣2¯subscript𝑤1¯subscript𝑤2Concat_{yyy}(\overline{u_{1}},\overline{u_{2}},\overline{v_{1}},\overline{v_{2}},\overline{w_{1}},\overline{w_{2}}) is as follows:

w2¯=w1¯+u2¯u1¯+v2¯v1¯z¯(w1¯z¯<w1¯+u2¯u1¯((Y1(z¯)Y1(z¯w1¯))(Y2(z¯)Y2(z¯w1¯))))z¯(w1¯+u2¯u1¯z¯<w2¯((Y1(z¯)Y1(z¯w1¯u2¯+u1¯))(Y2(z¯)Y2(z¯w1¯u2¯+u1¯)))).\begin{array}[]{l}\overline{w_{2}}=\overline{w_{1}}+\overline{u_{2}}-\overline{u_{1}}+\overline{v_{2}}-\overline{v_{1}}\\ \wedge\forall\overline{z}(\overline{w_{1}}\leq\overline{z}<\overline{w_{1}}+\overline{u_{2}}-\overline{u_{1}}\longrightarrow\\ ((Y_{1}(\overline{z})\longleftrightarrow Y_{1}(\overline{z}-\overline{w_{1}}))\wedge(Y_{2}(\overline{z})\longleftrightarrow Y_{2}(\overline{z}-\overline{w_{1}}))))\\ \wedge\forall\overline{z}(\overline{w_{1}}+\overline{u_{2}}-\overline{u_{1}}\leq\overline{z}<\overline{w_{2}}\longrightarrow\\ ((Y_{1}(\overline{z})\longleftrightarrow Y_{1}(\overline{z}-\overline{w_{1}}-\overline{u_{2}}+\overline{u_{1}}))\wedge(Y_{2}(\overline{z})\longleftrightarrow Y_{2}(\overline{z}-\overline{w_{1}}-\overline{u_{2}}+\overline{u_{1}})))).\end{array}

Let us denote by Rsuperscript𝑅R^{\prime} the obtained sentence.

The last remaining part is to write out a sentence Dom(X1,X2)𝐷𝑜superscript𝑚subscript𝑋1subscript𝑋2Dom^{\prime}(X_{1},X_{2}) expressing the fact that X1,X2subscript𝑋1subscript𝑋2X_{1},X_{2} encodes (in dyadic) the cardinality of the domain, i.e. the successor of the j𝑗j-tuple (max,0,,0)𝑚𝑎𝑥00(max,0,\ldots,0). This is a bit more technical than the sentence Dom(X)𝐷𝑜𝑚𝑋Dom(X) we used for the binary notation and we do not spell it out here. Finally, take φArithmWord(X1,X2)Word(Y1,Y2)Dom(X1,X2)R𝜑𝐴𝑟𝑖𝑡𝑚𝑊𝑜𝑟𝑑subscript𝑋1subscript𝑋2𝑊𝑜𝑟𝑑subscript𝑌1subscript𝑌2𝐷𝑜𝑚subscript𝑋1subscript𝑋2superscript𝑅\varphi\equiv Arithm\wedge Word(X_{1},X_{2})\wedge Word(Y_{1},Y_{2})\wedge Dom(X_{1},X_{2})\wedge R^{\prime}. ∎

Connections with complexity classes

At the beginning of complexity theory, the usual compexity classes such as the polynomial hierarchy had not emerged yet. So the classes used by Bennett are not standard ones. He considers two hierarchies based on space-bounded deterministic Turing machines defined in a recursive fashion: the base class is of type FDSpace(f(n))𝐹𝐷𝑆𝑝𝑎𝑐𝑒𝑓𝑛FDSpace(f(n)), and the next class has a space bound which is a function in the previous class.

Let us denote by (i)i1subscriptsuperscript𝑖𝑖1({\mathcal{R}}^{i})_{i\geq 1} the first hierarchy, introduced in Ritchie’s 1963 paper [ar:Ritchie63], which comes from from his Ph.D. thesis [phd:Ritchie60].

Definition A.6 (Ritchie’s classes).
  • -

    Let 1superscript1{\mathcal{R}}^{1} be the class of functions computable by some (deterministic) Turing machine in space bounded by bmax(x)𝑏𝑥b\cdot\max(\overrightarrow{x}) on input x𝑥\overrightarrow{x}, where b1𝑏1b\geq 1 is some integer fixed for each machine, i.e. 1=FDSpace(𝒪(2n))superscript1𝐹𝐷𝑆𝑝𝑎𝑐𝑒𝒪superscript2𝑛{\mathcal{R}}^{1}=FDSpace({\mathcal{O}}(2^{n})) in modern notation.

  • -

    For each i1𝑖1i\geq 1, let us denote by i+1superscript𝑖1{\mathcal{R}}^{i+1} the class of functions computable by a Turing machine in space bounded by B(x)𝐵𝑥B(\overrightarrow{x}), where B𝐵B is some function in isuperscript𝑖{\mathcal{R}}^{i}, fixed for each machine.

  • -

    For each i1𝑖1i\geq 1, let us denote by isubscriptsuperscript𝑖{\mathcal{R}}^{i}_{\star} the class of relations whose characteristic functions are in isuperscript𝑖{\mathcal{R}}^{i}.

It is proved in [ar:Ritchie63] that this hierarchy (i)i1subscriptsubscriptsuperscript𝑖𝑖1({\mathcal{R}}^{i}_{\star})_{i\geq 1} is strict and that its union corresponds to elementary relations.

Using the same pattern, Bennett introduces a second hierarchy, that we denote by (i)i1subscriptsuperscript𝑖𝑖1({\mathcal{B}}^{i})_{i\geq 1}.

Definition A.7 (Bennett’s classes).
  • -

    Let 1superscript1{\mathcal{B}}^{1} be the class of functions computable by some (deterministic) Turing machine in space bounded by P(x)𝑃𝑥P(\overrightarrow{x}) on input x𝑥\overrightarrow{x}, where P𝑃P is some arithmetical polynomial fixed for each machine, i.e. 1=FDSpace((2𝒪(n)))superscript1𝐹𝐷𝑆𝑝𝑎𝑐𝑒superscript2𝒪𝑛{\mathcal{B}}^{1}=FDSpace((2^{{\mathcal{O}}(n)})) in modern notation.

  • -

    For each i1𝑖1i\geq 1, let us denote by i+1superscript𝑖1{\mathcal{B}}^{i+1} the class of functions computable by a Turing machine in space bounded by B(x)𝐵𝑥B(\overrightarrow{x}), where B𝐵B is some function in isuperscript𝑖{\mathcal{B}}^{i}, fixed for each machine.

  • -

    For each i1𝑖1i\geq 1, let us denote by isubscriptsuperscript𝑖{\mathcal{B}}^{i}_{\star} the class of relations whose characteristic functions are in isuperscript𝑖{\mathcal{B}}^{i}.

Bennett shows that Ritchie’s classes isubscriptsuperscript𝑖{\mathcal{R}}^{i}_{\star} come in between spectra of various orders, but not in a very nice way. In contrast, he proves nice closure properties and an exact intercalation between the classes of spectra of consecutive orders for the classes isubscriptsuperscript𝑖{\mathcal{B}}^{i}_{\star}. However, all these classes are too big to be informative concerning relationship between first-order spectra and complexity classes.

In order to state the next theorem, let us denote by 𝒮isuperscript𝒮𝑖{\mathcal{S}}^{i} the class of (many-sorted) spectra of formulas of order i𝑖i. For instance Spec is the class of unary relations in 𝒮1superscript𝒮1{\mathcal{S}}^{1}.

Theorem A.8
  1. (i)

    1𝒮3subscriptsuperscript1superscript𝒮3{\mathcal{R}}^{1}_{\star}\subseteq{\mathcal{S}}^{3}and for each i2𝑖2i\geq 2, 𝒮2i2i𝒮2i+1superscript𝒮2𝑖2subscriptsuperscript𝑖superscript𝒮2𝑖1{\mathcal{S}}^{2i-2}\subseteq{\mathcal{R}}^{i}_{\star}\subseteq{\mathcal{S}}^{2i+1}. Moreover, for no i,j1𝑖𝑗1i,j\geq 1does i=𝒮jsubscriptsuperscript𝑖superscript𝒮𝑗{\mathcal{R}}^{i}_{\star}={\mathcal{S}}^{j}.

  2. (ii)

    For each i1𝑖1i\geq 1, 𝒮2ii𝒮2i+1superscript𝒮2𝑖subscriptsuperscript𝑖superscript𝒮2𝑖1{\mathcal{S}}^{2i}\subseteq{\mathcal{B}}^{i}_{\star}\subseteq{\mathcal{S}}^{2i+1}(equality or strictness is unknown) and iii+1subscriptsuperscript𝑖subscriptsuperscript𝑖subscriptsuperscript𝑖1{\mathcal{R}}^{i}_{\star}\subsetneq{\mathcal{B}}^{i}_{\star}\subsetneq{\mathcal{R}}^{i+1}_{\star}. Moreover, isubscriptsuperscript𝑖{\mathcal{B}}^{i}_{\star}is closed with respect to union, intersection, bounded quantifications, substitution of rudimentary functions, explicit transformations and finite modifications.

The proof of item (i) is based on recursive characterizations of the classes isubscriptsuperscript𝑖{\mathcal{R}}^{i}_{\star}, whereas item (ii) is stated without proof.

A.4 Mo’s paper

There is a late paper on the recursive aspect of spectra, namely [ar:Mo91], due to the Chinese logician Mo Shaokui in 1991, only available in Chinese (see the author’s English abstract in Mathematics Abstracts of Zentralblatt [misc:Mo-Zbl]). With the help of Zhu Ping [misc:zhuping], we have been able to state Mo’s result, and we propose a proof sketch.

Definition A.9.

Let x,x1,x2,𝑥subscript𝑥1subscript𝑥2x,x_{1},x_{2},\ldots and y,y1,y2,𝑦subscript𝑦1subscript𝑦2y,y_{1},y_{2},\ldots be two disjoint sets of variables. Let Mo be the smallest class of predicates over integers containing the relations x1+x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}+x_{2}=x_{3}, x1×x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}\times x_{2}=x_{3} (both for variables of type x𝑥x only) and Bit(y,x)𝐵𝑖𝑡𝑦𝑥Bit(y,x) (where the first variable is of type y𝑦y, the second of type x𝑥x) and closed under Boolean operations and (polynomially) bounded quantifications for variables of type x𝑥x only.

Note that a predicate in Mo has two types of variables, which do not play similar roles, and that Mo extends the rudimentary relations by the use of Bit(y,x)𝐵𝑖𝑡𝑦𝑥Bit(y,x) atoms, which are not definable because y𝑦y variables are not allowed in the atomic formulas for addition and multiplication.

Theorem A.10

{spec(φ)|φFO}={y12xj1yk2xjkR(x,y1,,yk)|k,j1,,jk1 and RMo}conditional-setspec𝜑𝜑𝐹𝑂conditional-setsubscript𝑦1superscript2superscript𝑥subscript𝑗1subscript𝑦𝑘superscript2superscript𝑥subscript𝑗𝑘𝑅𝑥subscript𝑦1subscript𝑦𝑘𝑘subscript𝑗1subscript𝑗𝑘1 and 𝑅Mo\{\textsc{spec}({\varphi})\ |\ \varphi\in FO\}=\{\exists y_{1}\leq 2^{x^{j_{1}}}\ldots\exists y_{k}\leq 2^{x^{j_{k}}}\\ R(x,y_{1},\ldots,y_{k})\ |\ k,j_{1},\ldots,j_{k}\geq 1\hbox{ and }R\in\textsc{Mo}\}

Proof.

It is a slightly modified version of the proof of Bennett’s theorem for second-order spectra.

- First inclusion: φ𝜑\varphi has a model with x𝑥x elements iff y12xj1yk2xjkR(x,y1,,yk)subscript𝑦1superscript2superscript𝑥subscript𝑗1subscript𝑦𝑘superscript2superscript𝑥subscript𝑗𝑘𝑅𝑥subscript𝑦1subscript𝑦𝑘\exists y_{1}\leq 2^{x^{j_{1}}}\ldots\exists y_{k}\leq 2^{x^{j_{k}}}\ R(x,y_{1},\ldots,y_{k}) is true.

We encode a predicate symbol Y𝑌Y with arity j𝑗j by the number y<2xj𝑦superscript2superscript𝑥𝑗y<2^{x^{j}} in the usual way. Hence, every atomic formula Y(x1,,xj)𝑌subscript𝑥1subscript𝑥𝑗Y(x_{1},\ldots,x_{j}) is translated into x<xj(Bit(y,x)x=x1+x2x++xjxj1)superscript𝑥superscript𝑥𝑗𝐵𝑖𝑡𝑦superscript𝑥superscript𝑥subscript𝑥1subscript𝑥2𝑥subscript𝑥𝑗superscript𝑥𝑗1\exists x^{\prime}<x^{j}(Bit(y,x^{\prime})\wedge x^{\prime}=x_{1}+x_{2}\cdot x+\ldots+x_{j}\cdot x^{j-1}). Every first-order quantification qxi𝑞subscript𝑥𝑖qx_{i} in φ𝜑\varphi is translated into the bounded quantification qxi<x𝑞subscript𝑥𝑖𝑥qx_{i}<x. The atomic formulas x1=x2subscript𝑥1subscript𝑥2x_{1}=x_{2} in φ𝜑\varphi remain unchanged. Let R𝑅R denote the obtained formula with free variables x,y1,,yk𝑥subscript𝑦1subscript𝑦𝑘x,y_{1},\ldots,y_{k}.

- Second inclusion: y12xj1yk2xjkR(x,y1,,yk)subscript𝑦1superscript2superscript𝑥subscript𝑗1subscript𝑦𝑘superscript2superscript𝑥subscript𝑗𝑘𝑅𝑥subscript𝑦1subscript𝑦𝑘\exists y_{1}\leq 2^{x^{j_{1}}}\ldots\exists y_{k}\leq 2^{x^{j_{k}}}R(x,y_{1},\ldots,y_{k}) is true iff φ𝜑\varphi has a model with x𝑥x elements.

First, we use three predicate symbols, namely (2)superscript2\leq^{(2)} which is bound to be a linear ordering on the vertices, +(3)superscript3+^{(3)} which is bound to be the associated addition and ×(3)superscript3\times^{(3)} which is bound to be the associated multiplication. Let us denote by Arithm1(,+,×)𝐴𝑟𝑖𝑡subscript𝑚1Arithm_{1}(\leq,+,\times) the first-order sentence expressing this requirement. Note that we may now use for free any usual arithmetic predicate on numbers bounded by x𝑥x.

Next, every free variable of type y𝑦y in R𝑅R and bounded by 2xjsuperscript2superscript𝑥𝑗2^{x^{j}} is translated into a predicate symbol Y𝑌Y of arity j𝑗j.

W.l.o.g., we may assume that all the bounded quantifications in R𝑅R are of type qx<xi𝑞superscript𝑥superscript𝑥𝑖qx^{\prime}<x^{i} for some i1𝑖1i\geq 1. The bounded quantification qx<xi𝑞superscript𝑥superscript𝑥𝑖qx^{\prime}<x^{i} in R𝑅R is simply translated into qx1qxi𝑞subscriptsuperscript𝑥1𝑞subscriptsuperscript𝑥𝑖qx^{\prime}_{1}\ldots qx^{\prime}_{i} and xsuperscript𝑥x^{\prime} is represented by the i𝑖i-tuple (x1,,xi)subscriptsuperscript𝑥1subscriptsuperscript𝑥𝑖(x^{\prime}_{1},\ldots,x^{\prime}_{i}).

There are three types of atomic formulas in R𝑅R. Let us first consider formulas x1+x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}+x_{2}=x_{3} and x1×x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}\times x_{2}=x_{3}. Assume we have x1<xi1xj,x2<xi2xj,x3<xi3xjformulae-sequencesubscript𝑥1superscript𝑥subscript𝑖1superscript𝑥𝑗subscript𝑥2superscript𝑥subscript𝑖2superscript𝑥𝑗subscript𝑥3superscript𝑥subscript𝑖3superscript𝑥𝑗x_{1}<x^{i_{1}}\leq x^{j},x_{2}<x^{i_{2}}\leq x^{j},x_{3}<x^{i_{3}}\leq x^{j}, with j=max(i1,i2,i3)𝑗subscript𝑖1subscript𝑖2subscript𝑖3j=\max(i_{1},i_{2},i_{3}). The variables x1,x2,x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1},x_{2},x_{3} correspond to the tuples (x11,,x1j),(x21,,x2j),(x31,,x3j)superscriptsubscript𝑥11superscriptsubscript𝑥1𝑗superscriptsubscript𝑥21superscriptsubscript𝑥2𝑗superscriptsubscript𝑥31superscriptsubscript𝑥3𝑗(x_{1}^{1},\ldots,x_{1}^{j}),(x_{2}^{1},\ldots,x_{2}^{j}),(x_{3}^{1},\ldots,x_{3}^{j}) (padding with as many 00s as necessary). This includes the case x<x2𝑥superscript𝑥2x<x^{2} so that x𝑥x corresponds to (0,1,0,,0)0100(0,1,0,\ldots,0). Then x1+x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}+x_{2}=x_{3} is changed into Addj(x11,,x1j,x21,,x2j,x31,,x3j)𝐴𝑑subscript𝑑𝑗superscriptsubscript𝑥11superscriptsubscript𝑥1𝑗superscriptsubscript𝑥21superscriptsubscript𝑥2𝑗superscriptsubscript𝑥31superscriptsubscript𝑥3𝑗Add_{j}(x_{1}^{1},\ldots,x_{1}^{j},x_{2}^{1},\ldots,x_{2}^{j},x_{3}^{1},\ldots,x_{3}^{j}) and x1×x2=x3subscript𝑥1subscript𝑥2subscript𝑥3x_{1}\times x_{2}=x_{3} is changed into Multj(x11,,x1j,x21,,x2j,x31,,x3j)𝑀𝑢𝑙subscript𝑡𝑗superscriptsubscript𝑥11superscriptsubscript𝑥1𝑗superscriptsubscript𝑥21superscriptsubscript𝑥2𝑗superscriptsubscript𝑥31superscriptsubscript𝑥3𝑗Mult_{j}(x_{1}^{1},\ldots,x_{1}^{j},x_{2}^{1},\ldots,x_{2}^{j},x_{3}^{1},\ldots,x_{3}^{j}), where the formulas Addj𝐴𝑑subscript𝑑𝑗Add_{j} and Multj𝑀𝑢𝑙subscript𝑡𝑗Mult_{j} express addition and multiplication on j𝑗j-tuples in x𝑥x-ary notation. The case of atomic formulas Bit(y,x)𝐵𝑖𝑡𝑦superscript𝑥Bit(y,x^{\prime}) is dealt with similarly. Assume we have y<2xj𝑦superscript2superscript𝑥𝑗y<2^{x^{j}}, and x<xisuperscript𝑥superscript𝑥𝑖x^{\prime}<x^{i} then there are three possibilities. If i<j𝑖𝑗i<j, then Bit(y,x)𝐵𝑖𝑡𝑦superscript𝑥Bit(y,x^{\prime}) is changed into Y(x1,,xi,0,,0)𝑌subscriptsuperscript𝑥1subscriptsuperscript𝑥𝑖00Y(x^{\prime}_{1},\ldots,x^{\prime}_{i},0,\ldots,0). If i=j𝑖𝑗i=j, then Bit(y,x)𝐵𝑖𝑡𝑦superscript𝑥Bit(y,x^{\prime}) is changed into Y(x1,,xj)𝑌subscriptsuperscript𝑥1subscriptsuperscript𝑥𝑗Y(x^{\prime}_{1},\ldots,x^{\prime}_{j}). If i>j𝑖𝑗i>j, then Bit(y,x)𝐵𝑖𝑡𝑦superscript𝑥Bit(y,x^{\prime}) is changed into Y(x1,,xj)xj+1=0xi=0𝑌subscriptsuperscript𝑥1subscriptsuperscript𝑥𝑗subscript𝑥𝑗10subscript𝑥𝑖0Y(x^{\prime}_{1},\ldots,x^{\prime}_{j})\wedge x_{j+1}=0\wedge\ldots\wedge x_{i}=0. Similarly, Bit(y,x)𝐵𝑖𝑡𝑦𝑥Bit(y,x) (which may also occur in R𝑅R because x𝑥x is a free variable of type x𝑥x) translates into Y(0,1,0,,0)𝑌0100Y(0,1,0,\ldots,0) if Y𝑌Y has arity 222 at least and into 00000\neq 0 (false) if Y𝑌Y is unary. Let us denote by Rsuperscript𝑅R^{\prime} the first-order sentence thus obtained.

Finally, φ𝜑\varphi is Arithm1(,+,×)R𝐴𝑟𝑖𝑡subscript𝑚1superscript𝑅Arithm_{1}(\leq,+,\times)\wedge R^{\prime}. ∎

Note that, in order to uniformize the proofs with that of Bennett’s theorem and help comparison, we have slightly modified the original statement in two points. First, Mo uses functional vocabularies, which yields bounds of type xxjsuperscript𝑥superscript𝑥𝑗x^{x^{j}} for y𝑦y type variables and the use of atoms Digitx(y,x)=x′′𝐷𝑖𝑔𝑖subscript𝑡𝑥𝑦superscript𝑥superscript𝑥′′Digit_{x}(y,x^{\prime})=x^{\prime\prime} (meaning “the digit of rank xsuperscript𝑥x^{\prime} of y𝑦y in x𝑥x-ary notation is x′′superscript𝑥′′x^{\prime\prime}”) instead of Bit(y,x)𝐵𝑖𝑡𝑦𝑥Bit(y,x). Second, the relation R𝑅R is originally described using Grzegorczyk’s classes 0subscriptsuperscript0{\mathcal{E}}^{0}_{\star}, 1subscriptsuperscript1{\mathcal{E}}^{1}_{\star} or 2subscriptsuperscript2{\mathcal{E}}^{2}_{\star} instead of Rud.

Finally, concerning Asser’s problem (so-called second Scholz problem here), the author’s abstract [misc:Mo-Zbl] asserts that:

It is also shown that if all the functions in 0superscript0{\mathcal{E}}^{0} can be enumerated by a function in 2superscript2{\mathcal{E}}^{2}, then the complement of a certain finite spectrum cannot be any finite spectrum. Hence, under such a condition, the answer to the second Scholz problem is negative.

Hence, the conditional negative solution proposed here seems to be linked to some separation of 0superscript0{\mathcal{E}}^{0} and 2superscript2{\mathcal{E}}^{2} via diagonalization, which seems unlikely (the classical proof of separation of isuperscript𝑖{\mathcal{E}}^{i} and i+1superscript𝑖1{\mathcal{E}}^{i+1} uses the bound on the growth of the functions in isuperscript𝑖{\mathcal{E}}^{i}).

Appendix B A compendium of questions and conjectures

In this appendix we list, for convenience, all the Open Questions (OQ)and stated in our survey.

From Section 2

OQ 1

(Scholz) Characterize the sets of natural numbers that are first order spectra.

OQ 2

(Asser) Is the complement of a first order spectrum a first order spectrum?

OQ 3

Is the complement of a spectrum of an MSOL-sentence again a spectrum of an MSOL-sentence?

OQ 4

(Fagin) Is every first order spectrum the spectrum of a first order sentence of one binary relation symbol?

OQ 5

(Fagin) Is every first order spectrum the spectrum of a first order sentence over simple graphs?

OQ 6

(Fagin) Is every first order spectrum the spectrum of a first order sentence over planar graphs?

From Section 3

We recall a few definitions: Let M+𝑀superscriptM\subseteq{\mathbb{N}}^{+}, and let m1,m2,subscript𝑚1subscript𝑚2m_{1},m_{2},\ldots an enumeration of M𝑀M ordered by the size of its elements. χM(n)subscript𝜒𝑀𝑛\chi_{M}(n) is the characteristic function of M𝑀M. ηM(n)subscript𝜂𝑀𝑛\eta_{M}(n) is the enumeration function of M𝑀M, i.e., ηM(n)=mnsubscript𝜂𝑀𝑛subscript𝑚𝑛\eta_{M}(n)=m_{n} if it exists, and ηM(n)=0subscript𝜂𝑀𝑛0\eta_{M}(n)=0 otherwise. Finally, δM(n)=ηM(n+1)ηM(n)subscript𝛿𝑀𝑛subscript𝜂𝑀𝑛1subscript𝜂𝑀𝑛\delta_{M}(n)=\eta_{M}(n+1)-\eta_{M}(n).

OQ 7

Which strictly increasing sequences of positive integers, are enumerating functions of spectra? For instance, how fast can they grow?

OQ 8

If M𝑀M is a spectrum how can δM(n)subscript𝛿𝑀𝑛\delta_{M}(n) behave?

OQ 9

Let π(n)𝜋𝑛\pi(n) be the counting function of the primes, and let li(n)𝑙𝑖𝑛li(n) be its approximation by the integral logarithm. Define
π+={n:π(n)li(n)>0}superscript𝜋conditional-set𝑛𝜋𝑛𝑙𝑖𝑛0\pi^{+}=\{n:\pi(n)-li(n)>0\} and π={n:π(n)li(n)0}superscript𝜋conditional-set𝑛𝜋𝑛𝑙𝑖𝑛0\pi^{-}=\{n:\pi(n)-li(n)\geq 0\}.
Are the sets π+superscript𝜋\pi^{+} and πsuperscript𝜋\pi^{-} spectra?

OQ 10

Let ϕitalic-ϕ\phi a first order sentence, and fϕsubscript𝑓italic-ϕf_{\phi} be the associated labeled counting function that is monotonically increasing. Is there a first order sentence ψ𝜓\psi such that for all n𝑛n we have fϕ(n)=ηψ(n)subscript𝑓italic-ϕ𝑛subscript𝜂𝜓𝑛f_{\phi}(n)=\eta_{\psi}(n)?

OQ 11

Are there any irrational algebraic reals which are spectral?

OQ 13

Is every automatic real a spectral real?

The binary string complexity of a real in binary presentation is the function pr(m)subscript𝑝𝑟𝑚p_{r}(m) which counts, for each m𝑚m the number of distinct binary words w𝑤w of length m𝑚m occurring in r𝑟r.

OQ 14

Does the binary string complexity pr(m)subscript𝑝𝑟𝑚p_{r}(m) of a spectral real r𝑟r satisfy

lim infmpr(m)2m<1subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚superscript2𝑚1\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{2^{m}}<1

or even

lim infmpr(m)2m=1?subscriptlimit-infimum𝑚subscript𝑝𝑟𝑚superscript2𝑚1?\liminf_{m\rightarrow\infty}\frac{p_{r}(m)}{2^{m}}=1?
OQ 15

Are the b𝑏b-adic 2superscript2\mathcal{E}^{2}-computable reals 2superscript2\mathcal{E}^{2}-Cauchy computable?

OQ 16

Is the inclusion low2subscript𝑙𝑜𝑤superscript2\mathcal{F}_{low}\subseteq\mathcal{E}^{2} proper?

From Section 4

OQ 17

Are the inclusions in 012superscriptsubscript0superscriptsubscript1superscriptsubscript2{\mathcal{E}}_{\star}^{0}\subseteq{\mathcal{E}}_{\star}^{1}\subseteq{\mathcal{E}}_{\star}^{2} proper?

OQ 18

Additionally, is the inclusion Rud0Rudsubscriptsuperscript0\textsc{Rud}\subseteq{\mathcal{E}}^{0}_{\star} proper?

OQ 19

Is the inclusion in 2Specsuperscriptsubscript2Spec{\mathcal{E}}_{\star}^{2}\subseteq\textsc{Spec} proper?

OQ 20

Is the inclusion RudSpecRudSpec\textsc{Rud}\subseteq\textsc{Spec} proper?

From Section 5

OQ 21
  1. (i)

    Are any of the inclusions
    LNLLNL\mathrm{L}\subseteq\mathrm{NL}, LINSPACENLINSPACELINSPACENLINSPACE\mathrm{LINSPACE}\subseteq\mathrm{NLINSPACE}, PNPPNP\mathrm{P}\subseteq\mathrm{NP} and ENEENE\mathrm{E}\subseteq\mathrm{NE} proper?

  2. (ii)

    Do any of the equalities NP=coNPNPcoNP\mathrm{NP}=\mathrm{coNP} and NE=coNENEcoNE\mathrm{NE}=\mathrm{coNE} hold?

OQ 22

Are the inclusions LRud=LTHLINSPACELRudLTHLINSPACE\mathrm{L}\subseteq\textsc{Rud}=\mathrm{LTH}\subseteq\mathrm{LINSPACE} proper?

OQ 23

Is every spectrum the spectrum of a categorical sentence ?

OQ 24

Is there a universal (complete) spectrum S0subscript𝑆0S_{0} and a suitable notion of reduction such that every spectrum S𝑆S is reducible to S0subscript𝑆0S_{0}?

OQ 25

Is the inclusion d1𝑑1d\geq 1, NTIME(2dn)specd(+)NTIMEsuperscript2𝑑𝑛subscriptspec𝑑\mathrm{NTIME}({2^{d\cdot n}})\subseteq{\textsc{spec}}_{d}(+) proper?

OQ 26

Is there a characterization as a complexity class of the classes f-specdsubscriptf-spec𝑑{\textsc{f-spec}}_{d} for all d1𝑑1d\geq 1 ?

From Section 6

OQ 27

Is every first order spectrum in spec21superscriptsubscriptspec21{\textsc{spec}}_{2}^{1}?

OQ 28

Is the following hierarchy proper:

f-spec11f-spec12f-spec13f-spec1k?superscriptsubscriptf-spec11superscriptsubscriptf-spec12superscriptsubscriptf-spec13superscriptsubscriptf-spec1𝑘?{\textsc{f-spec}}_{1}^{1}\subset{\textsc{f-spec}}_{1}^{2}\subseteq{\textsc{f-spec}}_{1}^{3}\subseteq\ldots\subseteq{\textsc{f-spec}}_{1}^{k}\subseteq\ldots?
OQ 29

Is Rud=f-spec12Rudsuperscriptsubscriptf-spec12\textsc{Rud}={\textsc{f-spec}}_{1}^{2}?

OQ 30

Is spec21=f-spec1superscriptsubscriptspec21subscriptf-spec1{\textsc{spec}}_{2}^{1}={\textsc{f-spec}}_{1} or even spec21=f-spec12superscriptsubscriptspec21superscriptsubscriptf-spec12{\textsc{spec}}_{2}^{1}={\textsc{f-spec}}_{1}^{2}?

OQ 31

Is the following hierarchy proper:

spec1spec2spec3speck?subscriptspec1subscriptspec2subscriptspec3subscriptspec𝑘?{\textsc{spec}}_{1}\subseteq{\textsc{spec}}_{2}\subseteq{\textsc{spec}}_{3}\subseteq\ldots\subseteq{\textsc{spec}}_{k}\subseteq\ldots?

The same question may be asked for spectra over i𝑖i-ary functions.

OQ 32

Does the hierarchy SpFOLk𝑆𝑝superscriptFOL𝑘Sp\textsc{FOL}^{k} collapse at level 333?

From Section 7

OQ 33

(Ash’s constant conjecture)
Is it true that for any finite relational vocabulary σ𝜎\sigma and any positive integer k𝑘k, the Ash function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually constant?

OQ 34

(Ash’s periodic conjecture)
Is it true that for any finite relational vocabulary σ𝜎\sigma and any positive integer k𝑘k, the Ash function Nσ,ksubscript𝑁𝜎𝑘N_{\sigma,k} is eventually periodic?

OQ 35

(Ultra-weak Ash conjecture)
Is it true that for any finite relational vocabulary σ𝜎\sigma, for any positive integer k𝑘k and for all i+𝑖superscripti\in\mathbb{N}^{+}, the set Nσ,k1(i)superscriptsubscript𝑁𝜎𝑘1𝑖N_{\sigma,k}^{-1}(i) is a spectrum?

OQ 36

(Ultra-weak Ash conjecture for classes of structures)
Is it true that for any finite relational vocabulary σ𝜎\sigma, for any first-order σ𝜎\sigma-sentence ΨΨ\Psi, for any positive integer k𝑘k and for all i𝑖i\in\mathbb{N}, the set NModf(Ψ),k1(i)superscriptsubscript𝑁𝑀𝑜subscript𝑑𝑓Ψ𝑘1𝑖N_{Mod_{f}(\Psi),k}^{-1}(i) is a spectrum?

From Section 8

OQ 37

What is the complexity of checking whether a τ𝜏\tau-structure 𝔄𝔄\mathfrak{A} has patch-width at most k𝑘k, for a fixed k𝑘k?

From Section 8

OQ38

Is every spectrum representable as {n+1|f(n)=0}conditional-set𝑛1𝑓𝑛0\{n+1\ |\ f(n)=0\} for some function fK𝑓𝐾f\in K?

Recall that K𝐾K is the class of functions defined in Section A Definition A.2.

References

  • [1] \bibfitemar:AdamczewskiBugeaud07 \guyB.B.Adamczewski and \guyY.Y.Bugeaud 20070 \guysmagicB. Adamczewski \biband Y. Bugeaud On the complexity of algebraic numbers I: Expansion in integer bases, Ann. of Math., vol.\weaktie165\yearmagic(2007), pp.\weaktie547–565. \TheSortKeyIsadamczewski b bugeaud y 2007 on the complexity of algebraic numbers i expansion in integer bases
  • [2] \bibfitempr:AdlerAdler08 \guyH.H.Adler and \guyI.I.Adler 20080 \guysmagicH. Adler \biband I. Adler A note on clique-width and tree-width on structures, Arxiv preprint arXiv:0806.0103v2, [cs.LO]\yearmagic,2008. \TheSortKeyIsadler h adler i 2008 note on clique width and tree width on structures
  • [3] \bibfitemar:AjtaiF90 \guyM.MiklosAjtai and \guyR.RonaldFagin 19900 \guysmagicMiklos Ajtai \biband Ronald Fagin Reachability is harder for directed than for undirected finite graphs, \jslname, vol.\weaktie55\yearmagic(1990), no.\weaktie1, pp.\weaktie113–150. \TheSortKeyIsajtai miklos fagin ronald 1990 reachability is harder for directed than for undirected finite graphs
  • [4] \bibfitemar:AllenderGore91 \guyE.EricAllender and \guyV.VivekGore 19910 \guysmagicEric Allender \biband Vivek Gore Rudimentary reductions revisited, Inf. Process. Lett., vol.\weaktie40\yearmagic(1991), no.\weaktie2, pp.\weaktie89–95. \TheSortKeyIsallender eric gore vivek 1991 rudimentary reductions revisited
  • [5] \bibfitemar:ArnborgCorneilProskurowski \guyS.S.Arnborg, \guyD.D.G.Corneil, and \guyA.A.Proskurowski 19870 \guysmagicS. Arnborg, D.G. Corneil, \biband A. Proskurowski Complexity of finding embedding in a k–tree, SIAM. J. Algebraic Discrete Methods, vol.\weaktie8\yearmagic(1987), pp.\weaktie277–284. \TheSortKeyIsarnborg s corneil dg proskurowski a 1987 complexity of finding embedding in a k tree
  • [6] \bibfitemar:Ash94 \guyC. J.Christopher J.Ash 19940 \guysmagicChristopher J. Ash A conjecture concerning the spectrum of a sentence, Mathematical Logic Quartely, vol.\weaktie40\yearmagic(1994), pp.\weaktie393–397. \TheSortKeyIsash christopher j 1994 conjecture concerning the spectrum of a sentence
  • [7] \bibfitemar:Asser55 \guyG.GünterAsser 19550 \guysmagicGünter Asser Das Repräsentenproblem in Prädikatenkalkül der ersten Stufe mit Identität, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie1\yearmagic(1955), pp.\weaktie252–263. \TheSortKeyIsasser gunter 1955 das reprasentenproblem in pradikatenkalkul der ersten stufe mit identitat
  • [8] \bibfitemar:BBCP04 \guyD.D.H.Bailey, \guyJ.J.M.Borwein, \guyR.R.E.Crandall, and \guyC.C.Pomerance 20040 \guysmagicD.H. Bailey, J.M. Borwein, R.E. Crandall, \biband C. Pomerance On the binary expansions of algebraic numbers, J. Théor. Nombres Bordeaux, vol.\weaktie16\yearmagic(2004), pp.\weaktie487–518. \TheSortKeyIsbailey dh borwein jm crandall re pomerance c 2004 on the binary expansions of algebraic numbers
  • [9] \bibfitemphd:Bennett62 \guyJ. H.James H.Bennett 19620 \guysmagicJames H. Bennett On spectra, Ph.D. thesis, Princeton University, Princeton, New Jersey, USA\yearmagic,1962. \TheSortKeyIsbennett james h 1962 on spectra
  • [10] \bibfitemar:Bodlaender93 \guyH.H.Bodlaender 19930 \guysmagicH. Bodlaender A tourist guide through tree width, Acta Cybernetica, vol.\weaktie11\yearmagic(1993), pp.\weaktie1–23. \TheSortKeyIsbodlaender h 1993 tourist guide through tree width
  • [11] \bibritemar:Bodlaender98 \guyH.H.Bodlaender 19980 \guysmagic\bysame A partial k-arboretum of graphs with bounded tree width (tutorial), Theoretical Computer Science, vol.\weaktie208\yearmagic(1998), pp.\weaktie1–45. \TheSortKeyIsbodlaender h 1998 partial k arboretum of graphs with bounded tree width tutorial
  • [12] \bibfitemar:Borel50 \guyE.E.Borel 19500 \guysmagicE. Borel Sur les chiffres décimaux de 22\sqrt{2} et divers problèmes de probabilités en chaînes, C. R. Acad. Sci. Paris, vol.\weaktie230\yearmagic(1950), pp.\weaktie591–593. \TheSortKeyIsborel e 1950 sur les chiffres decimaux de sqrt2 et divers problemes de probabilites en chaines
  • [13] \bibfitemar:Calude87 \guyC.CristianCalude 19870 \guysmagicCristian Calude Super-exponentials nonprimitive recursive, but rudimentary., Inf. Process. Lett., vol.\weaktie25\yearmagic(1987), no.\weaktie5, pp.\weaktie311–316. \TheSortKeyIscalude cristian 1987 super exponentials nonprimitive recursive but rudimentary
  • [14] \bibfitemphd:Chateau03 \guyA.A.Chateau 20030 \guysmagicA. Chateau Utilisation des destinées pour la décision et sa complexité dans le cas de formules à profondeur de quantification bornée sur des structures logiques finies et infinies, Ph.D. thesis, Université d’Auvergne\yearmagic,2003. \TheSortKeyIschateau a 2003 utilisation des destinees pour la decision et sa complexite dans le cas de formules a profondeur de quantification bornee sur des structures logiques finies et infinies
  • [15] \bibfitemar:ChateauM06 \guyA.AnnieChateau and \guyM.MalikaMore 20060 \guysmagicAnnie Chateau \biband Malika More The ultraweak Ash conjecture and some particular cases, Mathematical Logic Quarterly, vol.\weaktie52\yearmagic(2006), no.\weaktie1, pp.\weaktie4–13. \TheSortKeyIschateau annie more malika 2006 ultraweak ash conjecture and some particular cases
  • [16] \bibfitemar:ChenSuZheng2007 \guyQ.QingliangChen, \guyK.KaileSu, and \guyX.XizhongZheng 2007a0 \guysmagicQingliang Chen, Kaile Su, \biband Xizhong Zheng Primitive recursive real numbers, Mathematical Logic Quarterly, vol.\weaktie53\yearmagic(2007), no.\weaktie4-5, pp.\weaktie365–380. \TheSortKeyIschen qingliang su kaile zheng xizhong 2007 primitive recursive real numbers
  • [17] \bibritemar:ChenSuZheng2007a \guyQ.QingliangChen, \guyK.KaileSu, and \guyX.XizhongZheng 2007b0 \guysmagic\bysame Primitive recursiveness of real numbers under different representations, Electronic Notes in Theoretical Computer Science, vol.\weaktie167\yearmagic(2007), pp.\weaktie303–324. \TheSortKeyIschen qingliang su kaile zheng xizhong 2007 primitive recursiveness of real numbers under different representations
  • [18] \bibfitemphd:Christen74 \guyC. A.Claude A.Christen 19740 \guysmagicClaude A. Christen Spektralproblem und Komplexitätstheorie, Ph.D. thesis, Eidgenössische Technische Hochschule (ETH), Zürich, Switzerland\yearmagic,1974. \TheSortKeyIschristen claude a 1974 spektralproblem und komplexitatstheorie
  • [19] \bibritemproc:Christen76 \guyC. A.Claude A.Christen 19760 \guysmagic\bysame Spektralproblem und Komplexitätstheorie, Komplexität von entscheidungsproblemen: ein seminar (Ernst Specker \biband Volker Strassen, editors), Lecture Notes in Computer Science, vol. 43, Springer\yearmagic,1976, pp.\weaktie102–126. \TheSortKeyIschristen claude a 1976 spektralproblem und komplexitatstheorie
  • [20] \bibfitemar:Cobham68 \guyA.A.Cobham 19680 \guysmagicA. Cobham On the Hartmanis-Stearns problem for a class of tag machine, Ieee conference record of 1968 ninth annual symposium on switching and automata theory, schenectady, new york, IEEE Computer Society Press\yearmagic,1968, pp.\weaktie51–60. \TheSortKeyIscobham a 1968 on the hartmanis stearns problem for a class of tag machine
  • [21] \bibfitemar:HensonCompton \guyK.K.J.Compton and \guyC.C.W.Henson 19900 \guysmagicK.J. Compton \biband C.W. Henson A uniform method for proving lower bounds on the computational complexity of logical theories, Annals of Pure and Applied Logic, vol.\weaktie48\yearmagic(1990), pp.\weaktie1–79. \TheSortKeyIscompton kj henson cw 1990 uniform method for proving lower bounds on the computational complexity of logical theories
  • [22] \bibfitemar:Corneil-etal99 \guyD. G.D. G.Corneil, \guyM.M.Habib, \guyJ.-M.J.-M.Lanlignel, \guyB.B.Reed, and \guyU.U.Rotics 20000 \guysmagicD. G. Corneil, M. Habib, J.-M. Lanlignel, B. Reed, \biband U. Rotics Polynomial time recognition of clique-width 3absent3\leq 3 graphs, Proceedings of latin’2000, Lecture Notes in Computer Science, vol. 1776, Springer\yearmagic,2000, pp.\weaktie126–134. \TheSortKeyIscorneil d g habib m lanlignel j m reed b rotics u 2000 polynomial time recognition of clique width leq 3 graphs
  • [23] \bibfitemar:courcelle90 \guyB.B.Courcelle 19900 \guysmagicB. Courcelle The monadic second–order logic of graphs I: Recognizable sets of finite graphs, Information and Computation, vol.\weaktie85\yearmagic(1990), pp.\weaktie12–75. \TheSortKeyIscourcelle b 1990 monadic second order logic of graphs i recognizable sets of finite graphs
  • [24] \bibritemar:CourcelleIC95 \guyB.B.Courcelle 19950 \guysmagic\bysame Structural properties of context-free sets of graphs generated by vertex replacement, ic, vol.\weaktie116\yearmagic(1995), pp.\weaktie275–293. \TheSortKeyIscourcelle b 1995 structural properties of context free sets of graphs generated by vertex replacement
  • [25] \bibfitemar:CourcelleEngelfrietRozenberg93 \guyB.B.Courcelle, \guyJ.J.Engelfriet, and \guyG.G.Rozenberg 19930 \guysmagicB. Courcelle, J. Engelfriet, \biband G. Rozenberg Handle-rewriting hypergraph grammars, J. Comput. System Sci., vol.\weaktie46\yearmagic(1993), pp.\weaktie218–270. \TheSortKeyIscourcelle b engelfriet j rozenberg g 1993 handle rewriting hypergraph grammars
  • [26] \bibfitemar:CourcelleMakowsky00 \guyB.B.Courcelle and \guyJ.J.A.Makowsky 20020 \guysmagicB. Courcelle \biband J.A. Makowsky Fusion on relational structures and the verification of monadic second order properties, Mathematical Structures in Computer Science, vol.\weaktie12.2\yearmagic(2002), pp.\weaktie203–235. \TheSortKeyIscourcelle b makowsky ja 2002 fusion on relational structures and the verification of monadic second order properties
  • [27] \bibfitemar:CourcelleOlariu00 \guyB.B.Courcelle and \guyS.S.Olariu 20000 \guysmagicB. Courcelle \biband S. Olariu Upper bounds to the clique–width of graphs, Discrete Applied Mathematics, vol.\weaktie101\yearmagic(2000), pp.\weaktie77–114. \TheSortKeyIscourcelle b olariu s 2000 upper bounds to the clique width of graphs
  • [28] \bibfitemar:Csillag47 \guyP.PaulCsillag 19470 \guysmagicPaul Csillag Eine Bemerkung zur Auflösung der eingeschachtelten Rekursion., Acta Univ. Szeged., Acta Sci. Math., vol.\weaktie11\yearmagic(1947), pp.\weaktie169–173 (German). \TheSortKeyIscsillag paul 1947 eine bemerkung zur auflosung der eingeschachtelten rekursion
  • [29] \bibfitemmisc:Curry-mr \guyH. B.Haskell B.Curry 0 \guysmagicHaskell B. Curry Review of [ar:Mostowski56], MR0086766 (19,240c). \TheSortKeyIscurry haskell b review of citearmostowski56
  • [30] \bibfitemphd:dahlhaus \guyE.E.Dahlhaus 19820 \guysmagicE. Dahlhaus Combinatorial and logical properties of reductions to some complete problems in NP and NL, Ph.D. thesis, Technische Universität Berlin, Germany\yearmagic,1982. \TheSortKeyIsdahlhaus e 1982 combinatorial and logical properties of reductions to some complete problems in np and nl
  • [31] \bibfitembk:Diestel96 \guyR.R.Diestel 19960 \guysmagicR. Diestel Graph theory, Graduate Texts in Mathematics, Springer\yearmagic,1996. \TheSortKeyIsdiestel r 1996 graph theory
  • [32] \bibfitempr:DoronShelah06 \guyM.M.Doron and \guyS.S.Shelah 20060 \guysmagicM. Doron \biband S. Shelah Bounded m𝑚m-ary patch-width are equivalent for m>2𝑚2m>2, Electronically available at arXiv:math/0607375v1\yearmagic,2006. \TheSortKeyIsdoron m shelah s 2006 bounded m ary patch width are equivalent for m 2
  • [33] \bibfitemphd:Durand96 \guyA.ArnaudDurand 19960 \guysmagicArnaud Durand Hiérarchies de définissabilité logique au second ordre, Ph.D. thesis, Université de Caen, Caen, France\yearmagic,1996. \TheSortKeyIsdurand arnaud 1996 hierarchies de definissabilite logique au second ordre
  • [34] \bibfitemproc:DurandFL97 \guyA.ArnaudDurand, \guyR.RonaldFagin, and \guyB.BerndLoescher 19980 \guysmagicArnaud Durand, Ronald Fagin, \biband Bernd Loescher Spectra with only unary function symbols, Computer science logic, 11th international workshop, csl’97, annual conference of the eacsl, aarhus, denmark, august 23-29, 1997, selected papers (Mogens Nielsen \biband Wolfgang Thomas, editors), Lecture Notes in Computer Science, vol. 1414, Springer\yearmagic,1998, pp.\weaktie189–202. \TheSortKeyIsdurand arnaud fagin ronald loescher bernd 1998 spectra with only unary function symbols
  • [35] \bibfitemar:DurandR96 \guyA.ArnaudDurand and \guyS.SolomompiononaRanaivoson 19960 \guysmagicArnaud Durand \biband Solomompionona Ranaivoson First-order spectra with one binary predicate, Theoretical Computer Science, vol.\weaktie160\yearmagic(1996), no.\weaktie1&2, pp.\weaktie189–202. \TheSortKeyIsdurand arnaud ranaivoson solomompionona 1996 first order spectra with one binary predicate
  • [36] \bibfitembk:EbbinghausF95 \guyH.-D.Heinz-DieterEbbinghaus and \guyJ.JörgFlum 19950 \guysmagicHeinz-Dieter Ebbinghaus \biband Jörg Flum Finite model theory, Perspectives in Mathematical Logic, Springer\yearmagic,1995. \TheSortKeyIsebbinghaus heinz dieter flum jorg 1995 finite model theory
  • [37] \bibfitemar:Ehrenfeucht61 \guyA.A.Ehrenfeucht 19610 \guysmagicA. Ehrenfeucht An application of games to the completeness problem for formalized theories, Fondamenta Mathematicae, vol.\weaktie49\yearmagic(1961), pp.\weaktie129–141. \TheSortKeyIsehrenfeucht a 1961 application of games to the completeness problem for formalized theories
  • [38] \bibfitemar:ErshovLTT65 \guyY.Y.Ershov, \guyI.I.Lavrov, \guyA.A.Taimanov, and \guyM.M.Taitslin 19650 \guysmagicY. Ershov, I. Lavrov, A. Taimanov, \biband M. Taitslin Elementary theories, Russian Mathematical Surveys, vol.\weaktie20\yearmagic(1965), pp.\weaktie35–105. \TheSortKeyIsershov y lavrov i taimanov a taitslin m 1965 elementary theories
  • [39] \bibfitemar:EsbelinM98 \guyH.-A.Henri-AlexEsbelin and \guyM.MalikaMore 19980 \guysmagicHenri-Alex Esbelin \biband Malika More Rudimentary relations and primitive recursion : a toolbox, Theoretical Computer Science, vol.\weaktie193\yearmagic(1998), no.\weaktie1-2, pp.\weaktie129–148. \TheSortKeyIsesbelin henri alex more malika 1998 rudimentary relations and primitive recursion a toolbox
  • [40] \bibfitemphd:Fagin73 \guyR.RonaldFagin 19730 \guysmagicRonald Fagin Contributions to the model theory of finite structures, Ph.D. thesis, University of California, Berkeley, California\yearmagic,1973. \TheSortKeyIsfagin ronald 1973 contributions to the model theory of finite structures
  • [41] \bibritemproc:Fagin74 \guyR.RonaldFagin 19740 \guysmagic\bysame Generalized first-order spectra and polynomial-time recognizable sets, Complexity of computation (proc. siam-ams sympos. appl. math., new york, 1973) (Providence, R.I.) (Richard M. Karp, editor), SIAM-AMS Proceedings, vol. 7, American Mathematical Society\yearmagic,1974, pp.\weaktie43–73. \TheSortKeyIsfagin ronald 1974 generalized first order spectra and polynomial time recognizable sets
  • [42] \bibritemar:Fagin75b \guyR.RonaldFagin 1975a0 \guysmagic\bysame Monadic generalized spectra, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie21\yearmagic(1975), pp.\weaktie89–96. \TheSortKeyIsfagin ronald 1975 monadic generalized spectra
  • [43] \bibritemar:Fagin75a \guyR.RonaldFagin 1975b0 \guysmagic\bysame A spectrum hierarchy, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie21\yearmagic(1975), pp.\weaktie123–134. \TheSortKeyIsfagin ronald 1975 spectrum hierarchy
  • [44] \bibritemar:Fagin93 \guyR.RonaldFagin 19930 \guysmagic\bysame Finite-model theory - a personal perspective, Theoretical Computer Science\yearmagic,(1993), no.\weaktie116, pp.\weaktiepp.3–31. \TheSortKeyIsfagin ronald 1993 finite model theory a personal perspective
  • [45] \bibfitemar:FederVardi99 \guyT.T.Feder and \guyM.M.Vardi 19990 \guysmagicT. Feder \biband M. Vardi The computational structure of monotone monadic SNP and constraint satisfaction: A study through Datalog and group theory, SIAM Journal on Computing, vol.\weaktie28\yearmagic(1999), pp.\weaktie57–104. \TheSortKeyIsfeder t vardi m 1999 computational structure of monotone monadic snp and constraint satisfaction a study through datalog and group theory
  • [46] \bibfitempr:FellowsRosamondRoticsSzeider2006 \guyM. R.Michael R.Fellows, \guyF. A.Frances A.Rosamond, \guyU.UdiRotics, and \guyS.StefanSzeider 20060 \guysmagicMichael R. Fellows, Frances A. Rosamond, Udi Rotics, \biband Stefan Szeider Clique-width minimization is np-hard, Stoc ’06: Proceedings of the thirty-eighth annual acm symposium on theory of computing, ACM\yearmagic,2006, pp.\weaktie354–362. \TheSortKeyIsfellows michael r rosamond frances a rotics udi szeider stefan 2006 clique width minimization is np hard
  • [47] \bibfitemar:FellowsRosamondRoticsSzeider2005a \guyM.M.R.Fellows, \guyF.F.A.Rosamond, \guyU.U.Rotics, and \guyS.S.Szeider 20050 \guysmagicM.R. Fellows, F.A. Rosamond, U. Rotics, \biband S. Szeider Proving NP-hardness for clique width ii: Non-approximability of clique-width, Electronic Colloquium on Computational Complexity\yearmagic,2005. \TheSortKeyIsfellows mr rosamond fa rotics u szeider s 2005 proving np hardness for clique width ii non approximability of clique width
  • [48] \bibfitemar:FischerMakowskyPATCH \guyE.E.Fischer and \guyJ.J.A.Makowsky 0 \guysmagicE. Fischer \biband J.A. Makowsky Patch-width, a generalization of clique-width for relational structures, in preparation. \TheSortKeyIsfischer e makowsky ja patch width a generalization of clique width for relational structures
  • [49] \bibfitemar:FischerM04 \guyE.EldarFischer and \guyJ. A.Johann A.Makowsky 20040 \guysmagicEldar Fischer \biband Johann A. Makowsky On spectra of sentences of monadic second order logic with counting, \jslname, vol.\weaktie69\yearmagic(2004), no.\weaktie3, pp.\weaktie617–640. \TheSortKeyIsfischer eldar makowsky johann a 2004 on spectra of sentences of monadic second order logic with counting
  • [50] \bibfitemar:Fraisse54 \guyR.R.Fraïssé 19540 \guysmagicR. Fraïssé Sur quelques classifications des systèmes de relations, Publ. Sci. Univ. Alger, Sér. A, vol.\weaktie1\yearmagic(1954), pp.\weaktie35–182. \TheSortKeyIsfraisse r 1954 sur quelques classifications des systemes de relations
  • [51] \bibfitemmisc:Friedman06 \guyH.HarveyFriedman 20060 \guysmagicHarvey Friedman Primitive recursive reals, , http://www.cs.nyu.edu/pipermail/fom/2006-April/010452.html, April\yearmagic2006. \TheSortKeyIsfriedman harvey 2006 primitive recursive realshfill
  • [52] \bibfitembk:hb-forla3-1 \guyF.F.Gécseg and \guyM.M.Steinby 19970 \guysmagicF. Gécseg \biband M. Steinby Tree languages, Handbook of formal languages, vol. 3 : Beyond words (G. Rozenberg \biband A. Salomaa, editors), Springer Verlag, Berlin\yearmagic,1997, pp.\weaktie1–68. \TheSortKeyIsgecseg f steinby m 1997 tree languages
  • [53] \bibfitemar:GlebskijKLT69 \guyJ. V.Ju. V.Glebskiĭ, \guyD. I.D. I.Kogan, \guyM. I.M. I.Liogonkiĭ, and \guyV. A.V. A.Talanov 19690 \guysmagicJu. V. Glebskiĭ, D. I. Kogan, M. I. Liogonkiĭ, \biband V. A. Talanov Volume and fraction of satisfiability of formulas of the lower predicate calculus, Otdelenie Matematiki, Mekhaniki i Kibernetiki Akademii Nauk Ukrainskoĭ SSR. Kibernetika\yearmagic,(1969), no.\weaktie2, pp.\weaktie17–27. \TheSortKeyIsglebskii ju v kogan d i liogonkii m i talanov v a 1969 volume and fraction of satisfiability of formulas of the lower predicate calculus
  • [54] \bibfitemar:GliksonMakowsky03 \guyA.A.Glikson and \guyJ.J.A.Makowsky 20030 \guysmagicA. Glikson \biband J.A. Makowsky NCE graph grammars and clique-width, Proceedings of the 29th international workshop on graph-theoretic concepts in computer science (wg 2003), elspeet (the netherlands) (H.L. Bodlaender, editor), Lecture Notes in Computer Science, vol. 2880, Springer\yearmagic,2003, pp.\weaktie237–248. \TheSortKeyIsglikson a makowsky ja 2003 nce graph grammars and clique width
  • [55] \bibfitemar:GolumbicRotics01 \guyM. C.M. C.Golumbic and \guyU.U.Rotics 20000 \guysmagicM. C. Golumbic \biband U. Rotics On the clique-width of some perfect graph classes, Internation Journal of Foundations of Computer Science, vol.\weaktie11\yearmagic(2000), pp.\weaktie423–443. \TheSortKeyIsgolumbic m c rotics u 2000 on the clique width of some perfect graph classes
  • [56] \bibfitemGraedelKolaitisVardi97 \guyE.E.Grädel, \guyP.P.Kolaitis, and \guyM.M.Vardi 19970 \guysmagicE. Grädel, P. Kolaitis, \biband M. Vardi On the decision problem for two-variable first-order logic, \bslname, vol.\weaktie3\yearmagic(1997), pp.\weaktie53–69. \TheSortKeyIsgradel e kolaitis p vardi m 1997 on the decision problem for two variable first order logic
  • [57] \bibfitembk:GrahamKP89 \guyR. L.Ronald L.Graham, \guyD. E.Donald E.Knuth, and \guyO.OrenPatashnik 19890 \guysmagicRonald L. Graham, Donald E. Knuth, \biband Oren Patashnik Concrete mathematics. a foundation for computer science, Addison Wesley, Reading, Massachusetts\yearmagic,1989. \TheSortKeyIsgraham ronald l knuth donald e patashnik oren 1989 concrete mathematics a foundation for computer science
  • [58] \bibfitemar:Grandjean83a \guyÉ.ÉtienneGrandjean 19830 \guysmagicÉtienne Grandjean Complexity of the first-order theory of almost all finite structures, Information and Control, vol.\weaktie57\yearmagic(1983), no.\weaktie2&3, pp.\weaktie180–204. \TheSortKeyIsgrandjean etienne 1983 complexity of the first order theory of almost all finite structures
  • [59] \bibritemar:Grandjean84 \guyÉ.ÉtienneGrandjean 1984a0 \guysmagic\bysame The spectra of first-order sentences and computational complexity, SIAM Journal on Computing, vol.\weaktie13\yearmagic(1984), no.\weaktie2, pp.\weaktie356–373. \TheSortKeyIsgrandjean etienne 1984 spectra of first order sentences and computational complexity
  • [60] \bibritemproc:Grandjean83b \guyÉ.ÉtienneGrandjean 1984b0 \guysmagic\bysame Universal quantifiers and time complexity of random access machines, Logic and machines: Decision problems and complexity, proceedings of the symposium “Rekursive Kombinatorik” held from may 23-28, 1983 at the institut für mathematische logik und grundlagenforschung der universität münster/westfahlen (Egon Börger, Gisbert Hasenjaeger, \biband Dieter Rödding, editors), Lecture Notes in Computer Science, vol. 171, Springer\yearmagic,1984, pp.\weaktie366–379. \TheSortKeyIsgrandjean etienne 1984 universal quantifiers and time complexity of random access machines
  • [61] \bibritemar:Grandjean85 \guyÉ.ÉtienneGrandjean 19850 \guysmagic\bysame Universal quantifiers and time complexity of random access machines, Mathematical Systems Theory, vol.\weaktie18\yearmagic(1985), no.\weaktie2, pp.\weaktie171–187. \TheSortKeyIsgrandjean etienne 1985 universal quantifiers and time complexity of random access machines
  • [62] \bibritemproc:Grandjean87 \guyÉ.ÉtienneGrandjean 19870 \guysmagic\bysame First-order spectra with one variable, Computation theory and logic, in memory of dieter rödding (Egon Börger, editor), Lecture Notes in Computer Science, vol. 270, Springer\yearmagic,1987, pp.\weaktie166–180. \TheSortKeyIsgrandjean etienne 1987 first order spectra with one variable
  • [63] \bibritemar:Grandjean88 \guyÉ.ÉtienneGrandjean 19880 \guysmagic\bysame A natural NP-complete problem with a nontrivial lower bound, SIAM Journal on Computing, vol.\weaktie17\yearmagic(1988), no.\weaktie4, pp.\weaktie786–809. \TheSortKeyIsgrandjean etienne 1988 natural np complete problem with a nontrivial lower bound
  • [64] \bibritemar:Grandjean90b \guyÉ.ÉtienneGrandjean 19900 \guysmagic\bysame First-order spectra with one variable, Journal of Computer and System Sciences, vol.\weaktie40\yearmagic(1990), no.\weaktie2, pp.\weaktie136–153. \TheSortKeyIsgrandjean etienne 1990 first order spectra with one variable
  • [65] \bibfitemar:Grzegorczyk53 \guyA.AndrzejGrzegorczyk 19530 \guysmagicAndrzej Grzegorczyk Some classes of recursive functions, Rosprawy Matematyczne, vol.\weaktie4\yearmagic(1953), pp.\weaktie1–46. \TheSortKeyIsgrzegorczyk andrzej 1953 some classes of recursive functions
  • [66] \bibfitemproc:GurevichS03 \guyY.YuriGurevich and \guyS.SaharonShelah 20030 \guysmagicYuri Gurevich \biband Saharon Shelah Spectra of monadic second-order formulas with one unary function, 18th ieee symposium on logic in computer science (lics 2003), 22-25 june 2003, ottawa, canada, proceedings (Los Alamitos, California, USA), IEEE Computer Society\yearmagic,2003, pp.\weaktie291–300. \TheSortKeyIsgurevich yuri shelah saharon 2003 spectra of monadic second order formulas with one unary function
  • [67] \bibfitemproc:Hajek75 \guyP.PetrHájek 19750 \guysmagicPetr Hájek On logics of discovery, Mathematical foundations of computer science 1975, 4th symposium, mariánské lázne, czechoslovakia, september 1-5, 1975, proceedings (Jirí Becvár, editor), Lecture Notes in Computer Science, vol. 32, Springer\yearmagic,1975, pp.\weaktie30–45. \TheSortKeyIshajek petr 1975 on logics of discovery
  • [68] \bibfitembk:HararyP73 \guyF.FrankHarary and \guyE. M.Edgar M.Palmer 19730 \guysmagicFrank Harary \biband Edgar M. Palmer Graphical enumeration, Academic Press\yearmagic,1973. \TheSortKeyIsharary frank palmer edgar m 1973 graphical enumeration
  • [69] \bibfitembk:Harrison78 \guyM.M.A.Harrison 19780 \guysmagicM.A. Harrison Introduction to formal language theory, Addison Wesley\yearmagic,1978. \TheSortKeyIsharrison ma 1978 introduction to formal language theory
  • [70] \bibfitemar:Hartmanis65 \guyJ.J.Hartmanis and \guyR.R.E.Stearns 19650 \guysmagicJ. Hartmanis \biband R.E. Stearns On the complexity of algorithms, Transactions of the American Mathematical Society, vol.\weaktie117\yearmagic(1965), pp.\weaktie285–306. \TheSortKeyIshartmanis j stearns re 1965 on the complexity of algorithms
  • [71] \bibfitemar:HesseAB02 \guyW.WilliamHesse, \guyE.EricAllender, and \guyD. A. M.David A. MixBarrington 20020 \guysmagicWilliam Hesse, Eric Allender, \biband David A. Mix Barrington Uniform constant-depth threshold circuits for division and iterated multiplication., J. Comput. Syst. Sci., vol.\weaktie65\yearmagic(2002), no.\weaktie4, pp.\weaktie695–716. \TheSortKeyIshesse william allender eric barrington david a mix 2002 uniform constant depth threshold circuits for division and iterated multiplication
  • [72] \bibfitembk:Hodges93 \guyW.W.Hodges 19930 \guysmagicW. Hodges Model Theory, Encyclopedia of Mathematics and its Applications, vol. 42, Cambridge University Press\yearmagic,1993. \TheSortKeyIshodges w 1993 model theory
  • [73] \bibfitemHunter03 \guyA.AaronHunter 20030 \guysmagicAaron Hunter Spectrum hierarchies and subdiagonal functions, 18th international symposium on logic in computer science (lics’03), IEEE Press\yearmagic,2003, pp.\weaktie281–290. \TheSortKeyIshunter aaron 2003 spectrum hierarchies and subdiagonal functions
  • [74] \bibritemHunter04 \guyA.AaronHunter 20040 \guysmagic\bysame Limiting cases for spectrum closure results, Australasian Journal of Logic, vol.\weaktie2\yearmagic(2004), pp.\weaktie70–90. \TheSortKeyIshunter aaron 2004 limiting cases for spectrum closure results
  • [75] \bibfitemar:IMM1 \guyN.N.Immerman 19870 \guysmagicN. Immerman Languages that capture complexity classes, SIAM Journal on Computing, vol.\weaktie16\yearmagic(1987), no.\weaktie4, pp.\weaktie760–778. \TheSortKeyIsimmerman n 1987 languages that capture complexity classes
  • [76] \bibfitembk:Immerman99 \guyN.NeilImmerman 19990 \guysmagicNeil Immerman Descriptive complexity, Graduate Texts in Computer Science, Springer\yearmagic,1999. \TheSortKeyIsimmerman neil 1999 descriptive complexity
  • [77] \bibfitemar:JRST99 \guyT.T.Johnson, \guyN.N.Robertson, \guyP.P.Seymour, and \guyR.R.Thomas 20010 \guysmagicT. Johnson, N. Robertson, P. Seymour, \biband R. Thomas Directed tree–width, Journal of Combinatorial Theory, Serie B, vol.\weaktie81\yearmagic(2001), no.\weaktie1, pp.\weaktie138–154. \TheSortKeyIsjohnson t robertson n seymour p thomas r 2001 directed tree width
  • [78] \bibfitemar:Jones75 \guyN. D.Neil D.Jones 19750 \guysmagicNeil D. Jones Space-bounded reducibility among combinatorial problems, J. Comput. Syst. Sci., vol.\weaktie11\yearmagic(1975), no.\weaktie1, pp.\weaktie68–85. \TheSortKeyIsjones neil d 1975 space bounded reducibility among combinatorial problems
  • [79] \bibfitemproc:JonesS72 \guyN. D.Neil D.Jones and \guyA. L.Alan L.Selman 19720 \guysmagicNeil D. Jones \biband Alan L. Selman Turing machines and the spectra of first-order formulas with equality, Conference record, fourth annual acm symposium on theory of computing, 1-3 may 1972, denver, colorado, usa (New York, NY, USA), ACM Press\yearmagic,1972, pp.\weaktie157–167. \TheSortKeyIsjones neil d selman alan l 1972 turing machines and the spectra of first order formulas with equality
  • [80] \bibritemar:JonesS74 \guyN. D.Neil D.Jones and \guyA. L.Alan L.Selman 19740 \guysmagic\bysame Turing machines and the spectra of first-order formulas, \jslname, vol.\weaktie39\yearmagic(1974), pp.\weaktie139–150. \TheSortKeyIsjones neil d selman alan l 1974 turing machines and the spectra of first order formulas
  • [81] \bibfitemar:Kalmar43 \guyL.LaszloKalmár 19430 \guysmagicLaszlo Kalmár Egyszerü példa eldönthetetlen aritmetikai problémára. (Ein einfaches Beispiel für ein unentscheidbares arithmetisches Problem.), Mate és Fizikai Lapok, vol.\weaktie50\yearmagic(1943), pp.\weaktie1–23 (Hungarian. German summary). \TheSortKeyIskalmar laszlo 1943 egyszeru pelda eldonthetetlen aritmetikai problemara ein einfaches beispiel fur ein unentscheidbares arithmetisches problem
  • [82] \bibfitemar:Kreisel52 \guyG.GeorgKreisel 19520 \guysmagicGeorg Kreisel On the interpretation of non-finitist proofs. II. Interpretation of number theory. Applications, \jslname, vol.\weaktie17\yearmagic(1952), no.\weaktie2, pp.\weaktie43–58. \TheSortKeyIskreisel georg 1952 on the interpretation of non finitist proofs ii interpretation of number theory applications
  • [83] \bibfitemar:Kuroda64 \guyS.-Y.S.-Y.Kuroda 19640 \guysmagicS.-Y. Kuroda Classes of languages and linear-bounded automata, Information and Control, vol.\weaktie7\yearmagic(1964), no.\weaktie2, pp.\weaktie207–223. \TheSortKeyIskuroda s y 1964 classes of languages and linear bounded automata
  • [84] \bibfitembk:Libkin04 \guyL.LeonidLibkin 20040 \guysmagicLeonid Libkin Elements of finite model theory, Texts in Theoretical Computer Science, Springer\yearmagic,2004. \TheSortKeyIslibkin leonid 2004 elements of finite model theory
  • [85] \bibfitemar:Loescher97 \guyB.BerndLoescher 19970 \guysmagicBernd Loescher One unary function says less than two in existential second order logic, Information Processing Letters, vol.\weaktie61\yearmagic(1997), no.\weaktie2, pp.\weaktie69–75. \TheSortKeyIsloescher bernd 1997 one unary function says less than two in existential second order logic
  • [86] \bibfitemar:LovaszGacs77 \guyL.L.Lovász and \guyP.P.Gács 19770 \guysmagicL. Lovász \biband P. Gács Some remarks on generalized spectra, Zeitschr. f. math. Logik und Grundlagen d. Math., vol.\weaktie23\yearmagic(1977), pp.\weaktie547–554. \TheSortKeyIslovasz l gacs p 1977 some remarks on generalized spectra
  • [87] \bibfitemar:Loewenheim15 \guyL.LeopoldLöwenheim 19150 \guysmagicLeopold Löwenheim Über möglichkeiten im relativkalkül, Mathematische Annalen, vol.\weaktie76\yearmagic(1915), no.\weaktie4, pp.\weaktie447–470. \TheSortKeyIslowenheim leopold 1915 uber moglichkeiten im relativkalkul
  • [88] \bibfitemar:Lynch82a \guyJ. F.James F.Lynch 19820 \guysmagicJames F. Lynch Complexity classes and theories of finite models, Mathematical Systems Theory, vol.\weaktie15\yearmagic(1982), no.\weaktie2, pp.\weaktie127–144. \TheSortKeyIslynch james f 1982 complexity classes and theories of finite models
  • [89] \bibfitemar:MakowskyTARSKI \guyJ.J.A.Makowsky 20040 \guysmagicJ.A. Makowsky Algorithmic uses of the Feferman-Vaught theorem, Annals of Pure and Applied Logic, vol.\weaktie126.1-3\yearmagic(2004), pp.\weaktie159–213. \TheSortKeyIsmakowsky ja 2004 algorithmic uses of the feferman vaught theorem
  • [90] \bibfitemar:MakowskyMarino01c \guyJ.J.A.Makowsky and \guyJ.J.P.Mariño 20030 \guysmagicJ.A. Makowsky \biband J.P. Mariño Tree-width and the monadic quantifier hierarchy, Theoretical Computer Science, vol.\weaktie303\yearmagic(2003), pp.\weaktie157–170. \TheSortKeyIsmakowsky ja marino jp 2003 tree width and the monadic quantifier hierarchy
  • [91] \bibfitemar:MakPnueli96 \guyJ.J.A.Makowsky and \guyY.Y.Pnueli 19960 \guysmagicJ.A. Makowsky \biband Y. Pnueli Arity vs. alternation in second order logic, Annals of Pure and Applied Logic, vol.\weaktie78\yearmagic(1996), no.\weaktie2, pp.\weaktie189–202. \TheSortKeyIsmakowsky ja pnueli y 1996 arity vs alternation in second order logic
  • [92] \bibfitemar:MakowskyRotics99 \guyJ.J.A.Makowsky and \guyU.U.Rotics 19990 \guysmagicJ.A. Makowsky \biband U. Rotics On the cliquewidth of graphs with few P4subscript𝑃4{P}_{4}’s, International Journal on Foundations of Computer Science, vol.\weaktie10\yearmagic(1999), pp.\weaktie329–348. \TheSortKeyIsmakowsky ja rotics u 1999 on the cliquewidth of graphs with few p4s
  • [93] \bibfitememail:miller \guyJ.J.Miller 0 \guysmagicJ. Miller Statement of result on primitive recursive reals, E-mail communication. \TheSortKeyIsmiller j statement of result on primitive recursive reals
  • [94] \bibfitemmisc:Mo-Zbl \guyS.ShaokuiMo 0 \guysmagicShaokui Mo Abstract of [ar:Mo91], Zbl 0729.03004. \TheSortKeyIsmo shaokui abstract of citearmo91
  • [95] \bibritemar:Mo91 \guyS.ShaokuiMo 19910 \guysmagic\bysame The solution of Scholz problems., Chin. Ann. Math., Ser. A, vol.\weaktie12\yearmagic(1991), no.\weaktie1, pp.\weaktie89–97 (Chinese). \TheSortKeyIsmo shaokui 1991 the solution of scholz problems
  • [96] \bibfitemar:MoreO97 \guyM.MalikaMore and \guyF.FrédéricOlive 19970 \guysmagicMalika More \biband Frédéric Olive Rudimentary languages and second order logic, Mathematical Logic Quarterly, vol.\weaktie43\yearmagic(1997), pp.\weaktie419–426. \TheSortKeyIsmore malika olive frederic 1997 rudimentary languages and second order logic
  • [97] \bibfitemar:Mortimer75 \guyM.M.Mortimer 19750 \guysmagicM. Mortimer On Languages with Two Variables, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie21\yearmagic(1975), pp.\weaktie135–140. \TheSortKeyIsmortimer m 1975 on languages with two variables
  • [98] \bibfitemar:Mostowski56 \guyA.AndrzejMostowski 19560 \guysmagicAndrzej Mostowski Concerning a problem of H.Scholz, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie12\yearmagic(1956), pp.\weaktie210–214. \TheSortKeyIsmostowski andrzej 1956 concerning a problem of hscholz
  • [99] \bibfitemrep:Myhill60 \guyJ.JohnMyhill 19600 \guysmagicJohn Myhill Linear bounded automata, Technical Note 60–165, Wright-Patterson Air Force Base, Wright Air Development Division, Ohio\yearmagic,1960. \TheSortKeyIsmyhill john 1960 linear bounded automata
  • [100] \bibfitemar:Nepomniaschy70 \guyV. A.V. A.Nepomnjaščiĭ 19700 \guysmagicV. A. Nepomnjaščiĭ Rudimentary predicates and Turing computations, Dokl. Akad. Nauk SSSR, vol.\weaktie195\yearmagic(1970), pp.\weaktie282–284. \TheSortKeyIsnepomnjascii v a 1970 rudimentary predicates and turing computations
  • [101] \bibfitemar:Nepomnjascii78 \guyV. A.V. A.Nepomnjascii 19780 \guysmagicV. A. Nepomnjascii Examples of predicates inexpressible by s𝑠s-rudimentary formulas, Kibernetika (Kiev), vol.\weaktie2\yearmagic(1978), pp.\weaktie44–46, Russian, English summary. \TheSortKeyIsnepomnjascii v a 1978 examples of predicates inexpressible by s rudimentary formulas
  • [102] \bibfitemproc:Olive97 \guyF.FrédéricOlive 19980 \guysmagicFrédéric Olive A conjunctive logical characterization of nondeterministic linear time, Computer science logic, 11th international workshop, csl’97, annual conference of the eacsl, aarhus, denmark, august 23-29, 1997, selected papers (Mogens Nielsen \biband Wolfgang Thomas, editors), Lecture Notes in Computer Science, vol. 1414, Springer\yearmagic,1998, pp.\weaktie360–372. \TheSortKeyIsolive frederic 1998 conjunctive logical characterization of nondeterministic linear time
  • [103] \bibfitemOtto95b \guyM.M.Otto 19970 \guysmagicM. Otto Bounded variable logics and counting — A study in finite models, vol. 9, Springer-Verlag\yearmagic,1997, IX+183 pages. \TheSortKeyIsotto m 1997 bounded variable logics and counting a study in finite models
  • [104] \bibfitemar:Parikh66 \guyR.R.Parikh 19660 \guysmagicR. Parikh On context-free languages, jacm, vol.\weaktie13\yearmagic(1966), pp.\weaktie570–581. \TheSortKeyIsparikh r 1966 on context free languages
  • [105] \bibfitemar:Pudlak75 \guyP.PavelPudlák 19750 \guysmagicPavel Pudlák The observational predicate calculus and complexity of computations, Commentationes Mathematicae Universitatis Carolinae, vol.\weaktie16\yearmagic(1975), pp.\weaktie395–398. \TheSortKeyIspudlak pavel 1975 observational predicate calculus and complexity of computations
  • [106] \bibfitemproc:Rabin64 \guyM. O.Michael O.Rabin 19650 \guysmagicMichael O. Rabin A simple method of undecidability proofs and some applications, Logic, methodology and phylosophy of science (proceedings 1964 international congress) (Amsterdam) (Bar-Hillel, editor), vol. 1, North-Holland\yearmagic,1965, pp.\weaktie58–68. \TheSortKeyIsrabin michael o 1965 simple method of undecidability proofs and some applications
  • [107] \bibfitempr:Rabin65 \guyM.M.O.Rabin 19650 \guysmagicM.O. Rabin A simple method for undecidability proofs and some applications, Logic, methodology and philosophy of science II (Y. Bar Hillel, editor), Studies in Logic, North Holland\yearmagic,1965, pp.\weaktie58–68. \TheSortKeyIsrabin mo 1965 simple method for undecidability proofs and some applications
  • [108] \bibfitembk:Ribenboim89 \guyP.PauloRibenboim 19890 \guysmagicPaulo Ribenboim The book of prime number records, second ed., Springer\yearmagic,1989. \TheSortKeyIsribenboim paulo 1989 book of prime number records
  • [109] \bibfitemphd:Ritchie60 \guyR. W.Robert W.Ritchie 19600 \guysmagicRobert W. Ritchie Classes of recursive functions of predictable complexity, Ph.D. thesis, Princeton University\yearmagic,1960. \TheSortKeyIsritchie robert w 1960 classes of recursive functions of predictable complexity
  • [110] \bibritemar:Ritchie63 \guyR. W.Robert W.Ritchie 19630 \guysmagic\bysame Classes of predictably computable functions, Transactions of the American Mathematical Society, vol.\weaktie106\yearmagic(1963), pp.\weaktie139–173. \TheSortKeyIsritchie robert w 1963 classes of predictably computable functions
  • [111] \bibfitemar:RobertsonSeymour86 \guyN.N.Robertson and \guyP. D.P. D.Seymour 19860 \guysmagicN. Robertson \biband P. D. Seymour Graph minors. ii. algorithmic aspects of tree–width, Journal of Algorithms, vol.\weaktie7\yearmagic(1986), pp.\weaktie309–322. \TheSortKeyIsrobertson n seymour p d 1986 graph minors ii algorithmic aspects of tree width
  • [112] \bibfitemmisc:Robinson-mr \guyA.AbrahamRobinson 0 \guysmagicAbraham Robinson Review of [ar:Asser55], MR0077468 (17,1038c). \TheSortKeyIsrobinson abraham review of citearasser55
  • [113] \bibfitemar:RoeddingS72 \guyD.DieterRödding and \guyH.HelmutSchwichtenberg 19720 \guysmagicDieter Rödding \biband Helmut Schwichtenberg Bemerkungen zum Spektralproblem, Zeitschrift für mathematische Logik und Grundlagen der Mathematik, vol.\weaktie18\yearmagic(1972), pp.\weaktie1–12. \TheSortKeyIsrodding dieter schwichtenberg helmut 1972 bemerkungen zum spektralproblem
  • [114] \bibfitembk:Rose84 \guyH.H.E.Rose 19840 \guysmagicH.E. Rose Subrecursion. Functions and hierarchies., Oxford Logic Guides, 9. Oxford: Clarendon Press. XIII, 191 p.\yearmagic,1984 (English). \TheSortKeyIsrose he 1984 subrecursion functions and hierarchies
  • [115] \bibfitemth:rotics \guyU.U.Rotics 19980 \guysmagicU. Rotics Efficient algorithms for generally intractable graph problems restricted to specific classes of graphs, Ph.D. thesis, Technion- Israel Institute of Technology\yearmagic,1998. \TheSortKeyIsrotics u 1998 efficient algorithms for generally intractable graph problems restricted to specific classes of graphs
  • [116] \bibfitemar:Scholz52 \guyH.HeinrichScholz 19520 \guysmagicHeinrich Scholz Ein ungelöstes Problem in der symbolischen Logik, \jslname, vol.\weaktie17\yearmagic(1952), p.\weaktie160. \TheSortKeyIsscholz heinrich 1952 ein ungelostes problem in der symbolischen logik
  • [117] \bibfitempr:Shelah04 \guyS.S.Shelah 20040 \guysmagicS. Shelah Spectra of monadic second order sentences, Paper No. 817, Electronically available at arXiv:math/0405158\yearmagic,2004. \TheSortKeyIsshelah s 2004 spectra of monadic second order sentences
  • [118] \bibfitemar:Skolem20 \guyT.ThoralfSkolem 19190 \guysmagicThoralf Skolem Logisch-kombinatorische Untersuchungen über die Erfüllbarkeit oder Beweisbarkeit mathematischer Sätze nebst einem Theoreme über die dichte Mengen, Videnskapsselskapets skrifter, I. Matematisk-naturvidenskabelig klasse, vol.\weaktie4\yearmagic(1919), pp.\weaktie1–36. \TheSortKeyIsskolem thoralf 1919 logisch kombinatorische untersuchungen uber die erfullbarkeit oder beweisbarkeit mathematischer satze nebst einem theoreme uber die dichte mengen
  • [119] \bibfitemar:Skordev2002 \guyD.D.Skordev 20020 \guysmagicD. Skordev Computability of real numbers by using a given class of functions in the set of natural numbers, Mathematical Logic Quarterly, vol.\weaktie48\yearmagic(2002), no.\weaktieSuppl.1, pp.\weaktie91–106. \TheSortKeyIsskordev d 2002 computability of real numbers by using a given class of functions in the set of natural numbers
  • [120] \bibritemar:Skordev2008 \guyD.D.Skordev 20080 \guysmagic\bysame On the subrecursive computability of several famous constants, Journal of Universal Computer Science, vol.\weaktie14\yearmagic(2008), no.\weaktie6, pp.\weaktie861–875. \TheSortKeyIsskordev d 2008 on the subrecursive computability of several famous constants
  • [121] \bibfitembk:Smullyan61 \guyR. M.Raymond M.Smullyan 19610 \guysmagicRaymond M. Smullyan Theory of formal systems, Annals of Mathematical Studies, vol. 47, Princeton University Press, Princeton, New Jersey\yearmagic,1961. \TheSortKeyIssmullyan raymond m 1961 theory of formal systems
  • [122] \bibfitemar:Specker49 \guyE.E.Specker 19490 \guysmagicE. Specker Nicht konstruktiv beweisbare Sätze in der Analysis, \jslname, vol.\weaktie14\yearmagic(1949), pp.\weaktie145–158. \TheSortKeyIsspecker e 1949 nicht konstruktiv beweisbare satze in der analysis
  • [123] \bibfitembk:TarskiMR53 \guyA.A.Tarski, \guyA.A.Mostowski, and \guyR. M.R. M.Robinson 19530 \guysmagicA. Tarski, A. Mostowski, \biband R. M. Robinson Undecidable theories, North-Holland Publishing Company\yearmagic,1953. \TheSortKeyIstarski a mostowski a robinson r m 1953 undecidable theories
  • [124] \bibfitemar:Tarski54 \guyA.AlfredTarski 19540 \guysmagicAlfred Tarski Contribution to the theory of models, I,II, Indagationes Mathematicae, vol.\weaktie16\yearmagic(1954), pp.\weaktie572–588. \TheSortKeyIstarski alfred 1954 contribution to the theory of models iii
  • [125] \bibfitemar:TentZiegler2009 \guyK.K.Tent and \guyM.M.Ziegler 20090 \guysmagicK. Tent \biband M. Ziegler Low functions of reals, Manuscript\yearmagic,2009. \TheSortKeyIstent k ziegler m 2009 low functions of reals
  • [126] \bibfitemar:Trakhtenbrot50 \guyB. A.Boris A.Trakhtenbrot 19500 \guysmagicBoris A. Trakhtenbrot Impossibility of an algorithm for the decision problem in finite classes, Doklady Akademii Nauk SSSR, vol.\weaktie70\yearmagic(1950), pp.\weaktie569–572. \TheSortKeyIstrakhtenbrot boris a 1950 impossibility of an algorithm for the decision problem in finite classes
  • [127] \bibfitemar:Turing36 \guyA. M.Alan M.Turing 19360 \guysmagicAlan M. Turing On computable numbers, with an application to the entscheidungsproblem, Procedings of the London Mathematical Society, vol.\weaktie42\yearmagic(1936), no.\weaktie2, pp.\weaktie230–265. \TheSortKeyIsturing alan m 1936 on computable numbers with an application to the entscheidungsproblem
  • [128] \bibfitempr:vardi82 \guyM.M.Vardi 19820 \guysmagicM. Vardi The complexity of relational query languages, Stoc’82, ACM\yearmagic,1982, pp.\weaktie137–146. \TheSortKeyIsvardi m 1982 complexity of relational query languages
  • [129] \bibfitemar:Waldschmidt08 \guyM.M.Waldschmidt 20080 \guysmagicM. Waldschmidt Words and transcendence, Analytic number theory - essays in honour of Klaus Roth, Cambridge University Press\yearmagic,2008, pp.\weaktie449–470. \TheSortKeyIswaldschmidt m 2008 words and transcendence
  • [130] \bibfitembk:Wilf90 \guyH. S.Herbert S.Wilf 19900 \guysmagicHerbert S. Wilf Generatingfunctionology, Academic Press\yearmagic,1990. \TheSortKeyIswilf herbert s 1990 generatingfunctionology
  • [131] \bibfitemphd:Woods81 \guyA.A.R.Woods 19810 \guysmagicA.R. Woods Some problems in logic and number theory and their connections, Ph.D. thesis, University of Manchester\yearmagic,1981. \TheSortKeyIswoods ar 1981 some problems in logic and number theory and their connections
  • [132] \bibfitemar:Wrathall78 \guyC.CeliaWrathall 19780 \guysmagicCelia Wrathall Rudimentary predicates and relative computation, SIAM J. Comput., vol.\weaktie7\yearmagic(1978), no.\weaktie2, pp.\weaktie194–209. \TheSortKeyIswrathall celia 1978 rudimentary predicates and relative computation
  • [133] \bibfitemmisc:zhuping \guyP.PingZhu 0 \guysmagicPing Zhu Translation of [ar:Mo91], Personal communication. \TheSortKeyIszhu ping translation of citearmo91
  • [134]