On the expressive power of string constraints
We investigate properties of strings which are expressible by canonical types of string constraints. Specifically, we consider a landscape of 20 logical theories, whose syntax is built around combinations of four common elements of string constraints: language membership (e.g. for regular languages), concatenation, equality between string terms, and equality between string-lengths. For a variable x and formula f from a given theory, we consider the set of values for which x may be substituted as part of a satisfying assignment, or in other words, the property f expresses through x. Since we consider string-based logics, this set is a formal language. We firstly consider the relative expressive power of different combinations of string constraints by comparing the classes of languages expressible in the corresponding theories, and are able to establish a mostly complete picture in this regard. Secondly, we consider the question of deciding whether the language or property expressed by a variable/formula in one theory can be expressed in another theory. We establish several negative results which are relevant to preprocessing and normalisation of string constraints in practice. Some of our results have strong connections to important open problems regarding word equations and the theory of string solving.
Funding
German Research Foundation (Deutsche Forschungsgemeinschaft, DFG), by the project with number 466789228
History
School
- Science
Department
- Computer Science
Published in
Proceedings of the ACM on Programming LanguagesVolume
7Issue
POPLPages
278 - 308Source
50th ACM SIGPLAN Symposium on Principles of Programming Languages (POPL 2023)Publisher
Association for Computing MachineryVersion
- VoR (Version of Record)
Rights holder
© Owner/AuthorPublisher statement
This is an Open Access Article. It is published by Association for Computing Machinery under the Creative Commons Attribution 4.0 International Licence (CC BY). Full details of this licence are available at: https://creativecommons.org/licenses/by/4.0/Acceptance date
2022-11-08Publication date
2023-01-11Copyright date
2023eISSN
2475-1421Publisher version
Language
- en