New lower bounds for Romanoff's constant
Abstract
Romanoff proved in 1934 that the integers of the form p + 2a, with p prime and a ≥ 1, have positive lower density d. We prove that d ≥ 0.110825 and, conditionally on an upper bound for prime pairs that Johnston and Trudgian derive from Lichtman’s work on primes in arithmetic progressions, that d ≥ 0.119178; the best lower bound so far was 0.10788. The proof refines the method of Elsholtz and Schlage-Puchta, which bounds the second moment of the number of representations in each residue class modulo a fixed integer. Both bounds are certified by computer and also proved in the Lean proof assistant, with the analytic inputs as hypotheses.
In plain words
Many whole numbers, like 5, 7 and 11, are sums of a prime and a power of two. In 1934 Romanoff proved that such numbers never become vanishingly rare: a nonzero proportion of whole numbers have this form. Numerical studies suggest that the proportion is a little over 0.43. Before this paper, the method of Elsholtz and Schlage-Puchta gave the best proven bound: the proportion is at least 0.10788. This paper raises that bound to 0.110825.
Formal statement and axioms
Each main result as stated in Lean, copied verbatim from the published package, with the axioms that the proof rests on. Lean v4.35.0-rc3, Mathlib c55e6e786f49. The package.
Romanoff.G.romanoff_U3g_K
The lower bound 0.110825: kernel-only. Assumes the per-class sieve bound of Elsholtz and Schlage-Puchta. Also assumes the prime number theorem in progressions and a bound that is derived from Pintz’s work.
theorem romanoff_U3g_K (h1 : ESP28 G.ell) (h3 : PNTAP G.ell) (h5 : R0Bound) : G.U3gStatementDefinitions used in the statement
def U3gStatement : Prop := (110825 / 1000000 : ℝ) ≤ liminf dens atTopnoncomputable def dens (N : ℕ) : ℝ := (count N : ℝ) / Ndef count (N : ℕ) : ℕ := ((Finset.Icc 1 N).filter IsRomanoff).carddef IsRomanoff (n : ℕ) : Prop := ∃ p a : ℕ, p.Prime ∧ 1 ≤ a ∧ n = p + 2 ^ adef ESP28 (l : ℕ) : Prop :=
∀ ε > (0 : ℝ), ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ h : ℤ, 0 < h → h < N → ∀ k : ℕ, Nat.Coprime k l →
(pairCountMod N h k l : ℝ) ≤
(8 + ε) * C0up * N / ((Nat.totient l : ℝ) * Real.log N ^ 2) * sing (l * h.natAbs)def PNTAP (l : ℕ) : Prop :=
∀ a : ℕ, Nat.Coprime a l →
Tendsto (fun N : ℕ => (primeCountMod N l a : ℝ) * Nat.totient l * Real.log N / N) atTop (nhds 1)def R0Bound : Prop :=
∀ S : Finset ℕ, (∀ m ∈ S, Odd m ∧ Squarefree m) →
∑ m ∈ S, fm m / (orderOf (2 : ZMod m) : ℝ) ≤ 193656 / 100000def ell : ℕ := ellPrimes.proddef ellPrimes : List ℕ := [3, 5, 7, 11, 13, 17, 31, 241, 41, 19, 73, 37, 23, 43, 29]def pairCountMod (N : ℕ) (h : ℤ) (k l : ℕ) : ℕ :=
((Finset.range (N + 1)).filter fun p₂ => p₂.Prime ∧ p₂ % l = k % l ∧
0 ≤ (p₂ : ℤ) + h ∧ ((p₂ : ℤ) + h).toNat ≤ N ∧ ((p₂ : ℤ) + h).toNat.Prime).carddef primeCountMod (N l a : ℕ) : ℕ := ((Finset.range (N + 1)).filter fun p => p.Prime ∧ p % l = a % l).cardnoncomputable def sing (n : ℕ) : ℝ := ∏ p ∈ n.primeFactors.filter (2 < ·), ((p : ℝ) - 1) / (p - 2)noncomputable def fm (m : ℕ) : ℝ := ∏ p ∈ m.primeFactors, 1 / ((p : ℝ) - 2)noncomputable def C0up : ℝ := 66016181584686958 / 10 ^ 17Axioms, as Lean reports them. Recorded in the published file.
'Romanoff.G.romanoff_U3g_K' depends on axioms: [propext, Classical.choice, Quot.sound]Romanoff.G.romanoff_U3g
The lower bound 0.110825: with compiled code. Assumes the per-class sieve bound of Elsholtz and Schlage-Puchta. Also assumes the prime number theorem in progressions and a bound that is derived from Pintz’s work.
theorem romanoff_U3g (h1 : ESP28 G.ell) (h3 : PNTAP G.ell) (h5 : R0Bound) : G.U3gStatementDefinitions used in the statement
def U3gStatement : Prop := (110825 / 1000000 : ℝ) ≤ liminf dens atTopnoncomputable def dens (N : ℕ) : ℝ := (count N : ℝ) / Ndef count (N : ℕ) : ℕ := ((Finset.Icc 1 N).filter IsRomanoff).carddef IsRomanoff (n : ℕ) : Prop := ∃ p a : ℕ, p.Prime ∧ 1 ≤ a ∧ n = p + 2 ^ adef ESP28 (l : ℕ) : Prop :=
∀ ε > (0 : ℝ), ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ h : ℤ, 0 < h → h < N → ∀ k : ℕ, Nat.Coprime k l →
(pairCountMod N h k l : ℝ) ≤
(8 + ε) * C0up * N / ((Nat.totient l : ℝ) * Real.log N ^ 2) * sing (l * h.natAbs)def PNTAP (l : ℕ) : Prop :=
∀ a : ℕ, Nat.Coprime a l →
Tendsto (fun N : ℕ => (primeCountMod N l a : ℝ) * Nat.totient l * Real.log N / N) atTop (nhds 1)def R0Bound : Prop :=
∀ S : Finset ℕ, (∀ m ∈ S, Odd m ∧ Squarefree m) →
∑ m ∈ S, fm m / (orderOf (2 : ZMod m) : ℝ) ≤ 193656 / 100000def ell : ℕ := ellPrimes.proddef ellPrimes : List ℕ := [3, 5, 7, 11, 13, 17, 31, 241, 41, 19, 73, 37, 23, 43, 29]def pairCountMod (N : ℕ) (h : ℤ) (k l : ℕ) : ℕ :=
((Finset.range (N + 1)).filter fun p₂ => p₂.Prime ∧ p₂ % l = k % l ∧
0 ≤ (p₂ : ℤ) + h ∧ ((p₂ : ℤ) + h).toNat ≤ N ∧ ((p₂ : ℤ) + h).toNat.Prime).carddef primeCountMod (N l a : ℕ) : ℕ := ((Finset.range (N + 1)).filter fun p => p.Prime ∧ p % l = a % l).cardnoncomputable def sing (n : ℕ) : ℝ := ∏ p ∈ n.primeFactors.filter (2 < ·), ((p : ℝ) - 1) / (p - 2)noncomputable def fm (m : ℕ) : ℝ := ∏ p ∈ m.primeFactors, 1 / ((p : ℝ) - 2)noncomputable def C0up : ℝ := 66016181584686958 / 10 ^ 17Axioms, as Lean reports them. Recorded in the published file.
'Romanoff.G.romanoff_U3g' depends on axioms: [propext,
Classical.choice,
Quot.sound,
R45.M3G.R0tD_eq._native.native_decide.ax_1_1,
R45.M3G.certOK_data._native.native_decide.ax_1_1,
R45.M3G.sumsOK_data._native.native_decide.ax_1_1,
R45.M3G.teffD_eq._native.native_decide.ax_1_1,
R45.U3G.tabB_BLit_eq._native.native_decide.ax_1_1,
Romanoff.G.S2.finalOK_true._native.native_decide.ax_1_1]Romanoff.G.romanoff_V4g_K
The lower bound 0.119178: kernel-only. Assumes the per-class sieve bound of Elsholtz and Schlage-Puchta. Also assumes the prime number theorem in progressions, the Johnston–Trudgian bound and a bound that is derived from Pintz’s work.
theorem romanoff_V4g_K (h1 : ESP28 G.ell) (h2 : JTProp2) (h3 : PNTAP G.ell) (h5 : R0Bound) : G.V4gStatementDefinitions used in the statement
def V4gStatement : Prop := (119178 / 1000000 : ℝ) ≤ liminf dens atTopnoncomputable def dens (N : ℕ) : ℝ := (count N : ℝ) / Ndef count (N : ℕ) : ℕ := ((Finset.Icc 1 N).filter IsRomanoff).carddef IsRomanoff (n : ℕ) : Prop := ∃ p a : ℕ, p.Prime ∧ 1 ≤ a ∧ n = p + 2 ^ adef ESP28 (l : ℕ) : Prop :=
∀ ε > (0 : ℝ), ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ h : ℤ, 0 < h → h < N → ∀ k : ℕ, Nat.Coprime k l →
(pairCountMod N h k l : ℝ) ≤
(8 + ε) * C0up * N / ((Nat.totient l : ℝ) * Real.log N ^ 2) * sing (l * h.natAbs)def PNTAP (l : ℕ) : Prop :=
∀ a : ℕ, Nat.Coprime a l →
Tendsto (fun N : ℕ => (primeCountMod N l a : ℝ) * Nat.totient l * Real.log N / N) atTop (nhds 1)def R0Bound : Prop :=
∀ S : Finset ℕ, (∀ m ∈ S, Odd m ∧ Squarefree m) →
∑ m ∈ S, fm m / (orderOf (2 : ZMod m) : ℝ) ≤ 193656 / 100000def ell : ℕ := ellPrimes.proddef ellPrimes : List ℕ := [3, 5, 7, 11, 13, 17, 31, 241, 41, 19, 73, 37, 23, 43, 29]def pairCountMod (N : ℕ) (h : ℤ) (k l : ℕ) : ℕ :=
((Finset.range (N + 1)).filter fun p₂ => p₂.Prime ∧ p₂ % l = k % l ∧
0 ≤ (p₂ : ℤ) + h ∧ ((p₂ : ℤ) + h).toNat ≤ N ∧ ((p₂ : ℤ) + h).toNat.Prime).carddef primeCountMod (N l a : ℕ) : ℕ := ((Finset.range (N + 1)).filter fun p => p.Prime ∧ p % l = a % l).cardnoncomputable def sing (n : ℕ) : ℝ := ∏ p ∈ n.primeFactors.filter (2 < ·), ((p : ℝ) - 1) / (p - 2)noncomputable def fm (m : ℕ) : ℝ := ∏ p ∈ m.primeFactors, 1 / ((p : ℝ) - 2)noncomputable def C0up : ℝ := 66016181584686958 / 10 ^ 17def JTProp2 : Prop :=
∀ ε > (0 : ℝ), ∃ N₁ : ℕ, ∀ N ≥ N₁, ∀ h : ℤ, 0 < h → h < N →
(pairCount N h : ℝ) ≤ (67814 / 10000 + ε) * C0up * N / Real.log N ^ 2 * sing h.natAbsdef pairCount (N : ℕ) (h : ℤ) : ℕ := pairCountMod N h 0 1Axioms, as Lean reports them. Recorded in the published file.
'Romanoff.G.romanoff_V4g_K' depends on axioms: [propext, Classical.choice, Quot.sound]1 more formal statements
Romanoff.G.romanoff_V4g
The lower bound 0.119178: with compiled code. Assumes the per-class sieve bound of Elsholtz and Schlage-Puchta. Also assumes the prime number theorem in progressions, the Johnston–Trudgian bound and a bound that is derived from Pintz’s work.
theorem romanoff_V4g (h1 : ESP28 G.ell) (h2 : JTProp2) (h3 : PNTAP G.ell) (h5 : R0Bound) : G.V4gStatementDefinitions used in the statement
def V4gStatement : Prop := (119178 / 1000000 : ℝ) ≤ liminf dens atTopnoncomputable def dens (N : ℕ) : ℝ := (count N : ℝ) / Ndef count (N : ℕ) : ℕ := ((Finset.Icc 1 N).filter IsRomanoff).carddef IsRomanoff (n : ℕ) : Prop := ∃ p a : ℕ, p.Prime ∧ 1 ≤ a ∧ n = p + 2 ^ adef ESP28 (l : ℕ) : Prop :=
∀ ε > (0 : ℝ), ∃ N₀ : ℕ, ∀ N ≥ N₀, ∀ h : ℤ, 0 < h → h < N → ∀ k : ℕ, Nat.Coprime k l →
(pairCountMod N h k l : ℝ) ≤
(8 + ε) * C0up * N / ((Nat.totient l : ℝ) * Real.log N ^ 2) * sing (l * h.natAbs)def PNTAP (l : ℕ) : Prop :=
∀ a : ℕ, Nat.Coprime a l →
Tendsto (fun N : ℕ => (primeCountMod N l a : ℝ) * Nat.totient l * Real.log N / N) atTop (nhds 1)def R0Bound : Prop :=
∀ S : Finset ℕ, (∀ m ∈ S, Odd m ∧ Squarefree m) →
∑ m ∈ S, fm m / (orderOf (2 : ZMod m) : ℝ) ≤ 193656 / 100000def ell : ℕ := ellPrimes.proddef ellPrimes : List ℕ := [3, 5, 7, 11, 13, 17, 31, 241, 41, 19, 73, 37, 23, 43, 29]def pairCountMod (N : ℕ) (h : ℤ) (k l : ℕ) : ℕ :=
((Finset.range (N + 1)).filter fun p₂ => p₂.Prime ∧ p₂ % l = k % l ∧
0 ≤ (p₂ : ℤ) + h ∧ ((p₂ : ℤ) + h).toNat ≤ N ∧ ((p₂ : ℤ) + h).toNat.Prime).carddef primeCountMod (N l a : ℕ) : ℕ := ((Finset.range (N + 1)).filter fun p => p.Prime ∧ p % l = a % l).cardnoncomputable def sing (n : ℕ) : ℝ := ∏ p ∈ n.primeFactors.filter (2 < ·), ((p : ℝ) - 1) / (p - 2)noncomputable def fm (m : ℕ) : ℝ := ∏ p ∈ m.primeFactors, 1 / ((p : ℝ) - 2)noncomputable def C0up : ℝ := 66016181584686958 / 10 ^ 17def JTProp2 : Prop :=
∀ ε > (0 : ℝ), ∃ N₁ : ℕ, ∀ N ≥ N₁, ∀ h : ℤ, 0 < h → h < N →
(pairCount N h : ℝ) ≤ (67814 / 10000 + ε) * C0up * N / Real.log N ^ 2 * sing h.natAbsdef pairCount (N : ℕ) (h : ℤ) : ℕ := pairCountMod N h 0 1Axioms, as Lean reports them. Recorded in the published file.
'Romanoff.G.romanoff_V4g' depends on axioms: [propext,
Classical.choice,
Quot.sound,
R45.M3G.R0tD_eq._native.native_decide.ax_1_1,
R45.M3G.certOK_data._native.native_decide.ax_1_1,
R45.M3G.sumsOK_data._native.native_decide.ax_1_1,
R45.M3G.teffD_eq._native.native_decide.ax_1_1,
R45.U3G.tabB_BLit_eq._native.native_decide.ax_1_1,
Romanoff.G.S2.finalOK_true._native.native_decide.ax_1_1]