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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Least m>0m > 0 such that {2k−k:k=1,…,m}\{2^k - k : k = 1, \dots, m\} covers all residues modulo nn · a_3

Source:OEIS conjectures
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.05605 [math.NT] · NS.05605v1 for this version
Declaration:OeisA232616.a_3
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:353c9f43a0671ec58eb2898dcc4664c3340fe57036f4cb87dd1243d770a24cba
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/232616.lean

Formal statement

theorem a_3 : a 3 = 4
Show the full Challenge.lean (113 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Least $m > 0$ such that $\{2^k - k : k = 1, \dots, m\}$ covers all residues modulo $n$

For $n \ge 1$, $a(n)$ is the least positive integer $m$ such that $\{2^k - k : k = 1, \dots, m\}$
contains a complete system of residues modulo $n$.

*References:*
- [A232616](https://oeis.org/A232616)
- T. Adamczewski, "OEIS Open: How many conjectures can language models turn into theorems?",
  [arXiv:2608.11941](https://arxiv.org/abs/2608.11941) [cs.AI], 2026.
-/

@[expose] public section

namespace OeisA232616

/--
The predicate that $\{2^k - k : k = 1, \dots, m\}$ contains a complete system
of residues modulo $n$.
-/
def HasCompleteResidueSystem (n m : ℕ) [NeZero n] : Prop :=
  (Finset.univ : Finset (ZMod n)) =
    (Finset.Icc 1 m).image fun k ↦ (Nat.cast (2 ^ k - k) : ZMod n)

instance (n m : ℕ) [NeZero n] : Decidable (HasCompleteResidueSystem n m) :=
  decEq _ _

/--
Least positive integer $m$ such that $\{2^k - k : k = 1, \dots, m\}$
contains a complete system of residues modulo $n$.
-/
noncomputable def a (n : ℕ) : ℕ :=
  if h : n = 0 then 0
  else
    have : NeZero n := NeZero.mk h
    sInf { m : ℕ | HasCompleteResidueSystem n m }

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
  rw [a, dif_neg (by decide)]
  exact IsLeast.csInf_eq (by decide)

@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by
  rw [a, dif_neg (by decide)]
  exact IsLeast.csInf_eq (by decide)

@[category test, AMS 11]
theorem a_3 : a 3 = 4 := by
  rw [a, dif_neg (by decide)]
  exact IsLeast.csInf_eq (by decide)

@[category test, AMS 11]
theorem a_4 : a 4 = 5 := by
  rw [a, dif_neg (by decide)]
  exact IsLeast.csInf_eq (by decide)

@[category test, AMS 11]
theorem a_5 : a 5 = 10 := by
  rw [a, dif_neg (by decide)]
  exact IsLeast.csInf_eq (by decide)

/--
Conjecture (i): $a(n) < 2 \cdot (\text{prime}(n) - 1)$ for all $n > 0$,
where $\text{prime}(n)$ is the $n$-th prime number (1-indexed).

Disproved for $n = 550172$ in the OEIS Open project, see T. Adamczewski, OEIS Open: How many
conjectures can language models turn into theorems?,
[arXiv:2608.11941](https://arxiv.org/abs/2608.11941).
-/
@[category research solved, AMS 11]
theorem conjecture_1 : ¬ ∀ n > 0, a n < 2 * (Nat.nth Nat.Prime (n - 1) - 1) := by
  sorry

/--
Conjecture (ii), first equation: The Diophantine equation $x^n - n = y^m$ with $m, n, x, y > 1$
only has two integral solutions: $2^5 - 5 = 3^3$ and $2^7 - 7 = 11^2$.
-/
@[category research open, AMS 11]
theorem conjecture_2 (x y n m : ℕ) (hx : 1 < x) (hy : 1 < y) (hn : 1 < n) (hm : 1 < m) :
    x ^ n - n = y ^ m ↔ (x = 2 ∧ n = 5 ∧ y = 3 ∧ m = 3) ∨ (x = 2 ∧ n = 7 ∧ y = 11 ∧ m = 2) := by
  sorry

/--
Conjecture (ii), second equation: The Diophantine equation $x^n + n = y^m$ with $m, n, x, y > 1$
only has two integral solutions: $5^2 + 2 = 3^3$ and $5^3 + 3 = 2^7$.
-/
@[category research open, AMS 11]
theorem conjecture_3 (x y n m : ℕ) (hx : 1 < x) (hy : 1 < y) (hn : 1 < n) (hm : 1 < m) :
    x ^ n + n = y ^ m ↔ (x = 5 ∧ n = 2 ∧ y = 3 ∧ m = 3) ∨ (x = 5 ∧ n = 3 ∧ y = 2 ∧ m = 7) := by
  sorry

end OeisA232616

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

nosorry desk oeis-232616--a-3      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-232616--a-3
nosorry submit oeis-232616--a-3 nosorry/oeis-232616--a-3/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.