Skip to content
Snippets Groups Projects
Commit 6907a08a authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Make collection tactics work with guards.

parent 0ec18c14
No related branches found
No related tags found
No related merge requests found
......@@ -182,6 +182,7 @@ Ltac unfold_elem_of :=
| context [ _ mret _ ] => setoid_rewrite elem_of_ret in H
| context [ _ _ ≫= _ ] => setoid_rewrite elem_of_bind in H
| context [ _ mjoin _ ] => setoid_rewrite elem_of_join in H
| context [ _ guard _; _ ] => setoid_rewrite elem_of_guard in H
end);
repeat match goal with
| |- context [ _ _ ] => setoid_rewrite elem_of_subseteq
......@@ -199,6 +200,7 @@ Ltac unfold_elem_of :=
| |- context [ _ mret _ ] => setoid_rewrite elem_of_ret
| |- context [ _ _ ≫= _ ] => setoid_rewrite elem_of_bind
| |- context [ _ mjoin _ ] => setoid_rewrite elem_of_join
| |- context [ _ guard _; _ ] => setoid_rewrite elem_of_guard
end.
(** The tactic [solve_elem_of tac] composes the above tactic with [intuition].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment