I have the following Ltac (from here), which used to work on Coq 8.4pl6, but it's not working on Coq 8.5 beta 3:
Ltac maybe_intro_sym A B :=
match goal with
|[H:B=A|-_] => fail 1
|[H:A=B|-_] => assert (B=A) by auto
end.
Ltac maybe_intro_sym_neg A B :=
match goal with
|[H:B<>A|-_] => fail 1
|[H:A<>B|-_] => assert (B<>A) by auto
end.
Ltac intro_sym :=
repeat match goal with
|[H:?A=?B|-_] => maybe_intro_sym A B
|[H:?A<>?B|-_] => maybe_intro_sym_neg A B
end.
I got an error message saying
Error: The reference B was not found
in the current environment.
I don't know enough about Ltac. Can anyone help explain how to fix this?
intro_sym
. – thorB
? – eponierSfLib.v
from described and available from cis.upenn.edu/~bcpierce/sf/current/SfLib.html to be included in other.v
files. This worked on Coq 8.4pl6 without a problem, but gave me the quoted error when 8.5beta3 is used. I am not sure if it could be a conflict with content in that file, but otherwise things are copy-pasted without missing a white space. – thor