From 05b530001f48a4544a9aaee7b8ff1a2abbe14e14 Mon Sep 17 00:00:00 2001 From: Jacques-Henri Jourdan <jacques-henri.jourdan@normalesup.org> Date: Fri, 6 Jan 2017 14:11:46 +0100 Subject: [PATCH] Recursive [inv_vec]. --- theories/prelude/vector.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theories/prelude/vector.v b/theories/prelude/vector.v index 6eb2cadab..ca76406ed 100644 --- a/theories/prelude/vector.v +++ b/theories/prelude/vector.v @@ -191,7 +191,8 @@ Ltac inv_vec v := | vec _ 0 => revert dependent v; match goal with |- ∀ v, @?P v => apply (vec_0_inv P) end | vec _ (S ?n) => - revert dependent v; match goal with |- ∀ v, @?P v => apply (vec_S_inv P) end + revert dependent v; match goal with |- ∀ v, @?P v => apply (vec_S_inv P) end; + try (let x := fresh "x" in intros x v; inv_vec v; revert x) end. (** The following tactic performs case analysis on all hypotheses of the shape -- GitLab