Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Polynomial-time computability of factoring

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/Integer_factorization
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

The integer factorization problem: Can the prime factorization of a positive integer be computed in polynomial time?

We state the problem by asking if Nat.primeFactorsList is polynomial-time computable (assuming typical encodings of ℕ and List ℕ into bitstrings).

Reference: Wikipedia

Subjects:Combinatorics (math.CO)
MSC classes:68
Tags:question
Cite as:NS.08018 [math.CO] · NS.08018v1 for this version
Declaration:PolyTime.isPolyTime_primeFactorsList
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:57e74ad861be97b806ab19932b56de0ef942e67dd87bc10e5197a99d604a35b3
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/IntegerFactorization.lean

Formal statement

theorem isPolyTime_primeFactorsList : IsPolyTime Nat.primeFactorsList
Show the full Challenge.lean (56 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Polynomial-time computability of factoring

This file formalizes the open problem of whether natural number / integer factorization can be computed in
polynomial time on a deterministic classical Turing machine.

More precisely, it formalizes the following statement:
Can the prime factorization of a natural number be computed in polynomial time
(on a deterministic classical Turing machine)?

*References:*
- [Wikipedia: List of unsolved problems in computer science](https://en.wikipedia.org/wiki/List_of_unsolved_problems_in_computer_science)
- [Wikipedia: Integer factorization](https://en.wikipedia.org/wiki/Integer_factorization)

-/

@[expose] public section

namespace PolyTime

open ComplexityTheory


/--
**The integer factorization problem**: Can the prime factorization of a positive integer
be computed in polynomial time?

We state the problem by asking if `Nat.primeFactorsList` is polynomial-time computable
(assuming typical encodings of ℕ and List ℕ into bitstrings).

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Integer_factorization) -/
@[category research open, question, AMS 68]
theorem isPolyTime_primeFactorsList : IsPolyTime Nat.primeFactorsList := by
  sorry

end PolyTime

To prove it: keep every definition of Challenge.lean unchanged and prove PolyTime.isPolyTime_primeFactorsList with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_isPolyTime_primeFactorsList : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch wikipedia-integerfactorization
nosorry submit wikipedia-integerfactorization nosorry/wikipedia-integerfactorization/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.