-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathAbelian_group_cat.v
56 lines (44 loc) · 2.47 KB
/
Abelian_group_cat.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(* This program is free software; you can redistribute it and/or *)
(* modify it under the terms of the GNU Lesser General Public License *)
(* as published by the Free Software Foundation; either version 2.1 *)
(* of the License, or (at your option) any later version. *)
(* *)
(* This program is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU General Public License for more details. *)
(* *)
(* You should have received a copy of the GNU Lesser General Public *)
(* License along with this program; if not, write to the Free *)
(* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *)
(* 02110-1301 USA *)
Set Implicit Arguments.
Unset Strict Implicit.
Require Export Group_cat.
(** Title "The categories of abelian semi-groups, monoids and groups." *)
Definition commutative (E : SET) (f : law_of_composition E) :=
forall x y : E, Equal (f (couple x y)) (f (couple y x)).
Record abelian_sgroup_on (A : sgroup) : Type :=
{abelian_sgroup_com_prf : commutative (sgroup_law_map A)}.
Record abelian_sgroup : Type :=
{abelian_sgroup_sgroup :> sgroup;
abelian_sgroup_on_def :> abelian_sgroup_on abelian_sgroup_sgroup}.
Coercion Build_abelian_sgroup : abelian_sgroup_on >-> abelian_sgroup.
Definition ABELIAN_SGROUP :=
full_subcat (C:=SGROUP) (C':=abelian_sgroup) abelian_sgroup_sgroup.
Record abelian_monoid_on (M : monoid) : Type :=
{abelian_monoid_abelian_sgroup :> abelian_sgroup_on M}.
Record abelian_monoid : Type :=
{abelian_monoid_monoid :> monoid;
abelian_monoid_on_def :> abelian_monoid_on abelian_monoid_monoid}.
Coercion Build_abelian_monoid : abelian_monoid_on >-> abelian_monoid.
Definition ABELIAN_MONOID :=
full_subcat (C:=MONOID) (C':=abelian_monoid) abelian_monoid_monoid.
Record abelian_group_on (G : group) : Type :=
{abelian_group_abelian_monoid :> abelian_monoid_on G}.
Record abelian_group : Type :=
{abelian_group_group :> group;
abelian_group_on_def :> abelian_group_on abelian_group_group}.
Coercion Build_abelian_group : abelian_group_on >-> abelian_group.
Definition ABELIAN_GROUP :=
full_subcat (C:=GROUP) (C':=abelian_group) abelian_group_group.