aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Structures/OrdersFacts.v
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-02-12 16:03:55 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-02-12 16:03:55 +0000
commit1826065d7603d0993b78829856a5725f253c782d (patch)
tree67f82826fee80d3124f8a2e670f3c75310d77ff6 /theories/Structures/OrdersFacts.v
parent08528250663d850bc56c48dfaab9f5d71e1e7dee (diff)
CompSpecType, a clone of CompSpec but in Type instead of Prop
In interfaces fields like compare_spec, a CompSpec is prefered to get nice extraction, but then no "destruct (compare_spec .. ..)" is possible in a Type context. Now you can say there "destruct (CompSpec2Type (compare_spec ... ...))" This translate to the Type variant, and make the analysis on it (which is equivalent to analysing the comparison directly). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12753 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Structures/OrdersFacts.v')
-rw-r--r--theories/Structures/OrdersFacts.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/theories/Structures/OrdersFacts.v b/theories/Structures/OrdersFacts.v
index a318ecb85..a28b79776 100644
--- a/theories/Structures/OrdersFacts.v
+++ b/theories/Structures/OrdersFacts.v
@@ -134,8 +134,8 @@ Module OrderedTypeFacts (Import O: OrderedType').
Lemma lt_dec : forall x y : t, {lt x y} + {~ lt x y}.
Proof.
- intros; assert (H:=compare_spec x y); destruct (compare x y);
- [ right | left | right ]; inversion_clear H; order.
+ intros x y; destruct (CompSpec2Type (compare_spec x y));
+ [ right | left | right ]; order.
Defined.
Definition eqb x y : bool := if eq_dec x y then true else false.