back to table · edit · history · where entries came from · files · download
3622 bytes, as of the version from 2026-11-19 01:06 (current). Recorded here, not run.
"""T761: normalized holomorphic periods of hypergeometric motives of K3 type.
Install SageMath, then run `sage -pip install numberdb`.
Run `sage -python generate.py` to verify all
stored entries (configure your own NumberDB key to read the private draft).
`sage -python generate.py --publish` explicitly fills the authorized target;
it does not publish the draft or offer it for review.
Parameter order: template,z; z is an exact rational in the classical series
coordinate. Default coverage is all four rank-three rational MUM templates at
the height-nine {2,3}-unit reference fibres and the finite limit z=1.
Clausen and the quadratic transformation (DLMF 16.12.2 and 15.8.18) give
F_A(z)=2F1(a,1-a;1;(1-sqrt(1-z))/2)^2. For z>1, sqrt(1-z)=-i*sqrt(z-1)
selects continuation through the upper z-half-plane. The transformed point is
off the Gauss cut; no tiny floating imaginary offset selects a bank.
Exact rational inputs and the algebraic pullback are enclosed by Arb balls.
Working precision is numberdb.bits(digits,losing=160). The build measured
finite enclosures and component accuracy for every default argument.
Real z<=1 gives an exactly real value by real analytic continuation; it is
returned as a real ball. z=0 is returned as the exact integer 1.
"""
import argparse
import numberdb.sage as numberdb
from sage.rings.rational_field import QQ
from sage.rings.integer_ring import ZZ
from sage.rings.complex_arb import ComplexBallField
TEMPLATES = {'2.2.2': QQ(1)/2, '2.3': QQ(1)/3,
'2.4': QQ(1)/4, '2.6': QQ(1)/6}
def is_unit(q):
q = QQ(q)
if not q:
return False
for n in (abs(q.numerator()), q.denominator()):
for p in (2, 3):
while n % p == 0:
n //= p
if n != 1:
return False
return True
def reference_arguments(height=9):
if not isinstance(height, (int, type(ZZ(1)))) or height < 1:
raise ValueError('height must be a positive integer')
return sorted({QQ(u)/v for v in range(1, height+1)
for u in range(-height, height+1)
if is_unit(QQ(u)/v) and is_unit(1-QQ(u)/v)})
class K3Periods(numberdb.Generator):
table = 'T761'
parameters = ('template', 'z')
type = 'C'
digits = 100
rigour = 'proven'
def enumerate(self, height=9, include_limit=True):
arguments = reference_arguments(height)
if include_limit:
arguments = sorted(arguments+[QQ(1)])
for template in TEMPLATES:
for z in arguments:
yield {'template': template, 'z': z}
def value(self, params, digits):
a = TEMPLATES[str(params['template'])]
z = QQ(params['z'])
if z == 0:
return ZZ(1)
C = ComplexBallField(numberdb.bits(digits, losing=160))
if z > 1:
root = -C.gen(0)*C(z-1).sqrt()
else:
root = C(1-z).sqrt()
w = (1-root)/2
h = w.hypergeometric([C(a), C(1-a)], [C(1)])
value = h*h
if not value.real().is_finite() or not value.imag().is_finite():
raise ArithmeticError('nonfinite enclosure')
if z <= 1:
if not value.imag().is_zero():
raise ArithmeticError('real-domain evaluation lost exact reality')
return value.real()
return value
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--publish', action='store_true')
args = parser.parse_args()
generator = K3Periods()
print(generator.publish() if args.publish else generator.verify(sample=None))