Math related to finite set and vectors, in Idris