Skip to content

Commit

Permalink
don't assume R-module structure on basis (as a set)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Nov 13, 2023
1 parent e710eda commit 00c5320
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/group_action_error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function __group_action_right_assoc(
xᵍꜝʰ, s_g_h = action(action(hom), h, xᵍ)

passed = s_gh == s_g * s_g_h && xᵍʰ == xᵍꜝʰ
return passed, s_gh * xᵍʰ, (s_g * s_g_h) * xᵍꜝʰ
return passed, (s_gh, xᵍʰ), (s_g * s_g_h, xᵍꜝʰ)
end

function __group_action_right_assoc(
Expand Down
18 changes: 17 additions & 1 deletion test/action_permutation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,24 @@ function SymbolicWedderburn.action(
return Word(w.alphabet, [w.letters[i]^p for i in eachindex(w.letters)])
end

struct OnLettersSigned <: SymbolicWedderburn.BySignedPermutations end
function SymbolicWedderburn.action(
::OnLettersSigned,
p::PermutationGroups.AbstractPermutation,
w::Word,
)
return (Word(w.alphabet, [w.letters[i]^p for i in eachindex(w.letters)]), 1)
end

function allwords(A, radius)
words = [Word(A, [i]) for i in 1:length(A)]
for r in 2:radius
append!(
words,
[Word(A, collect(w)) for w in Iterators.product(fill(1:3, r)...)],
[
Word(A, collect(w)) for
w in Iterators.product(fill(1:length(A), r)...)
],
)
end
return words
Expand All @@ -49,6 +61,10 @@ end
end

G = PermGroup(perm"(1,2,3)", perm"(1,2)") # G acts on words permuting letters

@test SymbolicWedderburn.check_group_action(G, OnLetters(), words)
@test SymbolicWedderburn.check_group_action(G, OnLettersSigned(), words)

action = OnLetters()
tbl = SymbolicWedderburn.CharacterTable(Rational{Int}, G)
ehom = SymbolicWedderburn.CachedExtensionHomomorphism(
Expand Down

0 comments on commit 00c5320

Please sign in to comment.