| 1 |
From Coq Require Import ZArith. |
| 2 |
Module Z. |
| 3 |
Ltac compare_to_sgn := |
| 4 |
repeat match goal with |
| 5 |
| [ H : _ |- _ ] => progress rewrite <- ?Z.sgn_neg_iff, <- ?Z.sgn_pos_iff, <- ?Z.sgn_null_iff in H |
| 6 |
| _ => progress rewrite <- ?Z.sgn_neg_iff, <- ?Z.sgn_pos_iff, <- ?Z.sgn_null_iff |
| 7 |
end. |
| 8 |
End Z. |