Soegtrop, Michael
2015-02-10 16:01:09 UTC
Dear Coq users,
I have difficulties to show the following:
Require Import Vector.
Lemma Vector_0_is_nil: forall (T : Type) (v : Vector.t T 0), v = Vector.nil T.
Since Vector.nil is the only constructor for vectors of length 0, this should be the case, but I can't find a way to prove it. Inversion on v yields nothing and tactics like destruct and induction lead to type checker errors. Also generalizing over arbitrary length with hypothesis n=0 leads to type checker errors.
Best regards,
Mich
I have difficulties to show the following:
Require Import Vector.
Lemma Vector_0_is_nil: forall (T : Type) (v : Vector.t T 0), v = Vector.nil T.
Since Vector.nil is the only constructor for vectors of length 0, this should be the case, but I can't find a way to prove it. Inversion on v yields nothing and tactics like destruct and induction lead to type checker errors. Also generalizing over arbitrary length with hypothesis n=0 leads to type checker errors.
Best regards,
Mich