aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--theories/Init/Tactics.v23
1 files changed, 23 insertions, 0 deletions
diff --git a/theories/Init/Tactics.v b/theories/Init/Tactics.v
new file mode 100644
index 000000000..fcdbc6e87
--- /dev/null
+++ b/theories/Init/Tactics.v
@@ -0,0 +1,23 @@
+(************************************************************************)
+(* v * The Coq Proof Assistant / The Coq Development Team *)
+(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(************************************************************************)
+
+(*i $Id$ i*)
+
+Require Import Notations.
+Require Import Logic.
+
+(** Useful tactics *)
+
+Ltac rewrite_all Eq := match type of Eq with
+ ?a = ?b =>
+ generalize Eq; clear Eq;
+ match goal with
+ | H : context [a] |- _ => intro Eq; rewrite Eq in H; rewrite_all Eq
+ | _ => intro Eq
+ end
+ end.