Tools: programs to call on your own input
Most programs here check the claims of the page that cites them. The programs below are written to be called on your own input. Each opens with its calls and what they print, and every shown call is run whenever the site is built, which fails if a call prints anything else. Save a program by the link in its page's opening lines, under its own file name, with the programs its page lists, install the outside packages it names, start Python in that folder (the command python3, or py on Windows), and type each line shown after >>>. The build runs them under Python 3.12, the only version tested.
- crt.py -- residue arithmetic on Z/N for N a product of coprime prime powers, with the primorial rungs Z/p_k# as the canonical family.
- size.py -- what a residue window cannot read about size, and an exact comparator of two residue words through the key of least range.
- delays.py -- the delay of an on-line unit, read by one entry point: pass a unit's box, as its width rate (the sup of its gradient's L1 norm over the box) and its range, or its pieces, or a chain, at a signed digit system, and read for a box its lead, its delay L* and its lookahead, for pieces their lead, L* and floor, and for a chain its naive and least totals.
- cubic.py -- complex cubic fields read through binary cubic forms: the ring of integers, the prime places, a class group checked against the analytic class number formula, and the class of a degree-1 place.
- flatten.py -- the least height of an integer polynomial forced to vanish to a given order at 1: the exact chart, where products of x^g - 1 attain it and where they do not, and the inverse dial read as the shortest integer-tap filter that kills polynomial signals below a given degree.
- suffixwalk.py -- the shortest filter with taps -1, 0 and 1 that annihilates every polynomial signal below a given degree: the least degree d_1(J) of a polynomial of height 1 vanishing to order J at 1, with every polynomial that attains it, by a walk down the top coefficients; and the same with integer taps of size at most k, the least degree d_k(J) at height k.
- shiftsum.py — how long a message a shifted modular checksum protects against every error of one or two bits: a length proved clean, closed in the order of 2 up to sign, with the criterion for the next bit; the modulus of longest reach at 8, 16, 32 and 64 bits; and the check value itself.
- shiftpar.py — the shifted checksum's parity variant as its text states it and as its code computes it: the check value under either reading, and the least error of two data bits and a residue bit that the code's reading misses.