-1

How to prove, by construction and/or regular closures, that if $A$, $B$ are regular then the language $L$ defined by

$$L=\{w\mid w\in A,\ \not\exists y\in B\ :\ w=xyz\text{ for some }x,z∈Σ^∗\}$$

is also regular?

D.W.
  • 167,959
  • 22
  • 232
  • 500
user169627
  • 73
  • 5

1 Answers1

2

Your language is $A$ intersected with $$\{w\mid \not\exists y\in B\ :\ w=xyz\text{ for some }x,z∈Σ^∗\},$$ i.e., the complement of $$\{w\mid\exists y\in B\ :\ w=xyz\text{ for some }x,z∈Σ^∗\}$$ which is $$\overline{\Sigma^* B \Sigma^*},$$ so $$L=A\cap \overline{\Sigma^* B \Sigma^*}$$ which is regular by the usual closure properties of regular languages.

user6530
  • 964
  • 1
  • 5
  • 17