Skip to content

Commit

Permalink
galois_group: fix is_normal call after removed deprecations (#3385)
Browse files Browse the repository at this point in the history
* fix is_normal call after removed deprecations

* galois_group: add test from the book
  • Loading branch information
benlorenz authored Feb 20, 2024
1 parent 56b8182 commit a73b844
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/NumberTheory/GaloisGrp/GaloisGrp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ function descent(GC::GaloisCtx, G::PermGroup, F::GroupFilter, si::PermGroupElem;
local lt
if index(G, s) < 100
@vtime :GaloisGroup 2 lt = right_transversal(G, s)
elseif is_normal(G, s)
elseif is_normalized_by(s, G)
lt = [one(G)] # I don't know how to get the identity
else
@vtime :GaloisGroup 2 lt = short_right_transversal(G, s, si)
Expand Down
6 changes: 6 additions & 0 deletions test/NumberTheory/galthy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
Gs, Cs = galois_group(K, algorithm = :Symbolic)
@test is_isomorphic(G, Gc)
@test is_isomorphic(G, Gs)

# from the book
K, a = number_field(x^9 - 3*x^8 + x^6 + 15*x^5 - 13*x^4 -
3*x^3 + 4*x - 1, "a")
G, C = galois_group(K)
@test order(G) == 216
end

import Oscar.GaloisGrp: primitive_by_shape, an_sn_by_shape, cycle_structures
Expand Down

0 comments on commit a73b844

Please sign in to comment.