Skip to main content
QUICK REVIEW

[Paper Review] Undecidability of a Theory of Strings, Linear Arithmetic over Length, and String-Number Conversion

Vijay Ganesh, Murphy Berzish|arXiv (Cornell University)|May 30, 2016
Web Application Security VulnerabilitiesComputer Science26 references10 citations
TL;DR

This paper proves that the satisfiability problem for a first-order, many-sorted, quantifier-free theory combining string equations, linear arithmetic over string length, and string-to-number conversion is undecidable. The authors establish this via a reduction from power arithmetic and show that the string-number conversion predicate is expressible in terms of word equations and length functions, revealing deep connections between these constructs and highlighting the inherent complexity of practical string solvers.

ABSTRACT

In recent years there has been considerable interest in theories over string equations, length function, and string-number conversion predicate within the formal verification, software engineering, and security communities. SMT solvers for these theories, such as Z3str2, CVC4, and S3, are of immense practical value in exposing security vulnerabilities in string-intensive programs. Additionally, there are many open decidability and complexity-theoretic questions in the context of theories over strings that are of great interest to mathematicians. Motivated by the above-mentioned applications and open questions, we study a first-order, many-sorted, quantifier-free theory $T_{s,n}$ of string equations, linear arithmetic over string length, and string-number conversion predicate and prove three theorems. First, we prove that the satisfiability problem for the theory $T_{s,n}$ is undecidable via a reduction from a theory of linear arithmetic over natural numbers with power predicate, we call power arithmetic. Second, we show that the string-numeric conversion predicate is expressible in terms of the power predicate, string equations, and length function. This second theorem, in conjunction with the reduction we propose for the undecidability theorem, suggests that the power predicate is expressible in terms of word equations and length function if and only if the string-numeric conversion predicate is also expressible in the same fragment. Such results are very useful tools in comparing the expressive power of different theories, and for establishing decidability and complexity results. Third, we provide a consistent axiomatization $Γ$ for the functions and predicates of $T_{s,n}$. Additionally, we prove that the theory $T_Γ$ , obtained via logical closure of $Γ$, is not a complete theory.

Motivation & Objective

  • To determine the decidability status of a widely used string theory combining word equations, length functions, and string-number conversion.
  • To investigate whether the string-numeric conversion predicate can be expressed using only word equations and length functions.
  • To provide a consistent, minimal axiomatization for the functions and predicates in the theory and assess its completeness.

Proposed method

  • Reduction from power arithmetic—a known undecidable theory—to prove undecidability of the string theory.
  • Construction of a formal encoding that simulates power operations using string concatenation, length constraints, and string-number conversion.
  • Demonstration that the string-numeric conversion predicate is definable in terms of word equations and length functions, using logical and algebraic constructions.
  • Definition of a consistent axiomatization Γ for the theory’s functions and predicates.
  • Logical closure of Γ to form theory TΓ, followed by analysis of its completeness.
  • Use of known results on word equation satisfiability and Makanin’s algorithm to contextualize the expressibility and complexity findings.

Experimental results

Research questions

  • RQ1Is the satisfiability problem for the quantifier-free theory T_{s,n} of string equations, length functions, and string-number conversion decidable?
  • RQ2Can the string-numeric conversion predicate be expressed using only word equations and length functions?
  • RQ3Is there a consistent, minimal axiomatization for the functions and predicates in T_{s,n}?
  • RQ4Is the logical closure of such an axiomatization complete?
  • RQ5What is the relationship between the expressibility of the string-numeric conversion predicate and the power predicate in this fragment?

Key findings

  • The satisfiability problem for the theory T_{s,n} is undecidable, as proven by a reduction from power arithmetic.
  • The string-numeric conversion predicate is expressible in terms of word equations and the length function, establishing a deep theoretical link between these constructs.
  • The expressibility of the string-numeric conversion predicate in this fragment is equivalent to the expressibility of the power predicate.
  • A consistent, minimal axiomatization Γ for the functions and predicates of T_{s,n} can be constructed.
  • The logical closure TΓ of this axiomatization is not a complete theory, indicating inherent limitations in formalizing the full semantics of the theory.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.