A Verified Implementation of the Berlekamp—Zassenhaus Factorization Algorithm
Jose Divasón, Sebastiaan Joosten, René Thiemann, and Akihisa YamadaJournal of Automated Reasoning 64(4), pp. 699 – 735, 2020.
Abstract
We formally verify the Berlekamp—Zassenhaus algorithm for factoring square-free integer polynomials in Isabelle/HOL. We further adapt an existing formalization of Yun’s square-free factorization algorithm to integer polynomials, and thus provide an efficient and certified factorization algorithm for arbitrary univariate polynomials.
The algorithm first performs factorization in the prime field GF(p) and then performs computations in the ring of integers modulo p^k, where both p and k are determined at runtime. Since a natural modeling of these structures via dependent types is not possible in Isabelle/HOL, we formalize the whole algorithm using locales and local type definitions.
Through experiments we verify that our algorithm factors polynomials of degree up to 500 within seconds.
BibTeX
@article{JDSJRTAY-JAR19, author = "Jose Divas\'on and Sebastiaan Joosten and Ren\'e Thiemann and Akihisa Yamada", title = "A Verified Implementation of the {B}erlekamp--{Z}assenhaus Factorization Algorithm", journal = "Journal of Automated Reasoning", volume = 64, number = 4, year = 2020, pages = "699--735", doi = "10.1007/s10817-019-09526-y", note = "Online first." }