Skip to main content

The Satisfiability of Word Equations: Decidable and Undecidable Theories

  • Conference paper
  • First Online:
Book cover Reachability Problems (RP 2018)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11123))

Included in the following conference series:

Abstract

The study of word equations is a central topic in mathematics and theoretical computer science. Recently, the question of whether a given word equation, augmented with various constraints/extensions, has a solution has gained critical importance in the context of string SMT solvers for security analysis. We consider the decidability of this question in several natural variants and thus shed light on the boundary between decidability and undecidability for many fragments of the first order theory of word equations and their extensions. In particular, we show that when extended with several natural predicates on words, the existential fragment becomes undecidable. On the other hand, the positive \(\varSigma _2\) fragment is decidable, and in the case that at most one terminal symbol appears in the equations, remains so even when length constraints are added. Moreover, if negation is allowed, it is possible to model arbitrary equations with length constraints using only equations containing a single terminal symbol and length constraints. Finally, we show that deciding whether solutions exist for a restricted class of equations, augmented with many of the predicates leading to undecidability in the general case, is possible in non-deterministic polynomial time.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Abdulla, P.A., Atig, M.F., Chen, Y., Holík, L., Rezine, A., Rümmer, P., Stenman, J.: Norn: an SMT solver for string constraints. In: Kroening, D., Păsăreanu, C.S. (eds.) CAV 2015. LNCS, vol. 9206, pp. 462–469. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-21690-4_29

    Chapter  Google Scholar 

  2. Aydin, A., Bang, L., Bultan, T.: Automata-based model counting for string constraints. In: Kroening, D., Păsăreanu, C.S. (eds.) CAV 2015. LNCS, vol. 9206, pp. 255–272. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-21690-4_15

    Chapter  Google Scholar 

  3. Barrett, C., Conway, C.L., Deters, M., Hadarean, L., Jovanović, D., King, T., Reynolds, A., Tinelli, C.: CVC4. In: Gopalakrishnan, G., Qadeer, S. (eds.) CAV 2011. LNCS, vol. 6806, pp. 171–177. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-22110-1_14

    Chapter  Google Scholar 

  4. Berzish, M., Ganesh, V., Zheng, Y.: Z3str3: a string solver with theory-aware heuristics. In: Proceedings of the FMCAD 2017, pp. 55–59. IEEE (2017)

    Google Scholar 

  5. Bremer, J., Freydenberger, D.D.: Inclusion problems for patterns with a bounded number of variables. Inf. Comput. 220, 15–43 (2012)

    Article  MathSciNet  Google Scholar 

  6. Büchi, J.R., Senger, S.: Definability in the existential theory of concatenation and undecidable extensions of this theory. Z. für math. Logik Grundlagen d. Math. 47, 337–342 (1988)

    MathSciNet  MATH  Google Scholar 

  7. Day, J.D., Manea, F., Nowotka, D.: The hardness of solving simple word equations. In: Proceedings of the MFCS 2017. LIPIcs, vol. 83, pp. 18:1–18:14 (2017)

    Google Scholar 

  8. Diekert, V., Jeż, A., Plandowski, W.: Finding all solutions of equations in free groups and monoids with involution. Inf. Comput. 251, 263–286 (2016)

    Article  MathSciNet  Google Scholar 

  9. Diekert, V., Lohrey, M.: Existential and positive theories of equations in graph products. Theory Comput. Syst. 37(1), 133–156 (2004)

    Article  MathSciNet  Google Scholar 

  10. Durnev, V.G.: Undecidability of the positive \(\forall \exists \)-theory of a free semigroup. Sib. Math. J. 36(5), 917–929 (1995)

    Article  MathSciNet  Google Scholar 

  11. Freydenberger, D.D., Reidenbach, D.: Bad news on decision problems for patterns. Inf. Comput. 208(1), 83–96 (2010)

    Article  MathSciNet  Google Scholar 

  12. Ganesh, V., Minnes, M., Solar-Lezama, A., Rinard, M.: Word equations with length constraints: what’s decidable? In: Biere, A., Nahir, A., Vos, T. (eds.) HVC 2012. LNCS, vol. 7857, pp. 209–226. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-39611-3_21

    Chapter  Google Scholar 

  13. Halfon, S., Schnoebelen, P., Zetzsche, G.: Decidability, complexity, and expressiveness of first-order logic over the subword ordering. In: Proceedings of the LICS 2017, pp. 1–12. IEEE Computer Society (2017)

    Google Scholar 

  14. Hilbert, D.: Mathematische probleme. Nachrichten von der Gesellschaft der Wissenschaften zu Göttingen, Mathematisch-Physikalische Klasse 1900, 253–297 (1900)

    MATH  Google Scholar 

  15. Jeż, A.: Recompression: a simple and powerful technique for word equations. In: Proceedings of the STACS 2013. LIPIcs, vol. 20, pp. 233–244 (2013)

    Google Scholar 

  16. Jeż, A.: Word equations in nondeterministic linear space. In: Proceedings of the ICALP 2017. LIPIcs, vol. 80, pp. 95:1–95:13 (2017)

    Google Scholar 

  17. Jiang, T., Salomaa, A., Salomaa, K., Yu, S.: Decision problems for patterns. J. Comput. Syst. Sci. 50(1), 53–63 (1995)

    Article  MathSciNet  Google Scholar 

  18. Karhumäki, J., Mignosi, F., Plandowski, W.: The expressibility of languages and relations by word equations. J. ACM (JACM) 47(3), 483–505 (2000)

    Article  MathSciNet  Google Scholar 

  19. Kiezun, A., Ganesh, V., Guo, P.J., Hooimeijer, P., Ernst, M.D.: HAMPI: a solver for string constraints. In: Proceedings of the ISSTA 2009, pp. 105–116. ACM (2009)

    Google Scholar 

  20. Lin, A.W., Barceló, P.: String solving with word equations and transducers: towards a logic for analysing mutation XSS. In: ACM SIGPLAN Notices. vol. 51, pp. 123–136. ACM (2016)

    Google Scholar 

  21. Lothaire, M.: Combinatorics on Words. Addison-Wesley, Boston (1983)

    MATH  Google Scholar 

  22. Makanin, G.S.: The problem of solvability of equations in a free semigroup. Sb.: Math. 32(2), 129–198 (1977)

    MathSciNet  MATH  Google Scholar 

  23. Makanin, G.S.: Decidability of the universal and positive theories of a free group. Math. USSR-Izv. 25(1), 75 (1985)

    Article  Google Scholar 

  24. Manea, F., Nowotka, D., Schmid, M.L.: On the solvability problem for restricted classes of word equations. In: Brlek, S., Reutenauer, C. (eds.) DLT 2016. LNCS, vol. 9840, pp. 306–318. Springer, Heidelberg (2016). https://doi.org/10.1007/978-3-662-53132-7_25

    Chapter  Google Scholar 

  25. Matiyasevich, Y.V.: A connection between systems of words-and-lengths equations and hilbert’s tenth problem. Zapiski Nauchnykh Seminarov POMI 8, 132–144 (1968)

    MathSciNet  MATH  Google Scholar 

  26. Papadimitriou, C.H.: On the complexity of integer programming. J. ACM (JACM) 28(4), 765–768 (1981)

    Article  MathSciNet  Google Scholar 

  27. Plandowski, W.: Satisfiability of word equations with constants is in PSPACE. In: Proceedings of the FOCS 1999, pp. 495–500. IEEE (1999)

    Google Scholar 

  28. Quine, W.V.: Concatenation as a basis for arithmetic. J. Symb. Log. 11(4), 105–114 (1946)

    Article  MathSciNet  Google Scholar 

  29. Trinh, M.-T., Chu, D.-H., Jaffar, J.: Progressive reasoning over recursively-defined strings. In: Chaudhuri, S., Farzan, A. (eds.) CAV 2016. LNCS, vol. 9779, pp. 218–240. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-41528-4_12

    Chapter  Google Scholar 

  30. Vazenin, J.M., Rozenblat, B.V.: Decidability of the positive theory of a free countably generated semigroup. Math. USSR Sb. 44(1), 109–116 (1983)

    Article  Google Scholar 

  31. Yu, F., Alkhalaf, M., Bultan, T.: Stranger: an automata-based string analysis tool for PHP. In: Esparza, J., Majumdar, R. (eds.) TACAS 2010. LNCS, vol. 6015, pp. 154–157. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-12002-2_13

    Chapter  Google Scholar 

  32. Zheng, Y., Ganesh, V., Subramanian, S., Tripp, O., Berzish, M., Dolby, J., Zhang, X.: Z3str2: an efficient solver for strings, regular expressions, and length constraints. Form. Methods Syst. Des. 50(2–3), 249–288 (2017)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Joel D. Day .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Day, J.D., Ganesh, V., He, P., Manea, F., Nowotka, D. (2018). The Satisfiability of Word Equations: Decidable and Undecidable Theories. In: Potapov, I., Reynier, PA. (eds) Reachability Problems. RP 2018. Lecture Notes in Computer Science(), vol 11123. Springer, Cham. https://doi.org/10.1007/978-3-030-00250-3_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-00250-3_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-00249-7

  • Online ISBN: 978-3-030-00250-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics