PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
quotient of languages (Definition)

Let $L_1,L_2$ be two languages over some alphabet $\Sigma$ . The quotient of $L_1$ by $L_2$ is defined to be the set $$L_1/L_2:=\lbrace u \in \Sigma^* \mid uv \in L_1 \mbox{ for some } v\in L_2\rbrace.$$ $L_1/L_2$ is sometimes written $L_1 L_2^{-1}$ . The quotient so defined is also called the right quotient, for one can similarly define the left quotient of $L_1$ by $L_2$ : $$L_1\backslash L_2:= \lbrace u\in \Sigma^* \mid vu \in L_1 \mbox{ for some } v\in L_2 \rbrace.$$ $L_1\backslash L_2$ is sometimes written $L_2^{-1} L_1$ .

Below are some examples of quotients:

  • If $L_1 = \lbrace a^n b^n c^n \mid n\ge 0\rbrace$ and $L_2 = \lbrace b,c\rbrace^*$ , then
    • $L_1 / L_2 = \lbrace a^m b^n \mid m\ge n \ge 0 \rbrace$
    • $L_2 / L_1 = L_2$
    • $L_1 \backslash L_2 = \lbrace \lambda \rbrace$ , the singleton consisting the empty word
    • $L_2 \backslash L_1 = L_2$
  • for any language $L$ over $\Sigma$ :
    • $L / \Sigma^*$ is the language of all prefixes of words of $L$
    • $\Sigma^* / L = \Sigma^*$
    • $L \backslash \Sigma^*$ is the language of all suffixes of words of $L$
    • $\Sigma^* \backslash L = \Sigma^*$
  • $\lambda \in L/L \cap L\backslash L$ , and if $\lambda \in L$ , then $L \subseteq L/L \cap L\backslash L$ .

Here are some basic properties of quotients:

  1. $L_1 \subseteq (L_1 / L_2)L_2 \cap L_2 (L_1 \backslash L_2)$ .
  2. $(L_1/L_2)L_2 \subseteq (L_1L_2)/L_2$ , and $L_2 (L_1 \backslash L_2) \subseteq (L_2L_1) \backslash L_2$ .
  3. right and left quotients are related via reversal: \begin{eqnarray*} (L_1\backslash L_2)^R &=& \lbrace u^R \mid vu \in L_1 \mbox{ for some } v\in L_2 \rbrace \\ &=& \lbrace u^R \mid (vu)^R \in L_1^R \mbox{ for some } v^R \in L_2^R \rbrace \\ &=& \lbrace u^R \mid u^Rv^R \in L_1^R \mbox{ for some } v^R \in L_2^R \rbrace \\ &=& L_1^R / L_2^R. \end{eqnarray*}

A family $ \mathscr{F}$ of languages is said to be closed under quotient by a language $L$ if for every language $ M\in \mathscr{F}$ , $ M / L\in \mathscr{F}$ . Furthermore, $ \mathscr{F}$ is said to be closed under quotient if $ M/L \in \mathscr{F}$ for any $ M,L\in\mathscr{F}$ . Closure under quotient is also termed closure under right quotient. Closure under left quotient is similarly defined.

It can be shown that the families of regular, context-free, and type-0 languages are closed under quotient (both left and right) by a regular language. The family of context-sensitive languages does not have this closure property.

Since all of the families mentioned above are closed under reversal, each of the families, except the context-sensitive family, is closed under left quotient by a regular language, according to the second property above.

Bibliography

1
J.E. Hopcroft, J.D. Ullman, Formal Languages and Their Relation to Automata, Addison-Wesley, (1969).




"quotient of languages" is owned by CWoo.
(view preamble | get metadata)

View style:

Also defines:  quotient, left quotient, right quotient
Log in to rate this entry.
(view current ratings)

Cross-references: context-sensitive, closure property, context-sensitive languages, regular language, type-0 languages, context-free, regular, closure, closed under, reversal, right, properties, prefixes, empty word, singleton, alphabet, languages
There are 27 references to this entry.

This is version 4 of quotient of languages, born on 2009-05-17, modified 2009-08-12.
Object id is 11789, canonical name is QuotientOfLanguages.
Accessed 869 times total.

Classification:
AMS MSC68Q45 (Computer science :: Theory of computing :: Formal languages and automata)
 68Q70 (Computer science :: Theory of computing :: Algebraic theory of languages and automata)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)