A Verified Implementation of the Berlekamp-Zassenhaus Factorization Algorithm.
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  and then performs computations in the ring of integers modulo  , 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.
['Divasón|Jose|J|0000-0002-5173-128X', 'Joosten|Sebastiaan J C|SJC|0000-0002-6590-6220', 'Thiemann|René|R|0000-0002-0323-8829', 'Yamada|Akihisa|A|0000-0001-8872-2240']
Isabelle/HOL Local type definitions Factor bounds Hensel lifting Polynomial factorization Theorem proving