Skip to content

Commit d3dcf35

Browse files
committed
AbEnriched: add comment about redundant fields in IsAbGroup_0gpd
1 parent f79ea7c commit d3dcf35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

theories/WildCat/AbEnriched.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Require Export Classes.interfaces.canonical_names (SgOp, sg_op,
99
MonUnit, mon_unit, Inverse, inv).
1010
Export canonical_names.BinOpNotations.
1111

12+
Local Open Scope mc_add_scope.
13+
1214
(** * Wild categories enriched in abelian groups *)
1315

1416
(** ** 0-groupoid abelian groups *)
1517

16-
(** Hom sets in wild categories are 0-groupoids, and we'd like to put an abelian group structure on these hom sets that satisfies the axioms up to 1-cells, to avoid needing function extensionality. So we define the abstract idea of a 0-groupoid with an abelian group structure. Because we use 1-cells, not paths, we can't reuse any of the work done in Algebra/Groups or Algebra/AbGroups. *)
17-
18-
Local Open Scope mc_add_scope.
18+
(** Hom sets in wild categories are 0-groupoids, and we'd like to put an abelian group structure on these hom sets that satisfies the axioms up to 1-cells, to avoid needing function extensionality. So we define the abstract idea of a 0-groupoid with an abelian group structure. Because we use 1-cells, not paths, we can't reuse any of the work done in Algebra/Groups or Algebra/AbGroups. Note that our definition has redundant fields, which could be filled in using a "smart constructor": [is0functor_inverse_0gpd], [mon_unit_r_0gpd], [inverse_r_0gpd] and the fact that [sgop_0gpd] is a 0-functor in the second variable. *)
1919

2020
Class IsAbGroup_0gpd (A : Type) `{Is0Gpd A} := {
2121
(* Data: *)
@@ -27,7 +27,7 @@ Class IsAbGroup_0gpd (A : Type) `{Is0Gpd A} := {
2727
is0bifunctor_sgop_0gpd :: Is0Bifunctor sgop_0gpd;
2828
is0functor_inverse_0gpd :: Is0Functor inverse_0gpd;
2929

30-
(* Axioms (with some redundancy): *)
30+
(* Axioms: *)
3131
assoc_0gpd : forall a b c, (a + b) + c $== a + (b + c);
3232
mon_unit_l_0gpd : forall a, 0 + a $== a;
3333
mon_unit_r_0gpd : forall a, a + 0 $== a;

0 commit comments

Comments
 (0)