Monadic Decomposition in Integer Linear Arithmetic

Matthew Hague, Anthony W. Lin, Philipp Rümmer, Zhilin Wu · DOI

TL;DR

This paper introduces and analyzes the problem of "monadic decomposability" for formulas in integer linear arithmetic within the SMT (Satisfiability Modulo Theories) context. They show this problem is coNP-complete and provide algorithms for decomposition, with applications in string constraint solving and quantifier elimination.

What Problem Does This Paper Address?

The paper tackles the problem of "monadic decomposability" in the context of first-order theories, specifically integer linear arithmetic (Presburger Arithmetic). Monadic decomposability asks whether a given formula can be expressed as a Boolean combination of monadic predicates – predicates involving at most one variable. This is a measure of how "independent" the variables in a formula are. While the general problem is undecidable, decidability for specific theories is known, but their computational complexity is often unclear. This work focuses on the complexity and algorithmic aspects of monadic decomposability for quantifier-free formulas in Presburger Arithmetic, a common theory in SMT solvers. This has direct implications for simplifying complex formulas and enabling more efficient solving in areas like string analysis.

Methods

The core of the paper involves developing algorithms and complexity analyses for monadic and variadic decomposability in Presburger Arithmetic.

  • Monadic Decomposability: The authors establish that deciding monadic decomposability for quantifier-free Presburger Arithmetic formulas is coNP-complete. They also show that if a formula is decomposable, the decomposition can be constructed in exponential time. This is achieved by analyzing the structure of formulas and leveraging properties of equivalence relations related to variable independence.
  • Variadic Decomposability: They extend their results to "variadic decomposability," where predicates can involve multiple variables, but the decomposition is still based on partitioning variables into sets. This problem is also shown to be coNP-complete.
  • Algorithms: The paper presents algorithms for constructing monadic and variadic decompositions. These algorithms involve analyzing divisibility constraints and using a notion of "SameDiv" to compare variable behavior. The size of the resulting decompositions can be exponential.
  • Applications: The authors demonstrate two key applications:
  • String Constraint Solving: They show how monadic decomposition can simplify length constraints in string solving, making a significant portion of benchmarks (over 90% of those with length constraints in the Kaluza benchmark suite) easier to handle.
  • Quantifier Elimination: Variadic decomposition is used to improve the efficiency of quantifier elimination in Presburger Arithmetic, reducing the worst-case blow-up from doubly exponential to singly exponential.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic development for formulas in Presburger Arithmetic. The Kaluza benchmark suite is mentioned as a source of real-world examples for the string solving application, but it's not used as a dataset for training or direct evaluation in the context of the decomposition algorithms themselves.

Key Insights and Ideas

  • coNP-Completeness for Presburger Arithmetic: A significant finding is that deciding monadic decomposability for quantifier-free Presburger Arithmetic formulas is coNP-complete. This provides a precise complexity characterization for this important problem.
  • Practical Implications for String Solving: The paper demonstrates that a large percentage of real-world string constraint problems with length constraints can be simplified using monadic decomposition. This suggests that monadic decomposition is a valuable pre-processing step for string solvers.
  • Improved Quantifier Elimination: By leveraging variadic decomposition, the paper shows a way to achieve a more efficient quantifier elimination process in Presburger Arithmetic, which is crucial for handling complex formulas with quantifiers.
  • Connection to Variable Independence: Monadic decomposability is framed as a measure of variable independence, providing a theoretical lens for understanding formula structure.

Key Results

  • Monadic Decomposability: Deciding monadic decomposability for quantifier-free Presburger Arithmetic formulas is coNP-complete. If a decomposition exists, it can be constructed in exponential time and size.
  • Variadic Decomposability: Deciding variadic decomposability for quantifier-free Presburger Arithmetic formulas is also coNP-complete.
  • Kaluza Benchmarks: Analysis of the Kaluza benchmark suite showed that over 90% of benchmarks with length constraints could be handled by monadic decomposition, significantly simplifying the problem.
  • Quantifier Elimination Improvement: Variadic decomposition can reduce the worst-case blow-up of quantifier elimination in Presburger Arithmetic from doubly exponential to singly exponential.

Limitations and Future Work

  • General Boolean Formulas: The paper notes that studying lower bounds for general Boolean formulas is an interesting open problem.
  • Variadic Decomposition without Given Partition: The problem of finding a non-trivial partition for variadic decomposition (i.e., not given as input) is mentioned as an area for further research, with a current coNP algorithm.
  • Practical Implementation: While the theoretical results are strong, the paper mentions that the implementation for checking decomposition was "largely unoptimised" but still showed negligible time costs on benchmarks. Further optimization could be beneficial.
  • Smaller Decompositions: The possibility of finding smaller decompositions than the exponential bounds presented is an open question, particularly for applications in string solving.

Summary updated

BibTeX
@inproceedings{hague2020monadic,
  author = {Matthew Hague and Anthony W. Lin and Philipp Rümmer and Zhilin Wu},
  title = {{Monadic Decomposition in Integer Linear Arithmetic}},
  booktitle = {IJCAR},
  year = {2020},
  doi = {10.1007/978-3-030-51074-9\_8},
}
Figure