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

Generalize setoid_subst.

parent 404f1473
No related branches found
No related tags found
No related merge requests found
......@@ -207,9 +207,9 @@ Ltac f_lia :=
end.
Ltac f_lia' := csimpl in *; f_lia.
Ltac setoid_subst_l x :=
Ltac setoid_subst_aux R x :=
match goal with
| H : x ?y |- _ =>
| H : R x ?y |- _ =>
is_var x;
try match y with x _ => fail 2 end;
repeat match goal with
......@@ -223,8 +223,8 @@ Ltac setoid_subst_l x :=
Ltac setoid_subst :=
repeat match goal with
| _ => progress simplify_equality'
| H : ?x _ |- _ => setoid_subst_l x
| H : _ ?x |- _ => symmetry in H; setoid_subst_l x
| H : @equiv _ ?e ?x _ |- _ => setoid_subst_aux (@equiv _ e) x
| H : @equiv _ ?e _ ?x |- _ => symmetry in H; setoid_subst_aux (@equiv _ e) x
end.
(** Given a tactic [tac2] generating a list of terms, [iter tac1 tac2]
......
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