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 mapFin (n + 1) →₀ M
, i.e., its lastn
entries;Finsupp.cons
: adding an element at the beginning of ann
-tuple, to get ann + 1
-tuple;
In this context, we prove some usual properties of tail
and cons
, analogous to those of
Data.Fin.Tuple.Basic
.
theorem
Finsupp.cons_support
{n : ℕ}
{M : Type u_1}
[Zero M]
{y : M}
{s : Fin n →₀ M}
:
(cons y s).support ⊆ insert 0 (Finset.map (Fin.succEmb n) s.support)