Are Spectrums Recursive?

Logic Level 4

Given a first order vocabulary σ \sigma and a sentence φ \varphi over σ \sigma , a subset M N M \subseteq \mathbb{N} of natural numbers is called the spectrum φ \varphi if for each n M n \in M , there is a model satisfying φ \varphi containing exactly n n elements.

For example, the spectrum of the following sentence is the set of even numbers.

x [ S ( x ) ¬ T ( x ) f ( f ( x ) ) = x S ( x ) T ( f ( x ) ) ] \forall x ~ \left [S(x) \iff \neg T(x) \\ \land~ f(f(x))=x \\ \land~ S(x) \iff T(f(x))\right ]

A set M N M \subseteq \mathbb{N} is said to be recursive if given a natural n n , a Turing Machine can determine whether n M n \in M or n ∉ M n \not \in M .

Which of the following are true?

All spectrums are recursive Neither of Them All recursive sets are spectrums Both of Them

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

R Mathe
May 6, 2018

( \Rightarrow .) Let M N M\subseteq\mathbb{N} be a spectrum. Then there exists a formula φ \varphi over σ \sigma , such that M = { A : A a $ \sigma $-structure , A φ } M=\{|\frak{A}|:\frak{A}\textrm{ a \$\sigma\$-structure},~\mathfrak{A}\vDash\varphi\} . Since the elements of a structure do not matter, and only finitely many symbols occur in φ \varphi , it suffices to restrict to models of finite signature with domains of the form { 0 , 1 , , n 1 } \{0,1,\ldots,n-1\} . For any n n there are thus only finitely many σ \sigma -structures to check, each of which can be performed in a uniformly recursive manner, to determine, whether or not there is a structure of size n n satisfying φ \varphi . Hence M M is recursive.

( ⇍ \not\Leftarrow .) Wlog we restrict to a countably infinite vocabulary, σ \sigma , with countably infinitely many relations all arities, function all arities and constants. We also enumerate the symbols σ \sigma such that it everything is recursive: determining whether or not a (code for a) formula is a well defined formula, whether or not a σ \sigma -structure of a given size exists (utilising the above-mentioned finite-reduction trick) that satisfies a given formula, the length (or complexity) of a formula, etc. I’ll leave out the details, as that is a tedium and does not shed any light on anything.

Defn 1. Let [ ] [\cdot] denote a suitable coding of formulae (preferably not the horrible one that Gödel used, better one that uses the much more mathematically practical encoding via prime powers). Denote the corresponding (strikt) linear ordering of the formulae by \prec , ie ψ ϕ \psi\prec\phi iff [ ψ ] < [ ϕ ] [\psi]<[\phi] . Note that each formula has necessarily only finitely many \prec -predecessors.

Defn 2. For any σ \sigma -sentence, φ \varphi , let M ( φ ) N M(\varphi)\subseteq\mathbb{N} denote the spectrum of φ \varphi . In the following subsets of naturals will be occasionally be viewed dually as an element of 2 ω 2^{\omega} .

Defn 3.

For s 2 < ω s\in 2^{<\omega} set D ( s ) : = { φ a $ \sigma $-sentence : s M ( φ ) } D(s):=\{\varphi\textrm{ a \$\sigma\$-sentence}:s\subseteq M(\varphi)\} .

Defn 4.

Set δ : s 2 < ω min { [ φ ] : φ D ( s ) } N \delta:s\in 2^{<\omega}\mapsto\min\{[\varphi]:\varphi\in D(s)\}\in\mathbb{N} .

Observation 5. δ \delta is well-defined: For every s 2 < ω s\in 2^{<\omega} one has at least s M ( φ s ) s\subseteq M(\varphi_{s}) where φ s : i < s , s ( i ) = 1 φ i ¬ i < s , s ( i ) = 0 φ i \varphi_{s}:\equiv\bigvee_{i<|s|,~s(i)=1}\varphi_{i}\wedge\neg\bigvee_{i<|s|,~s(i)=0}\varphi_{i} and φ i : x 0 x 1 x n 1 i < j < n x i x j x 0 x 1 x n i < j < n x i = x j \varphi_{i}:\equiv\exists{x_{0}}\exists{x_{1}}\ldots\exists{x_{n-1}}\bigwedge_{i<j<n}x_{i}\neq x_{j}\wedge\forall{x_{0}}\forall{x_{1}}\ldots\forall{x_{n}}\bigvee_{i<j<n}x_{i}=x_{j} . It is easy to show that the map s [ φ s ] s\mapsto[\varphi_{s}] is recursive. Due to the above ramble about ‘everything’ being recursive, and since s [ φ s ] s\mapsto[\varphi_{s}] yields a clearly recursive function providing upper bounds for the code of the minimal sentence in D ( s ) D(s) , it holds that δ \delta is a recursive function.

