Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

22.3 The Polyhedral Prime Sieve Remainder and Phase-Oscillator Hand Calculation

Write the complex exponent as , where the real part governs radial damping and the imaginary part governs rotational frequency. Each prime mode in Corollary 22.5 acts as an independent complex rotor:

In the complex plane, each prime acts as a phase pointer (prime clock) rotating uniformly at its intrinsic logarithmic angular frequency ! Set every clock to twelve o’clock (reading ) at and let go. Clock comes back to twelve every time units, clock every . When clock completes its th turn, clock has made turns and stands only past twelve: a near miss. Will the two ever be back at twelve together at some time ?

t = 12 · 2π / ln 2 ≈ 108.78 clock 2: 12 turns clock 3: 19.02 turns 7.04°

Two prime clocks almost line up. At , clock completes its th turn and its amber hand points straight at twelve; at the same moment clock has turned times, and its hand is past twelve. The small magenta wedge is the part that fails to line up.

Suppose they are: and with integers . Multiply the first equation by , the second by , and subtract: , and as , . Since , either and are both zero or they have the same sign; in the latter case take both positive and exponentiate, which gives , an even number equal to an odd one. Hence , so , contradicting . Only one mechanism is at work: exponentiation turns an integer relation among logarithms into an equality of prime-power products, and unique factorization forbids two products over disjoint sets of primes from being the same integer. The pinned module D5/S3/Factorization/PrimeLogIndependence freezes this mechanism for any finite set of primes, and D5/S3/Weil/PrimeAddress/PrimeLogIndependence restates it as linear independence over .

Theorem 22.8 (Linear Independence of Prime Logarithms over the Integers and the Rationals)LEAN ✓

Write for the real natural logarithm (Mathlib’s Real.log).

  1. Integer form: let be a finite set of natural numbers each of which is prime, and let be any function. If the real equation

    holds, then for every .

  2. Rational form: the family of reals indexed by the type of primes Nat.Primes is linearly independent over (LinearIndependent ℚ); that is, for every finite set of primes and every , if , then for every .

Proof

Item 1 follows the skeleton of the Lean file. Split by the sign of the coefficient into the disjoint parts and , and move the terms from to the other side. Two logarithmic sums with nonnegative integer coefficients are now equal:

Exponentiating (primes are positive, so Real.exp_log applies) gives the real equation , which is then cast back to an equation between natural numbers. For , the prime factorization of the left side has exponent at ; the right side contains only primes from , and , so its exponent there is (Nat.factorization). Hence , and the primes of are handled in the same way. Item 2: prime_log_integer_independence embeds a finite set of primes back into and obtains linear independence over from item 1; Mathlib’s LinearIndependent.iff_fractionRing then passes from to its fraction field . On paper this step is just clearing denominators: multiply rational coefficients by a common denominator to make them integers. The full proof is checked by the Lean kernel.

Applying item 1 to any two distinct primes extends the opening argument to any two prime clocks (a manual derivation): if and for some , eliminating as before gives ; with , , , item 1 yields , hence , a contradiction. Once two prime clocks leave twelve o’clock together, they are never at twelve together again. In the same way, the ratio of their periods is irrational: if it were with , then , and item 1 would force . The two periods are incommensurable.

Example 22.9 (Prime Clocks That Almost Realign: Four Commas from Tuning)

Raise the reading of clock to an integer power (a negative power runs the hand backwards) and multiply the results for several clocks. This gives a combined pointer

where and . It turns at angular velocity . By Theorem 22.8, as long as the coefficients are not all zero the combined pointer never stands still. It can, however, turn very slowly. Piano tuners know the following integer combinations well: they are the commas between pure fifths , pure major thirds and octaves . All numbers are rounded to the digits shown:

OriginTime per turn
12 fifths against 7 octaves (Pythagorean comma)
4 fifths against 2 octaves and a major third
first row divided by second row
an octave against 3 major thirds

