Atelier des rouesLab FR
Objects/Documentation

certificat17.py

I provide the integer-enclosure verifier.

Download ↓
"""Integer enclosures for the affinity of two fully merged schedules at the tested sizes."""
from functools import lru_cache
from math import isqrt
import json

UNIT = 1 << 96


def ceiling(n, d):
    return -(-n//d)


def enclosure(h, kind):
    m = isqrt(h)
    if h <= 4 or kind not in (0,1):
        raise ValueError("requires H>4 and a binary cell type")

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.