Language equation explained

Language equations are mathematical statements that resemble numerical equations, but the variables assume values of formal languages rather than numbers. Instead of arithmetic operations in numerical equations, the variables are joined by language operations. Among the most common operations on two languages A and B are the set union AB, the set intersection AB, and the concatenation AB. Finally, as an operation taking a single operand, the set A* denotes the Kleene star of the language A. Therefore, language equations can be used to represent formal grammars, since the languages generated by the grammar must be the solution of a system of language equations.

Language equations and context-free grammars

Ginsburg and Rice[1] gave an alternative definition of context-free grammars by language equations. To every context-free grammar

G=(V,\Sigma,R,S)

, is associated a system of equations in variables

V

. Each variable

X\inV

is an unknown language over

\Sigma

and is defined by the equation

X=\alpha1\cup\ldots\cup\alpham

where

X\to\alpha1

, ...,

X\to\alpham

are all productions for

X

. Ginsburg and Rice used a fixed-point iteration argument to show that a solution always exists, and proved that i.e. any other solution must be a of this one.

For example, the grammar

S\toaSc\midb\midS

corresponds to the equation system

S=(\{a\}S\{c\})\cup\{b\}\cupS

which has as solution every superset of

\{anbcn\midn\inl{N}\}

.

Language equations with added intersection analogously correspond to conjunctive grammars.

Language equations and finite automata

Brzozowski and Leiss[2] studied left language equations where every concatenation is with a singleton constant language on the left, e.g.

\{a\}X

with variable

X

, but not

XY

nor

X\{a\}

. Each equation is of the form

Xi=F(X1,...,Xk)

with one variable on the right-hand side. Every nondeterministic finite automaton has such corresponding equation using left-concatenation and union, see Fig. 1. If intersection operation is allowed, equations correspond to alternating finite automata.

Baader and Narendran[3] studied equations

F(X1,\ldots,Xk)=G(X1,\ldots,Xk)

using left-concatenation and union and proved that their satisfiability problem is EXPTIME-complete.

Conway's problem

Conway[4] proposed the following problem: given a constant finite language

L

, is the greatest solution of the equation

LX=XL

always regular? This problem was studied by Karhumäki and Petre[5] [6] who gave an affirmative answer in a special case. A strongly negative answer to Conway's problem was given by Kunc[7] who constructed a finite language

L

such that the greatest solution of this equation is not recursively enumerable.

Kunc[8] also proved that the greatest solution of inequality

LX\subseteqXL

is always regular.

Language equations with Boolean operations

Language equations with concatenation and Boolean operations were first studied by Parikh, Chandra, Halpern and Meyer[9] who proved that the satisfiability problem for a given equation is undecidable, and that if a system of language equations has a unique solution, then that solution is recursive. Later, Okhotin[10] proved that the unsatisfiability problem is RE-complete and that every recursive language is a unique solution of some equation.

Language equations over a unary alphabet

For a one-letter alphabet, Leiss[11] discovered the first language equation with a nonregular solution, using complementation and concatenation operations. Later, Jeż[12] showed that non-regular unary languages can be defined by language equations with union, intersection and concatenation, equivalent to conjunctive grammars. By this method Jeż and Okhotin[13] proved that every recursive unary language is a unique solution of some equation.

See also

External links

Notes and References

  1. Ginsburg. Seymour. Rice. H. Gordon. Two Families of Languages Related to ALGOL. Journal of the ACM. 9. 3. 1962. 350–371. 0004-5411. 10.1145/321127.321132. 16718187. free.
  2. Brzozowski. J.A.. Leiss. E.. On equations for regular languages, finite automata, and sequential networks. Theoretical Computer Science. 10. 1. 1980. 19–35. 0304-3975. 10.1016/0304-3975(80)90069-9. free.
  3. Baader. Franz. Narendran. Paliath. Unification of Concept Terms in Description Logics. Journal of Symbolic Computation. 31. 3. 2001. 277–305. 0747-7171. 10.1006/jsco.2000.0426. free.
  4. Book: Conway . John Horton . Regular Algebra and Finite Machines . Chapman and Hall . 978-0-486-48583-6 . 1971.
  5. Karhumäki. Juhani. Petre. Ion. Conway's problem for three-word sets. Theoretical Computer Science. 289. 1. 2002. 705–725. 0304-3975. 10.1016/S0304-3975(01)00389-9. free.
  6. Book: Karhumäki. Juhani. Petre. Ion. The Branching Point Approach to Conway's Problem. 2300. 2002. 69–76. 0302-9743. 10.1007/3-540-45711-9_5. Lecture Notes in Computer Science. 978-3-540-43190-9.
  7. Kunc. Michal. The Power of Commuting with Finite Sets of Words. Theory of Computing Systems. 40. 4. 2007. 521–551. 1432-4350. 10.1007/s00224-006-1321-z. 13406797.
  8. Kunc. Michal. Regular solutions of language inequalities and well quasi-orders. Theoretical Computer Science. 348. 2–3. 2005. 277–293. 0304-3975. 10.1016/j.tcs.2005.09.018. free.
  9. Parikh. Rohit. Chandra. Ashok. Halpern. Joe. Meyer. Albert. Equations between Regular Terms and an Application to Process Logic. SIAM Journal on Computing. 14. 4. 1985. 935–942. 0097-5397. 10.1137/0214066.
  10. Okhotin. Alexander. Decision problems for language equations. Journal of Computer and System Sciences. 76. 3–4. 2010. 251–266. 0022-0000. 10.1016/j.jcss.2009.08.002. free.
  11. Leiss. E.L.. Unrestricted complementation in language equations over a one-letter alphabet. Theoretical Computer Science. 132. 1–2. 1994. 71–84. 0304-3975. 10.1016/0304-3975(94)90227-5. free.
  12. Jeż. Artur. Conjunctive grammars generate non-regular unary languages. International Journal of Foundations of Computer Science. 19. 3. 2008. 597–615. 0129-0541. 10.1142/S012905410800584X.
  13. Jeż. Artur. Okhotin. Alexander. Computational completeness of equations over sets of natural numbers. Information and Computation. 237. 2014. 56–94. 0890-5401. 10.1016/j.ic.2014.05.001. 10.1.1.395.2250.