Skip to content

Dimensions

Dimensions of the irreducible representations of \(S_n\) and \(GL_d\).

The hook-length formula turns the hooks \(h(i, j)\) of \(\lambda\) into the dimension of the Specht module \(S^\lambda\), which is also the number of standard tableaux of shape \(\lambda\):

\[ f^\lambda = \frac{n!}{\prod_{(i,j) \in \lambda} h(i,j)} . \]

The content formula gives the dimension of the Weyl module \(V_\lambda^d\) of \(GL_d\), which is the number of semistandard tableaux of shape \(\lambda\) with entries in \(1, \dots, d\), and vanishes when \(\lambda\) has more than \(d\) rows:

\[ \dim V_\lambda^d = \prod_{(i,j) \in \lambda} \frac{d + c(i,j)}{h(i,j)} . \]

Examples:

>>> from schur_weyl import dim_specht, dim_weyl
>>> dim_specht((3, 2, 1))
16
>>> dim_weyl((2, 1), 3)
8

dim_specht

dim_specht(lam: tuple[int, ...]) -> int

The dimension of the Specht module S^lam. The number of SYT of shape lam. f^lam = n! / prod(hooks).

Parameters:

Name Type Description Default
lam tuple[int, ...]

The partition

required

Returns:

Type Description
int

\(f^\lambda\)

Examples:

>>> dim_specht((2, 1))
2
>>> dim_specht((3, 2, 1))
16
Source code in src/schur_weyl/dimensions.py
def dim_specht(lam: tuple[int, ...]) -> int:
    """The dimension of the Specht module S^lam.
    The number of SYT of shape lam.
    f^lam = n! / prod(hooks).

    Args:
        lam (tuple[int, ...]): The partition

    Returns:
        int: $f^\\lambda$

    Examples:
        >>> dim_specht((2, 1))
        2
        >>> dim_specht((3, 2, 1))
        16
    """
    n = sum(lam)
    hooks = 1
    for i, j in cells(lam):
        hooks *= hook_lenght(lam, i, j)
    return factorial(n) // hooks

dim_weyl

dim_weyl(lam: tuple[int, ...], d: int) -> int

The dimension of the Weyl module V_lam for GL_d. The number of SSYT with entries from 1 to d

Returns 0 if lam has more than d rows (a cell then has d + content = 0).

Parameters:

Name Type Description Default
lam tuple[int, ...]

The partition

required
d int

The alphabet size

required

Returns:

Type Description
int

\(dim V_lam^d\)

Examples:

>>> dim_weyl((2, 1), 2)
2
>>> dim_weyl((2, 1), 3)
8
>>> dim_weyl((2,), 3)
6
Source code in src/schur_weyl/dimensions.py
def dim_weyl(lam: tuple[int, ...], d: int) -> int:
    """The dimension of the Weyl module V_lam for GL_d.
    The number of SSYT with entries from 1 to d

    Returns 0 if lam has more than d rows (a cell then has d + content = 0).

    Args:
        lam (tuple[int, ...]): The partition
        d (int): The alphabet size

    Returns:
        int: $dim V_lam^d$

    Examples:
        >>> dim_weyl((2, 1), 2)
        2
        >>> dim_weyl((2, 1), 3)
        8
        >>> dim_weyl((2,), 3)
        6
    """
    numerator = 1
    denominator = 1
    for i, j in cells(lam):
        numerator *= d + j - i
        denominator *= hook_lenght(lam, i, j)
    return numerator // denominator