Fixpoint tailOpt(A : Set)(n : nat)(v : Vector.t A n) : option (Vector.t A (pred n)):=
  match v with
    | [] => None
    | Vector.cons _ _ _ v => Some v
  end.

Lemma BVxor_id_inv : forall n (v1 v2 : Bvector n), BVxor n v1 v2 = Bvect_false n -> v1 = v2.