Skip to content

Commit

Permalink
Add absolute_automorphism_group(::Type{PermGroup}, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Jul 30, 2023
1 parent a4d4948 commit 753af27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions experimental/GModule/GaloisCohomology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ function Oscar.automorphism_group(::Type{PermGroup}, K, k)
return codomain(mH), mmH
end

function Oscar.absolute_automorphism_group(::Type{PermGroup}, k)
G, mG = absolute_automorphism_group(k)
mH = isomorphism(PermGroup, G)
return codomain(mH), inv(mH)*mG
end

"""
The natural `ZZ[H]` module where `H`, a subgroup of the
Expand Down
11 changes: 11 additions & 0 deletions test/NumberTheory/nmbthy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ end
F2 = GF(3,5);
@test_throws AssertionError disc_log(gen(F), gen(F2))
end

begin
Qx, x = QQ["x"]
k, a = number_field(x^2 - 18, "a")
kt, t = k["t"];
K, b = number_field(t^4 + (a + 6)*t^2 + 2a + 9, "b")
G, m = automorphism_group(PermGroup, K)
h = m(one(G))
@test h(b) == b && h(K(a)) == K(a)
@test order(G) == 4 && is_cyclic(G)
end

0 comments on commit 753af27

Please sign in to comment.