11.01.2015 Views

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Complement<br />

Theorem: <strong>CFL</strong> are not closed under complement.<br />

Proof: by contradiction.<br />

• Take two <strong>CFL</strong>s L 1 <strong>and</strong> L 2 <strong>and</strong> assume that ~L 1<br />

<strong>and</strong> ~L 2 are <strong>CFL</strong>. (~L denotes complement)<br />

• <strong>CFL</strong> are closed under union operation so<br />

~L 1 ~L 2 is a <strong>CFL</strong>.<br />

• Using our assumption again we get that<br />

~(~L 1 ~L 2 ) is a <strong>CFL</strong> as well.<br />

• But ~(~L 1 ~L 2 ) =L 1 L 2 <strong>and</strong> we already know<br />

that <strong>CFL</strong>s are not closed under intersection.<br />

53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!