THE KAO--LAI--OSTING CONJECTURE FOR THE SECOND LAPLACE EIGENVALUE ON RIEMANNIAN TWO-TORI
Computational supplement
Alexander Pigazzini, 23 November 2026

All paths are relative to this folder.  Section, theorem and appendix numbers refer to the
paper.

CONTENTS

  reproduce.py              runs all checks (see COMMANDS); every run works in a fresh
                            directory build/run_<time>/ and writes one log file per step
  SHA256_manifest.json      SHA-256 digests of every file of the supplement except itself

  sources/                  verification programs and certificate data
    small_centre_certificates.py            small centres (Section 6, Appendix A)
    exterior_moduli_certificate.py          rational endpoint of the complementary moduli
                                            (Section 11)
    low_weight_rational_certificates.py     low-weight caps (Section 7); coefficient data in
      low_weight_polynomial_coefficients.json
    verify_outer_strip.py                   identities of the outer high-centre strip
                                            (Section 8; optional, uses SymPy)
    verify_quartic_product_rational_only.py exact check of the product strips, quartic
                                            Hermite bounds (Appendix E.2)
    verify_exact_rational.py                exact check of the product strips, degrees ten
                                            and twelve (Appendix E.3)
    independent_product_strip_check.py      second, independent program for the product
                                            strips (SymPy; python-flint optional)
    product_interval_certificate.py         independent interval certificate of the product
                                            inequality (Lemma 10.1, Appendix B.4)
    replay_product_certificate.py           replay of every accepted product box
    product_boundary_strip.py               the endpoint strip of the product domain
    verify_product_constants_exact.py       exact rational audit of all transcendental
                                            constants of the product certificate
    check_product_coverage.py               exact coverage of the curved product domain
    product_certificate_*.json, product_constants_exact_audit.json
                                            product certificate data and audit records
    product_ball_verify.py                  verification of the product inequality in ball
                                            arithmetic (Lemma 10.1, Appendix B.3)
    product_ball_certificate.json           its certificate (format below)
    product_ball_search.py                  floating-point search that produced
                                            product_ball_certificate.json; not needed for
                                            the verification
    highcap_exact_verify.py                 exact verification of the residual high-cap
                                            certificate (Theorem 9.1, Proposition 9.11,
                                            Appendix C)
    highcap_ball_verify.py                  second, independent verification of the residual
                                            high-cap theorem in ball arithmetic (Theorem 9.1,
                                            Appendix C.4)

  highcap_certificate/      the 44 cells of the residual high-cap certificate
    direct_*.json           8 direct cells (Propositions 9.5 and 9.7)
    quadratic_*.json        36 quadratic cells (Propositions 9.9 and 9.10)
                            Field names: rho, Rbar, omega, chi, eta, b, Khat, abar, w0, Theta
                            are the quantities rho, R-bar, omega, chi, eta, b, K-hat, a-bar,
                            w_0, Theta of Section 9; all numbers are exact rationals.

  diagnostics/              checks that are not part of the proof
    highcap_crosscheck.py   evaluates the closed forms of Section 9 at the corners and
                            centres of all boxes with 60-digit arithmetic, compares them with
                            numerical quadrature and with the polynomials built by the
                            verifier, and reports the largest sampled value of the majorant
                            (needs mpmath)
    highcap_negative_tests.py
                            checks that highcap_exact_verify.py rejects corrupted certificates
    highcap_ball_negative_tests.py
                            checks that highcap_ball_verify.py rejects corrupted certificates
    product_ball_crosscheck.py
                            compares the closed-form cosine average of Appendix B.3 with
                            numerical quadrature (mpmath) and the certified box bounds with
                            the product majorant itself (NumPy); needs python-flint, mpmath
                            and NumPy
    product_ball_negative_tests.py
                            checks that product_ball_verify.py rejects corrupted certificates
    exterior_conformal_area_check.py
                            numerical check of the conformal volume of product tori used in
                            Section 11 (mpmath)

  logs/                     reference output
    reproduce_all.txt       python3 reproduce.py --rational --product-ball --product
                                                 --high-cap --high-cap-ball --jobs 2
    highcap_crosscheck.txt  python3 diagnostics/highcap_crosscheck.py highcap_certificate/*.json
    highcap_negative_tests.txt
                            python3 diagnostics/highcap_negative_tests.py highcap_certificate
    product_ball_crosscheck.txt
                            python3 diagnostics/product_ball_crosscheck.py
                                    sources/product_ball_certificate.json
    product_ball_negative_tests.txt
                            python3 diagnostics/product_ball_negative_tests.py
                                    sources/product_ball_certificate.json
    highcap_ball_negative_tests.txt
                            python3 diagnostics/highcap_ball_negative_tests.py
                                    highcap_certificate
    exterior_conformal_area_check.txt
                            python3 diagnostics/exterior_conformal_area_check.py

FORMAT OF product_ball_certificate.json

  All numbers are exact rationals written as strings "p/q" (or integers).
  nodes        for N in 16, 32, 64, 128, 256, 512: the nodes x_0 = -1 < ... < x_N = 1 of the
               upper chord rule (dyadic with denominator 2^24, close to -cos(j pi/N),
               and x_{N/2} = 0)
  boxes        list of boxes, each with
    R, s       [R0, R1] and [s0, s1]
    left       pieces [kind, t0, t1, N] of the arc E_{R0}, consecutive from t = 0 to beyond
               t_*(R0) = sqrt(R0)/(1 + sqrt(1 - R0)), where t = tan(theta/2)
    right      pieces of the arc E_{R1}, consecutive from below t_*(R1) to t = 1
    kind       "c": the piece is bounded at its dominating corner; "t": at the three
               vertices of its circumscribed triangle; N selects the node set

REQUIREMENTS

  Python >= 3.10 and the packages python-flint, NumPy, mpmath and SymPy, which are not part
  of the Python standard library.  They can be installed with

      python3 -m pip install python-flint==0.9.0 numpy mpmath==1.3.0 sympy==1.14.0

  reproduce.py first checks that the packages needed by the requested checks are present;
  if one is missing, it runs nothing and prints the command that installs it.

  The verifications in ball arithmetic (--product-ball, --high-cap-ball) need python-flint
  and nothing else; they were run with python-flint 0.9.0 (FLINT 3.6.0).  The exact
  verification of the high-cap certificate and the exact rational checks of the product
  strips use only the Python standard library (fractions.Fraction); python-flint is used
  for speed when installed and does not change any result.  The product certificate
  (--product) needs NumPy and mpmath; the rational checks (--rational) need SymPy, NumPy
  and mpmath.  Without python-flint the other checks still run, and they verify every
  computer-assisted step: the product inequality through the interval certificate of
  Appendix B.4, and the residual high caps through the exact certificate of Appendix C.
  The product certificate was produced with Python 3.12.14, NumPy 2.3.5 and mpmath 1.3.0,
  and assumes IEEE-754 binary64 arithmetic with correctly rounded basic operations and
  square roots.  The reference logs were obtained with Python 3.13.18, NumPy 2.5.3,
  mpmath 1.3.0, SymPy 1.14.0 and python-flint 0.9.0.

COMMANDS

  python3 reproduce.py --verify-files
  python3 reproduce.py --rational
  python3 reproduce.py --product-ball [--jobs N]
  python3 reproduce.py --product
  python3 reproduce.py --high-cap [--jobs N]
  python3 reproduce.py --high-cap-ball [--jobs N]
  python3 reproduce.py --all

  --rational takes about one minute, --product-ball about one minute, --product about five
  minutes, --high-cap about twenty minutes and --high-cap-ball about ten seconds on two
  processor cores with python-flint.  Each
  program exits with an error if any check fails; PASS is printed only after every
  obligation has been checked.  The checks are assert statements in most programs, so they
  must not be run with python -O; reproduce.py refuses to start in that mode.

  Diagnostics (not part of the proof), run in this folder:
  python3 diagnostics/highcap_crosscheck.py highcap_certificate/*.json
  python3 diagnostics/highcap_negative_tests.py highcap_certificate
  python3 diagnostics/highcap_ball_negative_tests.py highcap_certificate
  python3 diagnostics/product_ball_crosscheck.py sources/product_ball_certificate.json
  python3 diagnostics/product_ball_negative_tests.py sources/product_ball_certificate.json
  python3 diagnostics/exterior_conformal_area_check.py

  The search that produced product_ball_certificate.json (about three minutes on two cores):
  python3 sources/product_ball_search.py --jobs=2 product_ball_certificate.json
