diff options
author | Jason Gross <jagro@google.com> | 2016-07-22 12:19:41 -0700 |
---|---|---|
committer | Jason Gross <jagro@google.com> | 2016-07-22 12:19:41 -0700 |
commit | 1f304caed78f9ccb4f94d100258ea43fbe76822b (patch) | |
tree | 3bad9377c664e376996a0549bd8a1d9b628b1f38 /src/Util/Tactics.v | |
parent | b14476875dafc015bd7c546388a480d177390162 (diff) |
Add ring_simplify_subterms
Diffstat (limited to 'src/Util/Tactics.v')
-rw-r--r-- | src/Util/Tactics.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util/Tactics.v b/src/Util/Tactics.v index 83ec603a0..c881478dd 100644 --- a/src/Util/Tactics.v +++ b/src/Util/Tactics.v @@ -300,3 +300,10 @@ Tactic Notation "rewrite_hyp" "<-" "?*" "in" "*" := repeat do_with_hyp' ltac:(fu Tactic Notation "rewrite_hyp" "!*" "in" "*" := progress rewrite_hyp ?* in *. Tactic Notation "rewrite_hyp" "->" "!*" "in" "*" := progress rewrite_hyp -> ?* in *. Tactic Notation "rewrite_hyp" "<-" "!*" "in" "*" := progress rewrite_hyp <- ?* in *. + +(** 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. |