Edición de «Demostraciones Lenguajes Regulares (Teoría de Lenguajes)»

De Cuba-Wiki
Advertencia: no has iniciado sesión. Tu dirección IP se hará pública si haces cualquier edición. Si inicias sesión o creas una cuenta, tus ediciones se atribuirán a tu nombre de usuario, además de otros beneficios.

Puedes deshacer la edición. Antes de deshacer la edición, comprueba la siguiente comparación para verificar que realmente es lo que quieres hacer, y entonces publica los cambios para así efectuar la reversión.

Revisión actual Tu texto
Línea 105: Línea 105:
Se demuestra primero el lema <math>A \Rightarrow^* wB \Leftrightarrow q_B \in \delta(q_A,w)</math> por inducción en <math>w</math>:
Se demuestra primero el lema <math>A \Rightarrow^* wB \Leftrightarrow q_B \in \delta(q_A,w)</math> por inducción en <math>w</math>:
* El caso base <math>w = \lambda</math> es aútomático, porque si <math>w</math> es vacia, <math>B</math> tiene que ser <math>A</math> (por las producciones que puede tener la gramática) y por definición de <math>\delta</math> también se cumple lo otro.
* El caso base <math>w = \lambda</math> es aútomático, porque si <math>w</math> es vacia, <math>B</math> tiene que ser <math>A</math> (por las producciones que puede tener la gramática) y por definición de <math>\delta</math> también se cumple lo otro.
* Luego se prueba para <math>w = \alpha a</math>. Se ve que si <math>A \Rightarrow^* \alpha C</math> y <math>C \rightarrow aB</math>, de <math>q_A</math> se puede llegar a <math>q_C</math> por <math>\alpha</math> por hip. inductiva, y que de <math>q_C</math> se puede llegar a <math>q_B</math> por <math>a</math> por la regla 4 de la definición de <math>M</math>. Entonces de <math>q_A</math> se puede llegar a <math>q_B</math> por <math>\alpha a</math>. Para probarlo para el otro lado, se ve que si se puede llegar a <math>q_B</math> por <math>\alpha a</math>, entonces se puede llegar a un estado <math>q_C</math> por <math>\alpha</math> que llega a <math>q_B</math> por <math>a</math>. Como sólo agregamos una transición a un estado <math>q_B</math> si existe <math>C \rightarrow aB</math>, esta producción existe en G. Por hipótesis inductiva, <math>A \Rightarrow^* \alpha C</math>. Por lo tanto, <math>A \Rightarrow^* \alpha C \Rightarrow \alpha aB</math>, o sea, <math>A \Rightarrow^* \alpha aB</math>.
* Luego se prueba para <math>w = \alpha a</math>. Se ve que si <math>A \Rightarrow^* \alpha C</math> y <math>C \rightarrow aB</math>, de <math>q_A</math> se puede llegar a <math>q_C</math> por <math>\alpha</math> por hip. inductiva, y que de <math>q_C</math> se puede llegar a <math>q_B</math> por <math>a</math> por la regla 4 de la definición de <math>M</math>. Entonces de <math>q_A</math> se puede llegar a <math>q_B</math> por <math>\alpha a</math>. Para probarlo para el otro lado, se ve que si se puede llegar a <math>q_B</math> por <math>\alpha a</math>, entonces se puede llegar a un estado <math>q_C</math> por <math>\alpha</math> que llega a <math>q_B</math> por <math>a</math>. Como sólo agregamos una transición a un estado <math>q_B</math> no final si existe <math>C \rightarrow aB</math>, esta producción existe en G. Por hipótesis inductiva, <math>A \Rightarrow^* \alpha C</math>. Por lo tanto, <math>A \Rightarrow^* \alpha C \Rightarrow \alpha aB</math>, o sea, <math>A \Rightarrow^* \alpha aB</math>.


Después se debe probar que el lenguaje generado por <math>G</math> y <math>M</math> es el mismo:
Después se debe probar que el lenguaje generado por <math>G</math> y <math>M</math> es el mismo:
Ten en cuenta que todas las contribuciones a Cuba-Wiki pueden ser editadas, modificadas o eliminadas por otros colaboradores. Si no deseas que las modifiquen sin limitaciones, no las publiques aquí.
Al mismo tiempo, asumimos que eres el autor de lo que escribiste, o lo copiaste de una fuente en el dominio público o con licencia libre (véase Cuba-Wiki:Derechos de autor para más detalles). ¡No uses textos con copyright sin permiso!

Para editar esta página, responde la pregunta que aparece abajo (más información):

Cancelar Ayuda de edición (se abre en una ventana nueva)