Try   HackMD

In this short note, we discuss subgroups, cosets and prove Lagrange's theorem. These algebraic concepts come up in various places in cryptography research and can be important to internalize.

We start with some simple facts. Given a group

(G,), a subgroup
(H,)(G,)
has the same composition rules as the original group, has the same identity element
e
, and composition of two of its elements remains within the subgroup (closed under composition). Composition is associative and the inverse elements are part of the subgroup as well. In other words,
(H,)
has all the properties of a group in itself.
G
itself and
{e}
are both subgroups of
G
, although
G
is not a proper subgroup.

Lagrange's theorem is about the orders (or cardinalities) of the subgroups of a group. Given a group

(G,) of order
|G|
, its subgroups cannot simply have any arbitrary order. Langrange's theorem states that the order of any subgroup
(H,)
of
(G,)
must have an order
|H|
, that divides
|G|
, i.e.
kN
such that
|G|=k|H|
.

This is due to the idea of cosets, (non-intersecting) partitionings of a group, associated with any one of its given subgroups. We will show that each coset in a partition associated with a subgroup has the same cardinality. Therefore, the cardinality of a coset in a partition must divide the order of the group. Further, the subgroup itself is one of the cosets of the partition associated with itself and therefore has an order that divides the order of the group as well.

The notation used for a left coset of

H is
gH
. It is the set
gH={hH|gh}
where
g
can be any element of
G
. If
g=e
, the identity element, then
gH=H
and this is the only coset in the partition associated with
H
that is a subgroup. The rest of the cosets are not groups themselves since they do not intersect with
H
and therefore do not contain the identity element
e
, which is a requirement for being a group.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

In the figure above, left cosets associated with the subgroup

H of group
G
are shown as an example. All the cosets have the same order
|H|
, they partition the entire group
G
, and do not intersect with each other. The only subgroup in the partition is
H=eH
itself. Note that multiple (
|G|/|H|
to be precise) group elements,
g+,gG
will map the subgroup
H
into the same coset,
g+H=gH
, in general. Further,
gigiH
is also easy to show, as
eH
.


An algorithm to find cosets: In order to obtain all the left cosets associated with a subgroup

H, we start with the identity element of the group
g0=e
and a set of cosets,
CH={g0H=eH=H}
, which we will incrementally grow.

At each step, we pick an element of

G that is not in any of the cosets in
CH
so far. In the first step, this corresponds to a
g1G
s.t.
g1H
. Then, the second coset associated with
H
is chosen as
g1H
. This is added to the set, which becomes
CH={H,g1H}
.

In the second step, we again pick an element of

G that is not in any of the cosets in
CH
so far. This corresponds to a
g2G
s.t.
g2Hg1H
. Then, the third coset associated with
H
is chosen as
g2H
. This is added to the set as well, which becomes
CH={H,g1H,g2H}
.

We continue this process until we run out of elements of

G that are not in the set of cosets so far and we end up with the set of cosets
CH={H,g1H,...,gk1H}
. In the next section, we will analyze some of the properties of this resulting set to prove Lagrange's theorem we introduced earlier.


Lagrange's theorem: Lagrange's theorem states that any subgroup

H of a group
G
has an order that evenly divides the order of the group, i.e.
|G|/|H|=kN
.

We analyze the coset algorithm and its output to prove this theorem. Given that the algorithm generates a set of cosets associated with subgroup

H,
CH={H,g1H,...,gk1H}
, if each set within
CH
has the same cardinality, its elements collectively partition (meaning no intersecting) and cover the group
G
, then
|G|/|H|=kN
follows.

CH covers
G
:
Consider the case where
CH
did not cover
G
after the algorithm terminates. In that case, there would exists a
g+G
that is not part of any element of
CH
and the algorithm could not terminate as there would be another step where a new coset would be added. This leads to a contradiction.

Every element of

G is in some coset in
CH
.

CH partitions
G
:
It is easy to see that every element of each coset in
CH
is in
G
due to the fact that groups are closed under composition. Taken together with with the fact that
CH
covers
G
, we can conclude that the union of all cosets in
CH
is simply
G
,
giH=G
.

Based on the above, in order to show that

CH partitions
G
, we only need to show that these cosets are non-intersecting with each other. In other words, we need to show that
(i,j){1,...,k}2
s.t.
ij
,
giHgjH=
, i.e. their intersection is empty. This requires some care.

Cosets in

CH are non-intersecting:: Assume that there is a common element in both
H
and
g1H
, i.e.
fH
and
fg1H
. Then, since
fg1H
, there must exist another element
hH
that satisfies
f=g1h
. Since
h
has an inverse
h1H
as well,
fh1=g1hh1=g1
should remain within the subgroup
H
due to closure under composition. However,
g1
was specifically chosen to be an element of
G
that is not an element of
H
, which leads to a contradiction.

Now, assume that

Hg1H= but
g1Hg2H
. Then, there must be a common element
fg1H
and
fg2H
. Similarly, There must exist an
h1H
and
h2H
that satisfy,
f=g1h1
and
f=g2h2
respectively. Then, we can consider
h21H
and the right multiplication
fh21=g1h1h21=g2h2h21=g2
. We know that
g1h1h21=g2
is an element of
g1H
since
h1h21
is in
H
. But, we specifically chose
g2
to be not in
H
or
g1H
. This lead to a contradiction.

A similar argument can be made for the case where

Hg1H= but
Hg2H
, which similarly leads to a contradiction. Using the same argument, we can show that all cosets are non-intersecting with each other.

Since the cosets in

CH are non-intersecting and
giH=G
,
CH
partitions
G
.

Proof of Lagrange's theorem: Finally, we need to show that all the cosets in

CH have the same cardinality
|H|
, which would imply
|G|/|H|=kN
.

Given any coset

giH={hH|gih}, it is clear that its cardinality cannot exceed
|H|
from the definition. Suppose that
giH
has an element
f
that is mapped to from two different elements of the subgroup,
hs,hpH
s.t.
hshp
, i.e.
f=gihs=gihp
. However,
giG
has an inverse element
gi1G
that could be left multiplied with
f
to obtain
gi1f=gi1gihs=gi1gihp
. This would imply that
hs=hp
which is a contradiction.

Therefore, every unique element

hH maps to a unique element
fgiH
for all cosets
gi
and each coset has cardinality
|H|
. As a corollary,
|G|=k|H|
for a
kN
. This concludes the proof of Lagrange's theorem.