PCP undecidability

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












There is a popular proof for the undecidability of the PCP (Post correspondence problem), which is outlined here:



https://en.wikipedia.org/wiki/Post_correspondence_problem



I'll assume whoever will answer the question will be familiar with this proof.




I have seen this proof elsewhere and this kind of proof always mentions that if the $TM M$ halts we can solve the instance of the PCP. So far so good.



Now I was thinking about the case when the $TM M$ does not halt on input $w$.
Then out total number of tuples/pairs ($small(a_i,b_i)$, which get passed onto the PCP) should be countably infinite.



How can we even try to solve the PCP at this point ? Or do we implicitly think: "Thats impossible !" and say "There is no solution!" ?



This part confuses me very much because for the case that the TM halts we construct such a complex method and it seemed "cheap" to just throw the towel for the case when it would not halt.



I hope I could make my thoughts understandable, without much formality.



Any help is appreciated.







share|cite|improve this question
















  • 1




    The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
    – Yuval Filmus
    Aug 7 at 19:22










  • @YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
    – zython
    Aug 7 at 19:30















up vote
3
down vote

favorite












There is a popular proof for the undecidability of the PCP (Post correspondence problem), which is outlined here:



https://en.wikipedia.org/wiki/Post_correspondence_problem



I'll assume whoever will answer the question will be familiar with this proof.




I have seen this proof elsewhere and this kind of proof always mentions that if the $TM M$ halts we can solve the instance of the PCP. So far so good.



Now I was thinking about the case when the $TM M$ does not halt on input $w$.
Then out total number of tuples/pairs ($small(a_i,b_i)$, which get passed onto the PCP) should be countably infinite.



How can we even try to solve the PCP at this point ? Or do we implicitly think: "Thats impossible !" and say "There is no solution!" ?



This part confuses me very much because for the case that the TM halts we construct such a complex method and it seemed "cheap" to just throw the towel for the case when it would not halt.



I hope I could make my thoughts understandable, without much formality.



Any help is appreciated.







share|cite|improve this question
















  • 1




    The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
    – Yuval Filmus
    Aug 7 at 19:22










  • @YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
    – zython
    Aug 7 at 19:30













up vote
3
down vote

favorite









up vote
3
down vote

favorite











There is a popular proof for the undecidability of the PCP (Post correspondence problem), which is outlined here:



https://en.wikipedia.org/wiki/Post_correspondence_problem



I'll assume whoever will answer the question will be familiar with this proof.




I have seen this proof elsewhere and this kind of proof always mentions that if the $TM M$ halts we can solve the instance of the PCP. So far so good.



Now I was thinking about the case when the $TM M$ does not halt on input $w$.
Then out total number of tuples/pairs ($small(a_i,b_i)$, which get passed onto the PCP) should be countably infinite.



How can we even try to solve the PCP at this point ? Or do we implicitly think: "Thats impossible !" and say "There is no solution!" ?



This part confuses me very much because for the case that the TM halts we construct such a complex method and it seemed "cheap" to just throw the towel for the case when it would not halt.



I hope I could make my thoughts understandable, without much formality.



Any help is appreciated.







share|cite|improve this question












There is a popular proof for the undecidability of the PCP (Post correspondence problem), which is outlined here:



https://en.wikipedia.org/wiki/Post_correspondence_problem



I'll assume whoever will answer the question will be familiar with this proof.




I have seen this proof elsewhere and this kind of proof always mentions that if the $TM M$ halts we can solve the instance of the PCP. So far so good.



Now I was thinking about the case when the $TM M$ does not halt on input $w$.
Then out total number of tuples/pairs ($small(a_i,b_i)$, which get passed onto the PCP) should be countably infinite.



How can we even try to solve the PCP at this point ? Or do we implicitly think: "Thats impossible !" and say "There is no solution!" ?



This part confuses me very much because for the case that the TM halts we construct such a complex method and it seemed "cheap" to just throw the towel for the case when it would not halt.



I hope I could make my thoughts understandable, without much formality.



Any help is appreciated.









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 7 at 19:14









zython

217110




217110







  • 1




    The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
    – Yuval Filmus
    Aug 7 at 19:22










  • @YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
    – zython
    Aug 7 at 19:30













  • 1




    The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
    – Yuval Filmus
    Aug 7 at 19:22










  • @YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
    – zython
    Aug 7 at 19:30








1




1




The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
– Yuval Filmus
Aug 7 at 19:22




The total number of tile pairs is always finite. I suggest reading a formal account, for example in Sipser's textbook.
– Yuval Filmus
Aug 7 at 19:22












@YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
– zython
Aug 7 at 19:30





@YuvalFilmus I actually have a copy of Sipser, do you mind giving a reference, because while I have not rigorously studied the proof in sipser I never saw anything about the case where the TM does not halt
– zython
Aug 7 at 19:30











2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










