=DEPRECATED=- Totality: total
Visibility: public export =DEPRECATED=- Totality: total
Visibility: export =DEPRECATED=- Totality: total
Visibility: export =DEPRECATED=- Totality: total
Visibility: export =DEPRECATED=- Totality: total
Visibility: export A view of Nat as a quotient of some number and a finite remainder.
Totality: total
Visibility: public export
Constructor:
Converts Nat to the fractional view with a non-zero divisor.
Totality: total
Visibility: export Compute n % m as a Fin with upper bound m.
Useful, for example, when iterating through a large index, computing
subindices as a function of the larger index (e.g. a flattened 2D-array)
Totality: total
Visibility: export Tighten the bound on a Fin by taking its current bound modulo the given
non-zero number.
Totality: total
Visibility: export Total function to convert a nat to a Fin, given a proof
that it is less than the bound.
Totality: total
Visibility: public export Converting from a Nat to a Fin and back is the identity.
Totality: total
Visibility: public export