Question: Using the Pumping Lemma to prove the language, , is not context - free, = { | n is a prime number } ( PLEASE
Using the Pumping Lemma to prove the language, is not
contextfree, n is a prime number
PLEASE use the following template to do the proof.
ANSWER
Statement I want to prove:
Fill in the language
Is not a contextfree language
Proof:
Let Fill in the language again
Assume is contextfree
Let me be the number from the pumping lemma for CFL
Let s Fill in some cleverly picked string here that is at least m
characters long
Since s E and s m the pumping lemma must apply,
CPSC and S Spring
Specifically: s uvwxy where
vx
vwx m
uwy is in L for all k
Say something interesting about the structure of v andor x here
By the pumping lemma for contextfree languages
Say something interesting about what happens when you pump
your string
Contradiction
Thus, our assumption must not be true
Thus, must not be a contextfree language
QED
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