An instance of PCP consists of a finite list of tiles. The proof that PCP is undecidable consists of a computable reduction $f$ with the following properties:



  • The input to $f$ is a Turing machine $M$ and a valid input $w$ to $M$.

  • The output of $f$ is an instance of PCP (i.e., a finite list of tiles).

  • The PCP instance $f(M,w)$ is a Yes instance iff $M$ halts on $w$.

A further property of the reduction is that the number of tiles depends only on $M$, though the contents of one of the tiles depends on $w$.



Let us denote the tiles by $(a_1,b_1),ldots,(a_n,b_n)$.
When $M$ halts on $w$, there exists a number $N$ and a sequence $i_1,ldots,i_N in 1,ldots,n$ such that $$ a_i_1 a_i_2 ldots a_i_N = b_i_1 b_i_2 ldots b_i_N. $$
When $M$ does not halt on $w$, no such $N$ exists. However, there does exist an infinite sequence $i_1,i_2,ldots$ such that $$ a_i_1 a_i_2 ldots = b_i_1 b_i_2 ldots, $$
where both sides are infinite words. Perhaps this is what you meant by "total number of tiles". The actual number of tiles is always finite, and independent of the input. The number of instances of tiles required to "solve" the PCP instance could be finite or infinite; but we only consider finite solutions as valid.






share|cite|improve this answer




















  • thank you for answering; you understood my question. accepted !
    – zython
    Aug 8 at 8:06

















up vote
2
down vote














Then out total number of tuples/pairs ((ai,bi), which get passed onto the PCP) should be countably infinite.




I'm not entirely sure what you are trying to say here, but it sounds like this statement is the flaw in your reasoning. The number of pairs is always finite, regardless of whether the Turing machine halts or doesn't halt. Since you haven't provided any justification for this claim, it's not clear why you think it is true or what your specific confusion is, but this claim is false.






