Documentation

CslibFrontier.Computability.Circuit.Boolean.WordConstant.PolyTime

Native generation of Boolean constant words #

The generator emits the existing two-gate constant circuit and each output's binary wire reference. The numeral is binary encoded and the requested output width is unary encoded.

Main definitions #

Main results #

Extracted from the threshold generator with the circuit and encoding unchanged. Oversized numerals generate their low bits.

The two constant gates and their selected output wires for a binary numeral.

The total raw code selects the numeral's low bits, including an oversized numeral.

The raw numeral code is exactly the typed constant-word circuit.

Native generation charges every output reference, from unary width and a binary numeral.