The first row is the near miss from the opening: , and the combined pointer needs time units for one turn. In every row, and (numerator and denominator) are exactly the two halves into which the Lean proof splits the coefficients by sign. They are built from disjoint sets of primes and so cannot be equal: is odd and is even, has no factor or , and likewise for the other two rows.

The theorem says only that and gives no lower bound, but its proof hides a crude one (a manual derivation): are positive integers, so they differ by at least , and . The second row, , attains this bound exactly. Since and grow very fast with the exponents, the bound quickly becomes tiny; it is also only a bound, and the actual speed does not change monotonically with the size of and : the third row uses lower powers of and than the first (plus a single factor ), yet its combined pointer is about times slower.

Never realigning is not the same as going everywhere. That the clocks never realign only means the joint reading never returns to its start. Can it come close to any prescribed set of readings on the torus? Start with a single clock and look at it under a strobe light that flashes every time units. The flash times are exactly the moments when the reference clock of angular frequency (the clock of the number , since ) is at twelve. At the -th flash, clock has turned times, and the fractional parts of these turn counts are , , , , , , , , , , … These positions never repeat: if the -th and the -th fractional parts agreed, would be an integer and would be rational. The following lemma rules that out.

Lemma 22.10 (Logarithms of Natural Numbers Are Irrational)LEAN ✓

For every natural number with , the real number is irrational (Irrational (Real.log n)): there is no rational number with .

Proof

If were rational, then (as ), so with positive integers , and would be a positive integer. It remains to show that is not rational for any positive integer . For this the Lean file borrows the analytic part of the proof of the Lindemann–Weierstrass theorem in Mathlib, LindemannWeierstrass.exp_polynomial_approx (only this approximation lemma, not the transcendence conclusion): there is a constant such that for every sufficiently large prime there are an integer not divisible by and an integer polynomial with . If , multiplying by produces the integer , whose absolute value is at most ; for large this is below , so the integer is and divides . But does not divide and was chosen larger than , a contradiction. The full proof is checked by the Lean kernel.

Never repeating is not yet enough. To know that the flashes land in every small arc of the circle, we need a theorem that describes the closure of a power orbit.

Theorem 22.11 (Closures of Power Orbits on a Finite-Dimensional Torus and Kronecker Density)LEAN ✓

Let be a finite type, let be the unit circle in the complex plane (Mathlib’s Circle), and give the product topology, with multiplication and powers taken componentwise.

  1. Orbit closures: for all , the point lies in the closure of the power orbit if and only if, for every , implies .

  2. Kronecker density: let satisfy: for all and , if , then every . Then for every there is a sequence of natural numbers such that, as ,

Proof

The “only if” half of item 1: each integer character is a continuous homomorphism, so if it equals at , it equals at every and, by continuity, on the closure. The “if” half carries the content. The closure of the forward orbit coincides with the closure of the subgroup generated by ; it is a compact subgroup . Equip it with its Haar probability measure and compare the average of a continuous function over with its average over the translate . For a character : if , the hypothesis gives and the two averages agree; if , invariance of Haar measure under translation by forces the average of over to vanish, and both averages are . Trigonometric polynomials are dense among continuous functions on the torus, so the two averages agree for every continuous function. If , Urysohn’s lemma provides a continuous function equal to on and to on , whose two averages are and , a contradiction. Item 2: put . Then equals exactly when is an integer, in which case the hypothesis gives . So the right side of item 1 holds for every , every lies in the orbit closure, and a point of the closure is written as the limit of a sequence. The full proof is checked by the Lean kernel.

Back to the prime clocks (a manual derivation). Readings correspond to angles one to one and continuously in both directions, so density on the circle is the same as density of angles.

One clock. In item 2 of Theorem 22.11 let have a single element and put with ; then is exactly the reading of clock at the -th flash. The hypothesis asks that with integers force . If , then would be rational, contradicting Lemma 22.10. So the flash readings are dense on the circle: the fractional parts listed for clock enter every small subinterval of .

