A Verified Implementation of Algebraic Numbers in Isabelle/HOL

J Autom Reason. 2020;64(3):363-389. doi: 10.1007/s10817-018-09504-w. Epub 2018 Dec 9.

Abstract

We formalize algebraic numbers in Isabelle/HOL. Our development serves as a verified implementation of algebraic operations on real and complex numbers. We moreover provide algorithms that can identify all the real or complex roots of rational polynomials, and two implementations to display algebraic numbers, an approximative version and an injective precise one. We obtain verified Haskell code for these operations via Isabelle's code generator. The development combines various existing formalizations such as matrices, Sturm's theorem, and polynomial factorization, and it includes new formalizations about bivariate polynomials, unique factorization domains, resultants and subresultants.

Keywords: Algebraic numbers; Real algebraic geometry; Resultants; Theorem proving.