Canonical encoding of finite Boolean assignments and tables #
This module exposes computable exact-length codecs for Boolean functions on finite ordered domains, assignments on ordered finite coordinate sets, and their full Boolean truth tables.
There are exactly 2^|S| canonically ordered assignments to S.
Ordered finite-function encodings contain exactly one bit per input.
Exact round trip for Boolean functions on finite ordered domains.
Canonical ordered finite-function encoding is injective.
Ordered finite-function decoding fails exactly on malformed lengths.
Assignment encodings contain exactly one bit per selected coordinate.
Exact assignment-codec round trip.
Canonical assignment encoding is injective.
Assignment decoding fails exactly on strings of the wrong length.
A full Boolean table has exactly 2^|S| serialized entries.
Exact dependency-table-codec round trip.
Canonical dependency-table encoding is injective.
Table decoding fails exactly on strings without one bit per assignment.