How to prove that $L={win{0,1,2}^*|#_2(w)<#_0(w)}$ is not regular using Myhill–Nerode theorem?












0















How to prove that $L={win{0,1,2}^*|#_2(w)<#_0(w)}$ is not regular using Myhill–Nerode theorem?




$#_2(w)$ means the number of occurrences of $2$ in $w$, same goes for $#_0(w)$.



I thought of the following proof:



Suppose that $L$ is regular then by Myhill–Nerode theorem the number of equivalence classes for $R_L$ is finite. ($R_L$ is a relation such that $xR_Lyiff forall zin Sigma^*: xzin Liff yzin L$).



Let us inspect words of type $0^i2^j, i>j$. Because there're infinitely many words in $L$ then according to pigeonhole principle some equivalence class must contain at least $2$ words. Then exist $i,j$ such that $i=j+1$ and $p,q$ such that $p=q+2$, $p>i$, $0^i2^jR_L0^p2^q$.



Then for $z=2^{j}$, $0^i2^jnotin L$ but $0^p2^qin L$ in contradiction to Myhill–Nerode theorem.





I'm wondering if it's OK to suppose quite concrete details like $i=j+1$ and $p=q+2, p>i$?










share|cite|improve this question





























    0















    How to prove that $L={win{0,1,2}^*|#_2(w)<#_0(w)}$ is not regular using Myhill–Nerode theorem?




    $#_2(w)$ means the number of occurrences of $2$ in $w$, same goes for $#_0(w)$.



    I thought of the following proof:



    Suppose that $L$ is regular then by Myhill–Nerode theorem the number of equivalence classes for $R_L$ is finite. ($R_L$ is a relation such that $xR_Lyiff forall zin Sigma^*: xzin Liff yzin L$).



    Let us inspect words of type $0^i2^j, i>j$. Because there're infinitely many words in $L$ then according to pigeonhole principle some equivalence class must contain at least $2$ words. Then exist $i,j$ such that $i=j+1$ and $p,q$ such that $p=q+2$, $p>i$, $0^i2^jR_L0^p2^q$.



    Then for $z=2^{j}$, $0^i2^jnotin L$ but $0^p2^qin L$ in contradiction to Myhill–Nerode theorem.





    I'm wondering if it's OK to suppose quite concrete details like $i=j+1$ and $p=q+2, p>i$?










    share|cite|improve this question



























      0












      0








      0








      How to prove that $L={win{0,1,2}^*|#_2(w)<#_0(w)}$ is not regular using Myhill–Nerode theorem?




      $#_2(w)$ means the number of occurrences of $2$ in $w$, same goes for $#_0(w)$.



      I thought of the following proof:



      Suppose that $L$ is regular then by Myhill–Nerode theorem the number of equivalence classes for $R_L$ is finite. ($R_L$ is a relation such that $xR_Lyiff forall zin Sigma^*: xzin Liff yzin L$).



      Let us inspect words of type $0^i2^j, i>j$. Because there're infinitely many words in $L$ then according to pigeonhole principle some equivalence class must contain at least $2$ words. Then exist $i,j$ such that $i=j+1$ and $p,q$ such that $p=q+2$, $p>i$, $0^i2^jR_L0^p2^q$.



      Then for $z=2^{j}$, $0^i2^jnotin L$ but $0^p2^qin L$ in contradiction to Myhill–Nerode theorem.





      I'm wondering if it's OK to suppose quite concrete details like $i=j+1$ and $p=q+2, p>i$?










      share|cite|improve this question
















      How to prove that $L={win{0,1,2}^*|#_2(w)<#_0(w)}$ is not regular using Myhill–Nerode theorem?




      $#_2(w)$ means the number of occurrences of $2$ in $w$, same goes for $#_0(w)$.



      I thought of the following proof:



      Suppose that $L$ is regular then by Myhill–Nerode theorem the number of equivalence classes for $R_L$ is finite. ($R_L$ is a relation such that $xR_Lyiff forall zin Sigma^*: xzin Liff yzin L$).



      Let us inspect words of type $0^i2^j, i>j$. Because there're infinitely many words in $L$ then according to pigeonhole principle some equivalence class must contain at least $2$ words. Then exist $i,j$ such that $i=j+1$ and $p,q$ such that $p=q+2$, $p>i$, $0^i2^jR_L0^p2^q$.



      Then for $z=2^{j}$, $0^i2^jnotin L$ but $0^p2^qin L$ in contradiction to Myhill–Nerode theorem.





      I'm wondering if it's OK to suppose quite concrete details like $i=j+1$ and $p=q+2, p>i$?







      proof-verification formal-languages regular-language






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 24 at 14:23









      Wuestenfux

      3,1301410




      3,1301410










      asked Nov 24 at 14:02









      Yos

      1,127723




      1,127723






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Hint: The words $0^k2^l$ and $0^k1^l$ with $l<k$ cannot be in relation $R_L$, since $0^k2^l(2^{k-l})=0^k2^knotin L$, but $0^k 1^l 2^{k-l}in L$ for $z=2^{k-l}$.






          share|cite|improve this answer





















          • You're offering your solution but is my solution correct?
            – Yos
            Nov 24 at 14:20










          • Not sure about your contraints about $i,j$ and $p,q$.
            – Wuestenfux
            Nov 24 at 14:22










          • I appreciate your answer but I'd like to know whether my proof is OK and if not why.
            – Yos
            Nov 24 at 14:23










          • It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
            – Wuestenfux
            Nov 24 at 14:25






          • 1




            Just a word that falsifies equivalence $Leftrightarrow$.
            – Wuestenfux
            Nov 24 at 14:32











          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%2f3011585%2fhow-to-prove-that-l-w-in-0-1-2-2w-0w-is-not-regular-using-m%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









          0














          Hint: The words $0^k2^l$ and $0^k1^l$ with $l<k$ cannot be in relation $R_L$, since $0^k2^l(2^{k-l})=0^k2^knotin L$, but $0^k 1^l 2^{k-l}in L$ for $z=2^{k-l}$.






          share|cite|improve this answer





















          • You're offering your solution but is my solution correct?
            – Yos
            Nov 24 at 14:20










          • Not sure about your contraints about $i,j$ and $p,q$.
            – Wuestenfux
            Nov 24 at 14:22










          • I appreciate your answer but I'd like to know whether my proof is OK and if not why.
            – Yos
            Nov 24 at 14:23










          • It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
            – Wuestenfux
            Nov 24 at 14:25






          • 1




            Just a word that falsifies equivalence $Leftrightarrow$.
            – Wuestenfux
            Nov 24 at 14:32
















          0














          Hint: The words $0^k2^l$ and $0^k1^l$ with $l<k$ cannot be in relation $R_L$, since $0^k2^l(2^{k-l})=0^k2^knotin L$, but $0^k 1^l 2^{k-l}in L$ for $z=2^{k-l}$.






          share|cite|improve this answer





















          • You're offering your solution but is my solution correct?
            – Yos
            Nov 24 at 14:20










          • Not sure about your contraints about $i,j$ and $p,q$.
            – Wuestenfux
            Nov 24 at 14:22










          • I appreciate your answer but I'd like to know whether my proof is OK and if not why.
            – Yos
            Nov 24 at 14:23










          • It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
            – Wuestenfux
            Nov 24 at 14:25






          • 1




            Just a word that falsifies equivalence $Leftrightarrow$.
            – Wuestenfux
            Nov 24 at 14:32














          0












          0








          0






          Hint: The words $0^k2^l$ and $0^k1^l$ with $l<k$ cannot be in relation $R_L$, since $0^k2^l(2^{k-l})=0^k2^knotin L$, but $0^k 1^l 2^{k-l}in L$ for $z=2^{k-l}$.






          share|cite|improve this answer












          Hint: The words $0^k2^l$ and $0^k1^l$ with $l<k$ cannot be in relation $R_L$, since $0^k2^l(2^{k-l})=0^k2^knotin L$, but $0^k 1^l 2^{k-l}in L$ for $z=2^{k-l}$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 24 at 14:17









          Wuestenfux

          3,1301410




          3,1301410












          • You're offering your solution but is my solution correct?
            – Yos
            Nov 24 at 14:20










          • Not sure about your contraints about $i,j$ and $p,q$.
            – Wuestenfux
            Nov 24 at 14:22










          • I appreciate your answer but I'd like to know whether my proof is OK and if not why.
            – Yos
            Nov 24 at 14:23










          • It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
            – Wuestenfux
            Nov 24 at 14:25






          • 1




            Just a word that falsifies equivalence $Leftrightarrow$.
            – Wuestenfux
            Nov 24 at 14:32


















          • You're offering your solution but is my solution correct?
            – Yos
            Nov 24 at 14:20










          • Not sure about your contraints about $i,j$ and $p,q$.
            – Wuestenfux
            Nov 24 at 14:22










          • I appreciate your answer but I'd like to know whether my proof is OK and if not why.
            – Yos
            Nov 24 at 14:23










          • It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
            – Wuestenfux
            Nov 24 at 14:25






          • 1




            Just a word that falsifies equivalence $Leftrightarrow$.
            – Wuestenfux
            Nov 24 at 14:32
















          You're offering your solution but is my solution correct?
          – Yos
          Nov 24 at 14:20




          You're offering your solution but is my solution correct?
          – Yos
          Nov 24 at 14:20












          Not sure about your contraints about $i,j$ and $p,q$.
          – Wuestenfux
          Nov 24 at 14:22




          Not sure about your contraints about $i,j$ and $p,q$.
          – Wuestenfux
          Nov 24 at 14:22












          I appreciate your answer but I'd like to know whether my proof is OK and if not why.
          – Yos
          Nov 24 at 14:23




          I appreciate your answer but I'd like to know whether my proof is OK and if not why.
          – Yos
          Nov 24 at 14:23












          It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
          – Wuestenfux
          Nov 24 at 14:25




          It would be correct if you would you would relieve the conditions about $i,j$, $p,q$.
          – Wuestenfux
          Nov 24 at 14:25




          1




          1




          Just a word that falsifies equivalence $Leftrightarrow$.
          – Wuestenfux
          Nov 24 at 14:32




          Just a word that falsifies equivalence $Leftrightarrow$.
          – Wuestenfux
          Nov 24 at 14:32


















          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%2f3011585%2fhow-to-prove-that-l-w-in-0-1-2-2w-0w-is-not-regular-using-m%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

          How do I know what Microsoft account the skydrive app is syncing to?

          Grease: Live!

          When does type information flow backwards in C++?