Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GModule: replace _hom #3603

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
GModule: add sub(M, emb)
ThomasBreuer committed Apr 12, 2024
commit 7047b677b53714eb55f809472eb7de11fbdb3959
16 changes: 10 additions & 6 deletions experimental/GModule/GModule.jl
Original file line number Diff line number Diff line change
@@ -279,12 +279,7 @@ function invariant_lattice_classes(M::GModule{<:Oscar.GAPGroup, <:AbstractAlgebr
pG = p.*gens(M.M)
for s in S
x, mx = sub(M.M, vcat(pG, [M.M(map_entries(x->lift(ZZ, x), s[i:i, :])) for i in 1:nrows(s)]))
# Compute the restriction of the `M.G`-action from `M.M`
# to the submodule given by the embedding `mx`.
hgens = gens(domain(mx))
mxac = [hom(domain(mx), domain(mx),
[preimage(mx, h(mx(x))) for x in hgens]) for h in M.ac]
r = (gmodule(M.G, mxac), mx)
r = (sub(M, mx), mx)
if any(x->is_isomorphic(r[1], x[1]), res)
continue
else
@@ -635,6 +630,15 @@ function Oscar.sub(C::GModule{<:Any, <:AbstractAlgebra.FPModule{T}}, m::MatElem{
return b
end

# Compute the restriction of the `M.G`-action from `M.M`
# to the submodule given by the embedding `f`.
function Oscar.sub(M::GModule{<:Any, <:AbstractAlgebra.FPModule{T}}, f::AbstractAlgebra.Generic.ModuleHomomorphism{T}) where T
@assert codomain(f) == M.M
S = domain(f)
Sac = [hom(S, S, [preimage(f, h(f(x))) for x in gens(S)]) for h in M.ac]
return gmodule(S, M.G, Sac)
end

function gmodule(k::Nemo.FinField, C::GModule{<:Any, <:AbstractAlgebra.FPModule{<:FinFieldElem}})
@assert absolute_degree(k) == 1
F = free_module(k, dim(C)*absolute_degree(base_ring(C)))