Feasibility of Primality in Bounded Arithmetic
Abstract
We prove the correctness of the AKS algorithm AKS within the bounded arithmetic theory Tcount2 or, equivalently, the first-order consequences of the theory VTC0 expanded by the smash function, which we denote by VTC02. Our approach initially demonstrates the correctness within the theory S12 + iWPHP augmented by two algebraic axioms and then show that they are provable in VTC02. 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 PV1: We formalize Legendre's Formula on the prime factorization of n!, key properties of the Combinatorial Number System and the existence of cyclotomic polynomials over the finite fields Z/p. In S12: We prove the inequality lcm(1,…, 2n) ≥ 2n. In VTC0: We verify the correctness of the Kung--Sieveking algorithm for polynomial division.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.