File tree Expand file tree Collapse file tree 3 files changed +613
-3
lines changed Expand file tree Collapse file tree 3 files changed +613
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ HB.structure Definition ICMon := { T of isICMon T }.
4343
4444(***** wrapping *************************************************** *)
4545
46+
4647#[wrapper]
4748HB.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]
5556HB.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.
169174Qed .
170175
176+ Fail Check Type : Mon_enriched_quiver.type.
177+ Fail Check hom (nat:Type) nat: Mon.type.
178+
171179HB.instance Definition funQ_Monoid (A B: Type ) :
172180 isMon (hom A B) := funQ_isMon A B.
173181
174182Check Type : Mon_enriched_quiver.type.
183+ Check hom (nat:Type) nat: Mon.type.
184+
175185
176186(** INSTANCE 2 **********************************************
177187
Original file line number Diff line number Diff 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 :=
You can’t perform that action at this time.
0 commit comments