File tree 3 files changed +14
-7
lines changed
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ Class Eqv T := eqv : T -> T -> Prop.
6
6
Definition neg_eqv {T} {E:Eqv T} (x:T) (y:T) : Prop := not (eqv x y).
7
7
8
8
Class EqvWF T :=
9
- { eqvWFEqv :> Eqv T
10
- ; eqvWFEquivalence :> Equivalence eqv
9
+ { eqvWFEqv : Eqv T
10
+ ; eqvWFEquivalence : Equivalence eqv
11
11
}.
12
+ #[global] Existing Instance eqvWFEqv.
13
+ #[global] Existing Instance eqvWFEquivalence.
12
14
#[global]
13
15
Instance EqvWF_Build {T} {E:Eqv T} {EV:Equivalence eqv} : EqvWF T :=
14
16
{ eqvWFEqv := E ; eqvWFEquivalence := EV }.
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ Proof. constructor.
27
27
Qed .
28
28
29
29
Class LteWF T :=
30
- { lteWFLte :> Lte T
31
- ; lteWFPreOrder :> PreOrder lte
30
+ { lteWFLte : Lte T
31
+ ; lteWFPreOrder : PreOrder lte
32
32
}.
33
+ #[global] Existing Instance lteWFLte.
34
+ #[global] Existing Instance lteWFPreOrder.
33
35
34
36
#[global]
35
37
Instance LteWF_Build {T} {L:Lte T} {PO:PreOrder lte} : LteWF T :=
Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ Section Monoid.
14
14
}.
15
15
16
16
Class MonoidLaws@{} (M : Monoid) : Type :=
17
- { monoid_assoc :> Associative M.(monoid_plus) eq
18
- ; monoid_lunit :> LeftUnit M.(monoid_plus) M.(monoid_unit) eq
19
- ; monoid_runit :> RightUnit M.(monoid_plus) M.(monoid_unit) eq
17
+ { monoid_assoc : Associative M.(monoid_plus) eq
18
+ ; monoid_lunit : LeftUnit M.(monoid_plus) M.(monoid_unit) eq
19
+ ; monoid_runit : RightUnit M.(monoid_plus) M.(monoid_unit) eq
20
20
}.
21
+ #[global] Existing Instance monoid_assoc.
22
+ #[global] Existing Instance monoid_lunit.
23
+ #[global] Existing Instance monoid_runit.
21
24
22
25
End Monoid.
You can’t perform that action at this time.
0 commit comments