proof that specific disjoint sets are recursively enumerable, but don't lie in a decidable set and its...












1














let's call a set $A subseteq mathbb{N}$ recursively enumerable if it's "partial characteristic function" $tilde{chi}_A$ is computable, whereby $tilde{chi}_A$ is defined as: $tilde{chi}_A$:= 1, if $x in A$ and $tilde{chi}_A$ is undefined otherwise.



Now for $i = 0,1$ let $P_i$ be the set of all programmes p that terminate for input p and have output i. It's clear that $P_0 cap P_1 = emptyset$.

I'd be glad if you could help me with showing that the sets $P_0$ and $P_1$ are recursively enumerable, but that there's no decidable set E with $P_0 subseteq E$, $P_1 subseteq mathbb{N}backslash E$.



Looking forward to your suggestions!










share|cite|improve this question





























    1














    let's call a set $A subseteq mathbb{N}$ recursively enumerable if it's "partial characteristic function" $tilde{chi}_A$ is computable, whereby $tilde{chi}_A$ is defined as: $tilde{chi}_A$:= 1, if $x in A$ and $tilde{chi}_A$ is undefined otherwise.



    Now for $i = 0,1$ let $P_i$ be the set of all programmes p that terminate for input p and have output i. It's clear that $P_0 cap P_1 = emptyset$.

    I'd be glad if you could help me with showing that the sets $P_0$ and $P_1$ are recursively enumerable, but that there's no decidable set E with $P_0 subseteq E$, $P_1 subseteq mathbb{N}backslash E$.



    Looking forward to your suggestions!










    share|cite|improve this question



























      1












      1








      1







      let's call a set $A subseteq mathbb{N}$ recursively enumerable if it's "partial characteristic function" $tilde{chi}_A$ is computable, whereby $tilde{chi}_A$ is defined as: $tilde{chi}_A$:= 1, if $x in A$ and $tilde{chi}_A$ is undefined otherwise.



      Now for $i = 0,1$ let $P_i$ be the set of all programmes p that terminate for input p and have output i. It's clear that $P_0 cap P_1 = emptyset$.

      I'd be glad if you could help me with showing that the sets $P_0$ and $P_1$ are recursively enumerable, but that there's no decidable set E with $P_0 subseteq E$, $P_1 subseteq mathbb{N}backslash E$.



      Looking forward to your suggestions!










      share|cite|improve this question















      let's call a set $A subseteq mathbb{N}$ recursively enumerable if it's "partial characteristic function" $tilde{chi}_A$ is computable, whereby $tilde{chi}_A$ is defined as: $tilde{chi}_A$:= 1, if $x in A$ and $tilde{chi}_A$ is undefined otherwise.



      Now for $i = 0,1$ let $P_i$ be the set of all programmes p that terminate for input p and have output i. It's clear that $P_0 cap P_1 = emptyset$.

      I'd be glad if you could help me with showing that the sets $P_0$ and $P_1$ are recursively enumerable, but that there's no decidable set E with $P_0 subseteq E$, $P_1 subseteq mathbb{N}backslash E$.



      Looking forward to your suggestions!







      computability decidability






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 2 days ago









      Andrés E. Caicedo

      64.7k8158246




      64.7k8158246










      asked Dec 26 at 2:03









      Studentu

      988




      988






















          1 Answer
          1






          active

          oldest

          votes


















          1














          The partial characteristic function of $P_0$ is computable by the algorithm: "On input $p$, run program $p$ with input $p$; if and when it terminates with output $0$, print $1$." $P_1$ is recursively enumerable similarly.



          If they were separated by a decidable set $E$ as in the question, let $p$ be a program that outputs $1$ when $pin E$ and outputs $0$ when $pnotin E$, i.e., $p$ computes the characteristic function of $E$. What would $p$ do when fed input $p$? It must eventually halt and output $0$ or $1$, since that's all $p$ ever does on any input. If it outputs $0$, then that means $pin P_0subseteq E$, so, by our choice of $p$, it should, on input $p$, compute $1$. Similarly, if $p$ on input $p$ outputs $1$, then $pin P_1$, so $pnotin E$, and $p$ on input $p$ should output $0$. So we have a contradiction in either case. Therefore, no such program $p$ can exist.






          share|cite|improve this answer





















          • Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
            – Studentu
            2 days ago











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "69"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3052577%2fproof-that-specific-disjoint-sets-are-recursively-enumerable-but-dont-lie-in-a%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The partial characteristic function of $P_0$ is computable by the algorithm: "On input $p$, run program $p$ with input $p$; if and when it terminates with output $0$, print $1$." $P_1$ is recursively enumerable similarly.



          If they were separated by a decidable set $E$ as in the question, let $p$ be a program that outputs $1$ when $pin E$ and outputs $0$ when $pnotin E$, i.e., $p$ computes the characteristic function of $E$. What would $p$ do when fed input $p$? It must eventually halt and output $0$ or $1$, since that's all $p$ ever does on any input. If it outputs $0$, then that means $pin P_0subseteq E$, so, by our choice of $p$, it should, on input $p$, compute $1$. Similarly, if $p$ on input $p$ outputs $1$, then $pin P_1$, so $pnotin E$, and $p$ on input $p$ should output $0$. So we have a contradiction in either case. Therefore, no such program $p$ can exist.






          share|cite|improve this answer





















          • Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
            – Studentu
            2 days ago
















          1














          The partial characteristic function of $P_0$ is computable by the algorithm: "On input $p$, run program $p$ with input $p$; if and when it terminates with output $0$, print $1$." $P_1$ is recursively enumerable similarly.



          If they were separated by a decidable set $E$ as in the question, let $p$ be a program that outputs $1$ when $pin E$ and outputs $0$ when $pnotin E$, i.e., $p$ computes the characteristic function of $E$. What would $p$ do when fed input $p$? It must eventually halt and output $0$ or $1$, since that's all $p$ ever does on any input. If it outputs $0$, then that means $pin P_0subseteq E$, so, by our choice of $p$, it should, on input $p$, compute $1$. Similarly, if $p$ on input $p$ outputs $1$, then $pin P_1$, so $pnotin E$, and $p$ on input $p$ should output $0$. So we have a contradiction in either case. Therefore, no such program $p$ can exist.






          share|cite|improve this answer





















          • Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
            – Studentu
            2 days ago














          1












          1








          1






          The partial characteristic function of $P_0$ is computable by the algorithm: "On input $p$, run program $p$ with input $p$; if and when it terminates with output $0$, print $1$." $P_1$ is recursively enumerable similarly.



          If they were separated by a decidable set $E$ as in the question, let $p$ be a program that outputs $1$ when $pin E$ and outputs $0$ when $pnotin E$, i.e., $p$ computes the characteristic function of $E$. What would $p$ do when fed input $p$? It must eventually halt and output $0$ or $1$, since that's all $p$ ever does on any input. If it outputs $0$, then that means $pin P_0subseteq E$, so, by our choice of $p$, it should, on input $p$, compute $1$. Similarly, if $p$ on input $p$ outputs $1$, then $pin P_1$, so $pnotin E$, and $p$ on input $p$ should output $0$. So we have a contradiction in either case. Therefore, no such program $p$ can exist.






          share|cite|improve this answer












          The partial characteristic function of $P_0$ is computable by the algorithm: "On input $p$, run program $p$ with input $p$; if and when it terminates with output $0$, print $1$." $P_1$ is recursively enumerable similarly.



          If they were separated by a decidable set $E$ as in the question, let $p$ be a program that outputs $1$ when $pin E$ and outputs $0$ when $pnotin E$, i.e., $p$ computes the characteristic function of $E$. What would $p$ do when fed input $p$? It must eventually halt and output $0$ or $1$, since that's all $p$ ever does on any input. If it outputs $0$, then that means $pin P_0subseteq E$, so, by our choice of $p$, it should, on input $p$, compute $1$. Similarly, if $p$ on input $p$ outputs $1$, then $pin P_1$, so $pnotin E$, and $p$ on input $p$ should output $0$. So we have a contradiction in either case. Therefore, no such program $p$ can exist.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 26 at 2:32









          Andreas Blass

          49.2k351106




          49.2k351106












          • Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
            – Studentu
            2 days ago


















          • Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
            – Studentu
            2 days ago
















          Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
          – Studentu
          2 days ago




          Oh, I understand, it's so much easier than I thought! Thank you very much for the good explanation!
          – Studentu
          2 days ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3052577%2fproof-that-specific-disjoint-sets-are-recursively-enumerable-but-dont-lie-in-a%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