Defn 6. For any spectrum, M M , let ψ ^ M \hat{\psi}_{M} denote the \prec -minimal sentence with M ( ψ ^ M ) = M M(\hat{\psi}_{M})=M .

The point of this construction is as follows.

Claim 7. For all spectra, M M there exists s M M s_{M}\subseteq M sufficiently large, such that for all s 2 < ω s\in 2^{<\omega} with s M s M s_{M}\subseteq s\subseteq M it holds that δ ( s ) = [ ψ ^ M ] \delta(s)=[\hat{\psi}_{M}] . Pf. Consider all sentences ϕ \phi with ϕ ψ ^ M \phi\prec\hat{\psi}_{M} . There are only finitely many of these! List them out: ψ 0 , ψ 1 , , ψ N 1 \psi_{0},\psi_{1},\ldots,\psi_{N-1} . Due to minimality, M ( ψ j ) M M(\psi_{j})\neq M for all j < N j<N . Since there are only finitely many sets here, and viewing these dually as elements of 2 N 2^{\mathbb{N}} , there exists a finite segment s M M s_{M}\subseteq M so that s M M ( ψ i ) s_{M}\nsubseteq M(\psi_{i}) for all i < N i<N . The same holds true for any s 2 < ω s\in 2^{<\omega} with s M s M s_{M}\subseteq s\subseteq M . Thus for no sentence ϕ \phi with [ ϕ ] < [ ψ ^ M ] [\phi]<[\hat{\psi}_{M}] does it hold that s M ( ϕ ) s\subseteq M(\phi) . On the other hand, ψ ^ M \hat{\psi}_{M} is a sentence and s M = M ( ψ ^ M ) s\subseteq M=M(\hat{\psi}_{M}) . Hence [ ψ M ] = δ ( s ) [\psi_{M}]=\delta(s) . QED.

Corollary. Let M M be a spectrum and m 2 N m\in 2^{\mathbb{N}} the corresponding dual element. Then the sequence ( δ ( m n ) ) n N (\delta(m\vert n))_{n\in\mathbb{N}} converges in N \mathbb{N} , ie terminates.

That is, every spectrum can be identified in terms of its minimal sentence, via δ \delta and a sufficiently large finite fragment of itself viewed as an element of 2 N 2^{\mathbb{N}} . The idea now, is to come up with a way for recursive sets to escape this property of being captured in this manner.

Claim 8. The map s D ( s ) s\mapsto D(s) is antitone und hence s δ ( s ) s\mapsto\delta(s) is monotone. Pf. Let s s s\subseteq s' in 2 < ω 2^{<\omega} . For ϕ D ( s ) \phi\in D(s') it holds that s M ( ϕ ) s'\subseteq M(\phi) , hence s M ( ϕ ) s\subseteq M(\phi) , hence ϕ D ( s ) \phi\in D(s) . Thus D ( s ) D ( s ) D(s')\subseteq D(s) . QED.

Claim 9. For all s 2 < ω s\in 2^{<\omega} there exists s s s'\supset s in 2 < ω 2^{<\omega} , such that δ ( s ) > δ ( s ) \delta(s')>\delta(s) . In fact, one can choose s s' to be one element longer than s s . Pf. By monotonicity (claim 8) it suffices to show that δ ( s ) δ ( s ) \delta(s')\neq\delta(s) for some s s s'\supset s . Let ϕ \phi be the sentence such that [ ϕ ] = δ ( s ) [\phi]=\delta(s) . Let M = M ( ϕ ) M=M(\phi) . Now choose s s s'\supset s to be longer by one element, with s M s'\nsubseteq M : ie if s M |s|\in M , set s = s 0 s'=s^{\frown}0 and if s M |s|\notin M , set s = s 1 s'=s^{\frown}1 . Then ϕ D ( s ) \phi\notin D(s') , since s M ( ϕ ) s'\nsubseteq M(\phi) . Hence δ ( s ) [ ϕ ] \delta(s')\neq[\phi] . QED.

