Normalizing unary indices into fixed finite ranges #
Reducing a unary natural modulo a fixed positive bound gives an index in Fin bound. The output
encoding is arbitrary: changing an encoding on a fixed finite type has constant cost. The modulus
and encoding are fixed independently of the runtime input.
Main results #
Turing.MultiTapeTM.ComputableInPolyTime.unary_finMod: modular finite indices.