{"title":"具有长度约束的二次字方程,计数器系统和具有可整除性的Presburger算法","authors":"A. Lin, R. Majumdar","doi":"10.46298/lmcs-17(4:4)2021","DOIUrl":null,"url":null,"abstract":"Word equations are a crucial element in the theoretical foundation of\nconstraint solving over strings. A word equation relates two words over string\nvariables and constants. Its solution amounts to a function mapping variables\nto constant strings that equate the left and right hand sides of the equation.\nWhile the problem of solving word equations is decidable, the decidability of\nthe problem of solving a word equation with a length constraint (i.e., a\nconstraint relating the lengths of words in the word equation) has remained a\nlong-standing open problem. We focus on the subclass of quadratic word\nequations, i.e., in which each variable occurs at most twice. We first show\nthat the length abstractions of solutions to quadratic word equations are in\ngeneral not Presburger-definable. We then describe a class of counter systems\nwith Presburger transition relations which capture the length abstraction of a\nquadratic word equation with regular constraints. We provide an encoding of the\neffect of a simple loop of the counter systems in the existential theory of\nPresburger Arithmetic with divisibility (PAD). Since PAD is decidable (NP-hard\nand is in NEXP), we obtain a decision procedure for quadratic words equations\nwith length constraints for which the associated counter system is flat (i.e.,\nall nodes belong to at most one cycle). In particular, we show a decidability\nresult (in fact, also an NP algorithm with a PAD oracle) for a recently\nproposed NP-complete fragment of word equations called regular-oriented word\nequations, when augmented with length constraints. We extend this decidability\nresult (in fact, with a complexity upper bound of PSPACE with a PAD oracle) in\nthe presence of regular constraints.","PeriodicalId":335085,"journal":{"name":"Automated Technology for Verification and Analysis","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-05-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"29","resultStr":"{\"title\":\"Quadratic Word Equations with Length Constraints, Counter Systems, and Presburger Arithmetic with Divisibility\",\"authors\":\"A. Lin, R. Majumdar\",\"doi\":\"10.46298/lmcs-17(4:4)2021\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Word equations are a crucial element in the theoretical foundation of\\nconstraint solving over strings. A word equation relates two words over string\\nvariables and constants. Its solution amounts to a function mapping variables\\nto constant strings that equate the left and right hand sides of the equation.\\nWhile the problem of solving word equations is decidable, the decidability of\\nthe problem of solving a word equation with a length constraint (i.e., a\\nconstraint relating the lengths of words in the word equation) has remained a\\nlong-standing open problem. We focus on the subclass of quadratic word\\nequations, i.e., in which each variable occurs at most twice. We first show\\nthat the length abstractions of solutions to quadratic word equations are in\\ngeneral not Presburger-definable. We then describe a class of counter systems\\nwith Presburger transition relations which capture the length abstraction of a\\nquadratic word equation with regular constraints. We provide an encoding of the\\neffect of a simple loop of the counter systems in the existential theory of\\nPresburger Arithmetic with divisibility (PAD). Since PAD is decidable (NP-hard\\nand is in NEXP), we obtain a decision procedure for quadratic words equations\\nwith length constraints for which the associated counter system is flat (i.e.,\\nall nodes belong to at most one cycle). In particular, we show a decidability\\nresult (in fact, also an NP algorithm with a PAD oracle) for a recently\\nproposed NP-complete fragment of word equations called regular-oriented word\\nequations, when augmented with length constraints. We extend this decidability\\nresult (in fact, with a complexity upper bound of PSPACE with a PAD oracle) in\\nthe presence of regular constraints.\",\"PeriodicalId\":335085,\"journal\":{\"name\":\"Automated Technology for Verification and Analysis\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-05-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"29\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Automated Technology for Verification and Analysis\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.46298/lmcs-17(4:4)2021\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Automated Technology for Verification and Analysis","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.46298/lmcs-17(4:4)2021","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Quadratic Word Equations with Length Constraints, Counter Systems, and Presburger Arithmetic with Divisibility
Word equations are a crucial element in the theoretical foundation of
constraint solving over strings. A word equation relates two words over string
variables and constants. Its solution amounts to a function mapping variables
to constant strings that equate the left and right hand sides of the equation.
While the problem of solving word equations is decidable, the decidability of
the problem of solving a word equation with a length constraint (i.e., a
constraint relating the lengths of words in the word equation) has remained a
long-standing open problem. We focus on the subclass of quadratic word
equations, i.e., in which each variable occurs at most twice. We first show
that the length abstractions of solutions to quadratic word equations are in
general not Presburger-definable. We then describe a class of counter systems
with Presburger transition relations which capture the length abstraction of a
quadratic word equation with regular constraints. We provide an encoding of the
effect of a simple loop of the counter systems in the existential theory of
Presburger Arithmetic with divisibility (PAD). Since PAD is decidable (NP-hard
and is in NEXP), we obtain a decision procedure for quadratic words equations
with length constraints for which the associated counter system is flat (i.e.,
all nodes belong to at most one cycle). In particular, we show a decidability
result (in fact, also an NP algorithm with a PAD oracle) for a recently
proposed NP-complete fragment of word equations called regular-oriented word
equations, when augmented with length constraints. We extend this decidability
result (in fact, with a complexity upper bound of PSPACE with a PAD oracle) in
the presence of regular constraints.