aboutsummaryrefslogtreecommitdiff
path: root/src/Util/Tactics/OnSubterms.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/Tactics/OnSubterms.v')
-rw-r--r--src/Util/Tactics/OnSubterms.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Util/Tactics/OnSubterms.v b/src/Util/Tactics/OnSubterms.v
new file mode 100644
index 000000000..0aabf80c8
--- /dev/null
+++ b/src/Util/Tactics/OnSubterms.v
@@ -0,0 +1,6 @@
+(** Execute [progress tac] on all subterms of the goal. Useful for things like [ring_simplify]. *)
+Ltac tac_on_subterms tac :=
+ repeat match goal with
+ | [ |- context[?t] ]
+ => progress tac t
+ end.