I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 \cup L_2$ is not cfL.
Is that correct?
I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 \cup L_2$ is not cfL.
Is that correct?
Copyright © 2021 JogjaFile Inc.
Hint:
$L_1$ is produced by
S := $\epsilon$ | aSb
$L_2$ is produced by
S := $\epsilon$ | aSbb
(assuming $a^a$ is a typo, meaning $a^n$)