The first order language is assumed to contain only the identity predicate $I$, and potentially other predicates, but no operations and no constants.
My question is how to show that the following sets are spectra:
- The set of even numbers and its complement (odd numbers).
- The set of Fibonacci numbers $\{1,2,3,5,8,13,21,34,\ldots\}$, and its complement. Recall that the Fibonacci numbers are defined by $F_{1}=1$, $F_{2}=2$, $F_{n}=F_{n-1}+F_{n-2}$ for $n\geq 3$.
- The set $\{x^{y}:x,y\geq 2\}$ and its complement.
For 1. I take a binary relation symbol $R$ and sentences $A$, $B$, and $C$ expressing $R$ is reflexive, symmetric and transitive, respectively. Then, let $D$ be the sentence $$\forall x\exists y((\neg Ixy)\wedge\forall z(Rxz\Leftrightarrow(Ixz\vee Iyz))).$$ The sentence $A\wedge B\wedge C\wedge D$ has spectrum the even numbers. Now, the sentence $A\wedge B\wedge C\wedge \neg D$ does not work to show that the odd numbers are a spectrum, but I believe that if we let $E$ be the sentence expressing that each equivalent class consists of exactly two elements, except for one equivalence class, which consists of exactly one element, then $A\wedge B\wedge C\wedge E$ has spectrum the odd numbers. My candidate for $E$ is $$\exists x(\forall y (Ixy\Leftrightarrow Rxy)\wedge(\neg(Ixy)\Leftrightarrow\exists z(\neg(Iyz)\wedge\neg(Ixz)\wedge\forall t(Ryt\Leftrightarrow (Iyt\vee Izt))))).$$
However, I am lost as to how to find appropriate sentences for 2. and 3.
For each given set $X$ in 2 and 3 we will give a sentence of the form $A\wedge B$ having spectrum precisely $X$, and so that the sentence $A\wedge\neg B$ has spectrum precisely the complement of $X$.
The idea is to consider the axioms for finite sets with addition, multiplication, a strict linear order, a smallest element with respect to the strict linear order, and with successors (e.g. think of positive integers modulo some $n$, in essence).
Consider the language $\mathcal{L}$ containing the following predicates (intuitive meaning to the right):
Let $A'$ denote the conjunction of the following:
These three sentences say $R$ is a strict linear ordering.
This sentence says $S$ is the immediate successor predicate with respect to $R$.
This sentence says there is a smallest element with respect to $R$.
These two sentences define the addition predicate $P$ in terms of $S$ by induction along $R$.
These two sentences define the multiplication predicate $Q$ in terms of $S$ and $P$ by induction along $R$.
A key feature of the $\mathcal{L}$-sentence $A'$ is that for any finite $\mathcal{L}$-structure $M$, then $M\vDash A'$ if and only if $M$ is isomorphic to $M_{n}$ for some $n$, where $M_{n}$ denotes the $\mathcal{L}$-structure $$M_{n}=(U_{n},O_{n},P_{n},Q_{n},R_{n},S_{n},I_{n}),$$ where
Now, let us consider the set of Fibonacci numbers and its complement: Add a new unary predicate $F$ to the language $\mathcal{L}$, with $Fx$ intuitively meaning `$x$ is a Fibonacci number'. Then consider a sentence $A$ which is the conjunction of $A'$ with the following:
These sentences define $F$ recursively.
Next, consider the sentence stating that the largest number in our domain is a Fibonacci number, i.e. $$B=\exists z\,((\neg\exists w\,Rzw)\wedge Fz).$$
The spectrum of $A\wedge B$ is precisely the set of Fibonacci numbers, and the spectrum of $A\wedge\neg B$ is precisely the complement of the set of Fibonacci numbers.
Finally, we consider the set $X=\{x^{y}:x,y\geq 2\}$ and its complement. We add a new ternary predicate $H$ to the original language $\mathcal{L}$, intuitively meaning $Hxyz: x^{y}=z$. We now define $A$ to be the conjunction of $A'$ with the following:
These sentences define exponentiation in terms of $S$ and $Q$ by induction along $R$.
Next, consider the sentence stating that the largest number in our domain is of the form $x^{y}$, with $x,y\geq 2$. $$B=\exists z\,((\neg\exists w\,Rzw)\wedge \exists x\,\exists y\,((\neg Ox)\wedge(\neg Oy)\wedge Hxyz)).$$
The spectrum of $A\wedge B$ is precisely the set $X$, and the spectrum of $A\wedge\neg B$ is precisely the complement of $X$.
For the set $Y=\{x+y+x^{y}:x,y\geq 2\}$ provided by Noah Schweber in his answer, the language $\mathcal{L}$ and the $\mathcal{L}$-sentence $A$ are the same as for the set $X$ above, and $B$ is the $\mathcal{L}$-sentence $$\exists z\,((\neg\exists w\,Rzw)\wedge \exists x\,\exists y\,\exists t\,\exists v((\neg Ox)\wedge(\neg Oy)\wedge Pxyt\wedge Hxyv\wedge Ptvz)).$$ The spectrum of $A\wedge B$ is $Y$ and the spectrum of $A\wedge\neg B$ is the complement of $Y$.