diff options
author | Jason Gross <jgross@mit.edu> | 2017-04-05 02:53:02 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-04-05 02:53:02 -0400 |
commit | 208e82769300c888d34fb94266b74a3906125789 (patch) | |
tree | 97c7821c272b9a83ed9652fc3f87a50906c2ffd8 | |
parent | 5562729887f61affeb12c5566f1b26eaf2727893 (diff) |
Actually add ChangeInAll
-rw-r--r-- | _CoqProject | 1 | ||||
-rw-r--r-- | src/Util/ChangeInAll.v | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/_CoqProject b/_CoqProject index 94bbdc0b7..0a833fdfb 100644 --- a/_CoqProject +++ b/_CoqProject @@ -247,6 +247,7 @@ src/Util/Bool.v src/Util/BoundedWord.v src/Util/CPSUtil.v src/Util/CaseUtil.v +src/Util/ChangeInAll.v src/Util/Curry.v src/Util/Decidable.v src/Util/Equality.v 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. |