Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to https://github.com/coq/coq/pull/18590 #142

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions theories/Programming/Eqv.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Class Eqv T := eqv : T -> T -> Prop.
Definition neg_eqv {T} {E:Eqv T} (x:T) (y:T) : Prop := not (eqv x y).

Class EqvWF T :=
{ eqvWFEqv :> Eqv T
; eqvWFEquivalence :> Equivalence eqv
{ eqvWFEqv : Eqv T
; eqvWFEquivalence : Equivalence eqv
}.
#[global] Existing Instance eqvWFEqv.
#[global] Existing Instance eqvWFEquivalence.
#[global]
Instance EqvWF_Build {T} {E:Eqv T} {EV:Equivalence eqv} : EqvWF T :=
{ eqvWFEqv := E ; eqvWFEquivalence := EV }.
Expand Down
6 changes: 4 additions & 2 deletions theories/Programming/Le.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ Proof. constructor.
Qed.

Class LteWF T :=
{ lteWFLte :> Lte T
; lteWFPreOrder :> PreOrder lte
{ lteWFLte : Lte T
; lteWFPreOrder : PreOrder lte
}.
#[global] Existing Instance lteWFLte.
#[global] Existing Instance lteWFPreOrder.

#[global]
Instance LteWF_Build {T} {L:Lte T} {PO:PreOrder lte} : LteWF T :=
Expand Down
9 changes: 6 additions & 3 deletions theories/Structures/Monoid.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ Section Monoid.
}.

Class MonoidLaws@{} (M : Monoid) : Type :=
{ monoid_assoc :> Associative M.(monoid_plus) eq
; monoid_lunit :> LeftUnit M.(monoid_plus) M.(monoid_unit) eq
; monoid_runit :> RightUnit M.(monoid_plus) M.(monoid_unit) eq
{ monoid_assoc : Associative M.(monoid_plus) eq
; monoid_lunit : LeftUnit M.(monoid_plus) M.(monoid_unit) eq
; monoid_runit : RightUnit M.(monoid_plus) M.(monoid_unit) eq
}.
#[global] Existing Instance monoid_assoc.
#[global] Existing Instance monoid_lunit.
#[global] Existing Instance monoid_runit.

End Monoid.
Loading