How can I show that the following language is (not) context-free? The argument that it’s not regular goes as follows.

I suspect this language to be context-free… The reason why I think this, is because L = {an bm c{n+m} | n,m >= 0} is context-free. A proof for this can be found at
http://cg.scs.carleton.ca/~michiel/TheoryOfComputation/TheoryOfComputation.pdf (p102 in pdf; p94 in text)
The proof is kind of long and it can probably be proven much shorter by making use of the equivalence with PDAs (i.e. pushing first some symbol n “+” m times on the stack, and consequently taking it off again n+m times.) Either way, this example makes me believe that my original language must also be context-free. Yet, I don’t really see how I can argue for this.
No, your assumption is not correct!
The language
L = { x = y + z | where x, y, z are binary integers and x is the sum of y and z}is not Context Free Languages(CFL).I try to explain.
First of all, consider following examples strings
sin languageL.In my explanation LHS is
Xin question and RHS isY + Z.What is pumping Lemma for CFL?
If a language L is context-free, then there exists some integer p ≥ 1 such that any string s in L with |s| ≥ p. (where p is a “pumping length” can be written as
This definition | ≥ 1, and
3. uv nxy nz is in L for every natural number n.
Notice: Middle part of
s,vxynot greater then pumping lengthp. (condition 1)[SOLUTION]:
Let us choose a string
sinLthat satisfy condition|s| ≥ pour
sis 1m0q = 1m-10q + 10q , whereq > p , m-1 > pNow total length of
sis2m + 2q -1that is greater thenpand of-course for some combination of natural numbers this inequality is possible (I am not including length of+and=to keep explanation simple )Now our
sis in language and sufficiently large according to pumping lemma for CFG.Now break it:
u vxy z = 1m0q = 1m-10q + 10q
Try to find
vandyto pump and generate new string in language L, But keep in mindvandyshould not be too much far thanp(according to condition 1).You don’t have any choice for
vandysuch that you can generate new strings in language!(Step-1): Because if you chose to increase
1then you can’t pump both side RHS and LHS of=because last1on LHS is atq(>p) to first1of RHS. hence not possible to generate new strings in language.(Step-2): Suppose you like to pump
0again its not possible to increase0on LHS and RHS together because last0on LHS in m-1 (>p) distend to first0on RHS.(Step-3): You can’t pump a combination of
111...000...both side. , try this you will get string out of language L.Try other options too within the rules of Pumping Lemma. you would not find correct choice for
vandy.[ANSWER]
So he have a string
sin L that is sufficiently large and using that we can’t generate new strings in language. its contradict to Pumping Lemma for CFL hence givenLis not a CFL.