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
Fixity Declaration: infixl operator, level 9 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
Fixity Declaration: infixl operator, level 8 A view of Nat as a quotient of some number and a finite remainder.
Totality: total
Constructor:
- Totality: total
- Totality: total
Converts Nat to the fractional view with a non-zero divisor.
Totality: total A Fin's underlying natural number is smaller than the bound
Totality: total Last's underlying natural number is the bound's predecessor
Totality: total- Totality: total
- Totality: total
`Shift k` shifts the underlying natural number by `k`.
Totality: total WeakenN does not modify the underlying natural number
Totality: total Weaken does not modify the underlying natural number
Totality: total- Totality: total
- Totality: total
Calculates the index of a square matrix of size `a * b` by indices of each side.
Totality: total- Totality: total
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- Totality: total
Compute the Fin such that `k + invFin k = n - 1`
Totality: total `invFin` is involutive (i.e. applied twice it is the identity)
Totality: total- Totality: total
- Totality: total
The inverse of a weakened element is the successor of its inverse
Totality: total- Totality: total
Total function to convert a nat to a Fin, given a proof
that it is less than the bound.
Totality: total Converting from a Nat to a Fin and back is the identity.
Totality: total- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
- Totality: total
Splits the index of a square matrix of size `a * b` to indices of each side.
Totality: total 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- Totality: total
- Totality: total
Either tightens the bound on a Fin or proves that it's the last.
Totality: total It's not possible to strengthen the last element of Fin **n**.
Totality: total It's possible to strengthen the inverse of a succesor
Totality: total It's possible to strengthen a weakened element of Fin **m**.
Totality: total- Totality: total
- Totality: total
- Totality: total
- Totality: total