# Unconditional Integer Factorization in Subexponential Time

> Source: <https://github.com/google-research/google-research/tree/4a7bc8ab0bc770e71a259b7966c500496b99010a/cogentic_research_papers/integer_factorization>
> Published: 2026-11-26 04:59:56+00:00

**Key takeaway:** Cogentic, driven by Gemini 4 from a single prompt with no human interaction, produced a subexponential-time Las Vegas factorization algorithm plus a complete Lean 4 (v4.35.0) proof formalization, with factors certified by Agrawal–Kayal–Saxena primality testing and direct multiplication.

[This paper](https://github.com/google-research/google-research/blob/4a7bc8ab0bc770e71a259b7966c500496b99010a/cogentic_research_papers/integer_factorization/paper.pdf) constructs an unconditional, zero-error Las Vegas
algorithm on a single fixed uniform classical multitape Turing machine

and 

Every prime factor in the output is certified deterministically via
Agrawal–Kayal–Saxena primality testing and direct multiplication against `v4.35.0`)
formalization of the entire proof has also been completed and will be released
in a companion submission.

This paper and its Lean 4 formalization were entirely obtained by Cogentic
(arXiv preprint [arXiv:2609.40324](https://arxiv.org/abs/2609.40324)), an
agentic framework for mathematical discovery, using Gemini 4 as the base model.
There was no human interaction other than the initial prompt for Cogentic to
generate a full proof and formalization.
The Cogentic harness was built by Yang Cai, Vineet Gupta, Yanchen Jiang,
Christopher Liaw, Aranyak Mehta, Grigoris Velegkas, and Di Wang (Google Research
and Google DeepMind).

Copyright 2026 Google LLC

The paper in this directory is licensed under the
[Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode)
(CC-BY-4.0).

Unless required by applicable law or agreed to in writing, all materials distributed here under the CC-BY-4.0 license are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the license for the specific language governing permissions and limitations under the license.

This is not an official Google product.
