#!/usr/bin/env python3 """Interval-arithmetic certificate for the explicit non-real zero quoted in Appendix B (after Theorem B.1) of "Fourier zeros and the Schottky problem I". Setting. Z = Z_{K_5}(1) = sum_{i) / prod_{k=1}^{4} (u'_{p_{k+1}} - u'_{p_k}), with a non-zero constant. The script proves: f has exactly one zero in the disc |z - z0| < R, and this zero has positive imaginary part, where z0 = 6283.18720333706075667 + 0.00533163575156198652 i and R = 1e-12. Hence F_{Z,u'} has a non-real zero z = 6283.18720333706... + 0.00533163575... i. Method. With lin(z) = f(z0) + f'(z0)(z - z0) and M2 >= sup |f''| on the disc, Taylor's formula gives |f - lin| <= M2 R^2 / 2 on |z - z0| = R, while |lin| >= |f'(z0)| R - |f(z0)| there. If |f(z0)| + M2 R^2 / 2 < |f'(z0)| R, then lin has its only zero inside the disc and, by Rouche's theorem, f has exactly one zero in the disc. The frequencies and coefficients are exact rationals; f(z0) and f'(z0) are enclosed with mpmath interval arithmetic, and M2 is bounded by sum_p |c_p| w_p^2 exp(|w_p| (Im z0 + R)). The script exits with status 0 if and only if the inequality and Im z0 - R > 0 are verified. Requires Python 3 and mpmath. """ import itertools import sys from fractions import Fraction as Fr from mpmath import iv, mp, mpf, nstr iv.dps = 60 mp.dps = 60 def show(x): """decimal string of an endpoint (for display only)""" return nstr(mpf(x), 12) U = [Fr(1), Fr(157399, 100000), Fr(3902047, 1000000), Fr(1214551, 500000), Fr(-939987, 500000)] Z0_RE = Fr('6283.18720333706075667') Z0_IM = Fr('0.00533163575156198652') RADIUS = Fr(1, 10**12) def to_iv(q): return iv.mpf(q.numerator) / iv.mpf(q.denominator) # exact data: coefficients c_p and frequencies w_p = terms = [] for p in itertools.permutations(range(5)): den = Fr(1) for k in range(4): den *= U[p[k + 1]] - U[p[k]] freq = sum((2 * k - 4) * U[p[k]] for k in range(5)) terms.append((1 / den, freq)) assert len(terms) == 120 x, y = to_iv(Z0_RE), to_iv(Z0_IM) f_re = f_im = iv.mpf(0) d_re = d_im = iv.mpf(0) m2 = iv.mpf(0) y_top = to_iv(Z0_IM + RADIUS) for cq, wq in terms: c, w = to_iv(cq), to_iv(wq) damp = iv.exp(-w * y) # |exp(i z0 w)| t_re, t_im = c * damp * iv.cos(w * x), c * damp * iv.sin(w * x) f_re += t_re f_im += t_im d_re += -w * t_im # i w (t_re + i t_im) d_im += w * t_re m2 += abs(c) * w * w * iv.exp(abs(w) * y_top) abs_f_upper = iv.sqrt(f_re**2 + f_im**2).b # upper bound for |f(z0)| abs_d_lower = iv.sqrt(d_re**2 + d_im**2).a # lower bound for |f'(z0)| m2_upper = m2.b r = to_iv(RADIUS) lhs = (iv.mpf(abs_f_upper) + iv.mpf(m2_upper) * r * r / 2).b rhs = (iv.mpf(abs_d_lower) * r).a print('direction u\' =', ', '.join(str(q) for q in U)) print('z0 = %s + %s i' % (float(Z0_RE), float(Z0_IM))) print('radius R = %s' % float(RADIUS)) print('|f(z0)| <= %s' % show(abs_f_upper)) print('|f\'(z0)| >= %s' % show(abs_d_lower)) print('sup |f\'\'| <= %s' % show(m2_upper)) print('|f(z0)| + M2 R^2/2 <= %s' % show(lhs)) print('|f\'(z0)| R >= %s' % show(rhs)) ok = (lhs < rhs) and (Z0_IM - RADIUS > 0) print('CERTIFIED: exactly one zero in |z - z0| < R, with positive imaginary part' if ok else 'CERTIFICATE FAILED') sys.exit(0 if ok else 1)