Objects/Documentation
minimum28.py
Shared conditionals and checks · minimum28.py
Download ↓"""Minimum-size regional rejection certificates in the fixed event-plane dictionary."""
from fractions import Fraction as F
from itertools import combinations,product
from contacts27 import TRIPLE
from rayon26 import constraints,clip,extremes,crossing
from verifier26 import verify
import json
def search(rows,e,j):
pool=sorted(set(constraints(rows,e,j)))
# The six unit cube inequalities are always free. Every retained plane must
# cover points in the entire square, just as in the previous certificate.
grid=tuple(product(range(17),repeat=2));full=(1<<len(grid))-1
masks=[sum(1<<k for k,(u,v) in enumerate(grid) if a*16*u+b*16*v+c*u*v+d*256<0) for a,b,c,d in pool]
tested=[];counterpoints=[]
for size in range(1,5):