Claim 10. The map α : s 2 < N min lex { s 2 < ω : δ ( s ) > δ ( s ) } \alpha:s\in 2^{<\mathbb{N}}\mapsto \min_{\text{lex}}\{s'\in 2^{<\omega}:\delta(s')>\delta(s)\} is recursive and satisfies α ( s ) = s + 1 |\alpha(s)|=|s|+1 . Pf. For a given s s one only has to choose between s : = s 0 s':=s^{\frown}0 and s : = s 1 s':=s^{\frown}1 . By claim 9 one of these satisfies δ ( s ) > δ ( s ) \delta(s')>\delta(s) . If both of them do, then one chooses the first one (this is then the lexical minimum). Since δ \delta is recursive, checking each option is recursive. Hence α \alpha is well-defined and recursive. QED.

Construction. Appealing to these results of monotonicity and we now apply a typical trick of constructing an object, exhibitting too rapid a growth in terms of δ \delta and its initial segments. The idea is to appeal to initial segments of the set being constructed to avoid being captured by a sentence.

Set d 0 = 2 < ω d_{0}=\langle\rangle\in 2^{<\omega} and d n + 1 = α ( d n ) d_{n+1}=\alpha(d_{n}) for each n N n\in\mathbb{N} . Set Δ : = { k N : d k + 1 ( k ) = 1 } \Delta:=\{k\in\mathbb{N}:d_{k+1}(k)=1\} .

It is easy to show that the relation { ( k , n ) : k < n d n ( k ) = 1 } \{(k,n):k<n~\wedge~d_{n}(k)=1\} is recursive (appealing to primitive recursion and the recursivity of α \alpha ), and thus that Δ \Delta is recursive. Furthermore, by strict monotonicity of α \alpha (see claim 10), one has

d 0 d 1 d 2 d_{0}\subset d_{1}\subset d_{2}\subset\ldots , and thus d : = n N d n 2 N d:=\bigcup_{n\in\mathbb{N}}d_{n}\in 2^{\mathbb{N}} and furthermore Δ = { k N : d ( k ) = 1 } \Delta=\{k\in\mathbb{N}:d(k)=1\} .

Hence Δ \Delta is the dual object to the infinite 0-1-sequence d d .

We finally show that Δ \Delta is not a spectrum. By the corollary to Claim 7, and since d d is the dual object to Δ \Delta it suffices to show that ( δ ( d n ) ) n N (\delta(d\vert n))_{n\in\mathbb{N}} does not terminate. Note that by construction d n = d n d\vert n =d_{n} for all n N n\in\mathbb{N} . Further, by construction, one has δ ( d n + 1 ) = δ ( α ( d n ) ) > δ ( d n ) \delta(d_{n+1})=\delta(\alpha(d_{n}))>\delta(d_{n}) for all n N n\in\mathbb{N} . Hence δ ( d 0 ) < δ ( d 1 ) < δ ( d 2 ) < \delta(d_{0})<\delta(d_{1})<\delta(d_{2})<\ldots . Hence the sequence ( δ ( d n ) ) n N (\delta(d\vert n))_{n\in\mathbb{N}} does not terminate. Thus by the corollary to Claim 7, Δ \Delta cannot be a spectrum.

Hence, Δ \Delta is a recursive set that is not a spectrum. QED.


Note the notation: for s 2 < ω s\in 2^{<\omega} , f 2 N f\in 2^{\mathbb{N}} and n < s n<|s| I denote by s n s\vert n and f n f\vert n the restriction of these functions to { 0 , 1 , 2 , , n 1 } \{0,1,2,\ldots,n-1\} . In set theory, one denotes this set simply as n n , so this notation makes sense.

@Agnishom Chattopadhyay my solution is now complete. I had to rethink my approach, and view the problem differently. A diagonal construction didn’t really do it, the trick was rapid growth. To do this, I first prove that one can characterise or capture spectra by finite initial segments of them. Then it is just a matter of suitably diverging from all finite segments in a manner than escapes being captured by a formula, as happens to spectra. Hope you enjoy it!

R Mathe - 3 years ago

Log in to reply

Thank you for your hard work in putting this together. I did not think the whole thing through when I posted this problem.

I have not yet read the whole thing, but can you clarify what the notation N < ω \mathbb{N}^{< \omega} is? Does it refer to finite lists of natural numbers?

Log in to reply

Your intuition is correct. My background is set theory. We use interchangeably ω = N = { 0 , 1 , 2 , } \omega=\mathbb{N}=\{0,1,2,\ldots\} . The first symbol has further meaning as the first infinite ordinal. The set X < ω X^{<\omega} is the set of finite sequences s = s ( 0 ) , s ( 1 ) , , s ( n 1 ) s=\langle s(0),s(1),\ldots,s(n-1)\rangle for each n N n\in\mathbb{N} and where s ( 0 ) , s ( 1 ) , , s ( n 1 ) X s(0),s(1),\ldots,s(n-1)\in X . Note that for n = 0 n=0 this is the unique empty sequence. For X = N X=\mathbb{N} , the set X < ω X^{<\omega} is the set of finite sequences of natural numbers. For X = 2 X=2 , the set X < ω X^{<\omega} is the set of finite 0-1 sequences (in set theory 2 = { 0 , 1 } 2=\{0,1\} , so this notation makes a lot of sense). I think I wrote N < ω \mathbb{N}^{<\omega} above, but meant 2 < ω 2^{<\omega} . I’ll have a look and edit it.

It’s worth noting, that there is a recursive bijection between N \mathbb{N} and 2 < ω 2^{<\omega} , so that one can view everything above in terms of elements of N \mathbb{N} . But in recursion theory, it kind of doesn’t matter. In fact, there is a lot of flexibility, and being recursive (respectively r.e.) turns out to be equivalent to being a Δ 1 0 \Delta^{0}_{1} (respectively Σ 1 0 \Sigma^{0}_{1} ) set/function.

PS: It’s worth learning about ordinals / transfinite-arithmetic in general, although it does not come into play in this problem at all. I recommend Jech or Kunen.

R Mathe - 3 years ago

Log in to reply

@R Mathe Yes, I want to learn about ordinal arithmetic too. Thanks for the reccomendations.

So, suppose s 2 < ω s \in 2^{< \omega} , then what does the notation t s t \subseteq s or s t s \subseteq t mean? Are we considering them as multisets here? Or are we just ignoring the order and considering the sequence s s as the set of elements used in it.

I am not also able to understand the proof of Claim 7 . How do you use ψ 0 , ψ 1 , , ψ N 1 \psi_{0},\psi_{1},\ldots,\psi_{N-1} to construct s M M s_{M}\subseteq M as mentioned in the next sentence?

Log in to reply

@Agnishom Chattopadhyay The elements of 2 < ω 2^{<\omega} are just partial functions, so f g f\subseteq g means, that the functions (viewed via their graphs) are subsets of each other. This is also clearly equivalent to: dom ( f ) dom ( g ) \text{dom}(f)\subseteq\text{dom}(g) and f ( x ) = g ( x ) f(x)=g(x) for all x dom ( f ) x\in\text{dom}(f) , or in other words that ‘ g g extends f f ’.

Towards Claim 7, I admit I rushed that, as it is a bit messy. We have the N N sets X 0 : = M ( ψ 0 ) X_{0}:=M(\psi_{0}) , X 1 : = M ( ψ 1 ) X_{1}:=M(\psi_{1}) , \ldots , X N 1 : = M ( ψ N 1 ) X_{N-1}:=M(\psi_{N-1}) and the set M M , satisfying M X i M\neq X_{i} for all i < N i<N . Viewing their dual objects x 0 , x 1 , , x N 1 , m 2 N x_{0},x_{1},\ldots,x_{N-1},m\in 2^{\mathbb{N}} respectively, we have m x i m\neq x_{i} for all i < N i<N . Now for two functions f , g 2 N f,g\in 2^{\mathbb{N}} it holds

[ t ] r c l f g n N : f ( n ) g ( n ) n N : f n g n s 2 < ω : s f , s g \begin{array}{c}[t]{rcl} f\neq g &\Longleftrightarrow &\exists{n\in\mathbb{N}:~}f(n)\neq g(n)\\ &\Longleftrightarrow &\exists{n\in\mathbb{N}:~}f\mid n\neq g\mid n\\ &\Longleftrightarrow &\exists{s\in 2^{<\omega}:~}s\subseteq f,~s\nsubseteq g\\ \end{array}

Hence there are s 0 , s 1 , , s N 1 2 < ω s_{0},s_{1},\ldots,s_{N-1}\in 2^{<\omega} with s i m s_{i}\subseteq m and s i x i s_{i}\nsubseteq x_{i} for all i < N i<N . Let s : = i < N s i s:=\bigcup_{i<N}s_{i} . Since N N is finite, it holds s 2 < ω s\in 2^{<\omega} . Further more it clearly still holds that s m s\subseteq m , since is it is a union of initial segments of m m . For each i < N i<N , since s i s s_{i}\subseteq s , it must hold that s x i s\nsubseteq x_{i} , otherwise by transitivity s i x i s_{i}\subseteq x_{i} which is a contradiction.

Summarised: there exists by virtue of M M ( ψ i ) M\neq M(\psi_{i}) for all i < N i<N an initial finite segment s M s\subseteq M , such that s M ( ψ i ) s\nsubseteq M(\psi_{i}) for all i < N i<N .

R Mathe - 3 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...