I want to define equality among vectors.
The definition I thought of is that "two vectors are equal if and only if their types and all of their elements are equal".
So, I want to prove that my definition doesn't have a contradiction.
Require Import Psatz.
Require Import Coq.Vectors.Vector.
Definition kLess : forall (k P:nat), (P - k) < (S P).
intros. lia.
Defined.
Lemma aaa {n A}(v1 v2:t A (S n)): (forall k:nat, nth_order v1 (kLess k n) = nth_order v2 (kLess k n)) -> v1 = v2.
Proof.
intro IH.
induction n.
Abort.
I don't know what to do more.
Please tell me your methods.