Correctness and fixed widths of guarded modular squaring #
The nonzero-modulus branch composes the checked multiplication and remainder
semantics. Induction over the count list gives the exponent 2^count.length,
while reduction after every step bounds all states independently of that
exponent. The zero branch has exact width zero.
theorem
Complexity.BitPolynomial.Internal.frobeniusBits_of_modulus_zero
(a modulus count : List Bool)
(zero : ofBits modulus = 0)
: