Finite sieve coverage of the binary Goldbach range in blocks of one million
OpenWeakGoldbach.verified_range_sieve_coverageThis is the outstanding computational obligation in a sieve-based formalization of the Oliveira e Silva–Herzog–Pardi extension of Richstein's verified binary Goldbach range.
Put
For an integer let
so that the intervals tile , the last one being the single point itself. Let
be the set of survivors of sieving the interval by the primes up to the cutoff , and let
be the union of the translates of by all primes up to the small-prime bound . Both are the finite sets introduced in GoldbachSieve.
The assertion is that for every ,
In words: each even number in each block of one million above Richstein's range is the sum of a prime and an integer that has no prime divisor other than itself. Since , such a is prime, so the inclusion says exactly that every even in has a Goldbach partition whose smaller prime is at most .
This statement is the segment of the verified binary Goldbach range strictly above Richstein's , expressed in the certificate language already used for the Richstein range, and it is the only computational input needed for WeakGoldbach.verified_two_primes_4e14_to_4e18. The numerals are the ones reported for the computation: is the largest smaller prime occurring in a minimal Goldbach partition of an even number , attained at . The sieve cutoff is forced by the square-root completeness argument at height , and therefore differs from the cutoff used for Richstein's range.
Formalization Note The block width , the block index range , the small-prime bound and the sieve cutoff are this formalization's choices, mirroring Richstein2001.segmented_sieve_coverage; they describe the certificate interface, not the original program. Survivors are defined by a cardinality-zero condition, so both sets are executable finite filters and unions. The first block includes the endpoint and the last block includes the endpoint ; no certificate data or Lean verification of the blocks is supplied with this statement.
import Definitions.Def_GoldbachSieve import Mathlib.Algebra.Ring.Parity set_option autoImplicit false
namespace WeakGoldbach
theorem verified_range_sieve_coverage (b : ℕ) (hb : b < 4000000000001) :
((Finset.Icc (max 4 (4 * 10 ^ 14 + b * 1000000))
(min (4 * 10 ^ 18) (4 * 10 ^ 14 + (b + 1) * 1000000 - 1))).filter
(fun n => Even n)) ⊆
GoldbachSieve.pairSums 9781 (4 * 10 ^ 14 + b * 1000000 - 9781)
(min (4 * 10 ^ 18) (4 * 10 ^ 14 + (b + 1) * 1000000 - 1)) 2000000000 := by
sorry
end WeakGoldbach