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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Emirps · a_37

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

No informal statement.

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

Formal statement

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

public import FormalConjecturesUtil

/-!
# Emirps

An emirp is a prime whose decimal reversal is a different prime. It is unknown whether there are
infinitely many emirps.

*References:*
* [Wikipedia, Emirp](https://en.wikipedia.org/wiki/Emirp)
* [OEIS A006567](https://oeis.org/A006567)
-/

@[expose] public section

namespace Emirp

/-- Reverse the base-ten digits of a natural number. -/
def reverse10 (n : ℕ) : ℕ :=
  Nat.ofDigits 10 (Nat.digits 10 n).reverse

/-- A natural number is an emirp if it and its distinct decimal reversal are both prime. -/
def IsEmirp (p : ℕ) : Prop :=
  p.Prime ∧ (reverse10 p).Prime ∧ reverse10 p ≠ p

@[category test, AMS 11]
theorem reverse10_13 : reverse10 13 = 31 := by
  norm_num [reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem reverse10_17 : reverse10 17 = 71 := by
  norm_num [reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem reverse10_120 : reverse10 120 = 21 := by
  norm_num [reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem a_13 : IsEmirp 13 := by
  norm_num [IsEmirp, reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem a_17 : IsEmirp 17 := by
  norm_num [IsEmirp, reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem a_31 : IsEmirp 31 := by
  norm_num [IsEmirp, reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem a_37 : IsEmirp 37 := by
  norm_num [IsEmirp, reverse10, Nat.ofDigits]

@[category test, AMS 11]
theorem not_a_11 : ¬ IsEmirp 11 := by
  norm_num [IsEmirp, reverse10, Nat.ofDigits]

/-- [Wikipedia's article on emirps](https://en.wikipedia.org/wiki/Emirp) states: "It is not known
whether there are infinitely many emirps." -/
@[category research open, question, AMS 11]
theorem infinitude_question :
    {p : ℕ | IsEmirp p}.Infinite := by
  sorry

end Emirp

To prove it: keep every definition of Challenge.lean unchanged and prove Emirp.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 wikipedia-emirp--a-37      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-emirp--a-37
nosorry submit wikipedia-emirp--a-37 nosorry/wikipedia-emirp--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.