"""Separate direct arithmetic checker; no SAT/encoding imports. Python3. python -B check_positive.py certificate.json """ import json,math,sys P=(2,3,5,7,11,13,17,19,23,29,31,37) Q=(41,43,47,53,59,61,67,71,73) def check(d): assert d['base']==math.prod(P) and tuple(d['natal'])==P and tuple(d['scour'])==Q assert d['L']==30 and d['H'] in (1050,2620) t=d['start'];slots=d['slots'];phases={int(q):c for q,c in d['phases'].items()} assert type(t)==int and 0<=t