clocks. Take distinct primes and flash every time units instead, that is, put . Writing , the hypothesis asks that for every nonzero integer vector and every integer we have . By item 1 of Theorem 22.8, whenever , so the values of that violate the hypothesis lie among the countably many numbers . Since is uncountable, a satisfying the hypothesis exists. For such a the flash readings are already dense on the -dimensional torus, and so a fortiori is the whole trajectory over continuous time : the joint phase winds densely over the entire torus . This is the special case, for prime clocks, of the continuous-time form of Kronecker’s approximation theorem (L. Kronecker, 1884). Note its limits: the existence of comes from a countability argument, so the derivation names no specific , and it says nothing about how long one must wait before the readings come within a prescribed error.

Now apply the anti-Platonic lens of the Prelude and Chapter 21: what happens when a finite algorithm retains only the first prime axes , building a finite-dimensional “polyhedral prime sieve” ? Let us work out the sieve () by hand and watch the first unfactored prime leak through the seam.

Example 22.12 (Hand Calculation of the 3-Prime Euler Sieve (2, 3, 5) and the First Leaked Prime 7 (Literature Result, Not Formalized in This Book))

Literature result, not formalized in this book. The truncated Euler-product remainder expansion on and Euler’s Basel identity invoked at below (see also Example 22.15 and Remark 22.39) belong to the classical analytic number-theory literature and are not locked as standalone theorems in this book’s formalization.

For , retain only the first primes (the three orthogonal logarithmic axes ) and expand the truncated Euler product :

Subtract this three-axis arithmetic polytope from the full zeta series . Between and , every integer generated by — namely — cancels identically, leaving the exact truncation remainder Dirichlet series on (writing for the largest prime factor of ):

For , the very first surviving term of the remainder series is ! Because its leading Dirichlet coefficient at is , is not identically zero on ; and for every real exponent , every omitted term is strictly positive with no oscillatory phase cancellation (whereas for complex with , the phases can interfere and cancel at isolated complex points), so on the real half-line one has the pointwise strict inequality

Check the numbers at the real point (), where Euler’s Basel identity gives , while the three-prime product equals

The strictly positive discrepancy is led by the fourth orthogonal prime axis (followed by , , and the mixed composite ).

The first to slip through is 7. The list is : the cyan cells are the terms the product expands into, and is the first magenta cell. At the cyan curve sits at against the ink ; the magnifier splits the gap of , from the bottom up, into , , and ever thinner slices, each the of one magenta cell. The dashed magenta curve between the ink and the cyan is the product plus , and at every drawn the gap is wider than that: (a literature result, checked by the page only at the points it draws). Click the card and the amber line sweeps from down to , with always the lowest slice in the magnifier.

Notice the exact structural parallel between Example 22.12 and the Euclidean–Gödelian escape of Chapter 21: any finite prime sieve spanned by prime axes is an arithmetic polytope whose remainder series leaks immediately at (and is strictly positive, , for every real ). Eliminating that leading term requires adjoining as a new orthogonal axis — and because the primes are inexhaustible, no finite truncation ever seals the arithmetic sphere.

Up to 31, the leak starts at 37. The list holds the primes up to : everything from to is cyan, and the first magenta cell is . At the gap has shrunk to , yet its lowest slice in the magnifier is still : the only way to close that slice is to put on the list.

Euclid’s trick needs a careful reading here: multiply all the primes on the list and add one, and the result has no prime factor on the list (Euclid’s argument, a literature result), yet it need not be prime itself, and the new prime it reveals need not be the next one.

The sum need not be prime itself. The list is and . These are remainder clocks, not the steadily turning phase clocks above: each has ticks and its hand points at the remainder of divided by . Every hand points at , none at . Yet is not prime. Euclid’s argument (a literature result) says only that the prime factors of are off the list, and the new prime it finds, , is not the next one, .

Composite numbers are the diagonal lattice points of the prime basis; Euler’s product simply projects an entangled sum along the natural-number line onto its mutually orthogonal prime axes.

22.3.1 Prime-Clock Comma Bounds, Constructive Waiting Times, and Critical-Strip Euler Products from RH and Dirichlet GRH

