Feasibility of Primality in Bounded Arithmetic
Abstract
We prove the correctness of the AKS algorithm \cite{AKS} within the bounded arithmetic theory or, equivalently, the first-order consequences of the theory expanded by the smash function, which we denote by . Our approach initially demonstrates the correctness within the theory augmented by two algebraic axioms and then show that they are provable in . The two axioms are: a generalized version of Fermat's Little Theorem and an axiom adding a new function symbol which injectively maps roots of polynomials over a definable finite field to numbers bounded by the degree of the given polynomial. To obtain our main result, we also give new formalizations of parts of number theory and algebra: In : We formalize Legendre's Formula on the prime factorization of , key properties of the Combinatorial Number System and the existence of cyclotomic polynomials over the finite fields . In : We prove the inequality . In : We verify the correctness of the Kung--Sieveking algorithm for polynomial division.
Cite
@article{arxiv.2504.17041,
title = {Feasibility of Primality in Bounded Arithmetic},
author = {Raheleh Jalali and Ondřej Ježil},
journal= {arXiv preprint arXiv:2504.17041},
year = {2026}
}