Lesson 6 of 15
Group Homomorphisms
Group Homomorphisms
A group homomorphism is a function between groups that preserves the group operation:
Properties of Homomorphisms
If is a homomorphism, then:
- (identity maps to identity)
- (inverses map to inverses)
Important Types
- Isomorphism: bijective homomorphism (groups are "the same" structurally)
- Automorphism: isomorphism from a group to itself
- Kernel: — always a subgroup of
Example:
Define . This is a homomorphism because:
The kernel is — elements that map to in .
Checking Homomorphism Computationally
Given groups and and a function , verify:
def is_homomorphism(phi, m, n):
for a in range(m):
for b in range(m):
if phi((a + b) % m) != (phi(a) + phi(b)) % n:
return False
return True
Your Task
Implement is_homomorphism(phi, m, n) that checks if function phi (a list where phi[a] gives ) is a homomorphism from under addition, and kernel(phi, m) that returns the sorted kernel of .
Pyodide loading...
Loading...
Click "Run" to execute your code.