Skip to content

Commit 39361f5

Browse files
committed
added enriched_cat_case6.v
1 parent 101a634 commit 39361f5

File tree

3 files changed

+613
-3
lines changed

3 files changed

+613
-3
lines changed

Diff for: tests/enriched_cat_case1.v

+10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ HB.structure Definition ICMon := { T of isICMon T }.
4343

4444
(***** wrapping ****************************************************)
4545

46+
4647
#[wrapper]
4748
HB.mixin Record hom_isMagma T of Quiver T :=
4849
{ hom_isMagma_private : forall A B, isMagma (@hom T A B) }.
@@ -54,6 +55,10 @@ HB.structure
5455
#[wrapper]
5556
HB.mixin Record hom_isMon T of Quiver T :=
5657
{ hom_isMon_private : forall A B, Mon (@hom T A B) }.
58+
#[verbose]
59+
HB.structure
60+
Definition Mon_enriched_quiver :=
61+
{ Obj of isQuiver Obj & hom_isMon Obj }.
5762
*)
5863
(* need to add explicitly Magma_enriched_quiver, otherwise switch
5964
from mixin to structure *)
@@ -168,10 +173,15 @@ Obligation 3.
168173
destruct (x a); auto.
169174
Qed.
170175

176+
Fail Check Type : Mon_enriched_quiver.type.
177+
Fail Check hom (nat:Type) nat: Mon.type.
178+
171179
HB.instance Definition funQ_Monoid (A B: Type) :
172180
isMon (hom A B) := funQ_isMon A B.
173181

174182
Check Type : Mon_enriched_quiver.type.
183+
Check hom (nat:Type) nat: Mon.type.
184+
175185

176186
(** INSTANCE 2 **********************************************
177187

Diff for: tests/enriched_cat_case5.v

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ HB.factory Record isMICAlg T of Mon T := {
144144
amidem : idempotent amop;
145145
}.
146146

147-
HB.builders Context T (f : isMICAlg T).
147+
HB.builders Context T (_ : isMICAlg T).
148148

149149
Lemma amop_mop_eq : amop = mop.
150-
destruct f; simpl.
150+
(* destruct f; simpl. *)
151151
eapply functional_extensionality; intro.
152152
eapply functional_extensionality; intro.
153-
auto.
153+
apply ameq.
154154
Qed.
155155

156156
Definition dum_comm :=

0 commit comments

Comments
 (0)