Deterministic Context-free Languages NOT Closed Under Union or Intersection
Easy Theory
Here we give a proof that deterministic context-free languages (DCFLs) are NOT closed under union. We use the prototypical not-DCFL, the complement of {a^n b^n c^n : n at least 0}, and show that it is the union of regular languages and three DCFLs. Since DCFLs are closed under union with regular languages, then union-ing the three DCFLs must result in a language that isn't a DCFL. We also get that they're not closed under intersection for free.
A deterministic context-free language is the language of a deterministic pushdown automaton (DPDA). The essential idea is that a DPDA is equivalent to a PDA, except that there can only be one "choice" of transition from any state on any input, with anything on the stack. See https://www.youtube.com/watch?v=GzR5FiiIogY&ab_channel=EasyTheory for more details.
Easy Theory Website: https://www.easytheory.org Become a member: https://www.youtube.com/channel/UC3VY6RTXegnoSD_q446oBdg/join Donation (appears on streams): https://streamlabs.com/easytheory1/tip Paypal: https://paypal.me/easytheory Patreon: https://www.patreon.com/easytheory Discord: https://discord.gg/SD4U3hs
#easytheory
Merch: Language Hierarchy Apparel: https://teespring.com/language-hierarchy?pid=2&cid=2122 Pumping Lemma Apparel: https://teespring.com/pumping-lemma-for-regular-lang
If you like this content, please consider subscribing to my channel: https://www.youtube.com/channel/UC3VY6RTXegnoSD_q446oBdg?sub_confirmation=1
Gold Supporters: Micah Wood Silver Supporters: Timmy Gy
▶SEND ME THEORY QUESTIONS◀ ryan.e.dougherty@icloud.com
▶ABOUT ME◀ I am a professor of Computer Science, and am passionate about CS theory. I have taught many courses at several different universities, including several sections of undergraduate and graduate theory-level classes. ... https://www.youtube.com/watch?v=p13gJTzWPO8
64179854 Bytes