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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Bateman-Horn Conjecture

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/Bateman%E2%80%93Horn_conjecture
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

The Bateman-Horn Conjecture Given a finite collection of distinct irreducible polynomials non-constant f1,f2,…,fk∈Z[x]f_1, f_2, \dots, f_k \in \mathbb{Z}[x] with positive leading coefficients that satisfy the Schinzel condition, the number of positive integers n≤xn \leq x for which all polynomials fif_i are simultaneously prime is asymptotic to: CDx(log⁡x)k\frac{C}{D} \frac{x}{(\log x)^k} where D=∏ideg⁡(fi)D = \prod_i \deg(f_i) and CC is the Bateman-Horn constant given by the convergent infinite product: C=∏p∈P(1−1/p)−k(1−ωp/p)C = \prod_{p\in\mathbb{P}} (1 - 1/p)^{-k} (1 - \omega_p/p) Here ωp\omega_p is the number of residue classes modulo pp for which at least one polynomial vanishes. The product is only conditionally convergent: it is the limit as N→∞N \to \infty of the partial products over the primes p<Np < N.

The Schinzel condition ensures that for each prime pp, there exists some integer nn such that pp does not divide the product f1(n)f2(n)⋯fk(n)f_1(n) f_2(n) \dotsb f_k(n), which guarantees the infinite product converges to a positive value.

Subjects:Number Theory (math.NT); Commutative Algebra (math.AC)
MSC classes:11, 12
Cite as:NS.07647 [math.NT] · NS.07647v1 for this version
Declaration:BatemanHornConjecture.bateman_horn_conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:d3035c0b449ca2b253d5e8abc037a284df7a7ef5e2c607967b4dd8a7bf8b01a8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/BatemanHornConjecture.lean

Formal statement

theorem bateman_horn_conjecture
    (polys : Finset ℤ[X])
    (h_nonempty : polys.Nonempty)
    (h_irreducible : ∀ f ∈ polys, BunyakovskyCondition f)
    (h_compat : SchinzelCondition polys) :
    ∃ C : ℝ, 0 < C ∧ Tendsto (BatemanHornPartialProduct polys) atTop (𝓝 C) ∧
      (fun x : ℝ => (CountSimultaneousPrimes polys x : ℝ)) ~[atTop]
        (fun x : ℝ => C / DegreesProduct polys * x / (Real.log x) ^ polys.card)
Show the full Challenge.lean (93 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Bateman-Horn Conjecture

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Bateman%E2%80%93Horn_conjecture)
-/

@[expose] public section

/-
Note: This formalization was one-shot (with minimal cleaning) from Claude 4.0 Sonnet; see:
https://claude.ai/share/a02c2bba-7f5f-435c-ab0e-58eb5ddc0545
-/

open Polynomial Asymptotics Filter Topology

namespace BatemanHornConjecture

/-- `OmegaP S p` counts the number of residue classes mod `p` where at least one polynomial in `S` vanishes. -/
noncomputable def OmegaP (polys : Finset ℤ[X]) (p : ℕ) : ℕ :=
  {n : ZMod p | ∃ f ∈ polys, (f.map (Int.castRingHom (ZMod p))).eval n = 0}.ncard

/-- The product of degrees of polynomials in a finite set. -/
def DegreesProduct (polys : Finset ℤ[X]) : ℕ :=
  polys.prod (fun f => f.natDegree)

/--
The partial Euler product of the Bateman-Horn constant of a set of polynomials `S`, taken over the
primes $p < N$:
$$\prod_{p < N} (1 - \frac{1}{p})^{-|S|} (1 - \frac{\omega_p(S)}{p})$$
where $\omega_p(S)$ is the number of residue classes mod $p$ where at least one polynomial in $S$
vanishes. The Bateman-Horn constant is the limit of these partial products as $N \to \infty$;
the product is only conditionally convergent, so the order of the factors matters.
-/
noncomputable def BatemanHornPartialProduct (polys : Finset ℤ[X]) (N : ℕ) : ℝ :=
  ∏ p ∈ Nat.primesBelow N,
    (1 - (1 : ℝ) / p) ^ (-polys.card : ℤ) * (1 - (OmegaP polys p : ℝ) / p)

/-- `CountSimultaneousPrimes S x` counts the number of `n ≤ x` at which all polynomials in `S` attain a prime value. -/
noncomputable def CountSimultaneousPrimes (polys : Finset ℤ[X]) (x : ℝ) : ℕ :=
  Finset.card (Finset.filter
    (fun n : ℕ => ∀ f ∈ polys, (f.eval ↑n).natAbs.Prime)
    (Finset.range (⌊x⌋₊ + 1)))

/--
**The Bateman-Horn Conjecture**
Given a finite collection of distinct irreducible polynomials non-constant $f_1, f_2, \dots, f_k \in \mathbb{Z}[x]$
with positive leading coefficients that satisfy the Schinzel condition, the number
of positive integers $n \leq x$ for which all polynomials $f_i$ are simultaneously prime is
asymptotic to:
$$\frac{C}{D} \frac{x}{(\log x)^k}$$
where $D = \prod_i \deg(f_i)$ and $C$ is the Bateman-Horn constant given by the convergent
infinite product:
$$C = \prod_{p\in\mathbb{P}} (1 - 1/p)^{-k} (1 - \omega_p/p)$$
Here $\omega_p$ is the number of residue classes modulo $p$ for which at least one polynomial
vanishes. The product is only conditionally convergent: it is the limit as $N \to \infty$ of the
partial products over the primes $p < N$.

The Schinzel condition ensures that for each prime $p$, there exists some integer $n$
such that $p$ does not divide the product $f_1(n) f_2(n) \dotsb f_k(n)$, which guarantees the
infinite product converges to a positive value.
-/
@[category research open, AMS 11 12]
theorem bateman_horn_conjecture
    (polys : Finset ℤ[X])
    (h_nonempty : polys.Nonempty)
    (h_irreducible : ∀ f ∈ polys, BunyakovskyCondition f)
    (h_compat : SchinzelCondition polys) :
    ∃ C : ℝ, 0 < C ∧ Tendsto (BatemanHornPartialProduct polys) atTop (𝓝 C) ∧
      (fun x : ℝ => (CountSimultaneousPrimes polys x : ℝ)) ~[atTop]
        (fun x : ℝ => C / DegreesProduct polys * x / (Real.log x) ^ polys.card) := by
  sorry

end BatemanHornConjecture

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

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