Finite Boolean dependency tables #
A function depending on a finite coordinate set can be represented by its
canonical table on assignments to that set. This module exposes exact
reconstruction, the 2^|S| table-entry count, finiteness of the function's
range, and the corresponding range-cardinality bound. It also splits total
assignments bijectively across a coordinate set and its complement and proves
that uniform restriction is exactly uniform. Ordered finite coordinate sets
also receive computable exact-length assignment and truth-table codecs.
Splitting and then merging a total assignment recovers it exactly.
Restricting a merged assignment to its selected coordinates recovers the selected component.
Restricting a merged assignment to the complement recovers the complement component.
Restricting a uniformly random total Boolean assignment to any finite coordinate subset produces the exact uniform distribution on subset assignments.
Extending a restricted assignment recovers every selected coordinate.
If a function depends only on the selected coordinates, its canonical table reconstructs its value on every total input.
A function depending on finitely many Boolean coordinates has finite range.
A function depending on S has at most 2^|S| distinct values.