Home / One elliptic curve of rank two / Rechecking the rank certificate
#!/usr/bin/env python3
"""Independent exact checks accompanying review_bsd_rank_two.txt.
No numerical quadrature is repeated here. The proof review separately
checks the Mellin normalization and all three analytic error bounds.
"""
import json
from fractions import Fraction as F
from pathlib import Path
root = Path(__file__).resolve().parents[1]
certificate = json.loads((root / "experiments/bsd_rank_two_certificate.json").read_text())
# Euler's pentagonal identity, rather than the original product algorithm.
# eta(8z) eta(16z) Theta(4z) has an initial q factor.
terms = []
for k in range(-4, 5):
for j in range(-4, 5):
for r in range(-4, 5):
exponent = 4*k*(3*k-1) + 8*j*(3*j-1) + 4*r*r
if exponent == 16:
terms.append([k, j, r, -1 if (k+j) % 2 else 1])
assert sum(t[3] for t in terms) == 0
# All omitted k,j,r have exponents greater than16, with nonnegative terms.
assert min(4*k*(3*k-1) for k in [-5, 5]) > 16
assert min(8*j*(3*j-1) for j in [-5, 5]) > 16
assert 4*5*5 > 16
# Independently enumerate affine (x,y) pairs at every small good prime,
# without using the original Legendre-symbol point-counting routine.
traces = {}
for p in [3, 5, 7, 11, 13, 19, 23, 29, 31, 37]:
points = 1 + sum((y*y-x*x*x+1156*x) % p == 0
for x in range(p) for y in range(p))
traces[p] = p+1-points
assert traces[p] == certificate["prime_traces"][str(p)]
for d in [2, 34]:
rhs = {(d*u**4 + (4624//d)*v**4) % 16
for u in range(16) for v in range(16) if u % 2 or v % 2}
assert rhs == {2, 8, 10}
assert not (rhs & {x*x % 16 for x in range(16)})
u = F(3, 136)
assert 2*(1+u)/u**2 == F(37808, 9) < 4202
derivative_bound = 720*64*2*4202*37
assert derivative_bound == certificate["quadrature"]["sixth_derivative_bound"]
boole_error = F(2*199*derivative_bound, 945*40**6)
reported_error = [F(x) for x in certificate["quadrature"]["error_bound_interval"]]
assert reported_error[0] <= boole_error <= reported_error[1]
quadrature = [F(x) for x in certificate["quadrature"]["value_interval"]]
outer_error = sum(F(certificate[key][1]) for key in [
"fourier_coefficient_tail_bound_interval", "integration_tail_bound_interval"])
outer_error += boole_error
lower = quadrature[0] - outer_error
upper = quadrature[1] + outer_error
# Only the elementary bound3<pi<22/7 is needed to retain12<L''<14.
assert F(3, 68)*lower > 12
assert F(22, 7*68)*upper < 14
out = {
"eta_coefficient17_via_pentagonal_identity": sum(t[3] for t in terms),
"contributing_pentagonal_terms": terms,
"independent_affine_pointcount_traces": traces,
"exact_boole_error": str(boole_error),
"coarse_outer_derivative_bounds": [str(F(3,68)*lower), str(F(22,7*68)*upper)],
"verified": "12<L''(1)<14; exact eta coefficient0; small pointcounts and2-adic exclusions",
"not_repeated": "interval quadrature nodes, full Tate algorithm, full BSD",
}
path = root / "results/bsd_rank_two_independent_review.json"
path.write_text(json.dumps(out, ensure_ascii=False, indent=2) + "\n")
print(json.dumps({"status":"passed", "output":str(path), "eta_coefficient":0}))
The original records reflect the work at the time of writing. The article gives the final interpretation and scope.
Original file checksum · SHA-256
9e457e170cf49444f67e5afe8d82d92532d6b3733df70b853205b6cf97db323a