Characters¶
Characters of the symmetric group via the Murnaghan–Nakayama rule.
\(\chi^\lambda(\mu)\) is the character of the irreducible representation \(S^\lambda\) of \(S_n\) on the conjugacy class of cycle type \(\mu\). It is computed by peeling border strips off \(\lambda\) — the Murnaghan–Nakayama rule. Distinct rows of the character table are orthogonal.
Examples:
>>> from schur_weyl.character import character, character_table
>>> character((2, 1), (3,))
-1
>>> character((3, 1), (2, 1, 1))
1
>>> rows, cols, table = character_table(5)
>>> len(rows)
7
border_strips ¶
Yield (new_shape, height) for every border strip of size k removable from lam.
Uses beta numbers (first-column hook lengths). With L = len(lam), set beta_i = lam_i + (L - 1 - i), a strictly decreasing sequence of L distinct non-negative integers. Removing a border strip of size k is exactly: pick i with beta_i - k >= 0 and beta_i - k not already a beta value, then replace beta_i by beta_i - k. The height of the strip is the number of beta values jumped over.
Source code in src/schur_weyl/character.py
character ¶
chi^lam(cycle_type): the irreducible character of S_n indexed by the partition lam, evaluated on the conjugacy class of cycle type cycle_type.
Examples:
>>> character((3,), (1, 1, 1)) # trivial rep
1
>>> character((1, 1, 1), (2, 1)) # sign rep at a transposition
-1
>>> character((2, 1), (1, 1, 1)) # dimension of the standard rep
2
>>> character((2, 1), (3,))
-1
>>> character((2, 1), (2, 1))
0
Source code in src/schur_weyl/character.py
character_table ¶
(rows, cols, table) with rows/cols the partitions of n in the order
produced by partitions(n), and table[a][b] = chi^{rows[a]}(cols[b]).