share|cite|improve this answer




















    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: "419"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f96057%2fpcp-undecidability%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    An instance of PCP consists of a finite list of tiles. The proof that PCP is undecidable consists of a computable reduction $f$ with the following properties:



    • The input to $f$ is a Turing machine $M$ and a valid input $w$ to $M$.

    • The output of $f$ is an instance of PCP (i.e., a finite list of tiles).

    • The PCP instance $f(M,w)$ is a Yes instance iff $M$ halts on $w$.

    A further property of the reduction is that the number of tiles depends only on $M$, though the contents of one of the tiles depends on $w$.



    Let us denote the tiles by $(a_1,b_1),ldots,(a_n,b_n)$.
    When $M$ halts on $w$, there exists a number $N$ and a sequence $i_1,ldots,i_N in 1,ldots,n$ such that $$ a_i_1 a_i_2 ldots a_i_N = b_i_1 b_i_2 ldots b_i_N. $$
    When $M$ does not halt on $w$, no such $N$ exists. However, there does exist an infinite sequence $i_1,i_2,ldots$ such that $$ a_i_1 a_i_2 ldots = b_i_1 b_i_2 ldots, $$
    where both sides are infinite words. Perhaps this is what you meant by "total number of tiles". The actual number of tiles is always finite, and independent of the input. The number of instances of tiles required to "solve" the PCP instance could be finite or infinite; but we only consider finite solutions as valid.






    share|cite|improve this answer




















    • thank you for answering; you understood my question. accepted !
      – zython
      Aug 8 at 8:06














    up vote
    3
    down vote



    accepted










    An instance of PCP consists of a finite list of tiles. The proof that PCP is undecidable consists of a computable reduction $f$ with the following properties:



    • The input to $f$ is a Turing machine $M$ and a valid input $w$ to $M$.

    • The output of $f$ is an instance of PCP (i.e., a finite list of tiles).

    • The PCP instance $f(M,w)$ is a Yes instance iff $M$ halts on $w$.

    A further property of the reduction is that the number of tiles depends only on $M$, though the contents of one of the tiles depends on $w$.



    Let us denote the tiles by $(a_1,b_1),ldots,(a_n,b_n)$.
    When $M$ halts on $w$, there exists a number $N$ and a sequence $i_1,ldots,i_N in 1,ldots,n$ such that $$ a_i_1 a_i_2 ldots a_i_N = b_i_1 b_i_2 ldots b_i_N. $$
    When $M$ does not halt on $w$, no such $N$ exists. However, there does exist an infinite sequence $i_1,i_2,ldots$ such that $$ a_i_1 a_i_2 ldots = b_i_1 b_i_2 ldots, $$
    where both sides are infinite words. Perhaps this is what you meant by "total number of tiles". The actual number of tiles is always finite, and independent of the input. The number of instances of tiles required to "solve" the PCP instance could be finite or infinite; but we only consider finite solutions as valid.






    share|cite|improve this answer




















    • thank you for answering; you understood my question. accepted !
      – zython
      Aug 8 at 8:06












    up vote
    3
    down vote



    accepted







    up vote
    3
    down vote



    accepted






    An instance of PCP consists of a finite list of tiles. The proof that PCP is undecidable consists of a computable reduction $f$ with the following properties:



    • The input to $f$ is a Turing machine $M$ and a valid input $w$ to $M$.

    • The output of $f$ is an instance of PCP (i.e., a finite list of tiles).

    • The PCP instance $f(M,w)$ is a Yes instance iff $M$ halts on $w$.

    A further property of the reduction is that the number of tiles depends only on $M$, though the contents of one of the tiles depends on $w$.



    Let us denote the tiles by $(a_1,b_1),ldots,(a_n,b_n)$.
    When $M$ halts on $w$, there exists a number $N$ and a sequence $i_1,ldots,i_N in 1,ldots,n$ such that $$ a_i_1 a_i_2 ldots a_i_N = b_i_1 b_i_2 ldots b_i_N. $$
    When $M$ does not halt on $w$, no such $N$ exists. However, there does exist an infinite sequence $i_1,i_2,ldots$ such that $$ a_i_1 a_i_2 ldots = b_i_1 b_i_2 ldots, $$
    where both sides are infinite words. Perhaps this is what you meant by "total number of tiles". The actual number of tiles is always finite, and independent of the input. The number of instances of tiles required to "solve" the PCP instance could be finite or infinite; but we only consider finite solutions as valid.






    share|cite|improve this answer












    An instance of PCP consists of a finite list of tiles. The proof that PCP is undecidable consists of a computable reduction $f$ with the following properties:



    • The input to $f$ is a Turing machine $M$ and a valid input $w$ to $M$.

    • The output of $f$ is an instance of PCP (i.e., a finite list of tiles).

    • The PCP instance $f(M,w)$ is a Yes instance iff $M$ halts on $w$.

    A further property of the reduction is that the number of tiles depends only on $M$, though the contents of one of the tiles depends on $w$.



    Let us denote the tiles by $(a_1,b_1),ldots,(a_n,b_n)$.
    When $M$ halts on $w$, there exists a number $N$ and a sequence $i_1,ldots,i_N in 1,ldots,n$ such that $$ a_i_1 a_i_2 ldots a_i_N = b_i_1 b_i_2 ldots b_i_N. $$
    When $M$ does not halt on $w$, no such $N$ exists. However, there does exist an infinite sequence $i_1,i_2,ldots$ such that $$ a_i_1 a_i_2 ldots = b_i_1 b_i_2 ldots, $$
    where both sides are infinite words. Perhaps this is what you meant by "total number of tiles". The actual number of tiles is always finite, and independent of the input. The number of instances of tiles required to "solve" the PCP instance could be finite or infinite; but we only consider finite solutions as valid.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Aug 7 at 21:40









    Yuval Filmus

    181k12171329




    181k12171329











    • thank you for answering; you understood my question. accepted !
      – zython
      Aug 8 at 8:06
















    • thank you for answering; you understood my question. accepted !
      – zython
      Aug 8 at 8:06















    thank you for answering; you understood my question. accepted !
    – zython
    Aug 8 at 8:06




    thank you for answering; you understood my question. accepted !
    – zython
    Aug 8 at 8:06










    up vote
    2
    down vote














    Then out total number of tuples/pairs ((ai,bi), which get passed onto the PCP) should be countably infinite.




    I'm not entirely sure what you are trying to say here, but it sounds like this statement is the flaw in your reasoning. The number of pairs is always finite, regardless of whether the Turing machine halts or doesn't halt. Since you haven't provided any justification for this claim, it's not clear why you think it is true or what your specific confusion is, but this claim is false.






    share|cite|improve this answer
























      up vote
      2
      down vote














      Then out total number of tuples/pairs ((ai,bi), which get passed onto the PCP) should be countably infinite.




      I'm not entirely sure what you are trying to say here, but it sounds like this statement is the flaw in your reasoning. The number of pairs is always finite, regardless of whether the Turing machine halts or doesn't halt. Since you haven't provided any justification for this claim, it's not clear why you think it is true or what your specific confusion is, but this claim is false.






      share|cite|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote










        Then out total number of tuples/pairs ((ai,bi), which get passed onto the PCP) should be countably infinite.




        I'm not entirely sure what you are trying to say here, but it sounds like this statement is the flaw in your reasoning. The number of pairs is always finite, regardless of whether the Turing machine halts or doesn't halt. Since you haven't provided any justification for this claim, it's not clear why you think it is true or what your specific confusion is, but this claim is false.






        share|cite|improve this answer













        Then out total number of tuples/pairs ((ai,bi), which get passed onto the PCP) should be countably infinite.




        I'm not entirely sure what you are trying to say here, but it sounds like this statement is the flaw in your reasoning. The number of pairs is always finite, regardless of whether the Turing machine halts or doesn't halt. Since you haven't provided any justification for this claim, it's not clear why you think it is true or what your specific confusion is, but this claim is false.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 7 at 21:00









        D.W.♦

        95.3k11109255




        95.3k11109255



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f96057%2fpcp-undecidability%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery