A Fin's underlying natural number is smaller than the bound
Totality: total
Visibility: export Last's underlying natural number is the bound's predecessor
Totality: total
Visibility: export Weaken does not modify the underlying natural number
Totality: total
Visibility: export WeakenN does not modify the underlying natural number
Totality: total
Visibility: export `Shift k` shifts the underlying natural number by `k`.
Totality: total
Visibility: export Compute the Fin such that `k + invFin k = n - 1`
Totality: total
Visibility: public export- Totality: total
Visibility: export The inverse of a weakened element is the successor of its inverse
Totality: total
Visibility: export- Totality: total
Visibility: export `invFin` is involutive (i.e. applied twice it is the identity)
Totality: total
Visibility: export It's possible to strengthen a weakened element of Fin **m**.
Totality: total
Visibility: export It's not possible to strengthen the last element of Fin **n**.
Totality: total
Visibility: export It's possible to strengthen the inverse of a succesor
Totality: total
Visibility: export Either tightens the bound on a Fin or proves that it's the last.
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- Totality: total
Visibility: export - Totality: total
Visibility: export - 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 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 Addition of `Fin`s as bounded naturals.
The resulting type has the smallest possible bound
as illustated by the relations with the `last` function.
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 8 Multiplication of `Fin`s as bounded naturals.
The resulting type has the smallest possible bound
as illustated by the relations with the `last` function.
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 9- Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export Converts `Fin`s that are used as indexes of parts to an index of a sum.
For example, if you have a `Vect` that is a concatenation of two `Vect`s and
you have an index either in the first or the second of the original `Vect`s,
using this function you can get an index in the concatenated one.
Totality: total
Visibility: public export Extracts an index of the first or the second part from the index of a sum.
For example, if you have a `Vect` that is a concatenation of the `Vect`s and
you have an index of this `Vect`, you have get an index of either left or right
original `Vect` using this function.
Totality: total
Visibility: public export Calculates the index of a square matrix of size `a * b` by indices of each side.
Totality: total
Visibility: public export Splits the index of a square matrix of size `a * b` to indices of each side.
Totality: total
Visibility: public export- Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export - Totality: total
Visibility: export