From 4fe4323eddb4f9e0ff9d7f923921f1ae6967a668 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Mon, 1 Aug 2016 16:03:28 -0700 Subject: Make Z.ltb_to_lt more powerful Now it handles <=?, >?, >=?, not just let H' := fresh in - rename H into H'; - pose proof (Zlt_cases x y) as H; - rewrite H' in H; - clear H' + => ltb_to_lt_with_hyp H (Zlt_cases x y) + | [ H : (?x <=? ?y) = ?b |- _ ] + => ltb_to_lt_with_hyp H (Zle_cases x y) + | [ H : (?x >? ?y) = ?b |- _ ] + => ltb_to_lt_with_hyp H (Zgt_cases x y) + | [ H : (?x >=? ?y) = ?b |- _ ] + => ltb_to_lt_with_hyp H (Zge_cases x y) end. Ltac compare_to_sgn := -- cgit v1.2.3