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
substitution (Definition)

Let $\Sigma_1, \Sigma_2$ be alphabets. A substitution is a function $s:\Sigma_1^* \to P(\Sigma_2^*)$ such that

In other words, for every word $\alpha$ over $\Sigma_1$ , $s(\alpha)$ is a language over $\Sigma_2$ . In the second condition above, $s(\alpha)s(\beta)$ is the concatenation of languages: $\lbrace uv\mid u\in s(\alpha), v\in s(\beta)\rbrace$ .

The word ``substitution'' is used so often in mathematics, that substitution in the context of formal language theory is also known as a string substitution.

As the semigroup $\Sigma_1^*$ is freely generated by $\Sigma_1$ , every substitution $s:\Sigma_1^* \to P(\Sigma_2^*)$ is uniquely determined by its restriction to $\Sigma_1$ . Conversely, every function $f:\Sigma_1 \to P(\Sigma_2^*)$ extends uniquely to a substitution $f_s:\Sigma_1^* \to P(\Sigma_2^*)$ .

For any language $L\subseteq \Sigma_1^*$ and a substitution $s:\Sigma_1^* \to P(\Sigma_2^*)$ , define $$s(L):=\bigcup \lbrace s(u)\mid u\in L\rbrace.$$

A family $ \mathscr{F}$ of languages is said to be closed under substitutions if, given any substitution $s$ , with $ L \in \mathscr{F}$ and $ s(w) \in \mathscr{F}$ for each $w\in L$ , we have $ s(L)\in \mathscr{F}$ . The following families are closed under substitutions:

As a corollary, the families of regular, context-free, and type-0 languages are closed under homomorphisms, since every homomorphism of languages is really just a special case of substitution, such that every symbol of the domain alphabet is mapped to a singleton consisting of a word over the range alphabet.

The family of context-sensitive languages is not closed under general substitutions. Instead, it is closed under $\lambda$ -free substitutions (see remark below).

Remark. A substitution $s$ is said to have property $\mathcal{P}$ if for each $a\in \Sigma$ , the set $s(a)$ has property $\mathcal{P}$ . Thus, for example, a substitution $s$ is finite if $s(a)$ is a finite set, regular if $s(a)$ is a regular language, and $\lambda$ -free if each $s(a)$ is $\lambda$ -free, etc...

Bibliography

1
S. Ginsburg, The Mathematical Theory of Context-Free Languages, McGraw-Hill, New York (1966).
2
D. C. Kozen, Automata and Computability, Springer, New York (1997).




"substitution" is owned by CWoo.
(view preamble | get metadata)

View style:

See Also: homomorphism of languages

Other names:  string substitution
Also defines:  $\lambda$-free substitution, regular substitution
Log in to rate this entry.
(view current ratings)

Cross-references: finite set, finite, property, context-sensitive languages, range, singleton, domain, homomorphism of languages, homomorphisms, type-0 languages, context-free, regular, context-free languages, regular languages, closed under, conversely, restriction, freely generated, semigroup, theory, formal language, language, concatenation, empty word, preserves, function, alphabets
There are 77 references to this entry.

This is version 6 of substitution, born on 2009-05-09, modified 2009-08-08.
Object id is 11772, canonical name is Substitution.
Accessed 815 times total.

Classification:
AMS MSC68Q45 (Computer science :: Theory of computing :: Formal 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)