Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Oct 4, 2023
1 parent 08ee5d0 commit eadbd02
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/enriched_cat_case1.v
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Structure: Monoid (from isMon)
HB.instance Definition funQ := isQuiver.Build Type
(fun A B => A -> option B).

Check Type : Quiver.type.

Definition funQ_comp {A B: Type} (f g: hom A B) : hom A B :=
fun x =>
match f x with
Expand Down Expand Up @@ -168,7 +170,8 @@ Qed.
HB.instance Definition funQ_Monoid (A B: Type) :
isMon (hom A B) := funQ_isMon A B.


Check Type : Mon_enriched_quiver.type.

(** INSTANCE 2 **********************************************
Object: ICMon.type
Expand Down Expand Up @@ -266,12 +269,13 @@ Obligation 2.
eapply icmfunQ_isMon.
Qed.

Fail HB.instance Definition icmfunQ_isMonoid (A B: ICMon.type) :
HB.instance Definition icmfunQ_isMonoid (A B: ICMon.type) :
isMon (hom A B) := icmfunQ_isMon A B.

Fail HB.instance Definition icmfunQ_isICAlgebra (A B: ICMon.type) :
HB.instance Definition icmfunQ_isICAlgebra (A B: ICMon.type) :
isICAlg (hom A B) := icmfunQ_isICAlg A B.

Fail HB.instance Definition icmfunQ_isICMonoid (A B: ICMon.type) :
HB.instance Definition icmfunQ_isICMonoid (A B: ICMon.type) :
isICMon (hom A B) := icmfunQ_isICMon A B.

Check ICMon.type : ICAlg_enriched_quiver.type.

0 comments on commit eadbd02

Please sign in to comment.