Machine-Verifying Toom-Cook Multiplication with Integer Evaluation Points
Srihari Nanniyur, Siddhartha Jayanti

TL;DR
This paper provides a machine-verified proof of the correctness of a generalized Toom-Cook multiplication algorithm using integer evaluation points, leveraging Lean 4 and AI theorem proving to automate verification.
Contribution
It introduces a formal proof framework for Toom-Cook multiplication with arbitrary integer evaluation points, integrating AI assistance for verification.
Findings
Verified correctness of Toom-Cook with integer evaluation points
Derived a threshold function for algorithm termination
Demonstrated AI's role in automating formal proofs
Abstract
We present a machine-verified proof of the correctness of Toom-Cook multiplication with generalized integer evaluation points. Toom-Cook is a class of fast multiplication algorithms parameterized by a triple consisting of two positive integer split sizes and a vector of distinct evaluation points. As part of our proof, we verify that for any selection of distinct integer evaluation points, we can compute a threshold function such that, if the algorithm's base-case problem size is set above this threshold, then the algorithm's termination is guaranteed regardless of the values of the operands. The threshold formula, which we derive by obtaining upper bounds on the subproblem sizes produced by the Toom-Cook recurrence, does not depend on the operands; it depends only on , , , and the base …
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPolynomial and algebraic computation · Complexity and Algorithms in Graphs · Cryptography and Residue Arithmetic
