research/lab/py/prime-dissection
0 directories and 2 files in research/lab/py/prime-dissection.
prime-dissection
- The numbers of the dissection for the von Mangoldt function on coprime, section PRIMES ON A DESIGN: the wall where a shifted-grid
l^1certificate below1/5holds at one excluded digit, the singular series as the principal characters of region C2, the four regions forLambdaon the whole grid of three small designs, and a prime count against the main term. - It imports
pb_step3,strings,convergentandsmoothfrom mobius-dissection anduniform_alphafrom digit-uniform-bound, read only. wall: the digit-uniform chain(z-1)^3 = (2/pi)(log base) z + gamma'(z-1) + (2/pi)(z-1)^2/(base z - 1)againstz < base^(1/5)(1 - 1/base), certified inmpmath.ivat 120 bits from the least base where it clears to the base where the closed-form cap1 + sqrt(2 (2/pi) log base + 0.97)takes over, with the slope test that keeps the cap below frombase 100on; the least base where Maynard's written constantlog((q/(q-1)) log q + 3q/(q-1))/log qdrops below1/5, and its value at2000001; the missing-digit budget atbase 10^7and10^8for Maynard'sC_(q,s) = 1 + (2+s)/log q, for the wall condition (W) throughpb_step3, and for the chain; the chain's float wall at two and three excluded digits.walls: one wall per numberm = 1..13of excluded digits. The chain atmdigits,(z - m)(z - 1)^2 = m((2/pi)(log base) z + gamma'(z - 1) + (2/pi)(z - 1)^2/(base z - 1))againstz < base^(1/5)(1 - m/base), is located in floats, certified inmpmath.ivat 120 bits from the wall to the base where the capm + sqrt(m((2/pi) log base + 0.97))takes over (point by point near the wall, on interval blocks split until they clear above it), with the slope testbase^(1/5) sqrt((2/pi) log base + 0.97) > (5/2) sqrt(m)(2/pi)there and a failing base below the wall; the (W) wallsqrt(m) + Phi_base/base < base^(1/5)(1 - m/base)is certified at its points and above by a smooth upper bound onPhi_base/basewhose gap grows frombase 327; the margins of both certificates at and one below every wall, the thinnest over all 26; then the better certificate perm, and them >= 14argument through the smooth (W) gap atbase m^5.window: the digit-uniform window at two window digits against1/5, one outward-rounded Collatz-Wielandt certificate per base covering every excluded digit, scanned down from583to the first base that fails.series:sum_(d | base) mu(d)/phi(d) sum_f c_d(f)overF, divided byfill, againstkappa_F = (base/phi(base)) #{f in F : gcd(f, base) = 1}/fillin exact rationals at every set missing one or two digits of every base3..30, and the constant printed in Maynard 2022 Theorem 1.3 of arXiv v1 beside it at six sets; the identity is checked against its own closed form, so the prime count ofcountis the test of the main term.regions: every grid pointa mod yof base 10 missing 5 and missing 1 at level 6 and base 5 missing 2 at level 9, cut into regions A, B, C1, C2 as on mobius, withLambdain place ofmu; the region sums against the exact sum ofLambdaover the strings, the principal charactersy mu(d)/phi(d)at the C2 points withh = 0againstkappa_F fill^k, and each region's share.count:sum_(n <= x, n in S_F) Lambda(n)over a sieve to10^8againstkappa_F A_F(x),A_Fby digit counting checked against enumeration to10^5, at the powers of the base and twelve seededx, on eight sets, two of them without two consecutive digits.
THE ROUNDING
1/5 - alpha_1at the wall is read from the float root's upper endpoint and floored at three digits.- The chain margin, the cap gap and the slope test are
mpmath.ivintervals at 120 bits, and a row passes only on the sign of the unsafe endpoint;gamma' = 0.9625229is asserted above the true(2/pi)(gamma + log(8/pi))first. - The printed
alpha_1of the chain islog_base(z base/(base - 1))rounded up at six decimals from the float root; the window rows are the rounded-up exponents of digit-uniform-bound. seriesis exact;regionsandcountare floats and their ratios are readings of the main term's shape at bases far below any wall, never a bound.
RUN
uv run python research/lab/py/prime-dissection/primes.py wallin 2 seconds.uv run python research/lab/py/prime-dissection/primes.py wallsin one second.uv run python research/lab/py/prime-dissection/primes.py windowin 21 seconds.uv run python research/lab/py/prime-dissection/primes.py seriesin under a second.uv run python research/lab/py/prime-dissection/primes.py regionsin one second.uv run python research/lab/py/prime-dissection/primes.py countin 3 seconds the first time, writingcount-100000000.jsonunderdata/, then read from that cache.- Every check raises if it fails.
WITNESSES
- The chain: certified on
[584, 1272], tightest margin6.0170 * 10^-3at584in the units of the root equation cleared of denominators,1/5 - alpha_1 >= 1.79 * 10^-5there, margin-8.3138 * 10^-3at583; cap gap4.6127 * 10^-4at1272, slope test3.3175at100;alpha_1 < 0.199983at584. - The walls: chain
584,4692,17596,46798,102133,195891atm = 1..6, certified up to1272,5477,27761,87303,212356,439640; (W)92317,124332,153738,182147,210153,238044atm = 1..6and265981,294064,322357,350906,379742,408886,438358atm = 7..13; the chain better atm <= 6, (W) fromm = 7; smooth (W) gap at least0.2947atbase 14^5; over all 26 walls the thinnest pass1/5 - alpha_1 >= 8.42 * 10^-10, (W) atm = 12, and the closest failure one below-9.835 * 10^-8, the chain atm = 11;w - z = -1.083 * 10^-7at4691,m = 2, andw - PB = -9.992 * 10^-8at265980,m = 7. - The window:
alpha_1 < 1/5at every base301..583, largest0.199923at301,0.200021at300. - Maynard's constant below
1/5from1520573,0.197309at2000001; budgetss <= 7,(W) m <= 176, chainm <= 16at10^7and19,703,29at10^8; the chain's float walls4692and17596at two and three excluded digits. - The series: equal at all
4956sets;5/4at base 10 missing{0, 5}against the printed10/9. - The regions: the four sums meet the exact total at all three designs; the principal characters return
1.000000 kappa_F fill^k; C2 on the grid0.999546,0.999021,1.000427. - The count:
0.9994..1.0001at the largest power of the base and0.9984..1.0009at the seededxon the six sets with two consecutive digits; below0.0006at base 3 missing1and base 5 missing{1, 3}.