arXiv · 2204.11771
General Interpolation and Strong Amalgamation for Contiguous Arrays
Abstract
Interpolation is an essential tool in software verification, where first-order theories are used to constrain datatypes manipulated by programs. In this paper, we introduce the datatype theory of contiguous arrays with maxdiff, where arrays are completely defined in their allocation memory and for which maxdiff returns the max index where they differ. This theory is strictly more expressive than the array theories previously studied. By showing via an algebraic analysis that its models strongly amalgamate, we prove that this theory admits quantifier-free interpolants and, notably, that interpolation transfers to theory combinations. Finally, we provide an algorithm that significantly improves the ones for related array theories: it relies on a polysize reduction to general interpolation in linear arithmetics, thus avoiding impractical full terms instantiations and unbounded loops.
Explore related subjects
Keep this discovery
Silvio Ghilardi, Alessandro Gianola, Deepak Kapur, Chiara Naso. 2022-04-25. General Interpolation and Strong Amalgamation for Contiguous Arrays. https://arxiv.org/abs/2204.11771
Cite the original work for its findings. Save a collection to share your selection of sources.