Documentation

CslibFrontier.Computability.Complexity.Classes.CountingHierarchy.Arithmetic

Total modular arithmetic within function levels #

The existing square-and-multiply certificate charges binary exponents and intermediate residues. Combining its three arguments through fixed tagged oracles preserves a function level. Modulus zero has the existing fixed default, rather than an exponentially long unreduced power.

Binary natural multiplication preserves the common function level.

Binary natural remainder preserves the common function level, including the total value n % 0 = n.

Comparing binary naturals preserves their common function level.

Binary modular exponentiation preserves the level of its three uniformly accessible inputs. For modulus zero, powMod returns one.