简体   繁体   English

抽水引理(没有常规语言)可以证明这一点吗?

[英]Is this proof with the pumping lemma (no regular language) ok?

I need to proof that a given language is not regular, could this work? 我需要证明给定的语言不是正常语言,这行得通吗?

The language is M={a^ma^lcb^(m+l)|m,l in N} with the alphabet = {a,b,c} . 语言是M={a^ma^lcb^(m+l)|m,l in N} ,字母= {a,b,c}

Proof: 证明:

Be n in N arbitrary but firm. We choose the word w=a^(2n)cb^(2n) with w in M and |w|>=n.
Be w=xyz a arbitrary decomposition with y!=lambda and |xy|<=n.
Then we have x=a^(2i), y=a^(2j) and z= a^(2n-2i-2j)cb^(2n) for j!=0 and 2(i+j)<=2n.
Now we choose k=0. The we have xy^0z=a^(2n-2i)cb^(2n).
=> xy^0z is not in M because 2n-2i!=2n for j!=0.
=> M is no regular language.

Yeah or nah? 是或不是? If you could tell me my mistakes i would be very thankful 如果您能告诉我我的错误,我将非常感谢

Your idea is right. 你的想法是对的。 Just a few details: 只是一些细节:

"fixed" not "firm" (translation from German?) “固定”而不是“确定”(德语翻译?)

You need to distinguish the n you choose and the constant from the pumping lemma (which you do not choose). 您需要将选择的n和常数与抽运引理(未选择)区分开。

So: 所以:

Let K be the constant for M from the pumping lemma and let n be a natural number such that n>K.
We choose the word w=a^(2n)cb^(2n) with w in M  and |w|>=K.
Be w=xyz a arbitrary decomposition with y!=lambda and |xy|<=n.
Then we have x=a^(2i), y=a^(2j) and z= a^(2n-2i-2j)cb^(2n) for j!=0 and 2(i+j)<=2n.
Now we choose k=0. The resulting word is xy^0z=a^(2n-2i)cb^(2n).
xy^0z is not in M because 2n-2i!=2n for j!=0.
=> M is no regular language.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM