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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Primes of the form 2^n + 2^i + 1 · a_37

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

Formal statement

theorem a_37 : A 37
Show the full Challenge.lean (71 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Primes of the form 2^n + 2^i + 1

There are infinite primes of the form $2^n + 2^i + 1$, with $0 < i < n$.
See Wagstaff (2001) where this conjecture is posed.

*References:*
- [A81091](https://oeis.org/A81091)
- Samuel S. Wagstaff, Jr., [Prime Numbers with a fixed number of one bits or zero bits in their binary representation](http://projecteuclid.org/euclid.em/999188636), Exp. Math. vol. 10, issue 2 (2001) 267.
-/

@[expose] public section

namespace OeisA81091

/-- Primes with $m$ one bits in their binary representation. -/
def isPrimeBitsSet (m p : ℕ) : Prop :=
  p.Prime ∧ p.bits.count true = m

/-- Primes in A81091 have exactly $3$ set bits in binary representation ($2^n + 2^i + 1$). -/
def A (p : ℕ) : Prop :=
  isPrimeBitsSet 3 p

@[category test, AMS 11]
theorem a_7 : A 7 := by unfold A isPrimeBitsSet; decide +kernel

@[category test, AMS 11]
theorem a_11 : A 11 := by unfold A isPrimeBitsSet; decide +kernel

@[category test, AMS 11]
theorem a_13 : A 13 := by unfold A isPrimeBitsSet; decide +kernel

@[category test, AMS 11]
theorem a_19 : A 19 := by unfold A isPrimeBitsSet; decide +kernel

@[category test, AMS 11]
theorem a_37 : A 37 := by unfold A isPrimeBitsSet; decide +kernel

/--
**Conjecture (A81091)**: There are infinite primes of the form $2^n + 2^i + 1$,
with $0 < i < n$.
-/
@[category research open, question, AMS 11]
theorem conjectureA81091 :
    Set.Infinite {p : ℕ | A p} := by
  sorry

-- TODO(Paul-Lez): add result that for m ≥ 3, there is no prime number with precisely 2m bits, exactly two of which are zero bits.

end OeisA81091

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

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