6.Closure Properties§
L={anbn|n>0}, LL={anbnambm|n>0,m>0}
Theorem: CFL’s are closed under union, concatenation, and star-closure.
Given: 2 CFGs G1=(V1,T1,S1,P1) and G2=(V2,T2,S2,P2)
L={anbn|n>0}, LL={anbnambm|n>0,m>0}
Theorem: CFL’s are closed under union, concatenation, and star-closure.
Given: 2 CFGs G1=(V1,T1,S1,P1) and G2=(V2,T2,S2,P2)
Thus, CFLs are not closed under complementation.
CFL’s are closed under regular intersection. If L1 is CFL and L2 is regular, then L1∩L2 is CFL.
Consider how to derive a3b3c3
This is called a Context Sensitive Grammar