Skip to content
Snippets Groups Projects
Commit 72bb9beb authored by Ralf Jung's avatar Ralf Jung
Browse files

f_equiv: do syntactic matching before attemtping reflexivity

parent 875dacf5
No related branches found
No related tags found
1 merge request!325f_equiv optimizations
......@@ -413,7 +413,9 @@ Ltac f_equiv :=
| H : _ ?f ?g |- ?R (?f ?x) (?g ?x) => solve [simple apply H]
| H : _ ?f ?g |- ?R (?f ?x ?y) (?g ?x ?y) => solve [simple apply H]
end;
try simple apply reflexivity.
(* Only try reflexivity if the terms are syntactically equal. This avoids
very expensive failing unification. *)
try match goal with |- _ ?x ?x => simple apply reflexivity end.
Tactic Notation "f_equiv" "/=" := csimpl in *; f_equiv.
(** The tactic [solve_proper_unfold] unfolds the first head symbol, so that
......
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