Skip to content

Commit

Permalink
isfree: fix another book-example (#1450)
Browse files Browse the repository at this point in the history
* isfree: fix another book-example

support local_freeness in _is_principal_with_data_bj
  • Loading branch information
benlorenz authored Apr 10, 2024
1 parent 3c31def commit 4e55aec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AlgAssAbsOrd/PIP/bley_johnston.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ function __unit_reps(M, F)
return unit_reps
end

function _is_principal_with_data_bj(I, O; side = :right, _alpha = nothing)
function _is_principal_with_data_bj(I, O; side = :right, _alpha = nothing, local_freeness::Bool = false)
# local_freeness needs to be accepted since the generic interface uses it
A = algebra(O)
if _alpha === nothing
_assert_has_refined_wedderburn_decomposition(A)
Expand Down
9 changes: 9 additions & 0 deletions test/ModAlgAss/Lattices/Lattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ begin
V, f = galois_module(K); OK = ring_of_integers(K); M = f(OK);
@test !is_free(M)
end

let
Qx, x = QQ["x"]
K, a = number_field(x^8 + 105*x^6 + 3465*x^4 + 44100*x^2 + 176400, "a")
V, f = galois_module(K)
OK = ring_of_integers(K)
M = f(OK)
@test !is_free(M)
end

0 comments on commit 4e55aec

Please sign in to comment.