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 · variants.large_k

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:

Is dk(p)d_k(p) unimodular for any k≥21k\geq 21?

The answer is no: dk(p)d_k(p) is not unimodal for any k≥4k \geq 4 [WC26] (arXiv preprint).

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.02884 [math.NT] · NS.02884v1 for this version
Declaration:Erdos690.erdos_690.variants.large_k
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
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.variants.large_k :
    ¬ ∃ k ≥ 21, ∀ 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.variants.large_k with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_large_k : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-690--erdos-690-variants-large-k      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-690--erdos-690-variants-large-k
nosorry submit erdos-690--erdos-690-variants-large-k nosorry/erdos-690--erdos-690-variants-large-k/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.