Documentation

CslibFrontier.Computability.Circuit.Boolean.ParallelCode

Native code for circuit families on disjoint inputs #

parallelFamilyCode n m codes runs an arbitrary list of n-input, m-output circuit codes on consecutive disjoint input blocks and concatenates their output blocks. The fold mirrors Circuit.parallelFamily: it retains each member's internal sharing and never compiles a truth table.

Main definitions #

Main results #

These code-composition results are original infrastructure.

Extend a disjoint-input parallel-family prefix by one raw circuit code. The parameter pair is the common input and output width.

Run a list of raw n-input, m-output circuit codes on consecutive disjoint input blocks, preserving the list order in the output blocks.

Folding the shared extension step over a typed family records its length and produces exactly the typed parallel-family code.

Compiling the codes of a typed finite family gives exactly the code of its disjoint-input parallel composition, including the empty family.