On the Expressive Power of String Constraints

被引:7
作者
Day, Joel D. [1 ]
Ganesh, Vijay [2 ]
Grewal, Nathan [2 ]
Manea, Florin [3 ]
机构
[1] Loughborough Univ, Loughborough, Leics, England
[2] Univ Waterloo, Waterloo, ON, Canada
[3] Univ Gottingen, Gottingen, Germany
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2023年 / 7卷 / POPL期
关键词
String constraints; String solving; Word equations; SMT SOLVER; LANGUAGES;
D O I
10.1145/3571203
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:31
相关论文
共 46 条
[1]   Efficient Handling of String-Number Conversion [J].
Abdulla, Parosh Aziz ;
Atig, Mohamed Faouzi ;
Chen, Yu-Fang ;
Diep, Bui Phi ;
Dolby, Julian ;
Jank, Petr ;
Lin, Hsin-Hung ;
Holik, Lukas ;
Wu, Wei-Cheng .
PROCEEDINGS OF THE 41ST ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '20), 2020, :943-957
[2]   Norn: An SMT Solver for String Constraints [J].
Abdulla, Parosh Aziz ;
Atig, Mohamed Faouzi ;
Chen, Yu-Fang ;
Holik, Lukas ;
Rezine, Ahmed ;
Rummer, Philipp ;
Stenman, Jari .
COMPUTER AIDED VERIFICATION, PT I, 2015, 9206 :462-469
[3]  
Alur R, 2005, LECT NOTES COMPUT SC, V3580, P1102
[4]  
Alur R., 2004, S THEOR COMP STOC 20, P202, DOI [10.1145/1007352.1007390, DOI 10.1145/1007352.1007390]
[5]   Adding Nesting Structure to Words [J].
Alur, Rajeev ;
Madhusudan, P. .
JOURNAL OF THE ACM, 2009, 56 (03)
[6]   A Survey on String Constraint Solving [J].
Amadini, Roberto .
ACM COMPUTING SURVEYS, 2023, 55 (01)
[7]   Graph Logics with Rational Relations: The Role of Word Combinatorics [J].
Barcelo, Pablo ;
Munoz, Pablo .
ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2017, 18 (02)
[8]   EXPRESSIVE PATH QUERIES ON GRAPHS WITH DATA [J].
Barcelo, Pablo ;
Fontaine, Gaelle ;
Lin, Anthony Widjaja .
LOGICAL METHODS IN COMPUTER SCIENCE, 2015, 11 (04)
[9]  
Barrett Clark, 2011, Computer Aided Verification. Proceedings 23rd International Conference, CAV 2011, P171, DOI 10.1007/978-3-642-22110-1_14
[10]   Definable relations and first-order query languages over strings [J].
Benedikt, M ;
Libkin, L ;
Schwentick, T ;
Segoufin, L .
JOURNAL OF THE ACM, 2003, 50 (05) :694-751