open import Pervasives type bit = B0 | B1 | BU type vector 'a = Vector of list 'a * nat let rec nth xs (n : nat) = match (n,xs) with | (0,x :: xs) -> x | (n + 1,x :: xs) -> nth xs n end