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

provide the tilde species of a species #38883

Merged
merged 2 commits into from
Dec 8, 2024
Merged
Changes from all commits
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
49 changes: 49 additions & 0 deletions src/sage/rings/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,55 @@ def is_atomic(self):
"""
return self.is_molecular() and len(self.support()[0]) == 1

def tilde(self):
r"""
Return the tilde species of ``self``.

The tilde species `\tilde F` of a species `F` has as
structures the set of pairs `(s, a)`, consisting of an
`F`-structure `s` and an automorphism `a` of `s`.

We use https://mathoverflow.net/a/480852 to compute it.

EXAMPLES::

sage: from sage.rings.species import AtomicSpecies, MolecularSpecies, PolynomialSpecies
sage: M = MolecularSpecies("X")
sage: P = PolynomialSpecies(QQ, "X")
sage: sortkey = lambda x: (len(x[1]), sum(x[1].coefficients()), str(x[0]))
sage: n=4; table(sorted([(m, P.monomial(m).tilde()) for m in M.subset(n)], key=sortkey))
X^4 X^4
X^2*E_2 2*X^2*E_2
{((1,2)(3,4),)} 2*{((1,2)(3,4),)}
X*C_3 3*X*C_3
C_4 4*C_4
E_2^2 4*E_2^2
Pb_4 4*Pb_4
X*E_3 X*E_3 + X^2*E_2 + X*C_3
Eo_4 Eo_4 + 2*X*C_3 + Pb_4
P_4 2*P_4 + E_2^2 + Pb_4 + C_4
E_4 E_4 + E_2^2 + X*C_3 + P_4 + C_4

sage: P.<X,Y> = PolynomialSpecies(QQ)
sage: E2 = PolynomialSpecies(QQ, "X")(SymmetricGroup(2))
sage: E2(X*Y).tilde()
2*E_2(XY)
"""
P = self.parent()
M = P._indices
P_one = P.one()
one = ZZ.one()
result = P.zero()
for m, c in self:
result_m = P_one
for a, e in m:
G, pi = a.permutation_group()
result_a = P.sum(P(G.centralizer(g), pi)
for g in G.conjugacy_classes_representatives())
result_m *= result_a ** e
result += c * result_m
return result

def hadamard_product(self, other):
r"""
Compute the hadamard product of ``self`` and ``other``.
Expand Down
Loading