Documentation

CslibFrontier.Computability.Circuit.Boolean.PopulationCount.ThresholdPolyTime

Native generation of the threshold comparison #

A unary-width loop generates the existing linear-size comparator, and binary digit selection generates its constant threshold word. Together with the population-count generator these give a native polynomial-time certificate for the full linear-size threshold circuit.

A native polynomial-time compiler for the whole linear-size threshold circuit. The number of inputs and the cutoff are supplied in unary; all output circuit references are binary.