简体   繁体   English

抽引理显示不规则

[英]Show is not regular with pumping lemma

I need help on this pumping lemma case:我需要这个泵引理案例的帮助:

L_1 :={a^n b^m c^k | n = m or k = 0}

Can someone explain how to handle k=0?有人可以解释如何处理 k=0 吗?

I started with abc^n, but I don't know how to split this in uvw.我从 abc^n 开始,但我不知道如何在 uvw 中拆分它。

Assume the language is regular.假设语言是常规的。 Then, by the pumping lemma for regular languages, strings in the language of length at least p can be written as uvx where |uv|然后,通过常规语言的泵引理,长度至少为 p 的语言中的字符串可以写成 uvx 其中 |uv| <= p, |v| <= p, |v| > 0 and for all n >= 0, u(v^n)x is also a string in the language. > 0 并且对于所有 n >= 0,u(v^n)x 也是该语言中的字符串。 Let's choose the string a^pb^p c.让我们选择字符串 a^pb^p c。 This string is in the language because, while k is not equal to zero, it is the case that n = m.这个字符串在语言中是因为,虽然 k 不等于 0,但 n = m。 If we write uvx = a^pb^p c, the constraints tell us that the prefix uv can consist only of the symbol a (since |uv| <= p).如果我们写 uvx = a^pb^p c,约束告诉我们前缀 uv 只能由符号 a 组成(因为 |uv| <= p)。 But it also says we can pump some substring of this and get other strings in the language;但它也说我们可以抽取一些 substring 并获取该语言中的其他字符串; this is a contradiction since changing the number of a without changing the number of b will make it so that n is not equal to m.这是一个矛盾,因为改变 a 的数量而不改变 b 的数量会使 n 不等于 m。 Our assumption that the language was regular, and that the pumping lemma for regular languages applied to it, must have been incorrect.我们假设该语言是规则的,并且应用到它的规则语言的抽引引理肯定是不正确的。 Ergo, the language is not regular.因此,语言不规则。

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

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