This paper presents a formally verified quantifier elimination (QE) algorithm for first-order real arithmetic by linear and quadratic virtual substitution (VS) in Isabelle/HOL. The Tarski-Seidenberg theorem established that the first-order logic of real arithmetic is decidable by QE. However, in practice, QE algorithms are highly complicated and often combine multiple methods for performance. VS is a practically successful method for QE that targets formulas with low-degree polynomials. To our knowledge, this is the first work to formalize VS for quadratic real arithmetic including inequalities. The proofs necessitate various contributions to the existing multivariate polynomial libraries in Isabelle/HOL. Our framework is modularized and easily expandable (to facilitate integrating future optimizations), and could serve as a basis for developing practical general-purpose QE algorithms. Further, as our formalization is designed with practicality in mind, we export our development to SML and test the resulting code on 378 benchmarks from the literature, comparing to Redlog, Z3, Wolfram Engine, and SMT-RAT. This identified inconsistencies in some tools, underscoring the significance of a verified approach for the intricacies of real arithmetic.
翻译:本文为伊莎贝尔/HOL中通过线性和二次虚拟替代(VS)进行一阶实际算术的正式核实的量化取消算法。 Tarski-Seidenberg 理论认为,真实算术的第一阶逻辑可以由QE去分。 然而,在实践中,QE算法非常复杂,而且往往结合多种性能方法。 VS是量化量化算法的一个实际成功方法,它针对的是低度多度多义公式的公式。 据我们所知,这是将VS正规化为包括不平等在内的二次真实算术的首次工作。这些证据需要对伊莎贝尔/HOL中现有的多变量多元图书馆作出各种贡献。 我们的框架是模块化的,易于扩展(以便利未来优化的一体化),并且可以作为制定实用通用的QE算法的基础。 此外,由于我们的正规化方法的设计是实用性的,我们将我们的发展输出给SML,并测试从文献中得出的378个基准的代码,与Redlog、Z3、Wolfram 发动机和SMT-RMAT方法中的某些重要之处。