Is there a "primitive-recursively enumerable" set whose complement is not such? - MathOverflow most recent 30 from http://mathoverflow.net2013-05-25T02:14:20Zhttp://mathoverflow.net/feeds/question/21087http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/21087/is-there-a-primitive-recursively-enumerable-set-whose-complement-is-not-suchIs there a "primitive-recursively enumerable" set whose complement is not such?Andrej Bauer2010-04-12T11:11:19Z2010-04-12T12:59:17Z
<p>Call a subset of $\mathbb{N}$ <em>primitive-recursively enumerable (p-r.e.)</em> if it is empty or an image of a primitive recursive function. I feel like a lot must be known about the poset of such sets ordered by inclusion, but I am unable to dig up references. Concretely, I would like to know whether there exists a p-r.e. set whose complement is not p-r.e.</p>
<p>The answer is affirmative if there is a complete set (in the sense of many-to-one reducibilities) that is enumerated by a primitive recursive function. My hunch is that such a set exists, but cannot come up with one.</p>
http://mathoverflow.net/questions/21087/is-there-a-primitive-recursively-enumerable-set-whose-complement-is-not-such/21101#21101Answer by Chad Groft for Is there a "primitive-recursively enumerable" set whose complement is not such?Chad Groft2010-04-12T12:25:29Z2010-04-12T12:25:29Z<p>There is a stronger result: <em>Every r.e. set is primitive r.e. in your sense.</em></p>
<p>Short proof: Kleene's Normal Form Theorem.</p>
<p>Longer proof: Let <em>S</em> be an r.e. set, assumed WLOG nonempty; fix <em>a</em> ∈ <em>S</em>, and fix an algorithm <em>e</em> where <em>S</em> is precisely the range of the function computed by <em>e</em>.</p>
<p>Consider the following algorithm: Given the input pair (<em>n</em>, <em>M</em>), run <em>e</em> on input <em>n</em> for <em>M</em> steps. If it gives an output by then, output whatever <em>e</em> outputs; otherwise output <em>a</em>.</p>
<p>The functions which set up the initial state of computation, advance a state by one step, and extract the output from a final state, are all p.r. Thus the above algorithm defines a p.r. function, and it is easy to check that its range is <em>S</em>.</p>
<p>Edit: Cutland's <em>Computability</em> is a decent resource for these questions.</p>
http://mathoverflow.net/questions/21087/is-there-a-primitive-recursively-enumerable-set-whose-complement-is-not-such/21102#21102Answer by Antonio E. Porreca for Is there a "primitive-recursively enumerable" set whose complement is not such?Antonio E. Porreca2010-04-12T12:26:07Z2010-04-12T12:59:17Z<p>This is an interesting question. From B. Rosser, <a href="http://www.jstor.org/sici?sici=0022-4812%28193609%291%3A3%3C87%3AEOSTOG%3E2%2E0%2ECO%3B2-7" rel="nofollow">Extensions of some theorems of Gödel and Church</a>:</p>
<blockquote>
<p>Corollary I. <em>If a class can be enumerated (allowing repetitions) by a general recursive function, it can be enumerated (allowing repetitions) by a primitive recursive function.</em></p>
</blockquote>
<p>Hence any complete recursively enumerable set (such as <em>K</em>) should work.</p>
http://mathoverflow.net/questions/21087/is-there-a-primitive-recursively-enumerable-set-whose-complement-is-not-such/21103#21103Answer by Joel David Hamkins for Is there a "primitive-recursively enumerable" set whose complement is not such?Joel David Hamkins2010-04-12T12:26:07Z2010-04-12T12:26:07Z<p>I claim that a set is primitive recursive enumerable if and only if it is computably enumerable. So the answer to your question is affirmative. </p>
<p>Clearly any p-r.e. set is c.e., since primitive recursive functions are computable. Conversely, suppose that A is computably enumerable. We want to show A is p-r.e. If A is empty, then we're done. So fix some element a<sub>0</sub> in A. Since A is c.e., it is the domain of a computable function f, computed by program e. Consider now the function h(s,n) = n, if s codes the proof of a halting computation of program e on input n, and otherwise h(s,n) = a<sub>0</sub>. The function h is defined by Δ<sub>0</sub> cases, and hence is primitive recursive. Also, the range of h is A, as desired. </p>
<p>So there are numerous sets A as you desire!</p>