0

How can this be? I don't think it is actually possible for a non-regular language to be a subset of a regular language. What examples are there where this is true?

Raphael
  • 72,336
  • 29
  • 179
  • 389
ecwolf
  • 1
  • 1

1 Answers1

5

Every language over an alphabet $\Sigma$ is, by definition, a subset of $\Sigma^*$, which is regular. If you want a less trivial example,

$$\{a^nb^n\mid n\geq 0\}\subseteq L(a^*b^*)\,.$$

Raphael
  • 72,336
  • 29
  • 179
  • 389
David Richerby
  • 81,689
  • 26
  • 141
  • 235