"""Reproduce the outward height on the 29/160 coefficient table.""" import os from fractions import Fraction from pathlib import Path for name in ("OPENBLAS_NUM_THREADS", "OMP_NUM_THREADS", "MKL_NUM_THREADS", "NUMEXPR_NUM_THREADS", "BLIS_NUM_THREADS", "VECLIB_MAXIMUM_THREADS"): os.environ[name] = "1" import flint from lcverify import verify flint.ctx.threads = 1 table = Path(__file__).resolve().parents[1] / "data" / "twentynine160.json" result = verify(str(table), 128000) upper = Fraction(result["cap"]) assert result["ok"] and upper < Fraction("3.9305823") print("Exact outward binary bound", upper) print("PASS cap strictly below 3.9305823")