Definition tail {A: UU}: list A → maybe (list A). Proof. apply list_ind. - exact nothing. - exact (λ x xs IH, ii1 xs). Defined.
Require Import UniMath.Foundations.NaturalNumbers. Require Import UniMath.Combinatorics.Vectors.