Definitions for the explicit Schnirelmann constant
DefinitionSchnir_defsnumber-theoryschnirelmann-densitysieve-theory
Definitions used throughout the explicit Schnirelmann argument showing that every odd is a sum of at most primes.
- , the number of ordered representations of as a sum of two odd primes (
Schnir.r). - , the arithmetic factor in the sieve bound (
Schnir.C). - For a fixed and a prime : if and otherwise, the number of roots of (
Schnir.rho). - (
Schnir.hfun), and the sieve denominator (Schnir.G). - , the sifted count (
Schnir.S). - and (
Schnir.B,Schnir.A).
Formalization Note Everything lives in the namespace Schnir. sums over , and tests primes . The quantities and are intended for even , where every denominator is positive.
Definition code
import Mathlib
/-!
Definitions for the explicit Schnirelmann argument (note: "An explicit elementary constant for
sums of primes"). Shared definitions for the mission's step lemmas.
-/
open Finset
namespace Schnir
/-- `r s` = number of ordered pairs `(p, q)` of odd primes with `p + q = s` (note, §Intro). -/
def r (s : ℕ) : ℕ :=
((Finset.range (s + 1)).filter (fun p => p.Prime ∧ p ≠ 2 ∧ (s - p).Prime ∧ s - p ≠ 2)).card
/-- `C s = ∏_{p ∣ s} (1 + p/(p-1)^2)` (note, eq. (5)). -/
noncomputable def C (s : ℕ) : ℝ := ∏ p ∈ s.primeFactors, (1 + (p : ℝ) / ((p : ℝ) - 1) ^ 2)
/-- `ρ_s(p)`: number of roots of `a (s - a) ≡ 0 mod p` (note, §2.1). -/
def rho (s p : ℕ) : ℕ := if p ∣ s then 1 else 2
/-- `h(d) = ∏_{p ∣ d} ρ(p)/(p - ρ(p))` on squarefree `d` (note, §2.1). -/
noncomputable def hfun (s d : ℕ) : ℝ :=
∏ p ∈ d.primeFactors, ((rho s p : ℝ) / ((p : ℝ) - (rho s p : ℝ)))
/-- `G_s(z) = ∑_{d ≤ z, d squarefree} h(d)` (note, §2.1). -/
noncomputable def G (s : ℕ) (z : ℝ) : ℝ :=
∑ d ∈ (Finset.Icc 1 ⌊z⌋₊).filter Squarefree, hfun s d
/-- `S_s(z)`: number of `1 ≤ a ≤ s` such that `a (s - a)` has no prime divisor `≤ z`. -/
noncomputable def S (s : ℕ) (z : ℝ) : ℕ :=
((Finset.Icc 1 s).filter
(fun a => ∀ p ∈ Finset.range (⌊z⌋₊ + 1), p.Prime → ¬ p ∣ a * (s - a))).card
/-- `B = {(p - 3)/2 : p odd prime}` (note, §5). -/
def B : Set ℕ := {b | ∃ p, p.Prime ∧ p ≠ 2 ∧ b = (p - 3) / 2}
open Pointwise in
/-- `A = B + B` (note, §5). -/
def A : Set ℕ := B + B
end Schnir
Source
An explicit elementary constant for sums of primes (unpublished note, September 2026), §§1–5 (definitions of r(s), C(s) eq. (5), ρ, g, h, G_s(z), S_s(z), B, A)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.