verify_stored.py

back to table · edit · history · where entries came from · files · download

636 bytes, as of the version from 2026-11-18 22:18 (current). Recorded here, not run.

import numberdb.sage as numberdb
from pathlib import Path
import sys,json,time,os
sys.path.insert(0,str(Path(__file__).resolve().parent))
import generate
numberdb.configure(api_key=sys.stdin.read().strip())
start=time.time()
result=generate.SecondaryLaurent().verify(sample=None)
print('VERIFY',str(result),flush=True)
print('VERIFY_FIELDS',json.dumps({k:getattr(result,k) for k in result.__slots__},default=str),flush=True)
print('VERIFY_SECONDS',time.time()-start,flush=True)
print('FRESH_CAUCHY_EVIDENCE',json.dumps(generate.EVIDENCE),flush=True)
assert result.checked==42 and result.matched==42 and result.ok and not result.coarser