cons and tail for maps Fin n →₀ M #
We interpret maps Fin n →₀ M as n-tuples of elements of M,
We define the following operations:
- Finsupp.tail: the tail of a map- Fin (n + 1) →₀ M, i.e., its last- nentries;
- Finsupp.cons: adding an element at the beginning of an- n-tuple, to get an- n + 1-tuple;
In this context, we prove some usual properties of tail and cons, analogous to those of
Data.Fin.Tuple.Basic.