Documentation

Complexity.Computability.Machines.Turing.MultiTape.Internal.PolyTimeBinaryDivision

Direct certificates for the existing binary subtraction and division algorithms #

The word programs and their arithmetic laws are unchanged. Subtraction reuses the shared charged schoolbook certificate. Division uses direct bit, pair, append and full-prefix fold primitives, retaining binary magnitudes throughout.

Truncated binary subtraction, reusing the shared charged schoolbook certificate. The quantitative interface takes the subtrahend first, so swap the two computed operands.

Quotient and remainder by the original shift-and-subtract binary long division. The zero-divisor branch is retained; both outputs stay binary.

Binary quotient, with a / 0 = 0. This named rule adds no encoding-search alternative.

Binary remainder, with a % 0 = a. This named rule adds no encoding-search alternative.