Tableaux¶
Standard and semistandard Young tableaux, and Kostka numbers.
Fill the diagram with numbers, and you get a tableau — a tuple of rows.
- A standard tableau uses \(1, \dots, n\) once each, increasing along rows and down columns. There are \(f^\lambda\) of them.
- A semistandard tableau draws entries from \(1, \dots, d\) with repeats allowed, weakly increasing along rows and strictly increasing down columns. There are \(\dim V_\lambda^d\) of them.
The Kostka number \(K_{\lambda\mu}\) counts the semistandard tableaux of shape \(\lambda\) and content \(\mu\), that is, with \(\mu_1\) ones, \(\mu_2\) twos, and so on.
Examples:
>>> from schur_weyl import standard_young_tableaux, semi_standard_young_tableau, kostka
>>> [*standard_young_tableaux((2, 1))]
[((1, 2), (3,)), ((1, 3), (2,))]
>>> [*semi_standard_young_tableau((2, 1), 2)]
[((1, 1), (2,)), ((1, 2), (2,))]
>>> kostka((2, 1), (1, 1, 1))
2
standard_young_tableaux ¶
Generates all SYT of a given shape
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lam
|
tuple[int, ...]
|
The partition |
required |
Yields:
| Type | Description |
|---|---|
Generator[tuple[tuple[int, ...], ...], None, None]
|
a SYT |
Examples:
>>> list(standard_young_tableaux(()))
[()]
>>> sorted(standard_young_tableaux((2, 1)))
[((1, 2), (3,)), ((1, 3), (2,))]
>>> len(list(standard_young_tableaux((3, 2, 1))))
16
Source code in src/schur_weyl/tableaux.py
semi_standard_young_tableau ¶
semi_standard_young_tableau(lam: tuple[int, ...], d: int) -> Generator[tuple[tuple[int, ...], ...], None, None]
Generate all SSYT of a given shape and alphabet
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lam
|
tuple[int, ...]
|
The partition |
required |
d
|
int
|
the alphabet size |
required |
Yields:
| Type | Description |
|---|---|
Generator[tuple[tuple[int, ...], ...], None, None]
|
The SSYT |
Examples:
>>> list(semi_standard_young_tableau((2, 1), 3))
[((1, 1), (2,)), ((1, 2), (2,)), ((1, 3), (2,)), ((1, 1), (3,)), ((1, 2), (3,)), ((1, 3), (3,)), ((2, 2), (3,)), ((2, 3), (3,))]
Source code in src/schur_weyl/tableaux.py
semi_standard_young_tableau_by_content ¶
semi_standard_young_tableau_by_content(lam: tuple[int, ...], content: tuple[int, ...]) -> Generator[tuple[tuple[int, ...], ...], None, None]
Generate all SSYT with given content
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lam
|
tuple[int, ...]
|
The partition |
required |
content
|
tuple[int, ...]
|
The content (Should satisfy sum(lam) == sum(content)) |
required |
Yields:
| Type | Description |
|---|---|
Generator[tuple[tuple[int, ...], ...], None, None]
|
a SSYT |
Examples:
>>> list(semi_standard_young_tableau_by_content((2, 1), (2, 1)))
[((1, 1), (2,))]
>>> list(semi_standard_young_tableau_by_content((2, 1), (1, 1, 1)))
[((1, 3), (2,)), ((1, 2), (3,))]
>>> list(semi_standard_young_tableau_by_content((), ()))
[()]
Source code in src/schur_weyl/tableaux.py
kostka
cached
¶
Compute the kostka number: the number of SSYT of shape lam and content mu.
Recursion on horizontal strips: the cells filled with the largest letter form a horizontal strip of size mu[-1], so K_{lam, mu} = sum_nu K_{nu, mu[:-1]}.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lam
|
tuple[int, ...]
|
The partition |
required |
mu
|
tuple[int, ...]
|
content, any composition (zeros allowed) |
required |
Returns:
| Type | Description |
|---|---|
int
|
\(K_{\lambda \mu}\) |
Examples:
>>> kostka((2, 1), (1, 1, 1))
2
>>> kostka((2, 1), (0, 2, 1))
1
>>> from math import factorial
>>> kostka((10, 1, 1, 1, 1, 1, 1, 1), (1,) * 17) == factorial(17) // (17 * factorial(9) * factorial(7))
True
Source code in src/schur_weyl/tableaux.py
kostka_matrix
cached
¶
All the kostka numbers K_{lam, mu} for lam, mu partitions of n.
Pieri rule: h_mu = sum_lam K_{lam, mu} s_lam, so a column is built by adding horizontal strips of sizes mu[0], mu[1], ... to the empty shape. partitions(n) keeps partitions with a common prefix together, so the columns of the current prefixes are kept on a stack.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The size of the partitions |
required |
Returns:
| Type | Description |
|---|---|
tuple[tuple[tuple[int, ...], ...], tuple[tuple[int, ...], ...]]
|
(ps, table) with ps the partitions
of n in the order produced by partitions(n), and |
Examples:
Source code in src/schur_weyl/tableaux.py
inverse_kostka_matrix
cached
¶
The inverse of kostka_matrix(n), which changes the Schur basis into the monomial basis:
m_mu = sum_nu table[mu][nu] s_nu.
kostka_matrix(n) is upper unitriangular, so the inverse is solved column by column with numpy, in int64 when that cannot overflow and with python ints otherwise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The size of the partitions |
required |
Returns:
| Type | Description |
|---|---|
tuple[tuple[tuple[int, ...], ...], tuple[tuple[int, ...], ...]]
|
(ps, table) with ps the partitions
of n in the order produced by partitions(n), and |
Examples:
Source code in src/schur_weyl/tableaux.py
reverse_reading_word ¶
The reverse reading word of a tableau: right-to-left within each row, bottom row to top row.
Examples:
>>> reverse_reading_word(((1, 1, 3), (2, 3), (4,)))
(4, 3, 2, 3, 1, 1)
>>> reverse_reading_word(((1, 2), (3,)))
(3, 2, 1)
>>> reverse_reading_word(())
()