Title:Erdős Problem 1141
3 results recorded on aiXiv
- solves For each fixed integer , only finitely many integers have the property that is prime for every with and . The case is Erdős Problem #1141. The proof deduces this from Pollack's theorem on small prime quadratic residues. — aiXiv:2609.00374, 2026-04-08 · claimed by its authors; no independent check recorded on aiXiv
- disproves For every integer there are only finitely many such that is prime for all with and , deduced from a result of Pollack (2017). In particular only finitely many have prime for all such ; the largest known is 1722. — aiXiv:2609.02562, 2026-04-09 · claimed by its authors; no independent check recorded on aiXiv
- bound The number of such that is prime for all coprime to with is at most . — aiXiv:2609.02562, 2026-04-09 · claimed by its authors; no independent check recorded on aiXiv
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:Theorem 1.3 of [Po17]: for a quadratic character to a large enough modulus, the primes below on which the character is outnumber any fixed power of .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.00778 [math.NT] · NS.00778v1 for this version |
| Declaration: | Erdos1141.erdos_1141.variants.pollack_1_3 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | c428eae9ce76907797acca8467a45ba91a635c0463d41bf1ade5aed065641a1c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1141.lean |
Formal statement
theorem erdos_1141.variants.pollack_1_3 (ε A : ℝ) (hε : 0 < ε) (hA : 0 < A) :
∃ m₀ : ℕ, ∀ m : ℕ, m₀ < m → ∀ χ : DirichletCharacter ℂ m, MulChar.IsQuadratic χ →
Real.log m ^ A ≤ ((residuePrimesUpTo m χ ε).card : ℝ)Show the full Challenge.lean (127 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1141
*References:*
- [erdosproblems.com/1141](https://www.erdosproblems.com/1141)
- [A214583](https://oeis.org/A214583)
- [APSSV26b] B. Alexeev, M. Putterman, M. Sawhney, M. Sellke, and G. Valiant,
[Short proofs in combinatorics, probability and number theory II](https://arxiv.org/abs/2604.06609).
arXiv:2604.06609 (2026).
- [Or26] Y. Oriike, [Lean formalisation of Erdős problem 1141](https://github.com/yuta0x89/ErdosProblems/blob/a1319f732cdee5140faf47d984e2c451c1184803/Erdos1141.lean) (2026)
- [Po17] P. Pollack, Bounds for the first several prime character nonresidues. Proc. Amer. Math. Soc.
(2017), 2815--2826.
- [Me1874] F. Mertens, Ein Beitrag zur analytischen Zahlentheorie. J. Reine Angew. Math. (1874),
46--62.
- [Va99] Various, Some of Paul's favorite problems. Booklet produced for the conference "Paul Erdős
and his mathematics", Budapest, July 1999 (1999).
-/
@[expose] public section
open Nat Set
namespace Erdos1141
/- ## The two external inputs
The formal proof linked on `erdos_1141` below assumes both of these, and states neither. They are
recorded here so the `assuming` clause on that theorem can name them. -/
/-- The cutoff $m^{1/4 + \varepsilon}$ of Theorem 1.3 of [Po17]. -/
noncomputable def residuePrimeUpperBound (m : ℕ) (ε : ℝ) : ℝ := (m : ℝ) ^ ((1 / 4 : ℝ) + ε)
/--
The primes $\ell \leq m^{1/4+\varepsilon}$ with $\chi(\ell) = 1$.
This does not require $\chi$ to be quadratic. That hypothesis belongs to the theorem below, as it
does in the paper.
-/
noncomputable def residuePrimesUpTo (m : ℕ) (χ : DirichletCharacter ℂ m) (ε : ℝ) : Finset ℕ := by
classical
exact (Finset.range (⌈residuePrimeUpperBound m ε⌉₊ + 1)).filter fun ℓ =>
ℓ.Prime ∧ (ℓ : ℝ) ≤ residuePrimeUpperBound m ε ∧ χ (ℓ : ZMod m) = 1
/--
**Theorem 1.3 of [Po17]**: for a quadratic character to a large enough modulus, the primes below
$m^{1/4+\varepsilon}$ on which the character is $1$ outnumber any fixed power of $\log m$.
-/
@[category research solved, AMS 11]
theorem erdos_1141.variants.pollack_1_3 (ε A : ℝ) (hε : 0 < ε) (hA : 0 < A) :
∃ m₀ : ℕ, ∀ m : ℕ, m₀ < m → ∀ χ : DirichletCharacter ℂ m, MulChar.IsQuadratic χ →
Real.log m ^ A ≤ ((residuePrimesUpTo m χ ε).card : ℝ) := by
sorry
/--
**Mertens' third theorem** [Me1874], in the weakened form the linked proof assumes: the product
over the primes up to $n$ of $1 - 1/p$ is at least $1/(3\log n)$.
The true asymptotic is $e^{-\gamma}/\log n$, and $e^{-\gamma} > 1/3$, so this bound is weaker than
the theorem and is what the deduction needs.
-/
@[category research solved, AMS 11]
theorem erdos_1141.variants.mertens_third (n : ℕ) (hn : 3 ≤ n) :
1 / (3 * Real.log n) ≤ ∏ p ∈ (Finset.range (n + 1)).filter Nat.Prime, (1 - 1 / (p : ℝ)) := by
sorry
/--
The property that $n-k^2$ is prime for all $k$ with $(n,k)=1$ and $k^2 < n$.
-/
def Erdos1141Prop (n : ℕ) : Prop :=
∀ k, k ^ 2 < n → Coprime n k → (n - k ^ 2).Prime
instance (n : ℕ) : Decidable (Erdos1141Prop n) :=
decidable_of_iff (∀ k ≤ .sqrt (n - 1), Coprime n k → (n - k ^ 2).Prime) <| by
cases n with
| zero => simp [Erdos1141Prop]
| succ n' =>
simp [Erdos1141Prop, le_sqrt, pow_two]
set_option linter.style.formal_proof_palomar false in
/--
Are there infinitely many $n$ such that $n-k^2$ is prime for all $k$ with $(n,k)=1$ and $k^2 < n$?
In [Va99] it is asked whether $968$ is the largest integer with this property, but this is an
error, since for example $968-9=7\cdot 137$.
The list of $n$ satisfying the given property is [A214583] in the OEIS. The largest known such $n$
is $1722$.
The answer is negative: [APSSV26b] proves a stronger finiteness theorem, deducing it from
Pollack [Po17]. Oriike [Or26] formalised the deduction in Lean.
-/
@[category research solved, question, AMS 11,
formal_proof using lean4 at
"https://github.com/Jayyhk/erdos-lean/blob/main/problems/1141/Erdos1141.lean"]
theorem erdos_1141 :
¬ Infinite { n | Erdos1141Prop n } := by
sorry
@[category test, AMS 11]
example : ¬ Erdos1141Prop 968 := by
decide +native
@[category test, AMS 11]
example : Erdos1141Prop 1722 := by
decide +native
end Erdos1141
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1141.erdos_1141.variants.pollack_1_3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_pollack_1_3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1141 nosorry submit erdos-1141 nosorry/erdos-1141/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1141-variants-mertens-third — known result
- erdos-1141 — known result
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.