GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — K4-CompilingReality/L2-K4-Inferences-bench.md at main · Michael-Ax64/K4-CompilingReality

Expand file tree

/

L2-K4-Inferences-bench.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
241 lines (201 loc) · 14.4 KB
/

L2-K4-Inferences-bench.md

Copy path

File metadata and controls

241 lines (201 loc) · 14.4 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

L2-K4-Inferences-bench

The Complex-$\zeta$ Verification Ledger and Runnable Suite

Verification annex for L2-K4-Inferences-101, L2-K4-Inferences-201, and L2-K4-Inferences-301. Every numerical claim cited across those three files traces to a cell verified here (python3 -I, numpy, mpmath).


Status Key

  • VERIFIED: Directly reproduced by the bench scripts below within the stated domain.
  • SCOPED: Reproduced identically; carries an explicit mathematical boundary on what the finite run proves.
  • CONDITIONAL: Numerically consistent over the tested range; asymptotic limit depends on an unproved theorem (marked explicitly).
  • EXCLUDED: Mathematically non-discriminating test condition barred from supporting downstream claims (§IV).

I. Master Verification Ledger

Cell Quantity / Test Output Domain / Cost Status
1a Unique non-negative generating basis of rank-2 log-floor {I, R} alone (P = I^2 R, U = I R) Exact Fraction over all 6 pairs VERIFIED
1b Commit lattice count $(#{d^2m \le x} - \zeta(2)x)/\sqrt{x}$ vs. $\zeta(\tfrac12)$ 1644932606630; -1.4602182 (diff = +1.36e-4) at $x=10^{12}$ $x \in {10^6, 10^8, 10^{10}, 10^{12}}$ SCOPED
1c Liouville square parity $\lambda(n^2) = +1$ True for all $n \le 3162$ ($\Omega(n^2) = 2\Omega(n)$) Sieve to $10^7$ VERIFIED
1d Summatory Liouville sign $L(x) = \sum_{n\le x}\lambda(n)$ $\max_{2\le x\le 10^7} L(x) = 0$ (first fails at $906{,}150{,}257$, Tanaka 1980) Sieve to $10^7$ SCOPED
1e Log-average of $L(x)/\sqrt{x}$ on $[10^3, 10^7]$ vs. $1/\zeta(\tfrac12)$ -0.6819 (exact integral) vs. -0.6848 $[10^3, 10^7]$ CONDITIONAL
C2 Mirror gain law $\lvert\chi(\sigma+it)\rvert / (t/2\pi)^{1/2-\sigma}$ Ratio 1.000000 across $\sigma \in {0, 0.25, 0.5, 0.75, 1.0}$ $t = 10^4$ VERIFIED
C5 Möbius GC survivor density ($\mu(n) \neq 0$) vs. $1/\zeta(2)$ 0.607929 vs. 0.607927; $M(10^7)/\sqrt{10^7} = 0.327928$ Sieve to $10^7$ VERIFIED
PR-1 Prime-race sub-ledger: $(\theta(x)-x)/\sqrt{x}$ vs. $(\psi(x)-x)/\sqrt{x}$ $\theta$: log-avg -1.1659, 100.0% $< 0$; $\psi$: log-avg -0.0072, 49.4% $< 0$ $[10^3, 10^7]$ VERIFIED
3b Gram clock occupancy across first $3000$ intervals 3000 zeros (0 missed vs. nzeros); 0.8730 single-zero; Gram law 93.6% $3000$ Gram intervals VERIFIED
3c Drive rate $\vartheta'(t)$ vs. $\tfrac12\ln(t/2\pi)$ at $t = 2000$ Difference -5.21e-9; mean spacing $\pi/\vartheta' = 1.09026$ $t = 2000$ VERIFIED
3d / 3f Dirichlet hyperbola split $A + x/A$ across $A \in {10, \dots, 10^5}$ Every split returns 13970034; cost 100010 -> 2000 -> 100010, min at $A = \sqrt{x} = 1000$ $x = 10^6$ VERIFIED
3e Main-sum relative phase deviation from $\pi$ at zeros vs. random heights Deviation equals $\lvert R\rvert/\lvert A\rvert$; random heights near $t=20000$: median 1.28, 2% within 0.05 $k \in {50, \dots, 20000}$; 400 controls VERIFIED
3g All $152$ zeros in $t \in [18046, 18166]$ (152 = nzeros) Median ` rel - pi = 0.060 (41%$\le 0.05$,68%$\le 0.10$,89%$\le 0.30$); matches $\lvert R\rvert/\lvert A\rvert$ to0.3%; 17/152 (11%`) $> 0.3$ all have $\lvert A\rvert < 0.2$
4a Partial BSY integrals $I(T) = \frac{1}{2\pi}\int_{-T}^{T} \frac{\ln \zeta(1/2+it) }{1/4+t^2},dt$ $I(15) = -1.773\times 10^{-3}$; $I(120) = +1.654\times 10^{-5}$; $I(240) = -4.42\times 10^{-7}$
4b Global BSY deposit $\ln\lvert\rho/(1-\rho)\rvert$ of DH zero 4.2005e-5 at $\rho = 0.808517182 + 85.6993485i$ Exact point eval SCOPED
4c Pole-map boundary modulus $\lvert(s-1)/s\rvert$ on critical line 1.0 at $t \in {1, 10, 100}$ Exact point eval VERIFIED
4d Off-line Blaschke factor $B(s) = \frac{s-\rho}{s-(1-\bar\rho)}$ on critical line $\lvert B(\tfrac12+it)\rvert = 1.0$ (15 digits) at $t \in {0, 50, 85.7, 200}$; $\arg B$ swings 0.20601 rad across $[80, 92]$ Exact point eval VERIFIED

