Applications of Abstract Algebra
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll see the section’s machinery put to work: how Diffie-Hellman and RSA rest on group theory, how error-correcting codes use cosets of a subgroup, and how a statement about one group of order 60 proves that no quintic formula can exist.
The Concept
Section titled “The Concept”Diffie-Hellman key exchange
Section titled “Diffie-Hellman key exchange”Two parties who have never met need a shared secret, over a channel someone is listening to. Published in 1976, this was the result that made public-key cryptography possible.
The group is for a large prime , which is cyclic of order . The protocol:
- Agree publicly on and a generator .
- Alice picks a secret and sends . Bob picks and sends .
- Alice computes and Bob computes . Both equal .
The shared secret is never transmitted. Correctness is just the exponent law , which holds because exponents add commutatively.
Security rests on the discrete logarithm problem: given and in a large group, recover . Computing takes about multiplications by repeated squaring, while the best known general attacks on the reverse direction take time exponential in the bit length. The gap between those two costs is the entire security argument.
Two things must hold for the group to be usable. It must be cyclic with a known large prime order (otherwise the search space fractures into small pieces and the Pohlig–Hellman attack applies). And the group operation must be cheap. Using fails badly, because “discrete log” there is just division: from you recover by multiplying by . The group being isomorphic to a hard one is irrelevant if the isomorphism is easy to compute.
RSA (1977) works in the ring with for two large primes.
- Compute .
- Pick coprime to ; publish .
- Compute with ; keep secret.
- Encrypt with , decrypt with .
Why decryption works: , so
using Euler’s theorem , which is Lagrange’s theorem applied to the group .
Security rests on factoring: knowing requires knowing and . Note the whole thing runs inside the unit group , and the security hypothesis is about a computational problem, not about group structure.
Error-correcting codes
Section titled “Error-correcting codes”A linear code of length over is a subgroup . Valid codewords are closed under bitwise XOR and include the all-zeros word - precisely the subgroup conditions.
Transmission adds an error vector: you receive . Since and differ by an element of… no, wait: , and lies in the coset only if . In general lies in the coset , and the coset identifies the error pattern.
Decoding therefore means: find which coset of the received word lies in, then subtract that coset’s most likely error, called the coset leader. This is standard-array decoding, and by Lagrange there are exactly cosets to distinguish.
The Hamming code with and has cosets: one for “no error” and seven for “error in bit .” So it corrects any single-bit error, and the count of cosets is exactly why.
Reed–Solomon codes push this further using finite fields. Data become coefficients of a polynomial over , and the codeword is that polynomial evaluated at many points. Any sufficiently large subset of the values determines the polynomial, so lost values can be reconstructed. This is why a scratched CD still plays and why a partly obscured QR code still scans.
Why the quintic has no formula
Section titled “Why the quintic has no formula”This is the question the whole subject grew from, and the answer is a group-theoretic one.
Every polynomial has a Galois group: the automorphisms of its splitting field that fix the base field, which permute the roots. Solving by radicals means building the roots in a tower of extensions, each obtained by adjoining an -th root.
Galois’s theorem translates that tower into a group condition. A polynomial is solvable by radicals exactly when its Galois group is solvable, meaning there is a chain
with each quotient abelian. Adjoining a root corresponds to one abelian step.
For degrees up to 4, the Galois groups are small enough that such chains always exist, which is why the quadratic, cubic and quartic formulas are possible.
The generic quintic has Galois group , of order 120. Inside it sits , of order 60, and is simple: its only normal subgroups are the trivial ones. A simple non-abelian group admits no chain of abelian quotients, so is not solvable.
Therefore no formula in radicals can express the roots of a general quintic. Not undiscovered - impossible.
The specific polynomial has Galois group , so its roots provably cannot be written with radicals, even though it plainly has five of them and they can be computed numerically to any precision you like.
Symmetry in physics
Section titled “Symmetry in physics”Noether’s theorem (1918) states that every continuous symmetry of a physical system corresponds to a conserved quantity:
- Time-translation symmetry conservation of energy
- Space-translation symmetry conservation of momentum
- Rotational symmetry conservation of angular momentum
Conservation of energy is not a separate law of nature; it is a consequence of physics being the same today as yesterday. The Standard Model is specified by naming its symmetry group , and the particles are labels for how that group acts.
Worked Examples
Section titled “Worked Examples”Example 1: Run Diffie-Hellman by hand.
Use , , Alice’s secret , Bob’s .
Solution. Repeated squaring keeps the numbers small.
, so , and . Alice sends .
; ; . Bob sends .
Shared secret: . Since and is a generator, , and , so
Both parties get 2. Note the shortcut used Lagrange’s theorem to reduce the exponent mod the group order.
Example 2: RSA with small numbers.
, , . Find and encrypt .
Solution. and .
✓. Find with : , so .
Encrypt: . Since , .
Decrypt: . Work smart - , , , .
:
; (since ); (since ).
Recovered ✓
Example 3: Why is useless for Diffie-Hellman.
Solution. In additive notation, “exponentiation” is . Given and , an attacker with computes
using the extended Euclidean algorithm - a few dozen operations even for enormous .
So the discrete log is trivial here. Being isomorphic to a group with a hard discrete log does not help, because the isomorphism itself is easy to compute. This is the sharpest possible illustration that isomorphism preserves structure and not computational difficulty.
Example 4: Coset decoding.
A code is . Decode the received word .
Solution. , so by Lagrange there are cosets, each of size 2.
The coset of is
The coset leader is the lower-weight member, : a single bit flipped, in position 3.
Correcting: .
Decoded as . This is the repetition code, and it corrects any single error, because every weight-1 vector sits in a different coset.
Example 5: The order of and why it matters.
Solution. .
is simple: it has no normal subgroup other than and itself. One route to this is a conjugacy-class count - the class sizes in are 1, 15, 20, 12, 12, and any normal subgroup is a union of classes including the identity whose total divides 60. The only subsets of containing the 1 that sum to a divisor of 60 are and all of them.
Since a solvable group needs a chain with abelian quotients, and a simple non-abelian group offers no proper normal subgroup to start such a chain, is not solvable. Neither is , which contains it as a normal subgroup with quotient .
Hence the general quintic is unsolvable by radicals. ∎
Example 6: Arithmetic in the AES field.
| × | 0 | 1 | a | a+1 |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | a | a+1 |
| a | 0 | a | a+1 | 1 |
| a+1 | 0 | a+1 | 1 | a |
Every nonzero element has an inverse, which is what the AES S-box computes. Real AES uses GF(2⁸) so that one field element is exactly one byte.
Identity: 1. Cells holding it mark inverse pairs.
Solution. The AES S-box is essentially in , followed by an affine map. Inversion is chosen because it is highly nonlinear, which is what resists linear and differential cryptanalysis.
In the miniature above, and , while and has no inverse (the standard defines as a special case).
Real-World Applications
Section titled “Real-World Applications”Every HTTPS connection. The TLS handshake performs an elliptic-curve Diffie-Hellman exchange, so the group theory in this section runs billions of times a day. Perfect forward secrecy comes from using fresh secrets per session, meaning a later key compromise cannot decrypt past traffic.
QR codes and storage. Reed–Solomon over lets a QR code survive roughly 30% damage, and the same codes protect CDs, DVDs, Blu-ray discs and RAID 6 arrays. The Voyager probes’ images crossed the solar system inside these codes.
Cell networks and Wi-Fi. LTE and 5G use LDPC and polar codes; Wi-Fi uses convolutional and LDPC codes. All are built on linear algebra over finite fields, and the coset picture is what decoders implement.
Bitcoin and blockchains. Bitcoin signs transactions with ECDSA on the curve secp256k1 over a 256-bit prime field. An address is derived from a public key that is a point in a group of prime order; the security assumption is the elliptic-curve discrete logarithm.
Chemistry and drug design. Molecular symmetry groups determine spectra and whether a molecule is chiral. Thalidomide’s two mirror-image forms had drastically different effects, which is a group-theoretic distinction with serious consequences.
Rubik’s cube. God’s number is 20, proved in 2010 by partitioning the cube group into about two billion cosets of a large subgroup and searching each. The coset decomposition made an otherwise impossible search tractable.
Retrying will remove your ✅ checkmark until you pass again.