Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Decimal Repunit Primes · repunit10_one

Source:Wikipedia lists of open problems
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.08380 [math.NT] · NS.08380v1 for this version
Declaration:RepunitPrime.repunit10_one
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:adf583284c8cf69cb8b87c101bb7394aa175be837c66f25c5a95a83d991380dd
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/RepunitPrime.lean

Formal statement

theorem repunit10_one : repunit10 1 = 1
Show the full Challenge.lean (78 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Decimal Repunit Primes

A decimal repunit is a natural number whose decimal representation consists entirely of ones.
It is conjectured that infinitely many decimal repunits are prime.

*References:*
- [Wikipedia: Repunit](https://en.wikipedia.org/wiki/Repunit#Decimal_repunit_primes)
- [OEIS A002275](https://oeis.org/A002275)
- [OEIS A004022](https://oeis.org/A004022)
- [OEIS A004023](https://oeis.org/A004023)
-/

@[expose] public section

namespace RepunitPrime

/-- The decimal repunit of length $n$, defined as $1 + 10 + \cdots + 10^{n-1}$. -/
def repunit10 (n : ℕ) : ℕ :=
  ∑ i ∈ Finset.range n, 10 ^ i

@[category test, AMS 11]
theorem repunit10_one : repunit10 1 = 1 := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_two : repunit10 2 = 11 := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_three : repunit10 3 = 111 := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_four : repunit10 4 = 1111 := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_five : repunit10 5 = 11111 := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_two_prime : (repunit10 2).Prime := by
  norm_num [repunit10, Finset.sum_range_succ]

@[category test, AMS 11]
theorem repunit10_three_not_prime : ¬ (repunit10 3).Prime := by
  norm_num [repunit10, Finset.sum_range_succ, Nat.prime_def_lt]
  exact ⟨3, by norm_num, by norm_num, by norm_num⟩

/-- [Wikipedia's repunit article](https://en.wikipedia.org/wiki/Repunit#Decimal_repunit_primes)
states: "It has been conjectured that there are infinitely many repunit primes." -/
@[category research open, AMS 11]
theorem infinitely_many_repunit_primes :
    {n : ℕ | (repunit10 n).Prime}.Infinite := by
  sorry

end RepunitPrime

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

nosorry desk wikipedia-repunitprime--repunit10-one      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-repunitprime--repunit10-one
nosorry submit wikipedia-repunitprime--repunit10-one nosorry/wikipedia-repunitprime--repunit10-one/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.