我如何证明以下琐碎的引理:
Require Import Vector.
Lemma t0_nil: forall A (x:t A 0), x = nil A.
Proof.
Qed.
常见问题解答建议decide equality
和discriminate
策略,但我找不到应用其中任何一个的方法。作为参考,这里是归纳定义:
Inductive t A : nat -> Type :=
|nil : t A 0
|cons : forall (h:A) (n:nat), t A n -> t A (S n).