diff options
Diffstat (limited to 'src/Util/ChangeInAll.v')
-rw-r--r-- | src/Util/ChangeInAll.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util/ChangeInAll.v b/src/Util/ChangeInAll.v new file mode 100644 index 000000000..39a031207 --- /dev/null +++ b/src/Util/ChangeInAll.v @@ -0,0 +1,7 @@ +(** Work around "Cannot create self-referring hypothesis" coming from + [change x with y in *] *) +Ltac change_in_all from to := + change from with to; + repeat match goal with + | [ H : _ |- _ ] => progress change from with to in H + end. |