i also found too much waffle to keep my attention span so i summarised it, if you memorise this you can preety much use it for a PL question i reckon
- assume this lang is context free ..
...so there exists CFG with p live productions
...meaning we can apply PL with length
... meaning any word can be represented as
uvxyz where
length (vxy) =< 2p
... and
uvnxynz is also in the language
-choose an appropriate word in the lang (
ok here you just replace any "n" you get in the questino with "2p) to try and pump eg if they give you a
nb
nc
2n-1 so say n=2p so
it becomes a
2pb
2pc
2p-1
then you start waffling :
- supose vxy consists entirely of a's, but then according to the PL the word uvvxyyz is also in the lanuage , this will have more than 2
p a's thoguh followed by b
2pc
2p-1.. and this isnt in the language
- repeat the above step using "entirely of b's , then again with c's to show how all those words cannot possibly be in the lanuage) at te end of it you concude that you cann't get it to work with the PL so it it not context free