Proving a Language Is Not a CFL



This is a problem from Sipser's book which I'm unable to answer:

If A is a CFL and B is a regular language, then the intersection of A
and B is context free. Given this result, show that the language C =
{w : w in {a, b, c}* and contains an equal number of a's, b's and c's}
is not a CFL.

Let D be the language described by the regex (abc)*. This language is
regular and is a subset of C so the intersection of C and D is D which
is also context free. What gives?
.



Relevant Pages

  • Re: Schildt
    ... intersection of a language is a language. ... Algol 60 and Algol 68? ... By looking at the syntax? ...
    (comp.lang.c)
  • Re: Proving a Language Is Not a CFL
    ... If A is a CFL and B is a regular language, then the intersection of A ... and B is context free. ...
    (comp.theory)
  • Re: Proving a Language Is Not a CFL
    ... If A is a CFL and B is a regular language, then the intersection of A ... is not a CFL. ...
    (comp.theory)
  • Re: Proving a Language Is Not a CFL
    ... If A is a CFL and B is a regular language, ... A and B is context free. ... show that the language C ... is regular and is a subset of C so the intersection of C and D is D ...
    (comp.theory)
  • Re: Proof of inherent ambiguity?
    ... >> language AND the proof that that language is inherently ambiguous? ... > that matches a's with b's and appends arbitrary c's (the i=j clause), ... the intersection of L1 and L2 have to have two parse trees. ... of determining for arbitrary context-free grammars G1 and G2 ...
    (comp.theory)