Debian Codegraph @

src/Util/Tactics/ChangeInAll.v

raw
1 (** Work around "Cannot create self-referring hypothesis" coming from
2 [change x with y in *] *)
3 Ltac change_in_all from to :=
4 change from with to;
5 repeat match goal with
6 | [ H : _ |- _ ] => progress change from with to in H
7 end.
8
9 Ltac change_with_compute_in_all c :=
10 let c' := (eval compute in c) in
11 change c with c' in *.