Abstract
The separability problem for word languages of a class \(\mathcal {C}\) by languages of a class \(\mathcal {S}\) asks, for two given languages I and E from \(\mathcal {C}\), whether there exists a language S from \(\mathcal {S}\) that includes I and excludes E, that is, \(I \subseteq S\) and \(S\cap E = \emptyset \). It is known that separability for context-free languages by any class containing all definite languages (such as regular languages) is undecidable. We show that separability of context-free languages by piecewise testable languages is decidable. This contrasts with the fact that testing if a context-free language is piecewise testable is undecidable. We generalize this decidability result by showing that, for every full trio (a class of languages that is closed under rather weak operations) which has decidable diagonal problem, separability with respect to piecewise testable languages is decidable. Examples of such classes are the languages defined by labeled vector addition systems and the languages accepted by higher order pushdown automata of order two. The proof goes through a result which is of independent interest and shows that, for any kind of languages I and E, separability can be decided by testing the existence of common patterns in I and E.
This work was supported by DFG grant MA 4938/2-1, by Polandâs National Science Centre grant no. UMO-2013/11/D/ST6/03075, and Agence Nationale de la Recherche ANR 2010 BLAN 0202 01 FREC.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
Emptiness of L over alphabet A can be decided by taking the \(\{x\}\)-upward closure of L, where \(x \notin A\), intersecting the resulting language with the regular language \((A\cup \{x\})^*A(A\cup \{x\})^*\), and then taking the \(\{x\}\)-projection. In the resulting language, the diagonal problem returns true iff L is nonempty [36].
- 2.
Of course, one could also immediately obtain \(L_3\) from \(L_1\) by performing a single intersection with a regular language.
- 3.
A simple proof of this fact can be found in [11].
References
Aho, A.V.: Indexed grammars â an extension of context-free grammars. J. ACM 15(4), 647â671 (1968)
Almeida, J.: Finite Semigroups and Universal Algebra, Volume 3 of Series in Algebra. World Scientific Publishing Company, Singapore (1994)
Antonopoulos, T., Hovland, D., Martens, W., Neven, F.: Deciding twig-definability of node selecting tree automata. In: ICDT, pp. 61â73 (2012)
Arfi, M.: Polynomial operations on rational languages. In: STACS, pp. 198â206 (1987)
Benedikt, M., Segoufin, L.: Regular tree languages definable in FO and in FO\(_{\rm mod}\). ACM Trans. Comput. Logi 11(1), 4:1â4:32 (2009)
Berstel, J.: Transductions and context-free languages. Teubner, Stuttgart (1979)
BojaĆczyk, M., Idziaszek, T.: Algebra for infinite forests with an application to the temporal logic EF. In: Bravetti, M., Zavattaro, G. (eds.) CONCUR 2009. LNCS, vol. 5710, pp. 131â145. Springer, Heidelberg (2009)
Bojanczyk, M., Segoufin, L., Straubing, H.: Piecewise testable tree languages. LMCS 8(3), 1â20 (2012)
Bonnet, R., Finkel, A., Leroux, J., Zeitoun, M.: Model checking vector addition systems with one zero-test. LMCS 8(2), 1â25 (2012)
CzerwiĆski, W., Martens, W., Masopust, T.: Efficient separability of regular languages by subsequences and suffixes. In: Fomin, F.V., Freivalds, R., Kwiatkowska, M., Peleg, D. (eds.) ICALP 2013, Part II. LNCS, vol. 7966, pp. 150â161. Springer, Heidelberg (2013)
Esparza, J., Ganty, P., Kiefer, S., Luttenberger, M.: Parikhâs theorem: a simple and direct automaton construction. Inf. Process. Lett. 111(12), 614â619 (2011)
Ginsburg, S., Greibach, S.A.: Abstract families of languages. In: SWAT / FOCS, pp. 128â139 (1967)
Ginsburg, S., Spanier, E.H.: Semigroups, Presburger formulas, and languages. Pacific J. Math. 16, 285â296 (1966)
Greibach, S.: A note on undecidable properties of formal languages. Math. Sys. Theor. 2(1), 1â6 (1968)
Hofman, P., Martens, W.: Separability by short subsequences and subwords. In: ICDT, pp. 230â246 (2015)
Hunt III, H.B.: On the decidability of grammar problems. J. ACM 29(2), 429â447 (1982)
Jantzen, M.: On the hierarchy of Petri net languages. RAIRO Informatique ThĂ©orique 13(1), 19â30 (1979)
Kosaraju, S.R.: Decidability of reachability in vector addition systems (preliminary version). In: STOC, pp. 267â281 (1982)
Leroux, J.: The general vector addition system reachability problem by Presburger inductive invariants. LMCS 6(3), 1â25 (2010)
Maslov, A.N.: Multilevel stack automata. Probl. Inf. Transm. 12(1), 38â42 (1976)
Mayr, E.W.: An algorithm for the general Petri net reachability problem. SIAM J. Comput. 13(3), 441â460 (1984)
McNaughton, R.: Algebraic decision procedures for local testability. Math. Syst. Theor. 8(1), 60â76 (1974)
Parikh, R.: On context-free languages. J. ACM 13(4), 570â581 (1966)
Pin, J.-E., Weil, P.: Polynomial closure and unambiguous product. Theory Comput. Syst. 30(4), 383â422 (1997)
Place, T., van Rooijen, L., Zeitoun, M.: Separating regular languages by locally testable and locally threshold testable languages. In: FSTTCS, pp. 363â375 (2013)
Place, T., van Rooijen, L., Zeitoun, M.: Separating regular languages by piecewise testable and unambiguous languages. In: Chatterjee, K., Sgall, J. (eds.) MFCS 2013. LNCS, vol. 8087, pp. 729â740. Springer, Heidelberg (2013)
Place, T., Zeitoun, M.: Going higher in the first-order quantifier alternation hierarchy on words. In: Esparza, J., Fraigniaud, P., Husfeldt, T., Koutsoupias, E. (eds.) ICALP 2014, Part II. LNCS, vol. 8573, pp. 342â353. Springer, Heidelberg (2014)
Place, T., Zeitoun, M.: Separating regular languages with first-order logic. In: CSL-LICS, pp. 75:1â75:10. ACM (2014)
SchĂŒtzenberger, M.P.: On finite monoids having only trivial subgroups. Inf. Control 8(2), 190â194 (1965)
Simon, I.: Piecewise testable events. In: Simon, I. (ed.) Automata Theory and Formal Languages. LNCS, pp. 214â222. springer, Heidelberg (1975)
Simon, I.: Factorization forests of finite height. Theor. Comput. Sci. 72(1), 65â94 (1990)
Straubing, H.: Semigroups and languages of dot-depth two. Theor. Comput. Sci. 58, 361â378 (1988)
Szymanski, T., Williams, J.: Noncanonical extensions of bottom-up parsing techniques. SIAM J. Comput. 5(2), 231â250 (1976)
Zalcstein, Y.: Locally testable languages. J. Comput. Syst. Sci. 6(2), 151â167 (1972)
Zetzsche, G.: Personal communication
Zetzsche, G.: An approach to computing downward closures. In: ICALP (2015). To appear, Accessed on http://arxiv.org/abs/1503.01068
Acknowledgments
We would like to thank Tomåƥ Masopust for pointing us to [16] and Thomas Place for pointing out to us that determining if a given context-free language is piecewise testable is undecidable. We are also grateful to the anonymous reviewers for many helpful remarks that simplified proofs. We are much indebted to Georg Zetzsche for many useful remarks and most of all for sending us a simple proof that showed that, for full trios, separability by PTL implies decidability of the diagonal problem, thereby turning Theorem 2 into an equivalence. We plan to incorporate his proof in the full version of this paper.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this paper
Cite this paper
CzerwiĆski, W., Martens, W., van Rooijen, L., Zeitoun, M. (2015). A Note on Decidable Separability by Piecewise Testable Languages. In: Kosowski, A., Walukiewicz, I. (eds) Fundamentals of Computation Theory. FCT 2015. Lecture Notes in Computer Science(), vol 9210. Springer, Cham. https://doi.org/10.1007/978-3-319-22177-9_14
Download citation
DOI: https://doi.org/10.1007/978-3-319-22177-9_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-22176-2
Online ISBN: 978-3-319-22177-9
eBook Packages: Computer ScienceComputer Science (R0)