Skip to content

Commit

Permalink
Fix in compose_with_singletons
Browse files Browse the repository at this point in the history
  • Loading branch information
Newtech66 committed Sep 9, 2024
1 parent f9919ff commit 93b19bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sage/rings/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,14 @@ def _compose_with_singletons(self, base_ring, names, args):
sage: M = P._indices
sage: M.one()._compose_with_singletons(ZZ, "X", [[1]])
1
sage: P = PolynomialSpecies(ZZ, "X")
sage: M = P._indices
sage: F = M(SymmetricGroup(1)) * M(SymmetricGroup(2))
sage: F._compose_with_singletons(QQ,["T","S"],[[2,1]])
E_2(T)*S + T^2*S
sage: F._compose_with_singletons(QQ,["T","S"],[[1,2]])
T*S^2 + T*E_2(S)
"""
# TODO: No checks are performed right now, must be added.
# Checks: all args in Compositions, sums must match cardinalities.
Expand All @@ -1159,7 +1167,7 @@ def _compose_with_singletons(self, base_ring, names, args):
taus = libgap.DoubleCosetRepsAndSizes(S_up, S_down, G)
# Sum over double coset representatives.
for tau, _ in taus:
H = libgap.Intersection(libgap.ConjugateGroup(G, tau), S_down)
H = libgap.Intersection(libgap.ConjugateGroup(G, tau ** -1), S_down)
grp = PermutationGroup(gap_group=H, domain=self.domain())
res += Pn(grp, dpart)
return res
Expand Down

0 comments on commit 93b19bf

Please sign in to comment.