aboutsummaryrefslogtreecommitdiff
path: root/src/Util/ChangeInAll.v
blob: 39a0312075d737c71cc8c8916bb6b4559eda3a9c (plain)
1
2
3
4
5
6
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.