Skip to content

Commit

Permalink
non-looping rwHyps
Browse files Browse the repository at this point in the history
  • Loading branch information
aa755 authored and liyishuai committed Jan 10, 2024
1 parent 6da5cc8 commit 5713ab9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions theories/Tactics/Forward.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ Ltac forward_reason :=

Ltac rwHyps :=
repeat match goal with
[ H: _ = _ |- _] => rewrite -> H
end.
[ H: ?l = ?r |- _] =>
match r with
| context [l] => idtac
| _ => rewrite -> H
end

Ltac rwHypsR :=
repeat match goal with
Expand Down

0 comments on commit 5713ab9

Please sign in to comment.