#!/usr/bin/env python3 # ANCILLARY FILE for "A WZ proof of a conjecture of Z.-W. Sun on a series for 3 zeta(3)". # Exact-arithmetic sanity checks, on grids, of the explicit constants in Sections 5, 7, 8 and of the hand-derived # formulas of Section 7 (written by Claude; comments and output are in Turkish; "GECTI" = passed). # The inequalities themselves are proved in the paper; this script only confirms the stated constants. # Python 3, standard library only. Run: python3 verify_bounds.py """kanit_A_acik_en.md icindeki ACIK SABITLI esitsizliklerin ve elle turetilen formullerin denetimi. Bu betik kanitin yerine gecmez: esitsizliklerin kaniti metinde elle verilmistir; burada yalniz "metindeki sabitler gercekten tutuyor mu" diye tam aritmetikle (Fraction) izgara uzerinde bakilir. Yalniz Python 3 standart kitapligi. dogrulama_1.py'den bagimsiz calisir. """ import sys from fractions import Fraction as Fr SONUC = [] def kayit(ad, tamam, not_=""): SONUC.append((ad, tamam)) print(("GECTI " if tamam else "KALDI ") + ad + (" | " + not_ if not_ else "")) class Ikili: """a + b*eps (eps^2 = 0): b bileseni t'ye gore turevin TAM degeridir.""" __slots__ = ("a", "b") def __init__(self, a, b=0): self.a, self.b = Fr(a), Fr(b) @staticmethod def cevir(x): return x if isinstance(x, Ikili) else Ikili(x, 0) def __add__(self, o): o = Ikili.cevir(o) return Ikili(self.a + o.a, self.b + o.b) __radd__ = __add__ def __neg__(self): return Ikili(-self.a, -self.b) def __sub__(self, o): return self + (-Ikili.cevir(o)) def __rsub__(self, o): return Ikili.cevir(o) - self def __mul__(self, o): o = Ikili.cevir(o) return Ikili(self.a * o.a, self.a * o.b + self.b * o.a) __rmul__ = __mul__ def __truediv__(self, o): o = Ikili.cevir(o) return Ikili(self.a / o.a, (self.b * o.a - self.a * o.b) / (o.a * o.a)) def __rtruediv__(self, o): return Ikili.cevir(o) / self YARIM = Fr(1, 2) def poch(x, m): r = 1 for i in range(m): r = r * (x + i) return r def f_(n, j, t): return 2 * n + 2 * j + Fr(3, 2) - t def P_(n, j, t): return (n + j + 1 - t) * (n + 2 * j + 1) / ((2 * n + 1) * (3 * n + 2 * j + 3 - 2 * t)) def Q_(n, j, t): return j + YARIM - t - (n + 1 - t) * (3 * n + 2) / (8 * (2 * n + j + 2)) def B_(n, j, t): return f_(n, j, t) + P_(n, j, t) * Q_(n, j, t) def rn_(n, j, t): pay = ((n + 1 - t) * (n + 1 + t) * (n + 1) * (3 * n + 2) * (3 * n + 3) * (3 * n + 4) * (n + j + 1 - t) * (n + 2 * j + 1)) payda = (4 * (n + j + Fr(3, 2)) * (2 * n + 1) * (2 * n + 2) * (3 * n + 2 * j + 3 - 2 * t) * (3 * n + 2 * j + 4 - 2 * t) * (3 * n + 2 * j + 5 - 2 * t) * (2 * n + j + 2) * (2 * n + j + 3)) return pay / payda def L_(n, j, t): pay = (poch(1 - t, n) * poch(1 + t, n) * poch(Fr(1), n) * poch(Fr(2), 3 * n) * poch(1 - t, n + j) * poch(Fr(1), n + 2 * j) * poch(YARIM - t, j)) payda = (Fr(4) ** n * (1 - 2 * t) * (1 - t) * poch(Fr(3, 2), n + j) * poch(Fr(1), 2 * n) * poch(3 - 2 * t, 3 * n + 2 * j) * poch(Fr(2), 2 * n + j)) return pay / payda def M_(n, t): return (Fr(1) * poch(1 - t, n) * poch(1 - t, n) * poch(1 + t, n) / poch(Fr(1), n) ** 3 * poch(Fr(3), 3 * n) / poch(3 - 2 * t, 3 * n) / ((1 - 2 * t) * (1 - t))) def fakt(m): r = 1 for i in range(2, m + 1): r *= i return r def w_(k): c = fakt(2 * k) // (fakt(k) ** 2) return Fr(1, k ** 3 * c ** 3) T = [Fr(0), Fr(1, 8), Fr(-1, 8), Fr(1, 16), Fr(-1, 16), Fr(7, 101), Fr(-12, 101), Fr(1, 9), Fr(-1, 9)] CL = Fr(32, 21) # ---- E1: Lemma 4 (r_n siniri) ok = True for t in T: for n in range(60): for j in range(60): r = rn_(Fr(n), Fr(j), t) s = Fr((n + 1) ** 2, 4 * (2 * n + 1) * (2 * n + 3)) if not (0 < r <= s <= Fr(1, 12)): ok = False kayit("E1 0 < r_n <= (n+1)^2/(4(2n+1)(2n+3)) <= 1/12 (n,j<60, 9 t)", ok) # ---- E2..E4: L, B, F, G sinirlari ok2 = ok3 = ok4 = True for t in T: for n in range(22): for j in range(22): l = L_(n, j, t) b = B_(Fr(n), Fr(j), t) if not (0 < l <= CL * Fr(1, 12 ** n) * Fr(1, (j + 1) ** 4)): ok2 = False if not (abs(b) <= 2 * (n + j + 2) ** 2 and 0 < P_(Fr(n), Fr(j), t) <= n + j + 2 and abs(Q_(Fr(n), Fr(j), t)) <= n + j + 2 and 0 < f_(n, j, t) <= 2 * (n + j + 1)): ok3 = False if not (abs(l * f_(n, j, t)) <= 2 * CL * Fr(n + 1, 12 ** n) * Fr(1, (j + 1) ** 3) and abs(l * b) <= 2 * CL * Fr((n + 2) ** 2, 12 ** n) * Fr(1, (j + 1) ** 2)): ok4 = False kayit("E2 0 < L(n,j;t) <= (32/21) 12^-n (j+1)^-4 (n,j<22)", ok2) kayit("E3 |B| <= 2(n+j+2)^2, 0