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 , a subgroup has the same composition rules as the original group, has the same identity element , 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, has all the properties of a group in itself. itself and are both subgroups of , although is not a proper subgroup.
Lagrange's theorem is about the orders (or cardinalities) of the subgroups of a group. Given a group of order , its subgroups cannot simply have any arbitrary order. Langrange's theorem states that the order of any subgroup of must have an order , that divides , i.e. such that .
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 is . It is the set where can be any element of . If , the identity element, then and this is the only coset in the partition associated with that is a subgroup. The rest of the cosets are not groups themselves since they do not intersect with and therefore do not contain the identity element , which is a requirement for being a group.
In the figure above, left cosets associated with the subgroup of group are shown as an example. All the cosets have the same order , they partition the entire group , and do not intersect with each other. The only subgroup in the partition is itself. Note that multiple ( to be precise) group elements, will map the subgroup into the same coset, , in general. Further, is also easy to show, as .
An algorithm to find cosets: In order to obtain all the left cosets associated with a subgroup , we start with the identity element of the group and a set of cosets, , which we will incrementally grow.
At each step, we pick an element of that is not in any of the cosets in so far. In the first step, this corresponds to a s.t. . Then, the second coset associated with is chosen as . This is added to the set, which becomes .
In the second step, we again pick an element of that is not in any of the cosets in so far. This corresponds to a s.t. . Then, the third coset associated with is chosen as . This is added to the set as well, which becomes .
We continue this process until we run out of elements of that are not in the set of cosets so far and we end up with the set of cosets . 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 of a group has an order that evenly divides the order of the group, i.e. .
We analyze the coset algorithm and its output to prove this theorem. Given that the algorithm generates a set of cosets associated with subgroup , , if each set within has the same cardinality, its elements collectively partition (meaning no intersecting) and cover the group , then follows.
covers : Consider the case where did not cover after the algorithm terminates. In that case, there would exists a that is not part of any element of 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 is in some coset in .
partitions : It is easy to see that every element of each coset in is in due to the fact that groups are closed under composition. Taken together with with the fact that covers , we can conclude that the union of all cosets in is simply , .
Based on the above, in order to show that partitions , we only need to show that these cosets are non-intersecting with each other. In other words, we need to show that s.t. , , i.e. their intersection is empty. This requires some care.
Cosets in are non-intersecting:: Assume that there is a common element in both and , i.e. and . Then, since , there must exist another element that satisfies . Since has an inverse as well, should remain within the subgroup due to closure under composition. However, was specifically chosen to be an element of that is not an element of , which leads to a contradiction.
Now, assume that but . Then, there must be a common element and . Similarly, There must exist an and that satisfy, and respectively. Then, we can consider and the right multiplication . We know that is an element of since is in . But, we specifically chose to be not in or . This lead to a contradiction.
A similar argument can be made for the case where but , 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 are non-intersecting and , partitions .
Proof of Lagrange's theorem: Finally, we need to show that all the cosets in have the same cardinality , which would imply .
Given any coset , it is clear that its cardinality cannot exceed from the definition. Suppose that has an element that is mapped to from two different elements of the subgroup, s.t. , i.e. . However, has an inverse element that could be left multiplied with to obtain . This would imply that which is a contradiction.
Therefore, every unique element maps to a unique element for all cosets and each coset has cardinality . As a corollary, for a . This concludes the proof of Lagrange's theorem.