Documentation

Complexity.Computability.Circuit.Boolean.Modular.Subtract.PolyTime

Native modular subtraction generation #

The complete complement-plus-carry construction is generated from unary width. All circuit gates, wire references and output selectors are charged.

Main results #

Generate the full modular subtractor, including the shared carry and discarded carry-out.

Instances For

    Raw generation preserves the complete typed subtractor.

    Full generation is polynomial-time in unary width, including binary gate and output indices.