Scope Notes on Conditional and Scoped Cells

  • 1b: The theorem $\sum_{d\ge 1} \lfloor x/d^2\rfloor = \zeta(2)x + \zeta(\tfrac12)\sqrt{x} + O(x^{1/3})$ is unconditional; the normalized residual $(\text{count} - \zeta(2)x)/\sqrt{x} - \zeta(\tfrac12)$ oscillates as $O(x^{-1/6})$ (0.0203, 0.00169, 0.000160, 0.000136 at $10^{6,8,10,12}$), matching $\zeta(\tfrac12)$ to four digits at $x = 10^{12}$.
  • 1d: $L(x) \le 0$ holds throughout $[2, 10^7]$ and fails infinitely often above $x = 906{,}150{,}257$ (Haselgrove 1958; Tanaka 1980).
  • 1e: That the logarithmic mean of $L(x)/\sqrt{x}$ equals $1/\zeta(\tfrac12)$ is conditional (requiring RH, simple zeros, and a convergence hypothesis); the interval $[10^3, 10^7]$ checks numerical consistency only (-0.6819 vs. -0.6848).
  • 3e / 3g: Near $t = 18050$, zeros cluster tightly near $\pi$-anti-synchrony between $e^{i\vartheta}D$ and its conjugate (median deviation 0.060 vs. 1.28 at random heights), with 11% exceptions where the main wave itself is near-null ($\lvert A\rvert < 0.2$) and $R(t)$ decides. Because $\lvert R\rvert = O(t^{-1/4})$ shrinks slowly against Selberg fluctuations of $\ln\lvert A\rvert$, this establishes a statistical height-regime behavior rather than a per-zero rule.
  • 4a / 4b: The Balazard–Saias–Yor identity is global over $(-\infty, \infty)$. Partial integrals $I(T)$ carry either sign and do not bound the tail beyond $T$; likewise a single off-line deposit ($4.2005\times 10^{-5}$) enters the full integral and cannot be treated as a finite-window detection threshold. Cell 4d carries the local boundary check: an off-line zero acts purely in angle on $\sigma = \tfrac12$.

II. Fast Bench Script (Standalone, < 10 s)

Reproduces cells 1a–1e, C2, C5, PR-1, 3c, 3d, 3f, 4b, 4c, and 4d in one pass.

import math, itertools
from fractions import Fraction as Fr
import numpy as np
import mpmath as mp

mp.mp.dps = 25

