#!/usr/bin/env python3 # Question: does the fixed ordinal weight template transfer to separate actual # old-T97 supports better than its registered within-support placements? # Preregistered H=0, falsifier H>=1. This run generates new supports only. import hashlib,json,sys,time,signal,resource from pathlib import Path def limit_handler(signum,frame): raise RuntimeError('producer CPU budget exhausted; incomplete run') class Stream: def __init__(self,seed):self.seed=seed.encode('ascii');self.counter=0 def below(self,m): ceiling=(1<<64)-((1<<64)%m) while True: if self.counter>=100000:raise RuntimeError('draw cap') r=int.from_bytes(hashlib.sha256(self.seed+self.counter.to_bytes(8,'big')).digest()[:8],'big') self.counter+=1 if r=66 rows.append({**window,'available':True,'slots':D,'L':D[-1]-window['a']+1, 'uniform':uniform,'template':template,'controls':controls,'draws':draws, 'control_strict':h,'eligible':eligible,'counted':eligible and template['C']