Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added definition for cyclic' to AbGroups/Cyclic.v #2050

Merged
merged 4 commits into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions theories/Algebra/AbGroups/Cyclic.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Definition Z1 := FreeGroup Unit.
Definition Z1_gen : Z1 := freegroup_in tt. (* The generator *)

(** The recursion principle of [Z1] and its computation rule. *)
Definition Z1_rec {G : Group@{u}} (g : G) : Z1 $-> G
Definition Z1_rec {G : Group} (g : G) : Z1 $-> G
:= FreeGroup_rec Unit G (unit_name g).

Definition Z1_rec_beta {G : Group} (g : G) : Z1_rec g Z1_gen = g
Expand Down Expand Up @@ -76,5 +76,11 @@ Definition Z1_to_Z `{Funext} : ab_Z1 $-> abgroup_Z
(** * Finite cyclic groups *)

(** The [n]-th cyclic group is the cokernel of [Z1_mul_nat n]. *)
Definition cyclic@{u v | u < v} `{Funext} (n : nat) : AbGroup@{u}
:= ab_cokernel@{u v} (Z1_mul_nat n).
Definition cyclic `{Funext} (n : nat) : AbGroup
:= ab_cokernel (Z1_mul_nat n).

(** ** Alternative definition of cyclic group *)

(** The [n]-th cyclic group is the cokernel of [ab_mul n]. *)
Definition cyclic' (n : nat) : AbGroup
:= ab_cokernel (ab_mul (A:=abgroup_Z) n).
Loading