English
There is a canonical arrow from α to the pair (drop α ::: last α) that splits α into its prefix and last element.
Русский
Существует каноническая стрела от α к паре (drop α ::: last α), разрушающая α на префикс и последний элемент.
LaTeX
$$$\mathrm{toAppend1DropLast} : \alpha \Rightarrow (\mathrm{drop}\alpha \; ::: \; \mathrm{last}\alpha)$$$
Lean4
/-- decompose a vector into its prefix appended with its last element -/
def toAppend1DropLast {α : TypeVec (n + 1)} : α ⟹ (drop α ::: last α) :=
Arrow.mpr (append1_drop_last _)