diff options
Diffstat (limited to 'theories/Structures')
| -rw-r--r-- | theories/Structures/DecidableType2.v | 2 | ||||
| -rw-r--r-- | theories/Structures/OrderTac.v | 6 | ||||
| -rw-r--r-- | theories/Structures/OrderedType2.v | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/theories/Structures/DecidableType2.v b/theories/Structures/DecidableType2.v index 087a6a7ddf..0957ef2430 100644 --- a/theories/Structures/DecidableType2.v +++ b/theories/Structures/DecidableType2.v @@ -23,7 +23,7 @@ End BareEquality. (** * Specification of the equality by the Type Classe [Equivalence] *) Module Type IsEq (Import E:BareEquality). - Instance eq_equiv : Equivalence eq. + Declare Instance eq_equiv : Equivalence eq. Hint Resolve (@Equivalence_Reflexive _ _ eq_equiv). Hint Resolve (@Equivalence_Transitive _ _ eq_equiv). Hint Immediate (@Equivalence_Symmetric _ _ eq_equiv). diff --git a/theories/Structures/OrderTac.v b/theories/Structures/OrderTac.v index 8a36356867..f75e1ae913 100644 --- a/theories/Structures/OrderTac.v +++ b/theories/Structures/OrderTac.v @@ -31,9 +31,9 @@ Module Type OrderSig. Parameter Inline t : Type. Parameters eq lt le : t -> t -> Prop. -Instance eq_equiv : Equivalence eq. -Instance lt_strorder : StrictOrder lt. -Instance lt_compat : Proper (eq==>eq==>iff) lt. +Declare Instance eq_equiv : Equivalence eq. +Declare Instance lt_strorder : StrictOrder lt. +Declare Instance lt_compat : Proper (eq==>eq==>iff) lt. Parameter lt_total : forall x y, lt x y \/ eq x y \/ lt y x. Parameter le_lteq : forall x y, le x y <-> lt x y \/ eq x y. diff --git a/theories/Structures/OrderedType2.v b/theories/Structures/OrderedType2.v index 310f99a4a4..be7ec153bb 100644 --- a/theories/Structures/OrderedType2.v +++ b/theories/Structures/OrderedType2.v @@ -18,8 +18,8 @@ Module Type MiniOrderedType. Include Type EqualityType. Parameter Inline lt : t -> t -> Prop. - Instance lt_strorder : StrictOrder lt. - Instance lt_compat : Proper (eq==>eq==>iff) lt. + Declare Instance lt_strorder : StrictOrder lt. + Declare Instance lt_compat : Proper (eq==>eq==>iff) lt. Parameter Inline compare : t -> t -> comparison. Axiom compare_spec : forall x y, CompSpec eq lt x y (compare x y). @@ -63,10 +63,10 @@ Module Type UsualOrderedType. Include Type UsualDecidableType. Parameter Inline lt : t -> t -> Prop. - Instance lt_strorder : StrictOrder lt. + Declare Instance lt_strorder : StrictOrder lt. (* The following is useless since eq is Leibniz, but should be there for subtyping... *) - Instance lt_compat : Proper (eq==>eq==>iff) lt. + Declare Instance lt_compat : Proper (eq==>eq==>iff) lt. Parameter Inline compare : t -> t -> comparison. Axiom compare_spec : forall x y, CompSpec eq lt x y (compare x y). |