# 1a: Unique non-negative generating basis of the rank-2 log-floor
gens = [(2, 1, 1, 0), (1, 1, 0, 1)]
names = 'PUIR'
nonneg_bases = []
for X, Y in itertools.combinations(range(4), 2):
    a, b, c, d = Fr(gens[0][X]), Fr(gens[1][X]), Fr(gens[0][Y]), Fr(gens[1][Y])
    det = a*d - b*c
    if det == 0:
        continue
    rows = [((Fr(gens[0][k])*d - Fr(gens[1][k])*c)/det,
             (-Fr(gens[0][k])*b + Fr(gens[1][k])*a)/det) for k in range(4)]
    if all(e >= 0 for r in rows for e in r):
        nonneg_bases.append((names[X] + names[Y], rows))
print("[1a] non-negative basis:", [(b, [tuple(str(v) for v in r) for r in rows]) for b, rows in nonneg_bases])

# 1b: P's commit lattice count up to x = 10^12
z2, zh = mp.zeta(2), mp.zeta(mp.mpf(1)/2)
for exp in (6, 8, 10, 12):
    x = 10**exp
    r = math.isqrt(x)
    d = np.arange(1, r + 1, dtype=np.int64)
    S = int((x // (d * d)).sum())
    c = (mp.mpf(S) - z2 * x) / mp.sqrt(x)
    print(f"[1b] x=1e{exp:<2d} count={S}  c={mp.nstr(c, 8)}  c-zeta(1/2)={mp.nstr(c - zh, 3)}")

# Prime sieve up to N = 10^7 for 1c-1e, C5, PR-1
N = 10**7
isp = np.ones(N + 1, dtype=bool)
isp[:2] = False
for p in range(2, math.isqrt(N) + 1):
    if isp[p]:
        isp[p*p::p] = False
primes = np.nonzero(isp)[0]

# 1c-1e: Liouville lambda(n) and log-average of L(x)/sqrt(x) on [10^3, 10^7]
Om = np.zeros(N + 1, dtype=np.int8)
for p in primes:
    q = int(p)
    while q <= N:
        Om[q::q] += 1
        q *= int(p)
lam = np.where(Om % 2 == 0, 1, -1).astype(np.int64)
lam[0] = 0
L = np.cumsum(lam)
sq = np.arange(1, math.isqrt(N) + 1, dtype=np.int64)**2
a, b = 10**3, 10**7
n = np.arange(a, b, dtype=np.float64)
w = 2.0 * (n**-0.5 - (n + 1)**-0.5)
avg_L = float((L[a:b] * w).sum() / math.log(b / a))
print(f"[1c-1e] lam(n^2)==1 all: {bool((lam[sq] == 1).all())} | max L(2..1e7): {int(L[2:].max())} | log-avg L/sqrt(x): {avg_L:.4f} (1/zeta(1/2)={mp.nstr(1/zh, 4)})")

# C5: Mobius GC survivor density and Mertens sum
mu = np.ones(N + 1, dtype=np.int8)
mu[0] = 0
for p in primes:
    pi = int(p)
    mu[pi::pi] *= -1
    p2 = pi * pi
    if p2 <= N:
        mu[p2::p2] = 0
M = np.cumsum(mu)
print(f"[C5] sqfree density={np.count_nonzero(mu[1:])/N:.6f} vs 1/zeta(2)={6/math.pi**2:.6f} | M(1e7)/sqrt(1e7)={M[-1]/math.sqrt(N):.6f}")

# PR-1: Prime-race sub-ledger bias: theta(x) vs psi(x) on [10^3, 10^7]
theta_inc = np.zeros(N + 1, dtype=np.float64)
psi_inc = np.zeros(N + 1, dtype=np.float64)
lp_arr = np.log(primes.astype(np.float64))
theta_inc[primes] = lp_arr
for p, lp in zip(primes, lp_arr):
    q = int(p)
    while q <= N:
        psi_inc[q] = lp
        q *= int(p)
theta_x, psi_x = np.cumsum(theta_inc), np.cumsum(psi_inc)
avg_th = float(((theta_x[a:b] - n) * w).sum() / math.log(b / a))
avg_ps = float(((psi_x[a:b] - n) * w).sum() / math.log(b / a))
frac_th = float((theta_x[a:b+1] < np.arange(a, b+1)).mean())
frac_ps = float((psi_x[a:b+1] < np.arange(a, b+1)).mean())
print(f"[PR-1] theta: log-avg={avg_th:.4f}, frac<0={frac_th:.4f} | psi: log-avg={avg_ps:.4f}, frac<0={frac_ps:.4f}")

# C2: Mirror gain law |chi(sigma+it)| ~ (t/2pi)^(1/2 - sigma)
chi_zeta = lambda s: (2**s) * (mp.pi**(s - 1)) * mp.sin(mp.pi * s / 2) * mp.gamma(1 - s)
t_g = mp.mpf('10000')
ratios = [mp.nstr(abs(chi_zeta(mp.mpc(sig, t_g))) / ((t_g / (2*mp.pi))**(mp.mpf('0.5') - mp.mpf(str(sig)))), 8)
          for sig in (0, 0.25, 0.5, 0.75, 1.0)]
print("[C2] |chi| / (t/2pi)^(1/2-sigma) at t=1e4:", ratios)

# 3c, 3d, 3f: Drive rate and hyperbola cost minimum
t0 = mp.mpf(2000)
dt = mp.diff(mp.siegeltheta, t0)
print(f"[3c] t=2000: theta'-asym={mp.nstr(dt - 0.5*mp.log(t0/(2*mp.pi)), 3)} | pi/theta'={mp.nstr(mp.pi/dt, 6)}")
x_d = 10**6
splits = [(A, A + x_d//A, sum(x_d//k for k in range(1, A+1)) + sum(x_d//k for k in range(1, x_d//A+1)) - A*(x_d//A))
          for A in (10, 100, 1000, 10000, 100000)]
print("[3d/3f] hyperbola splits (A, terms, sum):", splits)

# 4b, 4c, 4d: Pole map and off-line Blaschke factor
rho = mp.mpc('0.808517182', '85.6993485')
B = lambda s: (s - rho) / (s - (1 - mp.conj(rho)))
print("[4b] DH deposit:", mp.nstr(mp.log(abs(rho / (1 - rho))), 5))
print("[4c] |(s-1)/s| on line:", [mp.nstr(abs((mp.mpc(0.5, u) - 1)/mp.mpc(0.5, u)), 15) for u in (1, 10, 100)])
print("[4d] |B(1/2+it)|:", [mp.nstr(abs(B(mp.mpc(0.5, u))), 15) for u in (0, 50, mp.mpf('85.6993485'), 200)],
      "| arg swing (80..92):", mp.nstr(mp.arg(B(mp.mpc(0.5, 92))) - mp.arg(B(mp.mpc(0.5, 80))), 5))

III. Heavy-Scan Cells (3b, 3e/3g, 4a)

These cells take several minutes in mpmath and are isolated here with their captured metrics from the Ledger (§I).

import math, random
import mpmath as mp
mp.mp.dps = 25

# 3b: Gram clock across 3000 intervals (captured: 3000 found = nzeros, 0 missed; 0.8730 single-zero; Gram's law 93.6%)
NG = 3000
gp = [mp.grampoint(k) for k in range(NG + 1)]
Zg = [mp.siegelz(g) for g in gp]
good = sum(1 for k in range(NG) if (-1)**k * Zg[k] > 0)
hist = {0: 0, 1: 0, 2: 0, 3: 0}
for k in range(NG):
    vals = [Zg[k]] + [mp.siegelz(gp[k] + (gp[k+1] - gp[k])*j/10) for j in range(1, 10)] + [Zg[k+1]]
    c = sum(1 for u, v in zip(vals, vals[1:]) if u*v < 0)
    hist[min(c, 3)] += 1
print("[3b] Gram law %:", 100.0*good/NG, "| hist:", {k: round(v/NG, 4) for k, v in hist.items()},
      "| ref:", mp.nzeros(gp[-1]) - mp.nzeros(gp[0]))

# 3e/3g: Main-sum relative phase at height and random-height controls
def halves(t):
    N = int(mp.floor(mp.sqrt(t / (2*mp.pi))))
    A = mp.exp(1j*mp.siegeltheta(t)) * mp.fsum(mp.mpf(n)**-0.5 * mp.exp(-1j*t*mp.log(n)) for n in range(1, N + 1))
    return N, A

for k in (50, 200, 1000, 5000, 20000):
    g = mp.zetazero(k).imag
    N, A = halves(g)
    rel = (2*mp.arg(A)) % (2*mp.pi)
    R = mp.siegelz(g) - 2*A.real
    print(f"[3e] k={k:<5d} N={N:<3d} |rel-pi|={mp.nstr(abs(rel-mp.pi), 4)} |R|/|A|={mp.nstr(abs(R)/abs(A), 4)}")

mp.mp.dps = 15
t0, t1, h = mp.mpf(18046), mp.mpf(18166), mp.mpf('0.05')
grid = [t0 + h*j for j in range(int((t1 - t0)/h) + 1)]
Zs = [mp.siegelz(t) for t in grid]
zs = [mp.findroot(mp.siegelz, (grid[j], grid[j+1]), solver='illinois') for j in range(len(grid) - 1) if Zs[j]*Zs[j+1] < 0]
devs = sorted(float(abs(((2*mp.arg(halves(g)[1])) % (2*mp.pi)) - mp.pi)) for g in zs)
print(f"[3g] found={len(zs)} ref={mp.nzeros(t1)-mp.nzeros(t0)} median={devs[len(devs)//2]:.4f} within_0.05={sum(d<0.05 for d in devs)/len(devs):.3f}")

# 4a: BSY partial integrals split at zeropoints up to T = 240
mp.mp.dps = 20
f = lambda t: mp.log(abs(mp.zeta(mp.mpc(0.5, t)))) / (mp.mpf(1)/4 + t*t)
zeros, k = [], 1
while True:
    g = mp.zetazero(k).imag
    if g > 245: break
    zeros.append(g); k += 1
prev, last = mp.mpf(0), 0
for T in (5, 15, 30, 60, 120, 240):
    pts = [last] + [g for g in zeros if last < g < T] + [T]
    prev += mp.quad(f, pts); last = T
    print(f"[4a] T={T:<3d} I(T)={mp.nstr(2*prev/(2*mp.pi), 6)}")

IV. Excluded Test Conditions (Standing Guardrails)

Two test patterns are barred from entering downstream files as evidence:

  1. Low-height main-sum phase checks ($t &lt; 25$, $N = 1$): At the first two zeros of $\zeta$, $N(t) = \lfloor\sqrt{t/2\pi}\rfloor = 1$, reducing the main sum $D(t)$ to the single scalar $1$. The quantity $2\arg A$ collapses identically to the Gram-point phase $2\vartheta(t)$, while $R(t) = -2\operatorname{Re}A$ holds trivially at every zero and carries magnitude comparable to $\operatorname{Re}A$. Height-resolved evaluation (3e, 3g) is required before main-sum cancellation carries statistical signal.
  2. Finite-window Balazard–Saias–Yor comparisons: Because the Poisson kernel $1/(\tfrac14 + t^2)$ integrates globally across $(-\infty, \infty)$, truncated partial integrals $I(T)$ of either sign carry no bound on the unintegrated tail and cannot establish detection thresholds for isolated off-line zeros. Local off-line behavior on the critical line is tested instead via the Blaschke factor (4d).

Register. LANDED and verified: cells 1a, 1b (to $10^{12}$), 1c, 1d (to $10^7$), C2, C5, PR-1, 3b, 3c, 3d, 3f, 3e, 3g, 4a–4d. CONDITIONAL: 1e limit identification with $1/\zeta(\tfrac12)$. EXCLUDED: low-height $N=1$ main-sum tests and finite-window BSY threshold claims.


Reasonable Reader Alert: An LLM without access to the full codex will fail to parse this work in predictable patterns. Obtain and upload the source-aggregate (aggregate-COMPILINGREALITY.txt) to your LLM in order to audit or interrogate this work.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.