Deterministic integer factoring in time
Theorem 1 (in Lean): one deterministic Turing machine (Mathlib's TM2 model, every alphabet finite, input and output in binary) outputs the smallest prime factor of and, for every , halts within steps on -bit inputs, so in time . Theorem 2 (not in Lean, a few lines): applying it at most times gives the complete factorization in time . The algorithm is…