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 968 · variants.decreasing_steps_pos_lower_density

Source:Erdős Problems · erdosproblems.com/968
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Elsewhere:the main problem, on aiXiv: formalized in Lean — Claimed proved in aiXiv:2610.00777 (2026-10-06), with a Lean formalization published by the authors. · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. solves The set of indices nn with pn/n<pn+1/(n+1)p_n/n < p_{n+1}/(n+1) has positive lower asymptotic density. — aiXiv:2610.00777, 2026-10-06 · Lean · Lean formalization published by the authors; its scope: https://github.com/openai/math/blob/f5702854040e97fa7675c21ba37a9608f5f92dd3/lean/docs/026.md

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

Erdős and Prachar proved that the set {n | u n > u (n+1)} has positive lower density (see [ErPr61]).

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.03803 [math.NT] · NS.03803v1 for this version
Declaration:Erdos968.erdos_968.variants.decreasing_steps_pos_lower_density
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:b243a34a929242adfaab59559a84d7b8c55a9f6f93236e519efc758ca71f7912
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/968.lean

Formal statement

theorem erdos_968.variants.decreasing_steps_pos_lower_density :
    0 < {n : ℕ | u n > u (n + 1)}.lowerDensity
Show the full Challenge.lean (120 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 968

Let `uₙ = pₙ / n`, where `pₙ` is the `n`th prime. Does the set of `n` such that `uₙ < uₙ₊₁`
have positive lower density?

Erdős and Prachar also proved that `∑_{pₙ < x} |uₙ₊₁ - uₙ| ≍ (log x)^2`, and that the set of `n`
such that `uₙ > uₙ₊₁` has positive lower density. Erdős also asked whether there are infinitely many
increasing triples `uₙ < uₙ₊₁ < uₙ₊₂` or decreasing triples `uₙ > uₙ₊₁ > uₙ₊₂`.

*Reference:* [erdosproblems.com/968](https://www.erdosproblems.com/968)

[ErPr61] Erdős, P. and Prachar, K., _Sätze und Probleme über pₖ/k_. Abh. Math. Sem. Univ. Hamburg
(1961/62), 251–256.

[FMT18] Ford, K. and Maynard, J. and Tao, T., _Chains of large gaps between primes_. Irregularities
in the distribution of prime numbers, Springer (2018), 1–21.

[Ma15] Maynard, J., _Small gaps between primes_. Ann. of Math. (2015), 383–413.

[OAI26a] OpenAI, _Positive lower density of large prime gaps_. OpenAI Math Release preprint (2026).
https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Positive-lower-density-of-large-prime-gaps-September-25-2026/main.pdf
-/

@[expose] public section

open Filter Real
open scoped BigOperators

namespace Erdos968

/--
`u n` is the normalized `n`th prime, defined as `pₙ / (n+1)` where `pₙ` is the `n`th prime
(with `0.nth Nat.Prime = 2`).

This corresponds to the classical sequence `(p₁/1, p₂/2, p₃/3, ...)` while using `Nat.nth Prime`'s
`0`-based indexing; in particular, the denominator is always positive.
-/
noncomputable def u (n : ℕ) : ℝ :=
  (n.nth Nat.Prime : ℝ) / (n + 1)

set_option linter.style.formal_proof_palomar false in
/--
Does the set `{n | u n < u (n+1)}` have positive lower density?

Yes. This was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked
Lean proof.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/PrimeGaps/RatioCorollary.lean#L30"]
theorem erdos_968 : 0 < {n : ℕ | u n < u (n + 1)}.lowerDensity := by
  sorry

/--
Erdős and Prachar proved `∑_{pₙ < x} |u (n+1) - u n| ≍ (log x)^2` (see [ErPr61]).

We encode `∑_{pₙ < x}` as a sum over `n < Nat.primeCounting' x` (the number of primes `< x`).
-/
@[category research solved, AMS 11]
theorem erdos_968.variants.sum_abs_diff_isTheta_log_sq :
    (fun x : ℕ =>
        ∑ n < Nat.primeCounting' x, |u (n + 1) - u n|) =Θ[atTop]
      fun x : ℕ => log x ^ 2 := by
  sorry

/--
Erdős and Prachar proved that the set `{n | u n > u (n+1)}` has positive lower density
(see [ErPr61]).
-/
@[category research solved, AMS 11]
theorem erdos_968.variants.decreasing_steps_pos_lower_density :
    0 < {n : ℕ | u n > u (n + 1)}.lowerDensity := by
  sorry

/--
Erdős asked whether there are infinitely many solutions to `uₙ < uₙ₊₁ < uₙ₊₂`.

The answer is yes. Since `uₙ < uₙ₊₁` is equivalent to `pₙ₊₁ - pₙ > pₙ / n`, it suffices to have
infinitely many `n` with two consecutive prime gaps larger than `pₙ / n ∼ log n`. Ford, Maynard,
and Tao [FMT18] proved that for every fixed `k` there are infinitely many `n` with `k` consecutive
prime gaps all of size `≫ log pₙ · log log pₙ · log log log log pₙ / log log log pₙ`.
-/
@[category research solved, question, AMS 11]
theorem erdos_968.variants.infinite_increasingTriples :
    {n : ℕ | u n < u (n + 1) ∧ u (n + 1) < u (n + 2)}.Infinite := by
  sorry

/--
Erdős asked whether there are infinitely many solutions to `uₙ > uₙ₊₁ > uₙ₊₂`.

The answer is yes. Since `uₙ > uₙ₊₁` is equivalent to `pₙ₊₁ - pₙ < pₙ / n`, it suffices to have
infinitely many `n` with `pₙ₊₂ - pₙ` bounded, because `pₙ / n → ∞`. Maynard [Ma15] proved that
`liminf (pₙ₊₂ - pₙ) < ∞`.
-/
@[category research solved, question, AMS 11]
theorem erdos_968.variants.infinite_decreasingTriples :
    {n : ℕ | u n > u (n + 1) ∧ u (n + 1) > u (n + 2)}.Infinite := by
  sorry

end Erdos968

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

nosorry desk erdos-968--erdos-968-variants-decreasing-steps-pos-lower-density      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-968--erdos-968-variants-decreasing-steps-pos-lower-density
nosorry submit erdos-968--erdos-968-variants-decreasing-steps-pos-lower-density nosorry/erdos-968--erdos-968-variants-decreasing-steps-pos-lower-density/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.