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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 690

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let dk(p)d_k(p) be the density of those integers whose kkth smallest prime factor is pp (i.e. if p1<p2<⋯p_1<p_2<\cdots are the primes dividing nn then pk=pp_k=p).

For fixed k≥1k\geq 1 is dk(p)d_k(p) unimodular in pp? That is, it first increases in pp until its maximum then decreases.

The answer is no in general: Cambie [Ca25] has shown that dk(p)d_k(p) is unimodular for 1≤k≤31\leq k\leq 3 and is not unimodular for 4≤k≤204\leq k\leq 20.

The densities dk(p)d_k(p) exist (see erdos_690.variants.hasDensity), so the statement quantifies over any function d recording them.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question, formal_proof
Cite as:NS.02880 [math.NT] · NS.02880v1 for this version
Declaration:Erdos690.erdos_690
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:98c8cae9d2500f8f223741cc83f81a1ed14ef6f49c3b047ea3d48ab4680326ce
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/690.lean

Formal statement

theorem erdos_690 :
    ¬ ∀ k ≥ 1, ∀ d : ℕ → ℝ,
      (∀ p, p.Prime → (kthPrimeFactorSet k p).HasDensity (d p)) → IsUnimodalOnPrimes d
Show the full Challenge.lean (105 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 690

*References:*
- [erdosproblems.com/690](https://www.erdosproblems.com/690)
- [Er79e] Erdős, Paul, _Some unconventional problems in number theory_. Astérisque (1979), 73-82.
- [Ca25] S. Cambie, _Resolution of Erdős' problems about unimodularity_. arXiv:2501.10333 (2025).
- [WC26] S. Wang and D. Crapis, _A Complete Answer to Erdős Problem 690_. arXiv:2605.08542 (2026).
-/

@[expose] public section

open Filter

namespace Erdos690

/-- The set of positive integers whose `k`-th smallest prime factor is `p`: if
$p_1<p_2<\cdots$ are the primes dividing $n$ then $p_k=p$. -/
def kthPrimeFactorSet (k p : ℕ) : Set ℕ :=
  {n | 0 < n ∧ p ∈ n.primeFactors ∧ (n.primeFactors.filter (· < p)).card = k - 1}

/-- A function on the primes is *unimodular* if it first increases in $p$ until its maximum then
decreases. -/
def IsUnimodalOnPrimes (f : ℕ → ℝ) : Prop :=
  ∃ m, m.Prime ∧ (∀ p q, p.Prime → q.Prime → p ≤ q → q ≤ m → f p ≤ f q) ∧
    ∀ p q, p.Prime → q.Prime → m ≤ p → p ≤ q → f q ≤ f p

set_option linter.style.formal_proof_palomar false in
/--
Let $d_k(p)$ be the density of those integers whose $k$th smallest prime factor is $p$ (i.e. if
$p_1<p_2<\cdots$ are the primes dividing $n$ then $p_k=p$).

For fixed $k\geq 1$ is $d_k(p)$ unimodular in $p$? That is, it first increases in $p$ until its
maximum then decreases.

The answer is no in general: Cambie [Ca25] has shown that $d_k(p)$ is unimodular for
$1\leq k\leq 3$ and is not unimodular for $4\leq k\leq 20$.

The densities $d_k(p)$ exist (see `erdos_690.variants.hasDensity`), so the statement quantifies
over any function `d` recording them.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos690.lean#L2162"]
theorem erdos_690 :
    ¬ ∀ k ≥ 1, ∀ d : ℕ → ℝ,
      (∀ p, p.Prime → (kthPrimeFactorSet k p).HasDensity (d p)) → IsUnimodalOnPrimes d := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- For every $k\geq 1$ and prime $p$, the set of integers whose $k$th smallest prime factor is
$p$ has a natural density. -/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos690.lean#L2162"]
theorem erdos_690.variants.hasDensity (k p : ℕ) (hk : 1 ≤ k) (hp : p.Prime) :
    ∃ δ : ℝ, (kthPrimeFactorSet k p).HasDensity δ := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Cambie [Ca25] has shown that $d_k(p)$ is unimodular for $1\leq k\leq 3$. -/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos690.lean#L2162"]
theorem erdos_690.variants.cambie_unimodal (k : ℕ) (hk : 1 ≤ k) (hk' : k ≤ 3)
    (d : ℕ → ℝ) (hd : ∀ p, p.Prime → (kthPrimeFactorSet k p).HasDensity (d p)) :
    IsUnimodalOnPrimes d := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Cambie [Ca25] has shown that $d_k(p)$ is not unimodular for $4\leq k\leq 20$. -/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos690.lean#L2162"]
theorem erdos_690.variants.cambie_not_unimodal (k : ℕ) (hk : 4 ≤ k) (hk' : k ≤ 20)
    (d : ℕ → ℝ) (hd : ∀ p, p.Prime → (kthPrimeFactorSet k p).HasDensity (d p)) :
    ¬ IsUnimodalOnPrimes d := by
  sorry

/-- Is $d_k(p)$ unimodular for any $k\geq 21$?

The answer is no: $d_k(p)$ is not unimodal for any $k \geq 4$ [WC26] (arXiv preprint). -/
@[category research solved, question, AMS 11]
theorem erdos_690.variants.large_k :
    ¬ ∃ k ≥ 21, ∀ d : ℕ → ℝ,
      (∀ p, p.Prime → (kthPrimeFactorSet k p).HasDensity (d p)) → IsUnimodalOnPrimes d := by
  sorry

end Erdos690

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

nosorry fetch erdos-690
nosorry submit erdos-690 nosorry/erdos-690/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.