Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bateman--Horn conjecture

Open
FCP.BatemanHorn.bateman_horn_conjecture

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorynumber-theory

The Bateman--Horn conjecture. Let S={f1,…,fk}S = \{f_1, \dots, f_k\}S={f1​,…,fk​} be a nonempty finite set of distinct polynomials in Z[X]\mathbb{Z}[X]Z[X], each with positive leading coefficient, degree at least 111 and irreducible over Z\mathbb{Z}Z, and assume the Schinzel condition: for every prime ppp some integer nnn has p∤f1(n)⋯fk(n)p \nmid f_1(n)\cdots f_k(n)p∤f1​(n)⋯fk​(n).

Then the truncated Euler products

PN(S)=∏p<N(1−1p)−k(1−ωp(S)p)P_N(S) = \prod_{p<N}\left(1-\tfrac1p\right)^{-k}\left(1-\tfrac{\omega_p(S)}{p}\right)PN​(S)=p<N∏​(1−p1​)−k(1−pωp​(S)​)

converge, as N→∞N \to \inftyN→∞, to a strictly positive constant CCC (the Bateman--Horn constant), and the counting function πS(x)\pi_S(x)πS​(x) of the integers n≤xn \le xn≤x at which all fif_ifi​ are simultaneously prime in absolute value satisfies the asymptotic

πS(x)∼CD x(log⁡x)k,D=∏ideg⁡fi.\pi_S(x) \sim \frac{C}{D}\,\frac{x}{(\log x)^k}, \qquad D = \prod_{i} \deg f_i.πS​(x)∼DC​(logx)kx​,D=i∏​degfi​.

This is the quantitative form of Schinzel's hypothesis H; it contains the twin prime conjecture (f1=Xf_1 = Xf1​=X, f2=X+2f_2 = X+2f2​=X+2) and the Bunyakovsky conjecture as special cases, and no case with k≥1k \ge 1k≥1 and deg⁡f1≥2\deg f_1 \ge 2degf1​≥2 is known.

Preamble
import Mathlib
import Definitions.Def_FCP_BatemanHorn

open Polynomial Filter Topology Asymptotics
Formal statement
namespace FCP.BatemanHorn

theorem bateman_horn_conjecture (polys : Finset ℤ[X]) (h_nonempty : polys.Nonempty)
    (h_bunyakovsky : ∀ f ∈ polys, BunyakovskyCondition f)
    (h_schinzel : SchinzelCondition polys) :
    ∃ C : ℝ, 0 < C ∧ Tendsto (partialProduct polys) atTop (𝓝 C) ∧
      (fun x : ℝ => (countSimultaneousPrimes polys x : ℝ)) ~[atTop]
        (fun x : ℝ => C / degreesProduct polys * x / (Real.log x) ^ polys.card) := by sorry

end FCP.BatemanHorn
Source
Formal Conjectures library (Google DeepMind), Apache-2.0, https://github.com/google-deepmind/formal-conjectures (FormalConjectures/Wikipedia/BatemanHornConjecture.lean); https://en.wikipedia.org/wiki/Bateman%E2%80%93Horn_conjecture
Read-back

What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)

Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.

Let SSS be a finite set of polynomials with integer coefficients. Assume: SSS is nonempty; every f∈Sf \in Sf∈S has strictly positive leading coefficient, degree at least 111 and is irreducible in Z[X]\mathbb{Z}[X]Z[X]; and for every prime ppp there is an integer nnn with p∤∏f∈Sf(n)p \nmid \prod_{f \in S} f(n)p∤∏f∈S​f(n).

The conclusion asserts the existence of a real number CCC with three properties simultaneously:

  • C>0C > 0C>0;
  • the sequence N↦PN(S)=∏p<N(1−1/p)−∣S∣(1−ωp(S)/p)N \mapsto P_N(S) = \prod_{p < N} (1-1/p)^{-|S|}(1 - \omega_p(S)/p)N↦PN​(S)=∏p<N​(1−1/p)−∣S∣(1−ωp​(S)/p), indexed by natural numbers NNN and with ωp(S)\omega_p(S)ωp​(S) the number of residues mod ppp killing some member of SSS, tends to CCC as N→∞N \to \inftyN→∞;
  • the real-valued function x↦πS(x)x \mapsto \pi_S(x)x↦πS​(x), counting the natural numbers n≤⌊x⌋n \le \lfloor x \rfloorn≤⌊x⌋ at which ∣f(n)∣|f(n)|∣f(n)∣ is prime for every f∈Sf \in Sf∈S, is asymptotically equivalent, as x→∞x \to \inftyx→∞, to the function
x⟼CD(S)⋅x(log⁡x)∣S∣,x \longmapsto \frac{C}{D(S)} \cdot \frac{x}{(\log x)^{|S|}},x⟼D(S)C​⋅(logx)∣S∣x​,

where D(S)D(S)D(S) is the product of the degrees and log⁡\loglog is the real logarithm. Asymptotic equivalence here is the standard relation: the difference of the two functions is ooo of the second one along the filter of large xxx.

Degenerate readings worth noting: the hypotheses do not force ∣S∣≥2|S| \ge 2∣S∣≥2; the counting function is a natural number cast to a real; and the grouping of the right-hand side is ((C/D(S))⋅x)/(log⁡x)∣S∣\big((C/D(S)) \cdot x\big) / (\log x)^{|S|}((C/D(S))⋅x)/(logx)∣S∣, which agrees with CDx(log⁡x)k\frac{C}{D}\frac{x}{(\log x)^k}DC​(logx)kx​.

Human review
  • Endorsed by Shuze Chen · Sep 17, 2026

  • Endorsed by LG · Sep 17, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me