The preceding exposition leaves three quantitative openings: Example 22.9 records only a crude integer-separation lower bound without calibrating true commas against continued fractions; while the preceding text already fixes the strobe period for one clock, its generalization to prime clocks invokes uncountability without naming a universal concrete or finite waiting time; and the truncated Euler-product remainder stays inside the absolute-convergence half-plane . This subsection closes all three gaps quantitatively along four threads and connects them to the frozen riemannHypothesis and Dirichlet GRH (LFunction_eq_zero_re : DirichletLZerosOnLine) recorded in Theorem 22.36 (external proof entry, both statements are frozen in the pinned D5/S3/Zeros/GRH module).

  1. Comma Re-Certification, Continued-Fraction Sandwich for , and the Gap Between Elementary and Baker/LMN Bounds (Manual Derivation + Literature + 256/320-Bit Arb): We re-certified all four tuning commas of Example 22.9 in 256/320-bit Arb: aside from the second-row syntonic comma (), which attains the elementary integer-separation lower bound exactly (ratio identically ), the true logarithmic angular velocities of the Pythagorean comma (), the schisma (), and the diesis () exceed their elementary bounds by factors of about , , and (with elementary bounds about , , and ). To quantify the best near-alignments of the two-clock pair , we certify the first thirteen partial quotients of as (zero-indexed from , giving convergents through as , , , , , , , and ). From the continued-fraction determinant identity , , and, for all , , the strict two-sided sandwich holds:

    The table below lists six landmark convergents with values rounded to five significant digits — the measured angular-velocity gap, the continued-fraction sandwich, and the elementary integer bound (where the sharp drop at is driven by the large next partial quotient , with exact integer direction ):

    Convergent (index & next )Exact orderingMeasured gap (five sig. digits)CF sandwich (five sig. digits)Elementary integer bound (five sig. digits)
    ()
    ()
    ()
    ()
    ()
    ()

    Thus the elementary lower bound extracted solely from unique factorization () collapses exponentially like (at already reaching order ), whereas the true gap sits at the two-sided scale. In the transcendence literature, A. Baker (Acta Arith. 21, 117–129, 1972, p. 117 eq. (1), DOI 10.4064/aa-21-1-117-129) established inverse-polynomial lower bounds in the coefficient height for nonzero linear forms in logarithms of fixed algebraic bases with integer coefficients, while M. Laurent, M. Mignotte, and Yu. Nesterenko (J. Number Theory 55, 285–321, 1995, DOI 10.1006/jnth.1995.1141) gave explicit quantitative bounds for nonzero linear forms in two logarithms, decisively overcoming the elementary exponential collapse.

  2. Constructive Strobe Period , One-Dimensional Star Discrepancy, and Certified Antipodal Waiting Times (Manual Derivation + Literature + 256/320-Bit Arb): When extending to prime clocks, the preceding text invokes an uncountability argument for a strobe interval , yet no non-constructive choice is needed: the very same used for one clock (giving ) works for every finite prime set and satisfies the integer-independence hypothesis of Theorem 22.11 item 2 (dense_circle_sequence) (manual derivation). Indeed, suppose and satisfy : if , the pinned Theorem 22.8 item 1 immediately forces ; if , exponentiating yields , hence , directly contradicting the fact already Lean-verified inside the proof of Lemma 22.10 that for every positive integer , is irrational (and implied classically by Ch. Hermite’s 1873 transcendence of , reprint DOI 10.1017/CBO9780511702778.012). Consequently, flashing whenever the reference clock strikes twelve () already produces a dense joint orbit of on .

    Begin with the single clock . In 256/320-bit Arb we re-certified all ten initial flash fractional parts (whose first and tenth entries round to and ) and certified the continued-fraction expansion of as , whose convergent denominators are (with the number of distinct gap lengths governed by the three-gap theorem three_gap_card_le_three frozen at the resolved dev commit). From the sorted fractional parts , we compute the exact star discrepancy (see L. Kuipers & H. Niederreiter, Uniform Distribution of Sequences, Wiley, 1974, Archive record, Crossref review): at the four convergent denominators , achieves strict adjacent local minima (strictly below the values at and ), rounding to six decimal places as , , , and ; by contrast, the convergent denominator gives and is not a strict adjacent local minimum ( is strictly smaller), while at the generic scales , takes the values, rounded to six decimal places, , , , and .

    Fixing the antipodal target (by inversion symmetry, the circular distance from to the target equals that from ), step-by-step interval certification verifying that for every the distance is strictly above while at it is strictly below yields the exact minimal flash waiting times below (distances rounded to six decimal places):

    Dimension (prime axes) tolerance Certified waiting time Distance at hit (six d.p.)Closest earlier (six d.p.)
    ()
    ()
    ()
    () and
    ()
    () and
    ()

    For the three-dimensional strobe orbit , over all frequencies with (forming conjugate pairs of nonzero frequencies), we evaluate the normalized Weyl sums : at for , they round to four significant digits as , , and ; across all three sampled sizes, the maximum over this frequency box is attained at , rounding to six decimal places as , , and , vividly illustrating in these three measured samples how a low-order near-resonance amplifies the Weyl coefficient.

  3. Real-Axis Sieve Thresholds, Pole-Renormalized Euler Products from the Riemann Hypothesis, and Pole-Free Convergence from the Frozen RH and Dirichlet GRH Theorems (Manual Derivation + Literature + 256/320-Bit Arb + Zero-Axiom Lean): On the unconditional real half-line , the exact rational products at are and , with truncation remainders and ; termwise bounds yield the strict logarithmic tail sandwich (at , gives and gives , rounded to six decimal places). Because the finite product increases strictly with each adjoined prime, two consecutive relative errors straddling the threshold uniquely certify the minimal prime count that first achieves — supplying the exact coordinate values behind the second small plot of the interactive lab below (relative errors rounded to seven decimal places):

    Real exponent Minimal prime count -th primePrior rel. error (seven d.p.)Qualifying rel. error (seven d.p.)

    Writing the complex variable as , crossing into the critical strip requires dispelling a common misconception: the raw truncated Euler product diverges throughout (manual derivation). Indeed, on defining as the sum of the prime-factor logarithm power series, the simple pole of at (Lemma 22.2), via the RH prime-counting error together with absolute summability of the higher prime powers (), yields via summation by parts , where the integral carries the diverging drift : taking real parts, on the real axis one has , while for choosing two subsequences aligning with positive and negative extrema of the real part of the leading term yields and . More precisely, invoking the frozen riemannHypothesis recorded in Theorem 22.36 (which supplies above), on taking as its Euler-series branch, summation by parts yields the exact identity

    where takes its principal branch on . By the prime-counting estimate, both tail terms converge locally uniformly and absolutely on the entire half-plane , where has no zeros and only the simple pole at ; analytically continuing from its Euler-series branch on to the simply connected slit half-plane , the identity extends throughout , so the pole-renormalized Euler product

    converges locally uniformly on at rate to . Furthermore, because the principal branch expands as , multiplying by extends across to a single-valued holomorphic function on that converges locally uniformly to (and conversely, if converges locally uniformly on , then on the absolutely convergent Euler product unconditionally gives while , so the identity theorem uniquely identifies the limit as ; since each holomorphic extension of is zero-free on , Hurwitz’s theorem and functional-equation reflection then imply RH). Three quantitative consequences follow immediately: first, evaluating at yields the RH Mertens third-theorem error ; second, on , the classical quantitative prime number theorem with remainder already guarantees unconditional convergence of the raw product, yet the difference remains governed by the leading term at slow rate , whereas pole renormalization accelerates convergence to ; third, for the non-principal modulo- Dirichlet character (whose -function has no pole at ), Dirichlet GRH (LFunction_eq_zero_re : DirichletLZerosOnLine, with convergence at already unconditional via the quantitative prime number theorem in arithmetic progressions for fixed modulus), prime-power removal, and summation by parts give , so the raw unrenormalized product converges locally uniformly throughout at rate directly to . The table below summarizes the 256/320-bit Arb certification (first zero ordinate , all entries rounded to six decimal places):

    Cutoff ratio raw / norm. error () raw / norm. error () raw / norm. error () raw error /
    / / / /
    / / / /
    / / / /
    / / / /
    / / / /

    Three regimes stand in sharp relief: at , the scaled deviation rounds at the five cutoffs to , , , , and ; at , the raw error increases markedly at the two larger sampled cutoffs () (analytically its limsup is infinite while along subsequences where the raw product tends to zero the absolute error tends to ), whereas the pole-renormalized error decays steadily; and for non-principal , the raw error at at drops to (rounding to at six decimal places), and even at the real strip point , the raw product converges directly to . At the first critical-line zero , which lies on the boundary outside the theorem above, the archive certifies only the five finite-cutoff normalized moduli as strictly positive values rounding to , , , , and (for dedicated critical-line Euler-product hypotheses and smoothed cutoffs, see K. Conrad, Canad. J. Math. 57(2), 267–297, 2005, §7 and Theorem 6.3, DOI 10.4153/CJM-2005-012-6, preprint, and S. M. Gonek, Trans. Amer. Math. Soc. 364(4), 2157–2191, 2012, Theorem 3.1, DOI 10.1090/S0002-9947-2011-05546-7, arXiv:0704.3448).

    From a purely finitary arithmetic viewpoint, writing the partial sum of the Möbius function as the Mertens function , the Littlewood–Mertens bound equivalent to RH can be reformulated using integer powers and quantification over positive integers, with no transcendental functions: (without reviving the unconditionally disproved Mertens conjecture ). On , exact integer sieving certifies with equality solely at (extrema first attained at and , with benchmarks , , ), whence for every integer on one has . Moreover, the standalone zero-import Lean 4.35.0 verification script omega_prime_sieve_check.lean bundled in the archive checks via by decide the exact rational sieve fractions and , all six integer comma separations (, , , , , ), , , and for every the bound , with #print axioms reporting 'cycle15_omega_prime_sieve_check' does not depend on any axioms (this script is an auxiliary archive check and is not counted among the pinned trureturing frozen theorems of this book).

  4. 256/320-Bit FLINT/Arb Dual-Precision Interval Certification and Reproducible Archive (NUM): All numerical and algebraic computations above were completed independently at both 256-bit and 320-bit working precisions using single-threaded python-flint 0.9.0 (FLINT 3.6.0), SymPy 1.14.0, and mpmath 1.3.0, while the zero-import Lean 4.35.0 check ran separately: all 113 exact records (suite 1: 26, suite 2: 50, suite 3: 37) match identically across precisions (exact_mismatch_keys = []); all 395 interval-ball pairs (suite 1: 69, suite 2: 104, suite 3: 222) overlap with every 320-bit ball strictly contained inside its 256-bit counterpart (overlap_only_keys = [], disjoint_keys = []); and the exponential integral was additionally four-way cross-checked via horizontal contour quadrature with rigorous tail bounds, Arb expint(1), the ei branch identity, and mpmath 1.3.0 (20 evaluation-point and cutoff combinations cross-checked).

    The complete reproduction scripts, dual-precision CSV certificates, zero-import Lean verification source, standalone replay instructions, and analysis notes are archived at the immutable public Gist revision 2f78871b751a4dec6f3644775a55d0fc23d715cf (pinned raw manifest SHA256SUMS, itself having SHA-256 15cd5ad53bcaa872b1cd13e97f0feee68f4ee58c10c5e428a8d410a424103fe9; archival verification and replay log at Issue #1102 comment).

The full lab of the Euler product and the sieve: scrub the rail to add or drop primes, drag the amber line to move , and click a magenta cell to put its largest prime factor on the list. In the first small plot below, the ink curve heads for the green dashed line at (Lemma 22.2) while the cyan times the product heads for ; the second shows how many primes the product needs to come within of .