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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Fortune's Conjecture

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

Fortune's Conjecture: Every Fortunate number is prime.

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

Formal statement

theorem fortune_conjecture :
    (∀ n : ℕ, Nat.Prime (fortunateNumber n))
Show the full Challenge.lean (144 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Fortune's Conjecture

A *Fortunate number* is the smallest integer $m > 1$ such that $p_n\\# + m$ is prime,
where $p_n\\#$ denotes the primorial of the $n$-th prime — equivalently, the product
of the first $n$ primes.

**Fortune's Conjecture** asserts that every Fortunate number is prime — equivalently,
that no Fortunate number is composite.

The conjecture is named after the social anthropologist Reo Fortune, who proposed it.
The first few Fortunate numbers are $3, 5, 7, 13, 23, 17, 19, 23, 37, 61, \ldots$
(OEIS A005235); all known values are prime.

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Fortunate_number)
- [OEIS A005235](https://oeis.org/A005235)
- [PrimePages glossary entry](https://primes.utm.edu/glossary/xpage/FortunateNumber.html)
- [PlanetMath: Fortune's conjecture](https://planetmath.org/fortunesconjecture)
-/

@[expose] public section

namespace FortuneConjecture

open Nat

/-- For any natural number `N` there is some `m > 1` with `N + m` prime; an
immediate consequence of the infinitude of primes. -/
@[category API, AMS 11]
lemma exists_one_lt_prime_add (N : ℕ) : ∃ m, 1 < m ∧ Nat.Prime (N + m) := by
  obtain ⟨p, hp_ge, hp_prime⟩ := Nat.exists_infinite_primes (N + 2)
  refine ⟨p - N, by omega, ?_⟩
  have hsum : N + (p - N) = p := by omega
  rw [hsum]; exact hp_prime

/-- The $n$-th *Fortunate number* (0-indexed): the smallest integer $m > 1$ such
that $p_{n+1}\\# + m$ is prime.

`Nat.nth Nat.Prime n` is the $(n+1)$-st prime (0-indexed), and `primorial p` is the
product of all primes $\le p$; when $p$ is the $(n+1)$-st prime this equals the
product of the first $n+1$ primes. Thus `fortunateNumber 0` corresponds to
$F_1 = 3$ in the OEIS A005235 indexing. -/
noncomputable def fortunateNumber (n : ℕ) : ℕ :=
  Nat.find (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime n)))

/-- `fortunateNumber n` is greater than $1$, and adding it to the primorial of
the $(n+1)$-st prime yields a prime. -/
@[category API, AMS 11]
lemma fortunateNumber_spec (n : ℕ) :
    1 < fortunateNumber n ∧
      Nat.Prime (primorial (Nat.nth Nat.Prime n) + fortunateNumber n) :=
  Nat.find_spec (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime n)))

/-- Minimality of `fortunateNumber n`: no smaller integer $m > 1$ makes
`primorial (Nat.nth Nat.Prime n) + m` prime. -/
@[category API, AMS 11]
lemma fortunateNumber_le (n m : ℕ) (hm : 1 < m)
    (hp : Nat.Prime (primorial (Nat.nth Nat.Prime n) + m)) :
    fortunateNumber n ≤ m :=
  Nat.find_min' (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime n))) ⟨hm, hp⟩

-- The first four Fortunate numbers (OEIS A005235): 3, 5, 7, 13.

@[category API, AMS 11]
theorem fortunateNumber_zero : fortunateNumber 0 = 3 := by
  have hp : primorial (Nat.nth Nat.Prime 0) = 2 := by
    rw [Nat.nth_prime_zero_eq_two]; decide
  show Nat.find (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime 0))) = 3
  rw [Nat.find_eq_iff]
  refine ⟨⟨by norm_num, ?_⟩, ?_⟩
  · show Nat.Prime (primorial (Nat.nth Nat.Prime 0) + 3)
    rw [hp]; norm_num
  · rintro m hm ⟨hm1, hmp⟩
    rw [hp] at hmp
    interval_cases m
    norm_num at hmp

@[category API, AMS 11]
theorem fortunateNumber_one : fortunateNumber 1 = 5 := by
  have hp : primorial (Nat.nth Nat.Prime 1) = 6 := by
    rw [Nat.nth_prime_one_eq_three]; decide
  show Nat.find (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime 1))) = 5
  rw [Nat.find_eq_iff]
  refine ⟨⟨by norm_num, ?_⟩, ?_⟩
  · show Nat.Prime (primorial (Nat.nth Nat.Prime 1) + 5)
    rw [hp]; norm_num
  · rintro m hm ⟨hm1, hmp⟩
    rw [hp] at hmp
    interval_cases m <;> norm_num at hmp

@[category API, AMS 11]
theorem fortunateNumber_two : fortunateNumber 2 = 7 := by
  have hp : primorial (Nat.nth Nat.Prime 2) = 30 := by
    rw [Nat.nth_prime_two_eq_five]; decide
  show Nat.find (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime 2))) = 7
  rw [Nat.find_eq_iff]
  refine ⟨⟨by norm_num, ?_⟩, ?_⟩
  · show Nat.Prime (primorial (Nat.nth Nat.Prime 2) + 7)
    rw [hp]; norm_num
  · rintro m hm ⟨hm1, hmp⟩
    rw [hp] at hmp
    interval_cases m <;> norm_num at hmp

@[category API, AMS 11]
theorem fortunateNumber_three : fortunateNumber 3 = 13 := by
  have hp : primorial (Nat.nth Nat.Prime 3) = 210 := by
    rw [Nat.nth_prime_three_eq_seven]; decide
  show Nat.find (exists_one_lt_prime_add (primorial (Nat.nth Nat.Prime 3))) = 13
  rw [Nat.find_eq_iff]
  refine ⟨⟨by norm_num, ?_⟩, ?_⟩
  · show Nat.Prime (primorial (Nat.nth Nat.Prime 3) + 13)
    rw [hp]; norm_num
  · rintro m hm ⟨hm1, hmp⟩
    rw [hp] at hmp
    interval_cases m <;> norm_num at hmp

/-- **Fortune's Conjecture**: Every Fortunate number is prime. -/
@[category research open, question, AMS 11]
theorem fortune_conjecture :
    (∀ n : ℕ, Nat.Prime (fortunateNumber n)) := by
  sorry

end FortuneConjecture

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

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