1 Introduction
The motivation for this paper began, in part, with the problem of writing down invariant functions on the space of polynomial-coefficient differential operators (i.e., the Weyl algebra), under the action of the general linear group. While the goal seems modest, the combinatorial complexity of the answer is certainly not. The result involves a correspondence between these invariants and unlabeled directed graphs. In retrospect, it became evident that the linear change of variables for the Weyl algebra had an analogue for the other classical groups.
 The archetypal problem in nineteenth-century invariant theory was to consider the space 
 $S^m(\mathbb C^2)$
 of binary m-forms, where the group
$S^m(\mathbb C^2)$
 of binary m-forms, where the group 
 $\operatorname {\mathrm {SL}}(2, \mathbb C)$
 acts naturally on
$\operatorname {\mathrm {SL}}(2, \mathbb C)$
 acts naturally on 
 $\mathbb C^2$
, and to describe the ring of polynomial functions on
$\mathbb C^2$
, and to describe the ring of polynomial functions on 
 $S^m(\mathbb C^2)$
 which are invariant under the action of
$S^m(\mathbb C^2)$
 which are invariant under the action of 
 $\operatorname {\mathrm {SL}}(2,\mathbb C)$
. The problem naturally generalizes to any of the classical groups
$\operatorname {\mathrm {SL}}(2,\mathbb C)$
. The problem naturally generalizes to any of the classical groups 
 $\operatorname {\mathrm {GL}}_n$
,
$\operatorname {\mathrm {GL}}_n$
, 
 $\operatorname {O}_n$
, and
$\operatorname {O}_n$
, and 
 $\operatorname {\mathrm {Sp}}_{2n}$
, where
$\operatorname {\mathrm {Sp}}_{2n}$
, where 
 $\mathbb C^2$
 is replaced by the defining representation V of the group (plus a copy of the dual representation in the case of
$\mathbb C^2$
 is replaced by the defining representation V of the group (plus a copy of the dual representation in the case of 
 $\operatorname {\mathrm {GL}}_n$
). Since the mth symmetric power
$\operatorname {\mathrm {GL}}_n$
). Since the mth symmetric power 
 $S^m(V)$
 is finite-dimensional, Hilbert’s celebrated basis theorem guarantees that the ring of invariants is finitely generated. Nearly every paper in early invariant theory contained explicit, often remarkably lengthy computations of generators and relations for rings of invariants.
$S^m(V)$
 is finite-dimensional, Hilbert’s celebrated basis theorem guarantees that the ring of invariants is finitely generated. Nearly every paper in early invariant theory contained explicit, often remarkably lengthy computations of generators and relations for rings of invariants.
 In this paper, we sum out the dependence on the degree m before looking at the invariants; in other words, we study the invariant functions on the full symmetric (equivalently, polynomial) algebra, rather than on a single graded component. This idea is related to the classical study of perpetuants (or more generally subvariants, both terms coined by Sylvester [Reference SylvesterSyl82]), which can be viewed as certain 
 $\operatorname {\mathrm {SL}}(2,\mathbb C)$
-semi-invariants of a binary form of infinite order (see also [Reference Grace and YoungGY10, p. 326], [Reference OlverOlv99, p. 149], [Reference Kraft and ProcesiKP21], and the references therein). As a result of our replacing
$\operatorname {\mathrm {SL}}(2,\mathbb C)$
-semi-invariants of a binary form of infinite order (see also [Reference Grace and YoungGY10, p. 326], [Reference OlverOlv99, p. 149], [Reference Kraft and ProcesiKP21], and the references therein). As a result of our replacing 
 $S^m(V)$
 by
$S^m(V)$
 by 
 $S(V)$
, the invariant ring is no longer finitely generated. Hence, our goal, unlike the usual goal in classical invariant theory, is not to find generators and relations; rather, we impose a bigradation on the invariant ring, so that each graded component is finite-dimensional, and we aim to write down a linear basis for each component. In particular, we grade the invariant algebra by degree d, in the usual sense for polynomial functions, and by weight k (see Definition 2.1). By symmetrizing Hermann Weyl’s fundamental theorems of invariant theory, we show that each bigraded component is spanned by the invariants represented by certain graphs (directed, undirected, etc.) with d vertices and k edges. Our first result (Algorithm 3.1) gives the explicit map between a graph and its corresponding invariant. We emphasize that our method easily recovers many classical results, simply by restricting our attention to m-regular graphs (i.e., graphs in which every vertex has degree m).
$S(V)$
, the invariant ring is no longer finitely generated. Hence, our goal, unlike the usual goal in classical invariant theory, is not to find generators and relations; rather, we impose a bigradation on the invariant ring, so that each graded component is finite-dimensional, and we aim to write down a linear basis for each component. In particular, we grade the invariant algebra by degree d, in the usual sense for polynomial functions, and by weight k (see Definition 2.1). By symmetrizing Hermann Weyl’s fundamental theorems of invariant theory, we show that each bigraded component is spanned by the invariants represented by certain graphs (directed, undirected, etc.) with d vertices and k edges. Our first result (Algorithm 3.1) gives the explicit map between a graph and its corresponding invariant. We emphasize that our method easily recovers many classical results, simply by restricting our attention to m-regular graphs (i.e., graphs in which every vertex has degree m).
 Our graphs furnish a true basis whenever the parameters 
 $n,d,k$
 fall within a stable range, described by a simple inequality relating the rank of the group to d and k:
$n,d,k$
 fall within a stable range, described by a simple inequality relating the rank of the group to d and k: 
 $$ \begin{align} \operatorname{\mathrm{GL}}_n \text{ and } \operatorname{O}_n: \quad n \geq \min\{d,k\}. \qquad \qquad \operatorname{\mathrm{Sp}}_{2n}: \quad n \geq \min\!\left\{\left\lfloor \frac{d}{2}\right\rfloor, \left\lfloor\frac{k}{2}\right\rfloor\right\}. \end{align} $$
$$ \begin{align} \operatorname{\mathrm{GL}}_n \text{ and } \operatorname{O}_n: \quad n \geq \min\{d,k\}. \qquad \qquad \operatorname{\mathrm{Sp}}_{2n}: \quad n \geq \min\!\left\{\left\lfloor \frac{d}{2}\right\rfloor, \left\lfloor\frac{k}{2}\right\rfloor\right\}. \end{align} $$
Hence, for fixed d and k, our methods yield a basis for all but finitely many values of n. (Also, at the farthest extreme from the stable range, where the defining representation of the group is one-dimensional, we can easily describe a basis for all d and k in terms of degree sequences of graphs (see Section 5.3).)
 Outside the stable range, our methods furnish a spanning set rather than a true basis, and therefore we would overshoot the dimension of the graded component by merely counting graphs. The linear dependencies that arise among the graphs are quite complicated, but nonetheless we are able to express the desired dimensions by taking a representation-theoretic approach. Our second result (Theorem 5.1) is a dimension formula for the bigraded components that holds even outside the stable range. The formula is expressed as the sum of branching multiplicities from the general linear group 
 $\operatorname {\mathrm {GL}}_d$
 to its subgroup
$\operatorname {\mathrm {GL}}_d$
 to its subgroup 
 ${\mathfrak S_d}$
 of permutation matrices. In this way, we can express the bigraded Hilbert series of the invariant ring.
${\mathfrak S_d}$
 of permutation matrices. In this way, we can express the bigraded Hilbert series of the invariant ring.
Although the main problem in this paper seems to be new, the use of graphical methods is nearly as old as invariant theory itself; in fact, it was Sylvester [Reference SylvesterSyl78] who coined the term “graph” to describe the diagrams he developed in his “algebro-chemical” approach to invariants (see [Reference SylvesterSyl78] and [Reference Grace and YoungGY10, p. 366]). Subsequently, Kempe [Reference KempeKem86] and (much later) Olver and Shakiban [Reference Olver and ShakibanOS89] improved upon Sylvester’s program by associating covariants on binary forms with directed graphs obeying certain syzygies. Since then, the graphical approach continues to develop; consider, for example, webs and spiders [Reference KuperbergKup96] in the invariant theory of low-rank Lie groups. This development of graphical notation is analogous to similar programs in various fields, most notably the Penrose notation in mathematical physics [Reference PenrosePen05] and Lie theory [Reference CvitanovićCvi08]. In fact, the reader may like to begin by skimming the examples in Section 6, among which are several classical results translated into our graphical notation.
2 Preliminaries
2.1 Statement of the problem
 Throughout the paper, we let  denote the space of complex
 denote the space of complex 
 $n \times d$
 matrices, with
$n \times d$
 matrices, with  . By the (complex) classical groups, we mean:
. By the (complex) classical groups, we mean: 
- 
• the general linear group  ; ;
- 
• the orthogonal group  ; ;
- 
• the symplectic group  , where , where $J = \left [\begin {smallmatrix} 0 & I \\ -I & 0 \end {smallmatrix}\right ]$
. $J = \left [\begin {smallmatrix} 0 & I \\ -I & 0 \end {smallmatrix}\right ]$
.
That is, 
 $\operatorname {O}_n$
 preserves the symmetric bilinear form b on
$\operatorname {O}_n$
 preserves the symmetric bilinear form b on 
 $\mathbb C^n$
 given by
$\mathbb C^n$
 given by 
 $b(v,w)=v^Tw$
, while
$b(v,w)=v^Tw$
, while 
 $\operatorname {\mathrm {Sp}}_{2n}$
 preserves the skew-symmetric bilinear form
$\operatorname {\mathrm {Sp}}_{2n}$
 preserves the skew-symmetric bilinear form 
 $\omega $
 on
$\omega $
 on 
 $\mathbb C^{2n}$
 given by
$\mathbb C^{2n}$
 given by 
 $\omega (v,w) = v^T J w$
.
$\omega (v,w) = v^T J w$
.
 In the context of each classical group G, we will write V to denote its defining representation, on which it acts naturally by matrix multiplication: hence, for 
 $\operatorname {\mathrm {GL}}_n$
 and
$\operatorname {\mathrm {GL}}_n$
 and 
 $\operatorname {O}_n$
, we have
$\operatorname {O}_n$
, we have 
 $V = \mathbb C^n$
, while for
$V = \mathbb C^n$
, while for 
 $\operatorname {\mathrm {Sp}}_{2n}$
, we have
$\operatorname {\mathrm {Sp}}_{2n}$
, we have 
 $V=\mathbb C^{2n}$
. For
$V=\mathbb C^{2n}$
. For 
 $G = \operatorname {O}_n$
 or
$G = \operatorname {O}_n$
 or 
 $\operatorname {\mathrm {Sp}}_{2n}$
, we let
$\operatorname {\mathrm {Sp}}_{2n}$
, we let  denote the space of polynomial functions on V; for
 denote the space of polynomial functions on V; for 
 $G = \operatorname {\mathrm {GL}}_n$
, we let
$G = \operatorname {\mathrm {GL}}_n$
, we let  . In each case,
. In each case, 
 $\Psi $
 is a representation of G in the natural way, via
$\Psi $
 is a representation of G in the natural way, via 
 $g \cdot \psi (v) = \psi (g^{-1}v)$
, for
$g \cdot \psi (v) = \psi (g^{-1}v)$
, for 
 $g \in G$
,
$g \in G$
, 
 $\psi \in \Psi $
, and
$\psi \in \Psi $
, and 
 $v \in V$
 (or
$v \in V$
 (or 
 $V \oplus V^*$
). This, in turn, induces a representation of G on
$V \oplus V^*$
). This, in turn, induces a representation of G on 
 $\mathcal P(\Psi )$
, the space of polynomial functions on
$\mathcal P(\Psi )$
, the space of polynomial functions on 
 $\Psi $
 (explained below), again via
$\Psi $
 (explained below), again via 
 $g \cdot f(\psi ) = f(g^{-1} \cdot \psi )$
 for
$g \cdot f(\psi ) = f(g^{-1} \cdot \psi )$
 for 
 $f \in \mathcal P(\Psi )$
. Our goal is to describe, as explicitly as possible, the invariant ring
$f \in \mathcal P(\Psi )$
. Our goal is to describe, as explicitly as possible, the invariant ring 

2.2 Notation
 Let  . A Greek letter
. A Greek letter 
 $\alpha = (\alpha _1,\ldots ,\alpha _n) \in \mathbb N^n$
 will denote a multi-index corresponding to the exponent vector of the monomial
$\alpha = (\alpha _1,\ldots ,\alpha _n) \in \mathbb N^n$
 will denote a multi-index corresponding to the exponent vector of the monomial 
 $x_1^{\alpha _1} \cdots x_n^{\alpha _n}$
. It will be natural to regard
$x_1^{\alpha _1} \cdots x_n^{\alpha _n}$
. It will be natural to regard 
 $x_i$
 as the linear functional on V dual to the ith standard basis vector. We will use these exponent vectors
$x_i$
 as the linear functional on V dual to the ith standard basis vector. We will use these exponent vectors 
 $\alpha $
 to pick out coefficients of monomials; our desired invariants will then be polynomials in these coefficients. Below we organize the details, which vary slightly for each of the three classical groups:
$\alpha $
 to pick out coefficients of monomials; our desired invariants will then be polynomials in these coefficients. Below we organize the details, which vary slightly for each of the three classical groups: 
- 
• For  $G = \operatorname {\mathrm {GL}}_n$
: $G = \operatorname {\mathrm {GL}}_n$
:- 
– We have  We can regard We can regard $\partial _i$
 as the ith standard basis element of the double dual $\partial _i$
 as the ith standard basis element of the double dual $V^{**}$
, although the notation $V^{**}$
, although the notation $\partial _i$
 is indeed meant as an abbreviation for the differential operator $\partial _i$
 is indeed meant as an abbreviation for the differential operator $\partial /\partial x_i$
. (See Section 6 for the motivation from the Weyl algebra, i.e., the algebra of polynomial-coefficient differential operators. Note, however, that the analysis in this paper will not use the non-commutative algebra structure of the Weyl algebra, which we view only as a representation of $\partial /\partial x_i$
. (See Section 6 for the motivation from the Weyl algebra, i.e., the algebra of polynomial-coefficient differential operators. Note, however, that the analysis in this paper will not use the non-commutative algebra structure of the Weyl algebra, which we view only as a representation of $\mathrm {GL}_n$
.) $\mathrm {GL}_n$
.)
- 
– For  $\alpha ,\beta \in \mathbb N^n$
, we write $\alpha ,\beta \in \mathbb N^n$
, we write . .
- 
– We have the monomial basis  $\{\mathbf x^\alpha \boldsymbol {\partial }^\beta \mid \alpha ,\beta \in \mathbb N^n\}$
 for $\{\mathbf x^\alpha \boldsymbol {\partial }^\beta \mid \alpha ,\beta \in \mathbb N^n\}$
 for $\Psi $
. $\Psi $
.
- 
– We define the linear functional  $ c_{\alpha ,\beta } : \Psi \longrightarrow \mathbb C$
, which takes the value 1 on the basis vector $ c_{\alpha ,\beta } : \Psi \longrightarrow \mathbb C$
, which takes the value 1 on the basis vector $\mathbf x^\alpha \boldsymbol {\partial }^\beta $
 and 0 on all other basis vectors. $\mathbf x^\alpha \boldsymbol {\partial }^\beta $
 and 0 on all other basis vectors.
- 
– Hence, we have  $\mathcal P(\Psi ) = \mathbb C[c_{\alpha ,\beta }]_{\alpha ,\beta \in \mathbb N^n}$
. $\mathcal P(\Psi ) = \mathbb C[c_{\alpha ,\beta }]_{\alpha ,\beta \in \mathbb N^n}$
.
 
- 
- 
• For  $G = \operatorname {O}_n$
: $G = \operatorname {O}_n$
:- 
– We have  . .
- 
– We have the monomial basis  $\{\mathbf x^\alpha \mid \alpha \in \mathbb N^n\}$
 for $\{\mathbf x^\alpha \mid \alpha \in \mathbb N^n\}$
 for $\Psi $
, where $\Psi $
, where . .
- 
– We define the linear functional  $c_\alpha : \Psi \longrightarrow \mathbb C$
, which takes the value 1 on the basis vector $c_\alpha : \Psi \longrightarrow \mathbb C$
, which takes the value 1 on the basis vector $\mathbf x^\alpha $
 and 0 on all other basis vectors. $\mathbf x^\alpha $
 and 0 on all other basis vectors.
- 
– Hence we have  $\mathcal P(\Psi ) = \mathbb C[c_\alpha ]_{\alpha \in \mathbb N^n}$
. $\mathcal P(\Psi ) = \mathbb C[c_\alpha ]_{\alpha \in \mathbb N^n}$
.
 
- 
- 
• For  $G = \operatorname {\mathrm {Sp}}_{2n}$
: $G = \operatorname {\mathrm {Sp}}_{2n}$
:- 
– We have  . .
- 
– We have the monomial basis  $\{\mathbf x^\alpha \mid \alpha \in \mathbb N^{2n}\}$
 for $\{\mathbf x^\alpha \mid \alpha \in \mathbb N^{2n}\}$
 for $\Psi $
. $\Psi $
.
- 
– We define the linear functional  $c_\alpha :\Psi \longrightarrow \mathbb C$
, just as for $c_\alpha :\Psi \longrightarrow \mathbb C$
, just as for $\operatorname {O}_n$
 above. $\operatorname {O}_n$
 above.
- 
– Hence, we have  $\mathcal P(\Psi ) = \mathbb C[c_\alpha ]_{\alpha \in \mathbb N^{2n}}$
. $\mathcal P(\Psi ) = \mathbb C[c_\alpha ]_{\alpha \in \mathbb N^{2n}}$
.
 
- 
 The span of the c’s is the graded dual  , where
, where 
 $\Psi _i$
 is the ith homogeneous graded component of
$\Psi _i$
 is the ith homogeneous graded component of 
 $\Psi $
 with respect to polynomial degree. Note that
$\Psi $
 with respect to polynomial degree. Note that 
 $\Psi ^\circ $
 is not the same as the full dual space
$\Psi ^\circ $
 is not the same as the full dual space 
 $\Psi ^*$
, which includes infinite linear combinations of the c’s. The “c” notation stands for “coefficient,” since the c’s extract the coefficient of the corresponding monomial. Hence, our desired invariants will be polynomials in these c’s, i.e., elements of
$\Psi ^*$
, which includes infinite linear combinations of the c’s. The “c” notation stands for “coefficient,” since the c’s extract the coefficient of the corresponding monomial. Hence, our desired invariants will be polynomials in these c’s, i.e., elements of 
 $\mathcal P(\Psi )\cong S(\Psi ^\circ )$
. As is customary in the literature, we define scaled coefficients
$\mathcal P(\Psi )\cong S(\Psi ^\circ )$
. As is customary in the literature, we define scaled coefficients 
 $\widehat {c}$
 as follows, writing
$\widehat {c}$
 as follows, writing  :
: 

 We will appeal to the graded isomorphism of G-modules 
 $\Psi \cong \Psi ^\circ $
 given by
$\Psi \cong \Psi ^\circ $
 given by 
 $$ \begin{align} \begin{cases} \mathbf x^\alpha\boldsymbol{\partial}^\beta \longmapsto \widehat{c}_{\alpha,\beta}, & G = \operatorname{\mathrm{GL}}_n,\\ \phantom{\mathbf x^\alpha}\mathbf x^\alpha \longmapsto \widehat{c}_\alpha, & G = \operatorname{O}_n \text{ or }\operatorname{\mathrm{Sp}}_{2n}. \end{cases} \end{align} $$
$$ \begin{align} \begin{cases} \mathbf x^\alpha\boldsymbol{\partial}^\beta \longmapsto \widehat{c}_{\alpha,\beta}, & G = \operatorname{\mathrm{GL}}_n,\\ \phantom{\mathbf x^\alpha}\mathbf x^\alpha \longmapsto \widehat{c}_\alpha, & G = \operatorname{O}_n \text{ or }\operatorname{\mathrm{Sp}}_{2n}. \end{cases} \end{align} $$
(See [Reference WallachWal17, p. 117] and [Reference DolgachevDol03, pp. 7–8].) From a different perspective, it is a standard fact (see [Reference DolgachevDol03, Remark 1.2]) that the differential operator 
 $\boldsymbol {\partial }^\alpha $
 and the monomial
$\boldsymbol {\partial }^\alpha $
 and the monomial 
 $\mathbf x^\alpha $
 transform dually under a classical group action; hence, in each graded component, the isomorphism in (2.1) can equivalently be written as
$\mathbf x^\alpha $
 transform dually under a classical group action; hence, in each graded component, the isomorphism in (2.1) can equivalently be written as 
 $$ \begin{align*} \begin{cases} \mathbf x^\alpha\boldsymbol{\partial}^\beta \longmapsto \boldsymbol{\partial}^\alpha \mathbf x^\beta, & G = \operatorname{\mathrm{GL}}_n,\\ \phantom{\mathbf x^\alpha}\mathbf x^\alpha \longmapsto \boldsymbol{\partial}^\alpha,& G = \operatorname{O}_n \text{ or }\operatorname{\mathrm{Sp}}_{2n}. \end{cases} \end{align*} $$
$$ \begin{align*} \begin{cases} \mathbf x^\alpha\boldsymbol{\partial}^\beta \longmapsto \boldsymbol{\partial}^\alpha \mathbf x^\beta, & G = \operatorname{\mathrm{GL}}_n,\\ \phantom{\mathbf x^\alpha}\mathbf x^\alpha \longmapsto \boldsymbol{\partial}^\alpha,& G = \operatorname{O}_n \text{ or }\operatorname{\mathrm{Sp}}_{2n}. \end{cases} \end{align*} $$
Here, we regard 
 $\boldsymbol {\partial }^\alpha \mathbf x^\beta $
 as the operator acting via
$\boldsymbol {\partial }^\alpha \mathbf x^\beta $
 as the operator acting via 
 $\boldsymbol {\partial }^\alpha \mathbf x^\beta (\mathbf x^\gamma \boldsymbol {\partial }^\delta ) = \boldsymbol {\partial }^\alpha (\mathbf x^\gamma )\cdot \boldsymbol {\partial }^\delta (\mathbf x^\beta )$
. For example, if
$\boldsymbol {\partial }^\alpha \mathbf x^\beta (\mathbf x^\gamma \boldsymbol {\partial }^\delta ) = \boldsymbol {\partial }^\alpha (\mathbf x^\gamma )\cdot \boldsymbol {\partial }^\delta (\mathbf x^\beta )$
. For example, if 
 $G=\operatorname {\mathrm {GL}}_2$
 and
$G=\operatorname {\mathrm {GL}}_2$
 and 
 $\Psi _{4,3} = \operatorname {span}\{\mathbf x^\alpha \boldsymbol {\partial }^\beta : |\alpha |=4, \: |\beta |=3\}$
, then
$\Psi _{4,3} = \operatorname {span}\{\mathbf x^\alpha \boldsymbol {\partial }^\beta : |\alpha |=4, \: |\beta |=3\}$
, then 
 $\partial _1^3 \partial _2^{\phantom {1}} x_1^{\phantom {1}} x_2^2$
 equals the functional
$\partial _1^3 \partial _2^{\phantom {1}} x_1^{\phantom {1}} x_2^2$
 equals the functional 
 $\widehat {c}_{(3,1),(1,2)}$
, since it takes the value
$\widehat {c}_{(3,1),(1,2)}$
, since it takes the value 
 $3!\cdot 1! \cdot 1! \cdot 2!$
 on the monomial
$3!\cdot 1! \cdot 1! \cdot 2!$
 on the monomial 
 $x_1^3 x_2^{\phantom {1}} \partial _1^{\phantom {1}}\partial _2^2 \in \Psi _{4,3}$
, and takes the value 0 on all other monomials in
$x_1^3 x_2^{\phantom {1}} \partial _1^{\phantom {1}}\partial _2^2 \in \Psi _{4,3}$
, and takes the value 0 on all other monomials in 
 $\Psi _{4,3}$
.
$\Psi _{4,3}$
.
 In order to obtain finite-dimensional graded components, we impose a bigradation on 
 $\mathcal P(\Psi )$
. First is the natural gradation by degree; hence,
$\mathcal P(\Psi )$
. First is the natural gradation by degree; hence, 
 $\mathcal P^d(\Psi )$
 is the space of homogeneous polynomials of degree d in the c’s. The second gradation is by weight. To make this clear, we write
$\mathcal P^d(\Psi )$
 is the space of homogeneous polynomials of degree d in the c’s. The second gradation is by weight. To make this clear, we write  , and then we define the weight of a monomial in the c’s as follows:
, and then we define the weight of a monomial in the c’s as follows:
Definition 2.1 For 
 $G=\operatorname {\mathrm {GL}}_n$
, the weight of the monomial
$G=\operatorname {\mathrm {GL}}_n$
, the weight of the monomial 
 $c_{\alpha ,\beta } \cdots c_{\psi ,\omega }$
 equals
$c_{\alpha ,\beta } \cdots c_{\psi ,\omega }$
 equals 
 $\frac {1}{2}(|\alpha | + |\beta | + \cdots + |\psi |+|\omega |)$
. For
$\frac {1}{2}(|\alpha | + |\beta | + \cdots + |\psi |+|\omega |)$
. For 
 $G=\operatorname {O}_n$
 or
$G=\operatorname {O}_n$
 or 
 $\operatorname {\mathrm {Sp}}_{2n}$
, the weight of the monomial
$\operatorname {\mathrm {Sp}}_{2n}$
, the weight of the monomial 
 $c_\alpha \! \cdots c_\omega $
 equals
$c_\alpha \! \cdots c_\omega $
 equals 
 $\frac {1}{2}(|\alpha | + \cdots + |\omega |)$
.
$\frac {1}{2}(|\alpha | + \cdots + |\omega |)$
.
 As we will see, the factor 
 $\frac {1}{2}$
 arises due to the fact that the fundamental invariants are quadratics. Now we define
$\frac {1}{2}$
 arises due to the fact that the fundamental invariants are quadratics. Now we define 
 $\mathcal P_k(\Psi )$
 to be the space of polynomials that are homogeneous (i.e., “isobaric,” in the classical language) of weight k. Finally, we set
$\mathcal P_k(\Psi )$
 to be the space of polynomials that are homogeneous (i.e., “isobaric,” in the classical language) of weight k. Finally, we set  .
.
2.3 Weyl’s fundamental theorems
 In his monumental book [Reference WeylWey39], Weyl determined generators and relations for the ring of invariants, in the setting where a classical group G acts naturally on an arbitrary number d of vectors (and covectors, when 
 $G = \operatorname {\mathrm {GL}}_n$
). For all three classical groups, the first fundamental theorem (FFT) states that the generators are certain quadratic functions
$G = \operatorname {\mathrm {GL}}_n$
). For all three classical groups, the first fundamental theorem (FFT) states that the generators are certain quadratic functions 
 $r_{ij}$
. The second fundamental theorem (SFT) states the relations as the determinants (or Pfaffians) of certain minors in the
$r_{ij}$
. The second fundamental theorem (SFT) states the relations as the determinants (or Pfaffians) of certain minors in the 
 $r_{ij}$
.
$r_{ij}$
.
 Combining the FFT and the SFT, one obtains an algebra isomorphism 
 $\mu ^\sharp $
 between the ring of invariants, on one hand, and the coordinate ring of a certain determinantal variety, on the other hand. (The notation
$\mu ^\sharp $
 between the ring of invariants, on one hand, and the coordinate ring of a certain determinantal variety, on the other hand. (The notation 
 $\mu ^\sharp $
 is typical in the literature, because this map is the comorphism induced by a matrix multiplication map
$\mu ^\sharp $
 is typical in the literature, because this map is the comorphism induced by a matrix multiplication map 
 $\mu $
.) We will use the notation
$\mu $
.) We will use the notation 
 $\operatorname {\mathrm {SM}}_d \subset \operatorname {\mathrm {M}}_d$
 for the subspace of symmetric matrices, and
$\operatorname {\mathrm {SM}}_d \subset \operatorname {\mathrm {M}}_d$
 for the subspace of symmetric matrices, and 
 $\operatorname {\mathrm {AM}}_d \subset \operatorname {\mathrm {M}}_d$
 for the subspace of alternating (i.e., skew-symmetric) matrices; we let
$\operatorname {\mathrm {AM}}_d \subset \operatorname {\mathrm {M}}_d$
 for the subspace of alternating (i.e., skew-symmetric) matrices; we let 
 $z_{ij}$
 denote the natural coordinate functions on
$z_{ij}$
 denote the natural coordinate functions on 
 $\operatorname {\mathrm {M}}_d$
. The aforementioned determinantal varieties are denoted by
$\operatorname {\mathrm {M}}_d$
. The aforementioned determinantal varieties are denoted by 

For our purposes in this paper, we present a version of the combined FFT and SFT below (once for each classical group) in terms of matrix coordinates 
 $x_{ij}$
, rather than the coordinate-free presentation used by Weyl.
$x_{ij}$
, rather than the coordinate-free presentation used by Weyl.
Theorem 2.1 (FFT and SFT for 
 $G = \operatorname {\mathrm {GL}}_n$
)
$G = \operatorname {\mathrm {GL}}_n$
)
 Let 
 $G = \operatorname {\mathrm {GL}}_n$
, acting on
$G = \operatorname {\mathrm {GL}}_n$
, acting on 
 $\operatorname {\mathrm {M}}_{nd} \oplus \operatorname {\mathrm {M}}_{nd} \cong V^{\oplus d} \oplus (V^*)^{\oplus d}$
 via
$\operatorname {\mathrm {M}}_{nd} \oplus \operatorname {\mathrm {M}}_{nd} \cong V^{\oplus d} \oplus (V^*)^{\oplus d}$
 via 
 $g \cdot (X,Y) = (gX, (g^{-1})^TY)$
. Set
$g \cdot (X,Y) = (gX, (g^{-1})^TY)$
. Set 

Then 
 $R^G$
 is generated by the quadratics
$R^G$
 is generated by the quadratics 

Moreover, we have the following isomorphism of algebras:
 $$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{M}}_d^{\leq n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
$$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{M}}_d^{\leq n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
Theorem 2.2 (FFT and SFT for 
 $G = \operatorname {O}_n$
)
$G = \operatorname {O}_n$
)
 Let 
 $G = \operatorname {O}_n$
, acting by matrix multiplication on
$G = \operatorname {O}_n$
, acting by matrix multiplication on 
 $\operatorname {\mathrm {M}}_{nd} \cong V^{\oplus d}$
. Set
$\operatorname {\mathrm {M}}_{nd} \cong V^{\oplus d}$
. Set 

Then 
 $R^G$
 is generated by the quadratics
$R^G$
 is generated by the quadratics 

Moreover, we have the following isomorphism of algebras:
 $$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{SM}}_d^{\leq n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
$$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{SM}}_d^{\leq n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
Theorem 2.3 (FFT and SFT for 
 $G = \operatorname {\mathrm {Sp}}_{2n}$
)
$G = \operatorname {\mathrm {Sp}}_{2n}$
)
 Let 
 $G = \operatorname {\mathrm {Sp}}_{2n}$
, acting by matrix multiplication on
$G = \operatorname {\mathrm {Sp}}_{2n}$
, acting by matrix multiplication on 
 $\operatorname {\mathrm {M}}_{2n,d} \cong V^{\oplus d}$
. Set
$\operatorname {\mathrm {M}}_{2n,d} \cong V^{\oplus d}$
. Set 

Then 
 $R^G$
 is generated by the quadratics
$R^G$
 is generated by the quadratics 

Moreover, we have the following isomorphism of algebras:
 $$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{AM}}_d^{\leq 2n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
$$ \begin{align} \begin{split} \mu^{\sharp}:\mathcal P(\operatorname{\mathrm{AM}}_d^{\leq 2n}) &\longrightarrow R^G,\\ z_{ij} & \longmapsto r_{ij}. \end{split} \end{align} $$
3 Linear bases in terms of graphs
 Weyl’s fundamental theorems foreshadow the effectiveness of graphical data in invariant theory. Indeed, by viewing each 
 $r_{ij}$
 as an edge between vertices i and j, it is quite natural to regard labeled graphs as monomials which span the invariant ring. This idea underlies our main result in this section.
$r_{ij}$
 as an edge between vertices i and j, it is quite natural to regard labeled graphs as monomials which span the invariant ring. This idea underlies our main result in this section.
3.1 General algorithm
 Our first result is the following algorithm, where the input is a certain type of graph with d vertices and k edges, and the output is a basis element in 
 $\mathcal P^d_k(\Psi )^G$
. The algorithm takes the same form for all three classical groups. (See also the Appendix, where we include Mathematica code to implement the algorithm.) Recall that to each classical group G, we have already associated (in Theorems 2.1–2.3) a polynomial ring R and the quadratics
$\mathcal P^d_k(\Psi )^G$
. The algorithm takes the same form for all three classical groups. (See also the Appendix, where we include Mathematica code to implement the algorithm.) Recall that to each classical group G, we have already associated (in Theorems 2.1–2.3) a polynomial ring R and the quadratics 
 $r_{ij} \in R$
. In the following three subsections, we will specify the set
$r_{ij} \in R$
. In the following three subsections, we will specify the set 
 $\mathcal {G}^d_k$
 of graphs for each group. The key to the algorithm is a G-equivariant linear operator
$\mathcal {G}^d_k$
 of graphs for each group. The key to the algorithm is a G-equivariant linear operator 
 $\varphi :R \longrightarrow \mathcal P^d(\Psi )$
, which (following [Reference SturmfelsStu08, p. 174]) we call the umbral operator. Again, in the following three subsections, we will explicitly define
$\varphi :R \longrightarrow \mathcal P^d(\Psi )$
, which (following [Reference SturmfelsStu08, p. 174]) we call the umbral operator. Again, in the following three subsections, we will explicitly define 
 $\varphi $
 for each group.
$\varphi $
 for each group.

Remark 3.2 In Step 2 of the algorithm, the expression 
 $s(\Gamma )$
 is the symbolic notation for a G-invariant function, in the sense of nineteenth-century classical invariant theory; hence our “s” notation. See [Reference SturmfelsStu08, p. 173] or [Reference OlverOlv99, Chapter 6] for discussions of the symbolic method. In Step 3, the umbral operator
$s(\Gamma )$
 is the symbolic notation for a G-invariant function, in the sense of nineteenth-century classical invariant theory; hence our “s” notation. See [Reference SturmfelsStu08, p. 173] or [Reference OlverOlv99, Chapter 6] for discussions of the symbolic method. In Step 3, the umbral operator 
 $\varphi $
 then translates the symbolic notation for an invariant into an explicit expression in terms of coefficients.
$\varphi $
 then translates the symbolic notation for an invariant into an explicit expression in terms of coefficients.
Example 3.3 To gain some intuition for Algorithm 3.1 applied to an individual graph, let 
 $G = \operatorname {\mathrm {GL}}_n$
, and set the parameters
$G = \operatorname {\mathrm {GL}}_n$
, and set the parameters 
 $n=4$
,
$n=4$
, 
 $d = 3$
, and
$d = 3$
, and 
 $k = 5$
:
$k = 5$
: 
- 
(1) Start with the following digraph  $\Gamma \in \mathcal {G}^3_5$
 (defined below in Section 3.2); choosing to label the vertices 1–3 from left to right, we then obtain the adjacency matrix $\Gamma \in \mathcal {G}^3_5$
 (defined below in Section 3.2); choosing to label the vertices 1–3 from left to right, we then obtain the adjacency matrix $A^\Gamma $
: $A^\Gamma $
: 
- 
(2) Reading  $A^\Gamma $
 as the degree matrix of a monomial in the quadratics $A^\Gamma $
 as the degree matrix of a monomial in the quadratics $r_{ij}$
, we obtain $r_{ij}$
, we obtain $$\begin{align*}s(\Gamma) = r_{12} r_{23}^2 r_{32} r_{33}. \end{align*}$$ $$\begin{align*}s(\Gamma) = r_{12} r_{23}^2 r_{32} r_{33}. \end{align*}$$
- 
(3) Following (2.3), the expansion of  $s(\Gamma )$
 contains 640 terms in the variables $s(\Gamma )$
 contains 640 terms in the variables $x_{ij}$
 and $x_{ij}$
 and $y_{ij}$
. For example, one of these terms is $y_{ij}$
. For example, one of these terms is $x_{22} x_{32}x_{43}^3 y_{21} y_{42}^2 y_{33} y_{43}$
. The umbral operator $x_{22} x_{32}x_{43}^3 y_{21} y_{42}^2 y_{33} y_{43}$
. The umbral operator $\varphi $
, as defined below in (3.1), transforms this term into a product of $\varphi $
, as defined below in (3.1), transforms this term into a product of $\widehat {c}$
’s in $\widehat {c}$
’s in $\mathcal P^3_5(\Psi )^{\operatorname {\mathrm {GL}}_4}$
: Recalling the definition of $\mathcal P^3_5(\Psi )^{\operatorname {\mathrm {GL}}_4}$
: Recalling the definition of $$\begin{align*}\varphi: x_{22} x_{32}x_{43}^3 y_{21} y_{42}^2 y_{33} y_{43} \longmapsto \widehat{c}_{(0000),(0100)} \widehat{c}_{(0110),(0002)} \widehat{c}_{(0003),(0011)}. \end{align*}$$ $$\begin{align*}\varphi: x_{22} x_{32}x_{43}^3 y_{21} y_{42}^2 y_{33} y_{43} \longmapsto \widehat{c}_{(0000),(0100)} \widehat{c}_{(0110),(0002)} \widehat{c}_{(0003),(0011)}. \end{align*}$$ $\widehat {c}_{\alpha ,\beta }$
 from Section 2.2, we can spell out this term concretely as a function on $\widehat {c}_{\alpha ,\beta }$
 from Section 2.2, we can spell out this term concretely as a function on $\Psi = \mathbb C[x_1, \ldots , x_4, \partial _1, \ldots , \partial _4]$
, as follows: Carrying this out for all terms in $\Psi = \mathbb C[x_1, \ldots , x_4, \partial _1, \ldots , \partial _4]$
, as follows: Carrying this out for all terms in $$\begin{align*}6 \cdot (\text{coeff.~of }\partial_2) \cdot (\text{coeff.~of }x_2x_3\partial_4^2) \cdot (\text{coeff.~of }x_4^3\partial_3 \partial_4). \end{align*}$$ $$\begin{align*}6 \cdot (\text{coeff.~of }\partial_2) \cdot (\text{coeff.~of }x_2x_3\partial_4^2) \cdot (\text{coeff.~of }x_4^3\partial_3 \partial_4). \end{align*}$$ $s(\Gamma )$
 and taking the sum, one obtains the invariant $s(\Gamma )$
 and taking the sum, one obtains the invariant $\varphi \circ s(\Gamma )$
. Since $\varphi \circ s(\Gamma )$
. Since $n \geq d$
 in this example, we are in the stable range (1.1), and so $n \geq d$
 in this example, we are in the stable range (1.1), and so $\Gamma \mapsto \varphi \circ s(\Gamma )$
 is a bijection between $\Gamma \mapsto \varphi \circ s(\Gamma )$
 is a bijection between $\mathcal {G}^3_5$
 and a linear basis for $\mathcal {G}^3_5$
 and a linear basis for $\mathcal P^3_5(\Psi )^{\operatorname {\mathrm {GL}}_4}$
. $\mathcal P^3_5(\Psi )^{\operatorname {\mathrm {GL}}_4}$
.
3.2 Details: the general linear group
 For 
 $G = \operatorname {\mathrm {GL}}_n$
, we define
$G = \operatorname {\mathrm {GL}}_n$
, we define 
 $\mathcal G^d_k$
 to be the set of directed multigraphs with loops, with d vertices and k edges, up to isomorphism. The quadratics
$\mathcal G^d_k$
 to be the set of directed multigraphs with loops, with d vertices and k edges, up to isomorphism. The quadratics 
 $r_{ij}$
 are defined in (2.3). Define the umbral operator
$r_{ij}$
 are defined in (2.3). Define the umbral operator 
 $\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by
$\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by 
 $$ \begin{align} \varphi: \prod_{i,j} x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j,}}\: q_{_{\bullet j}}}, \end{align} $$
$$ \begin{align} \varphi: \prod_{i,j} x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j,}}\: q_{_{\bullet j}}}, \end{align} $$
where 
 $p_{_{\bullet j}} = \left (p_{1j},\ldots ,p_{nj}\right )$
 and
$p_{_{\bullet j}} = \left (p_{1j},\ldots ,p_{nj}\right )$
 and 
 $q_{_{\bullet j}} = \left (q_{1j},\ldots ,q_{nj}\right )$
, and extend by linearity.
$q_{_{\bullet j}} = \left (q_{1j},\ldots ,q_{nj}\right )$
, and extend by linearity.
3.3 Details: the orthogonal group
 For 
 $G = \operatorname {O}_n$
, we define
$G = \operatorname {O}_n$
, we define 
 $\mathcal G^d_k$
 to be the set of undirected multigraphs with loops, with d vertices and k edges, up to isomorphism. The quadratics
$\mathcal G^d_k$
 to be the set of undirected multigraphs with loops, with d vertices and k edges, up to isomorphism. The quadratics 
 $r_{ij}$
 are defined in (2.6). Define the umbral operator
$r_{ij}$
 are defined in (2.6). Define the umbral operator 
 $\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by
$\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by 
 $$ \begin{align} \varphi:\prod_{i,j} x_{ij}^{p_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j}}}, \end{align} $$
$$ \begin{align} \varphi:\prod_{i,j} x_{ij}^{p_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j}}}, \end{align} $$
where 
 $p_{\bullet j} = \left (p_{1j},\ldots ,p_{nj}\right )$
, and extend by linearity.
$p_{\bullet j} = \left (p_{1j},\ldots ,p_{nj}\right )$
, and extend by linearity.
3.4 Details: the symplectic group
 For 
 $G = \operatorname {\mathrm {Sp}}_{2n}$
, the graphs in
$G = \operatorname {\mathrm {Sp}}_{2n}$
, the graphs in 
 $\mathcal G^d_k$
 are more delicate to define. Let
$\mathcal G^d_k$
 are more delicate to define. Let 
 $\Gamma $
 be an undirected multigraph with no loops, having d vertices. Arbitrarily choose vertex labels
$\Gamma $
 be an undirected multigraph with no loops, having d vertices. Arbitrarily choose vertex labels 
 $1, \ldots , d$
; then each element
$1, \ldots , d$
; then each element 
 $\sigma $
 of the symmetric group
$\sigma $
 of the symmetric group 
 ${\mathfrak S_d}$
 determines another labeled graph
${\mathfrak S_d}$
 determines another labeled graph 
 $\sigma \cdot \Gamma $
, obtained by permuting the original labels. The stabilizer
$\sigma \cdot \Gamma $
, obtained by permuting the original labels. The stabilizer 
 $\operatorname {stab}_{{\mathfrak S_d}}(\Gamma )$
 contains all elements
$\operatorname {stab}_{{\mathfrak S_d}}(\Gamma )$
 contains all elements 
 $\sigma \in {\mathfrak S_d}$
 such that
$\sigma \in {\mathfrak S_d}$
 such that 
 $\Gamma $
 is isomorphic to
$\Gamma $
 is isomorphic to 
 $\sigma \cdot \Gamma $
 as a labeled graph. If
$\sigma \cdot \Gamma $
 as a labeled graph. If 
 $\{i,j\}$
 is an edge of
$\{i,j\}$
 is an edge of 
 $\Gamma $
 with
$\Gamma $
 with 
 $i < j$
, then we say that
$i < j$
, then we say that 
 $\sigma $
 inverts
$\sigma $
 inverts 
 $\{i,j\}$
 if
$\{i,j\}$
 if 
 $\sigma (i)> \sigma (j)$
. We now define the following set of graphs for the case
$\sigma (i)> \sigma (j)$
. We now define the following set of graphs for the case 
 $G=\operatorname {\mathrm {Sp}}_{2n}$
:
$G=\operatorname {\mathrm {Sp}}_{2n}$
: 

This set is independent of the initial choice of labeling for 
 $\Gamma $
, since
$\Gamma $
, since 
 ${\mathfrak S_d}$
 acts d-transitively on the vertex labels. Below we present examples of the graphs in
${\mathfrak S_d}$
 acts d-transitively on the vertex labels. Below we present examples of the graphs in 
 $\mathcal G^d_k$
 for
$\mathcal G^d_k$
 for 
 $d \leq 3$
. (For
$d \leq 3$
. (For 
 $d=1$
, by definition,
$d=1$
, by definition, 
 $\mathcal G^1_k = \varnothing $
 since loops are not allowed.)
$\mathcal G^1_k = \varnothing $
 since loops are not allowed.)
Example 3.4 Let 
 $d=2$
, so that any loopless graph
$d=2$
, so that any loopless graph 
 $\Gamma $
 consists of k edges connecting the two vertices. Then both elements of
$\Gamma $
 consists of k edges connecting the two vertices. Then both elements of 
 $\mathfrak S_2$
 stabilize the labeled graph
$\mathfrak S_2$
 stabilize the labeled graph 
 $\Gamma $
. Since the nontrivial element of
$\Gamma $
. Since the nontrivial element of 
 $\mathfrak S_2$
 inverts all k edges, we have that
$\mathfrak S_2$
 inverts all k edges, we have that 
 $\Gamma \in \mathcal G^2_k$
 if and only if k is even. Hence,
$\Gamma \in \mathcal G^2_k$
 if and only if k is even. Hence, 
 $\# \mathcal G^2_k$
 equals
$\# \mathcal G^2_k$
 equals 
 $1$
 if k is even, and
$1$
 if k is even, and 
 $0$
 if k is odd.
$0$
 if k is odd.
Example 3.5 Now suppose 
 $d=3$
. Below we list the elements of
$d=3$
. Below we list the elements of 
 $\mathcal G^3_k$
 for the first few values of k. The reader can check that we have included precisely the graphs defined in (3.3):
$\mathcal G^3_k$
 for the first few values of k. The reader can check that we have included precisely the graphs defined in (3.3): 

 As for the remaining details in Algorithm 3.1 for 
 $G=\operatorname {\mathrm {Sp}}_{2n}$
: the quadratics
$G=\operatorname {\mathrm {Sp}}_{2n}$
: the quadratics 
 $r_{ij}$
 are defined in (2.9), and we define the umbral operator
$r_{ij}$
 are defined in (2.9), and we define the umbral operator 
 $\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by
$\varphi : R \longrightarrow \mathcal P^d(\Psi )$
 by 
 $$ \begin{align} \varphi:\prod_{i,j} x_{ij}^{p_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j}}}, \end{align} $$
$$ \begin{align} \varphi:\prod_{i,j} x_{ij}^{p_{ij}} \longmapsto \prod_{j=1}^d \widehat{c}_{p_{_{\bullet j}}}, \end{align} $$
where 
 $p_{\bullet j} = \left (p_{1j},\ldots ,p_{2n,j}\right )$
, and extend by linearity.
$p_{\bullet j} = \left (p_{1j},\ldots ,p_{2n,j}\right )$
, and extend by linearity.
4 Proof of Algorithm 3.1
 The essence of the proof is the symmetrization of Weyl’s fundamental theorems: that is, we restrict the isomorphism 
 $\mu ^\sharp $
 (as defined in Theorems 2.1–2.3) to the subspace of invariants under the action of the symmetric group
$\mu ^\sharp $
 (as defined in Theorems 2.1–2.3) to the subspace of invariants under the action of the symmetric group 
 ${\mathfrak S_d}$
. Following [Reference SturmfelsStu08, p. 174], on any
${\mathfrak S_d}$
. Following [Reference SturmfelsStu08, p. 174], on any 
 ${\mathfrak S_d}$
-module, we denote the symmetrization operator (i.e., the Reynolds operator for
${\mathfrak S_d}$
-module, we denote the symmetrization operator (i.e., the Reynolds operator for 
 ${\mathfrak S_d}$
) by a star, so that
${\mathfrak S_d}$
) by a star, so that 

 We first observe that 
 $\mu ^\sharp $
 is
$\mu ^\sharp $
 is 
 ${\mathfrak S_d}$
-equivariant, as follows. On one hand,
${\mathfrak S_d}$
-equivariant, as follows. On one hand, 
 ${\mathfrak S_d}$
 acts on
${\mathfrak S_d}$
 acts on 
 $\operatorname {\mathrm {M}}_d$
 by simultaneous permutations of rows and columns (i.e., via conjugation by permutation matrices). This makes
$\operatorname {\mathrm {M}}_d$
 by simultaneous permutations of rows and columns (i.e., via conjugation by permutation matrices). This makes 
 $\mathcal P(\operatorname {\mathrm {M}}_d)$
 into an
$\mathcal P(\operatorname {\mathrm {M}}_d)$
 into an 
 ${\mathfrak S_d}$
-module, where
${\mathfrak S_d}$
-module, where 
 $\sigma \cdot z_{ij} = z_{\sigma ^{-1}(i), \sigma ^{-1}(j)}$
 for
$\sigma \cdot z_{ij} = z_{\sigma ^{-1}(i), \sigma ^{-1}(j)}$
 for 
 $\sigma \in {\mathfrak S_d}$
. On the other hand,
$\sigma \in {\mathfrak S_d}$
. On the other hand, 
 ${\mathfrak S_d}$
 acts on
${\mathfrak S_d}$
 acts on 
 $V^{\oplus d}$
 by permuting copies of V, and this makes the polynomial ring R into an
$V^{\oplus d}$
 by permuting copies of V, and this makes the polynomial ring R into an 
 ${\mathfrak S_d}$
-module, via
${\mathfrak S_d}$
-module, via 
 $\sigma \cdot x_{ij} = x_{i,\sigma ^{-1}(j)}$
 and
$\sigma \cdot x_{ij} = x_{i,\sigma ^{-1}(j)}$
 and 
 $\sigma \cdot y_{ij} = y_{i, \sigma ^{-1}(j)}$
. It is easy to check that
$\sigma \cdot y_{ij} = y_{i, \sigma ^{-1}(j)}$
. It is easy to check that 
 $\mu ^\sharp $
 intertwines these two
$\mu ^\sharp $
 intertwines these two 
 ${\mathfrak S_d}$
-actions.
${\mathfrak S_d}$
-actions.
 We provide full details for 
 $\operatorname {\mathrm {GL}}_n$
, and then simply note the adjustments required for
$\operatorname {\mathrm {GL}}_n$
, and then simply note the adjustments required for 
 $\operatorname {O}_n$
 and
$\operatorname {O}_n$
 and 
 $\operatorname {\mathrm {Sp}}_{2n}$
. Experts will recognize several of our isomorphisms as examples of polarization and restitution, to use the language of classical invariant theory [Reference DolgachevDol03, Section 1.2].
$\operatorname {\mathrm {Sp}}_{2n}$
. Experts will recognize several of our isomorphisms as examples of polarization and restitution, to use the language of classical invariant theory [Reference DolgachevDol03, Section 1.2].
Proof (general linear group)
 Let 
 $R_k \subset R$
 denote the component consisting of polynomials which are bihomogeneous of degree k in the
$R_k \subset R$
 denote the component consisting of polynomials which are bihomogeneous of degree k in the 
 $x_{ij}$
 and degree k in the
$x_{ij}$
 and degree k in the 
 $y_{ij}$
. Note that
$y_{ij}$
. Note that 
 $\mu ^\sharp : \mathcal P(\operatorname {\mathrm {M}}_d^{\leq n}) \longrightarrow R^G$
 restricts to a linear isomorphism between graded components
$\mu ^\sharp : \mathcal P(\operatorname {\mathrm {M}}_d^{\leq n}) \longrightarrow R^G$
 restricts to a linear isomorphism between graded components 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n}) \longrightarrow R_k^G$
. Now we consider the following diagram, where we claim that all six vertical arrows (in particular, the two thick arrows on the right-hand side) are linear isomorphisms:
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n}) \longrightarrow R_k^G$
. Now we consider the following diagram, where we claim that all six vertical arrows (in particular, the two thick arrows on the right-hand side) are linear isomorphisms: 

The two vertical arrows to the right of the map 
 $\mu ^\sharp $
 are successive restrictions of
$\mu ^\sharp $
 are successive restrictions of 
 $\mu ^\sharp $
. Since
$\mu ^\sharp $
. Since 
 $\mu ^\sharp $
 is
$\mu ^\sharp $
 is 
 ${\mathfrak S_d}$
-equivariant, its first restriction is a linear isomorphism; moreover, as observed above the diagram, the second restriction of
${\mathfrak S_d}$
-equivariant, its first restriction is a linear isomorphism; moreover, as observed above the diagram, the second restriction of 
 $\mu ^\sharp $
 is also a linear isomorphism between graded components.
$\mu ^\sharp $
 is also a linear isomorphism between graded components.
 The three vertical arrows to the right of the map 
 $\varphi $
 in (4.1) are successive restrictions of
$\varphi $
 in (4.1) are successive restrictions of 
 $\varphi $
. It is clear from its definition in (3.1) that
$\varphi $
. It is clear from its definition in (3.1) that 
 $\varphi :R \longrightarrow \mathcal P^d(\Psi )$
 is
$\varphi :R \longrightarrow \mathcal P^d(\Psi )$
 is 
 ${\mathfrak S_d}$
-invariant. In fact, its restriction to the subspace of
${\mathfrak S_d}$
-invariant. In fact, its restriction to the subspace of 
 ${\mathfrak S_d}$
-invariants defines a linear isomorphism
${\mathfrak S_d}$
-invariants defines a linear isomorphism 
 $\widetilde \varphi : R^{{\mathfrak S_d}} \longrightarrow \mathcal P^d(\Psi )$
, which we can see by exhibiting its inverse: for
$\widetilde \varphi : R^{{\mathfrak S_d}} \longrightarrow \mathcal P^d(\Psi )$
, which we can see by exhibiting its inverse: for 
 $\alpha ^1,\beta ^1,\ldots ,\alpha ^d, \beta ^d \in \mathbb N^n$
, we have
$\alpha ^1,\beta ^1,\ldots ,\alpha ^d, \beta ^d \in \mathbb N^n$
, we have 
 $$\begin{align*}\widetilde \varphi^{-1}: \prod_{j=1}^d \widehat{c}_{\alpha^j,\beta^j} \longmapsto \left(\prod_{j=1}^d \prod_{i=1}^n x_{ij}^{\alpha^j_i} y_{ij}^{\beta^j_i}\right)^*. \end{align*}$$
$$\begin{align*}\widetilde \varphi^{-1}: \prod_{j=1}^d \widehat{c}_{\alpha^j,\beta^j} \longmapsto \left(\prod_{j=1}^d \prod_{i=1}^n x_{ij}^{\alpha^j_i} y_{ij}^{\beta^j_i}\right)^*. \end{align*}$$
Next, in order to prove that this isomorphism restricts to an isomorphism between G-invariant subspaces, it suffices to show that 
 $\varphi $
 is G-equivariant. As a G-module, we have
$\varphi $
 is G-equivariant. As a G-module, we have 
 $$\begin{align*}R \cong \mathcal P\!\left(V^{\oplus d} \oplus (V^*)^{\oplus d}\right) \cong \textstyle\bigotimes^d \mathcal P(V \oplus V^*) = \bigotimes^d \Psi. \end{align*}$$
$$\begin{align*}R \cong \mathcal P\!\left(V^{\oplus d} \oplus (V^*)^{\oplus d}\right) \cong \textstyle\bigotimes^d \mathcal P(V \oplus V^*) = \bigotimes^d \Psi. \end{align*}$$
This equivalence of G-modules 
 $R \longrightarrow \bigotimes ^d \Psi $
 is given by
$R \longrightarrow \bigotimes ^d \Psi $
 is given by 
 $$\begin{align*}\prod_{j=1}^d \prod_{i=1}^n x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} \longmapsto \bigotimes_{j=1}^d \prod_{i=1}^n x_i^{p_{ij}}\partial_i^{q_{ij}} \end{align*}$$
$$\begin{align*}\prod_{j=1}^d \prod_{i=1}^n x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} \longmapsto \bigotimes_{j=1}^d \prod_{i=1}^n x_i^{p_{ij}}\partial_i^{q_{ij}} \end{align*}$$
on monomials, and extended by linearity. Identifying 
 $\Psi $
 with
$\Psi $
 with 
 $\Psi ^\circ $
 as in (2.1), we now have an equivalence of G-modules defined by the isomorphism
$\Psi ^\circ $
 as in (2.1), we now have an equivalence of G-modules defined by the isomorphism 
 $$ \begin{align*} R &\longrightarrow \textstyle\bigotimes^d \Psi^\circ,\\ \prod_{i,j} x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} &\longmapsto \bigotimes_{j=1}^d \widehat{c}_{p_{_\bullet j,}\:q_{_\bullet j}}. \end{align*} $$
$$ \begin{align*} R &\longrightarrow \textstyle\bigotimes^d \Psi^\circ,\\ \prod_{i,j} x_{ij}^{p_{ij}}y_{ij}^{q_{ij}} &\longmapsto \bigotimes_{j=1}^d \widehat{c}_{p_{_\bullet j,}\:q_{_\bullet j}}. \end{align*} $$
Composing this with the canonical projection 
 $\bigotimes ^d \Psi ^\circ \longrightarrow S^d(\Psi ^\circ ) \cong \mathcal P^d(\Psi )$
 preserves G-equivariance, and in fact yields the umbral operator
$\bigotimes ^d \Psi ^\circ \longrightarrow S^d(\Psi ^\circ ) \cong \mathcal P^d(\Psi )$
 preserves G-equivariance, and in fact yields the umbral operator 
 $\varphi $
. Hence,
$\varphi $
. Hence, 
 $\varphi $
 is G-equivariant, and so the middle arrow in the bottom row of (4.1) is an isomorphism. Finally, it is clear from (3.1) and Definition 2.1 that
$\varphi $
 is G-equivariant, and so the middle arrow in the bottom row of (4.1) is an isomorphism. Finally, it is clear from (3.1) and Definition 2.1 that 
 $\varphi $
 carries monomials in
$\varphi $
 carries monomials in 
 $R_k$
 to monomials of weight k, that is, monomials in the component
$R_k$
 to monomials of weight k, that is, monomials in the component 
 $\mathcal P^d_k$
. Hence, the second thick arrow in (4.1) is a linear isomorphism.
$\mathcal P^d_k$
. Hence, the second thick arrow in (4.1) is a linear isomorphism.
To bring the graphs into the picture, we consider the following diagram, where the three steps of Algorithm 3.1 are denoted by the circled numbers:

(By slight abuse of notation, we write 
 $\mu ^\sharp $
 and
$\mu ^\sharp $
 and 
 $\varphi $
 to denote their restrictions above.) Let
$\varphi $
 to denote their restrictions above.) Let 
 $\widehat {\mathcal {G}}^d_k$
 denote the set of labeled digraphs, with vertices labeled
$\widehat {\mathcal {G}}^d_k$
 denote the set of labeled digraphs, with vertices labeled 
 $1, \ldots , d$
. Letting
$1, \ldots , d$
. Letting 
 $A^\Gamma $
 denote the adjacency matrix of a graph
$A^\Gamma $
 denote the adjacency matrix of a graph 
 $\Gamma \in \widehat {\mathcal {G}}^d_k$
, we define
$\Gamma \in \widehat {\mathcal {G}}^d_k$
, we define 

If 
 $n \geq d$
, then
$n \geq d$
, then 
 $\operatorname {\mathrm {M}}_d^{\leq n} = \operatorname {\mathrm {M}}_d$
 and so
$\operatorname {\mathrm {M}}_d^{\leq n} = \operatorname {\mathrm {M}}_d$
 and so 
 $z(\widehat {\mathcal {G}}^d_k)$
 is a basis for
$z(\widehat {\mathcal {G}}^d_k)$
 is a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
. In general,
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
. In general, 
 $\mathcal P(\operatorname {\mathrm {M}}^{\leq n}_d)$
 has a basis consisting of monomials of width
$\mathcal P(\operatorname {\mathrm {M}}^{\leq n}_d)$
 has a basis consisting of monomials of width 
 $\leq n$
, with “width” in the sense of [Reference SturmfelsStu90, Lemma 7]; but the width of a monomial is necessarily less than or equal to its degree, and so if
$\leq n$
, with “width” in the sense of [Reference SturmfelsStu90, Lemma 7]; but the width of a monomial is necessarily less than or equal to its degree, and so if 
 $n \geq k$
, then
$n \geq k$
, then 
 $z(\widehat {\mathcal {G}}^d_k)$
 is still a basis for
$z(\widehat {\mathcal {G}}^d_k)$
 is still a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
. Therefore, in the stable range
$\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
. Therefore, in the stable range 
 $n \geq \min \{d,k\}$
, the set
$n \geq \min \{d,k\}$
, the set 
 $z(\widehat {\mathcal {G}}^d_k)$
 is a basis for
$z(\widehat {\mathcal {G}}^d_k)$
 is a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
; otherwise, it is only a spanning set.
$\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
; otherwise, it is only a spanning set.
 Note that 
 ${\mathfrak S_d}$
 acts on
${\mathfrak S_d}$
 acts on 
 $\widehat {\mathcal {G}}^d_k$
 by permuting vertex labels, and that z is
$\widehat {\mathcal {G}}^d_k$
 by permuting vertex labels, and that z is 
 ${\mathfrak S_d}$
-equivariant. Hence, the symmetrization
${\mathfrak S_d}$
-equivariant. Hence, the symmetrization 
 $z(\Gamma )^* \in \mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{{\mathfrak S_d}}$
 is independent of the labeling of
$z(\Gamma )^* \in \mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{{\mathfrak S_d}}$
 is independent of the labeling of 
 $\Gamma $
, and the entire diagram commutes. In particular,
$\Gamma $
, and the entire diagram commutes. In particular, 
 $z(\Gamma )^*$
 is well defined on
$z(\Gamma )^*$
 is well defined on 
 $\mathcal {G}^d_k$
 (this is the dashed arrow in the diagram), and its image is a basis for
$\mathcal {G}^d_k$
 (this is the dashed arrow in the diagram), and its image is a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d}$
 inside the stable range. Composing with the restriction of
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d}$
 inside the stable range. Composing with the restriction of 
 $\mu ^\sharp $
 followed by the restriction of
$\mu ^\sharp $
 followed by the restriction of 
 $\varphi $
 (i.e., the isomorphisms depicted by the two thick arrows), we obtain the desired basis for
$\varphi $
 (i.e., the isomorphisms depicted by the two thick arrows), we obtain the desired basis for 
 $\mathcal P^d_k(\Psi )^G$
. By the commutativity of the diagram, the sequence of three vertical arrows on the right-hand side of (4.2) is equivalent to the three steps of Algorithm 3.1 (shown by the circled numbers 1–3).
$\mathcal P^d_k(\Psi )^G$
. By the commutativity of the diagram, the sequence of three vertical arrows on the right-hand side of (4.2) is equivalent to the three steps of Algorithm 3.1 (shown by the circled numbers 1–3).
Proof (orthogonal group)
 The entire proof for 
 $G = \operatorname {\mathrm {GL}}_n$
 goes through, mutatis mutandis. For
$G = \operatorname {\mathrm {GL}}_n$
 goes through, mutatis mutandis. For 
 $r_{ij}$
,
$r_{ij}$
, 
 $\mu ^\sharp $
, and
$\mu ^\sharp $
, and 
 $\varphi $
, we use the definitions in (2.6), (2.7), and (3.2), respectively. In the diagram (4.1), we replace
$\varphi $
, we use the definitions in (2.6), (2.7), and (3.2), respectively. In the diagram (4.1), we replace 
 $\operatorname {\mathrm {M}}_d^{\leq n}$
 by
$\operatorname {\mathrm {M}}_d^{\leq n}$
 by 
 $\operatorname {\mathrm {SM}}_d^{\leq n}$
, and then in all the displayed equations, we simply remove the
$\operatorname {\mathrm {SM}}_d^{\leq n}$
, and then in all the displayed equations, we simply remove the 
 $y_{ij}$
’s, and replace each
$y_{ij}$
’s, and replace each 
 $\widehat {c}_{\alpha ,\beta }$
 by
$\widehat {c}_{\alpha ,\beta }$
 by 
 $\widehat {c}_\alpha $
. In the diagram (4.2), we treat
$\widehat {c}_\alpha $
. In the diagram (4.2), we treat 
 $\mathcal {G}^d_k$
 as a set of undirected graphs, and we restrict the map z to just the upper-triangular entries, via
$\mathcal {G}^d_k$
 as a set of undirected graphs, and we restrict the map z to just the upper-triangular entries, via 

The rest of the proof proceeds identically.
Proof (symplectic group)
 Once again, this is just a matter of changing the obvious details in the proof for 
 $G = \operatorname {\mathrm {GL}}_n$
. For
$G = \operatorname {\mathrm {GL}}_n$
. For 
 $r_{ij}$
,
$r_{ij}$
, 
 $\mu ^\sharp $
, and
$\mu ^\sharp $
, and 
 $\varphi $
, we use the definitions in (2.9), (2.10), and (3.4), respectively. In the diagram (4.1), we replace
$\varphi $
, we use the definitions in (2.9), (2.10), and (3.4), respectively. In the diagram (4.1), we replace 
 $\operatorname {\mathrm {M}}_d^{\leq n}$
 by
$\operatorname {\mathrm {M}}_d^{\leq n}$
 by 
 $\operatorname {\mathrm {AM}}_d^{\leq 2n}$
. Note that the stable range is different here, namely
$\operatorname {\mathrm {AM}}_d^{\leq 2n}$
. Note that the stable range is different here, namely 
 $n \geq \min \{ \lfloor d/2 \rfloor , \lfloor k/2 \rfloor \}$
, because the matrices in the determinantal variety have rank
$n \geq \min \{ \lfloor d/2 \rfloor , \lfloor k/2 \rfloor \}$
, because the matrices in the determinantal variety have rank 
 $\leq 2n$
. Recall that (3.3) defines the set
$\leq 2n$
. Recall that (3.3) defines the set 
 $\mathcal {G}^d_k$
. For a labeled graph
$\mathcal {G}^d_k$
. For a labeled graph 
 $\Gamma \in \widehat {\mathcal {G}}^d_k$
, let
$\Gamma \in \widehat {\mathcal {G}}^d_k$
, let 
 $A^{\Gamma } \in \operatorname {\mathrm {AM}}_d(\mathbb Z)$
 be the skew-symmetric matrix whose upper-triangular entries are those of the adjacency matrix of
$A^{\Gamma } \in \operatorname {\mathrm {AM}}_d(\mathbb Z)$
 be the skew-symmetric matrix whose upper-triangular entries are those of the adjacency matrix of 
 $\Gamma $
. We define the map z by
$\Gamma $
. We define the map z by 

 The delicate point in this proof is to show that our definition (3.3) determines the correct subset 
 $\mathcal {G}^d_k$
 of graphs in order to obtain bases. Let
$\mathcal {G}^d_k$
 of graphs in order to obtain bases. Let 
 $\Gamma $
 be a labeled loopless graph with d vertices and k edges. Due to the relation
$\Gamma $
 be a labeled loopless graph with d vertices and k edges. Due to the relation 
 $z_{ij}=-z_{ji}$
 in
$z_{ij}=-z_{ji}$
 in 
 $\mathcal P^k(\operatorname {\mathrm {AM}}^{\leq 2n}_d)$
, it follows that
$\mathcal P^k(\operatorname {\mathrm {AM}}^{\leq 2n}_d)$
, it follows that 
 $$ \begin{align} \sigma \cdot z(\Gamma) = (-1)^{\operatorname{inv}(\Gamma,\sigma)}\: z(\sigma \cdot \Gamma), \end{align} $$
$$ \begin{align} \sigma \cdot z(\Gamma) = (-1)^{\operatorname{inv}(\Gamma,\sigma)}\: z(\sigma \cdot \Gamma), \end{align} $$
where 
 $\operatorname {inv}(\Gamma ,\sigma )$
 denotes the number of edges of
$\operatorname {inv}(\Gamma ,\sigma )$
 denotes the number of edges of 
 $\Gamma $
 inverted by
$\Gamma $
 inverted by 
 $\sigma $
. Unlike the cases for
$\sigma $
. Unlike the cases for 
 $\operatorname {\mathrm {GL}}_n$
 and
$\operatorname {\mathrm {GL}}_n$
 and 
 $\operatorname {O}_n$
, these signs make it possible for the symmetrization operator to kill
$\operatorname {O}_n$
, these signs make it possible for the symmetrization operator to kill 
 $z(\Gamma )$
 for certain graphs
$z(\Gamma )$
 for certain graphs 
 $\Gamma $
.
$\Gamma $
.
 It is true that a spanning set for 
 $\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})$
 is certainly given by the set of all
$\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})$
 is certainly given by the set of all 
 $z(\Gamma )$
 where
$z(\Gamma )$
 where 
 $\Gamma $
 ranges over all loopless graphs with d (labeled) vertices and k edges; we now show that our definition of
$\Gamma $
 ranges over all loopless graphs with d (labeled) vertices and k edges; we now show that our definition of 
 $\mathcal G^d_k$
 in (3.3) excludes those
$\mathcal G^d_k$
 in (3.3) excludes those 
 $\Gamma $
 that are killed by the passage to
$\Gamma $
 that are killed by the passage to 
 ${\mathfrak S_d}$
-invariants, i.e., for which
${\mathfrak S_d}$
-invariants, i.e., for which 
 $z(\Gamma )^*=0$
. To this end, let
$z(\Gamma )^*=0$
. To this end, let 
 $\sigma \in \operatorname {stab}_{{\mathfrak S_d}}(\Gamma )$
. It follows that
$\sigma \in \operatorname {stab}_{{\mathfrak S_d}}(\Gamma )$
. It follows that 
 $A^{\sigma \cdot \Gamma }=A^{\Gamma }$
, and so
$A^{\sigma \cdot \Gamma }=A^{\Gamma }$
, and so 
 $$ \begin{align} z(\sigma \cdot \Gamma)=z(\Gamma). \end{align} $$
$$ \begin{align} z(\sigma \cdot \Gamma)=z(\Gamma). \end{align} $$
Thus, we have

Therefore, 
 $z(\Gamma )^* = 0$
 if and only if
$z(\Gamma )^* = 0$
 if and only if 
 $\mathrm {inv}(\Gamma , \sigma )$
 is odd for some
$\mathrm {inv}(\Gamma , \sigma )$
 is odd for some 
 $\sigma \in \mathrm {stab}_{{\mathfrak S_d}}(\Gamma )$
. This justifies our definition (3.3) of the set
$\sigma \in \mathrm {stab}_{{\mathfrak S_d}}(\Gamma )$
. This justifies our definition (3.3) of the set 
 $\mathcal {G}^d_k$
 for the symplectic group.
$\mathcal {G}^d_k$
 for the symplectic group.
5 Hilbert series via branching multiplicities
5.1 Combinatorial difficulty outside the stable range
 Inside the stable range (1.1), one could scarcely hope for a nicer combinatorial understanding of 
 $\mathcal P(\Psi )^G$
 than that given by Algorithm 3.1: specifically, we can obtain the dimension of each graded component
$\mathcal P(\Psi )^G$
 than that given by Algorithm 3.1: specifically, we can obtain the dimension of each graded component 
 $\mathcal P^d_k(\Psi )^G$
 simply by counting the graphs in
$\mathcal P^d_k(\Psi )^G$
 simply by counting the graphs in 
 $\mathcal {G}^d_k$
. Outside the stable range, however, the graph-counting approach overshoots the true dimension, due to the complicated linear dependencies arising among the images
$\mathcal {G}^d_k$
. Outside the stable range, however, the graph-counting approach overshoots the true dimension, due to the complicated linear dependencies arising among the images 
 $\varphi \circ s(\Gamma )$
.
$\varphi \circ s(\Gamma )$
.
 Taking 
 $G = \operatorname {\mathrm {GL}}_n$
, for example, it is straightforward to give a linear basis for
$G = \operatorname {\mathrm {GL}}_n$
, for example, it is straightforward to give a linear basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
 consisting of the degree-k monomials of width at most n; the term “width” follows the sense of Sturmfels [Reference SturmfelsStu90], which we now summarize. A pair
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
 consisting of the degree-k monomials of width at most n; the term “width” follows the sense of Sturmfels [Reference SturmfelsStu90], which we now summarize. A pair 
 $(T,U)$
 of semistandard Young tableaux with the same shape, each having (say)
$(T,U)$
 of semistandard Young tableaux with the same shape, each having (say) 
 $\ell $
 columns, and filled with entries from the set
$\ell $
 columns, and filled with entries from the set  , can be viewed as a product of
, can be viewed as a product of 
 $\ell $
 determinants in
$\ell $
 determinants in 
 $\mathcal P(\operatorname {\mathrm {M}}_d)$
, as follows: the ith determinant is the minor of matrix coordinates whose rows (resp. columns) are given by the ith column of T (resp. U). It follows that the size of T (equivalently, of U) is the degree of the corresponding function in
$\mathcal P(\operatorname {\mathrm {M}}_d)$
, as follows: the ith determinant is the minor of matrix coordinates whose rows (resp. columns) are given by the ith column of T (resp. U). It follows that the size of T (equivalently, of U) is the degree of the corresponding function in 
 $\mathcal P(\operatorname {\mathrm {M}}_d)$
. The set of all such pairs (often called bitableaux in the literature) thus yields a linear basis for
$\mathcal P(\operatorname {\mathrm {M}}_d)$
. The set of all such pairs (often called bitableaux in the literature) thus yields a linear basis for 
 $\mathcal P(\operatorname {\mathrm {M}}_d)$
. Via the straightening law of [Reference Doubilet, Rota and SteinDRS74], it can be shown that by restricting to those bitableaux with size k and at most n rows, one obtains a linear basis for
$\mathcal P(\operatorname {\mathrm {M}}_d)$
. Via the straightening law of [Reference Doubilet, Rota and SteinDRS74], it can be shown that by restricting to those bitableaux with size k and at most n rows, one obtains a linear basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
. Sturmfels showed that these somewhat complicated basis elements (an example of standard monomials) can be replaced by certain ordinary monomials in the matrix coordinates
$\mathcal P^k(\operatorname {\mathrm {M}}^{\leq n}_d)$
. Sturmfels showed that these somewhat complicated basis elements (an example of standard monomials) can be replaced by certain ordinary monomials in the matrix coordinates 
 $z_{ij}$
, by applying the Robinson–Schensted–Knuth (RSK) correspondence. The RSK correspondence, described by Knuth in [Reference KnuthKnu70, Section 3], is a bijection between the set of bitableaux and the set
$z_{ij}$
, by applying the Robinson–Schensted–Knuth (RSK) correspondence. The RSK correspondence, described by Knuth in [Reference KnuthKnu70, Section 3], is a bijection between the set of bitableaux and the set 
 $\operatorname {\mathrm {M}}_d(\mathbb N)$
. In particular, the sum of the entries in the matrix
$\operatorname {\mathrm {M}}_d(\mathbb N)$
. In particular, the sum of the entries in the matrix 
 $\mathrm {RSK}(T,U)$
 equals the size of T; moreover, when the support of
$\mathrm {RSK}(T,U)$
 equals the size of T; moreover, when the support of 
 $\mathrm {RSK}(T,U)$
 is viewed as a subset of the poset
$\mathrm {RSK}(T,U)$
 is viewed as a subset of the poset 
 $[d] \times [d]$
, the width of that support (i.e., the size of the largest antichain) equals the number of rows in T. By viewing
$[d] \times [d]$
, the width of that support (i.e., the size of the largest antichain) equals the number of rows in T. By viewing 
 $\mathrm {RSK}(T,U)$
 as the degree matrix of a monomial in the variables
$\mathrm {RSK}(T,U)$
 as the degree matrix of a monomial in the variables 
 $z_{ij}$
, we can thus associate each bitableau to an ordinary monomial rather than to a standard monomial. We show this below in an example where
$z_{ij}$
, we can thus associate each bitableau to an ordinary monomial rather than to a standard monomial. We show this below in an example where 
 $d=5$
 and
$d=5$
 and 
 $n \geq 3$
:
$n \geq 3$
: 

In this way, a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
 is given by those ordinary monomials whose degree matrices have entries summing to k and width at most n. Finally, by viewing the degree matrix as an adjacency matrix, one can represent the basis monomials by digraphs with k edges on d (labeled) vertices. Variations of the RSK correspondence (see [Reference BurgeBur74] or [Reference ConcaCon94]) can be used to obtain similar graphical bases for
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})$
 is given by those ordinary monomials whose degree matrices have entries summing to k and width at most n. Finally, by viewing the degree matrix as an adjacency matrix, one can represent the basis monomials by digraphs with k edges on d (labeled) vertices. Variations of the RSK correspondence (see [Reference BurgeBur74] or [Reference ConcaCon94]) can be used to obtain similar graphical bases for 
 $\mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})$
 and
$\mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})$
 and 
 $\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})$
, corresponding to the groups
$\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})$
, corresponding to the groups 
 $\operatorname {O}_n$
 and
$\operatorname {O}_n$
 and 
 $\operatorname {\mathrm {Sp}}_{2n}$
.
$\operatorname {\mathrm {Sp}}_{2n}$
.
 The difficulty in the present paper, however, arises from our symmetrization, whereby one “forgets” the vertex labels in a graph. In particular, when 
 $n < d$
 and
$n < d$
 and 
 $n < k$
, it is no longer clear how to parametrize a basis for
$n < k$
, it is no longer clear how to parametrize a basis for 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{{\mathfrak S_d}}$
. After all, the sense of “width” defining the labeled graphs is inherited from the poset of matrix coordinates, and symmetrization (by its very nature) nullifies the partial order. Outside the stable range, therefore (and with the exception of Section 5.3), we leave it as an open problem to exhibit a combinatorial realization of a basis of
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{{\mathfrak S_d}}$
. After all, the sense of “width” defining the labeled graphs is inherited from the poset of matrix coordinates, and symmetrization (by its very nature) nullifies the partial order. Outside the stable range, therefore (and with the exception of Section 5.3), we leave it as an open problem to exhibit a combinatorial realization of a basis of 
 $\mathcal P^d_k(\Psi )^G$
. (We have had some success in the two border cases
$\mathcal P^d_k(\Psi )^G$
. (We have had some success in the two border cases 
 $n = d-1$
 and
$n = d-1$
 and 
 $n=d-2$
, where it is possible to obtain a basis by deleting those graphs containing certain subgraphs; but the choice of these subgraphs is hardly canonical, and moreover this method seems to be hopeless when
$n=d-2$
, where it is possible to obtain a basis by deleting those graphs containing certain subgraphs; but the choice of these subgraphs is hardly canonical, and moreover this method seems to be hopeless when 
 $d - n> 2$
.)
$d - n> 2$
.)
 In this section, we remedy this combinatorial defect by taking a representation-theoretic approach. Note that our goal can be restated more elegantly as follows: we wish to understand the bigraded Hilbert series of the invariant ring 
 $\mathcal P(\Psi )^G$
, namely
$\mathcal P(\Psi )^G$
, namely 

5.2 Branching multiplicities
 The facts in this section are standard in any general reference on representation theory, such as [Reference Goodman and WallachGW09, Section 3.2]. A polynomial representation of 
 $\operatorname {\mathrm {GL}}_d$
 is a group homomorphism
$\operatorname {\mathrm {GL}}_d$
 is a group homomorphism 
 $\rho : \operatorname {\mathrm {GL}}_d \longrightarrow \operatorname {\mathrm {GL}}_m$
 for some m, such that the matrix coordinates
$\rho : \operatorname {\mathrm {GL}}_d \longrightarrow \operatorname {\mathrm {GL}}_m$
 for some m, such that the matrix coordinates 
 $\rho (g)_{ij}$
 are polynomials in the entries of
$\rho (g)_{ij}$
 are polynomials in the entries of 
 $g \in \operatorname {\mathrm {GL}}_d$
. (As is typical, we will also use the term “representation” for the complex m-dimensional vector space on which
$g \in \operatorname {\mathrm {GL}}_d$
. (As is typical, we will also use the term “representation” for the complex m-dimensional vector space on which 
 $\rho (\operatorname {\mathrm {GL}}_n)\subset \operatorname {\mathrm {GL}}_m$
 acts.) A partition is a finite, weakly decreasing sequence of positive integers (parts), typically denoted by a lowercase Greek letter. If d is the sum of the parts of
$\rho (\operatorname {\mathrm {GL}}_n)\subset \operatorname {\mathrm {GL}}_m$
 acts.) A partition is a finite, weakly decreasing sequence of positive integers (parts), typically denoted by a lowercase Greek letter. If d is the sum of the parts of 
 $\lambda $
, then we write
$\lambda $
, then we write 
 $\lambda \vdash d$
. The number of parts of
$\lambda \vdash d$
. The number of parts of 
 $\lambda $
 is called its length, denoted by
$\lambda $
 is called its length, denoted by 
 $\ell (\lambda )$
. We write
$\ell (\lambda )$
. We write 
 $(d)$
 to denote the length-1 partition of size d. We also define the set
$(d)$
 to denote the length-1 partition of size d. We also define the set 

We will speak of the rows and columns of a partition, by which we mean the rows and columns of its associated Young diagram.
 By the theorem of the highest weight, the irreducible polynomial representations of 
 $\operatorname {\mathrm {GL}}_d$
 are indexed by the partitions
$\operatorname {\mathrm {GL}}_d$
 are indexed by the partitions 
 $\lambda $
 such that
$\lambda $
 such that 
 $\ell (\lambda )\leq d$
. We write
$\ell (\lambda )\leq d$
. We write 
 $F^\lambda _d$
 for the irreducible representation of
$F^\lambda _d$
 for the irreducible representation of 
 $\operatorname {\mathrm {GL}}_d$
 with highest weight
$\operatorname {\mathrm {GL}}_d$
 with highest weight 
 $\lambda $
. Now consider the restriction of
$\lambda $
. Now consider the restriction of 
 $\operatorname {\mathrm {GL}}_d$
 to its subgroup
$\operatorname {\mathrm {GL}}_d$
 to its subgroup 
 ${\mathfrak S_d}$
, realized as permutation matrices. If
${\mathfrak S_d}$
, realized as permutation matrices. If 
 $\mu \vdash d$
, we write
$\mu \vdash d$
, we write 
 $Y^\mu _d$
 for the irreducible representation of
$Y^\mu _d$
 for the irreducible representation of 
 ${\mathfrak S_d}$
 which corresponds to
${\mathfrak S_d}$
 which corresponds to 
 $F^\mu _d$
 via Schur–Weyl duality. Upon restriction to
$F^\mu _d$
 via Schur–Weyl duality. Upon restriction to 
 ${\mathfrak S_d}$
, the representation
${\mathfrak S_d}$
, the representation 
 $F^\lambda _d$
 decomposes into a direct sum of irreducible representations
$F^\lambda _d$
 decomposes into a direct sum of irreducible representations 
 $Y^\mu _d$
; we write
$Y^\mu _d$
; we write 

to denote the branching multiplicity of 
 $Y^\mu _d$
 in
$Y^\mu _d$
 in 
 $F^\lambda _d$
. Hence, we have
$F^\lambda _d$
. Hence, we have 
 $$ \begin{align} \mathrm{Res}^{\operatorname{\mathrm{GL}}_d}_{{\mathfrak S_d}}F^\lambda_d \cong \bigoplus_{\mu \vdash d} b^\lambda_\mu\: Y^\mu_d. \end{align} $$
$$ \begin{align} \mathrm{Res}^{\operatorname{\mathrm{GL}}_d}_{{\mathfrak S_d}}F^\lambda_d \cong \bigoplus_{\mu \vdash d} b^\lambda_\mu\: Y^\mu_d. \end{align} $$
Theorem 5.1 Let 
 $b^\lambda _\mu $
 be as in (5.1). Then we have the following, for all values of
$b^\lambda _\mu $
 be as in (5.1). Then we have the following, for all values of 
 $n,d,k$
:
$n,d,k$
: 
- 
(1) Let  $G=\operatorname {\mathrm {GL}}_n$
. Then $G=\operatorname {\mathrm {GL}}_n$
. Then $\dim {\mathcal P}^d_k(\Psi )^G = \sum _{\lambda ,\mu } \left (b^{\lambda }_{\mu }\right )^{2}$
, where $\dim {\mathcal P}^d_k(\Psi )^G = \sum _{\lambda ,\mu } \left (b^{\lambda }_{\mu }\right )^{2}$
, where $\lambda \in \operatorname {\mathrm {Par}}(k,\:\min \{d,n\})$
 and $\lambda \in \operatorname {\mathrm {Par}}(k,\:\min \{d,n\})$
 and $\mu \vdash d$
. $\mu \vdash d$
.
- 
(2) Let  $G=\operatorname {O}_n$
. Then $G=\operatorname {O}_n$
. Then $\displaystyle \dim {\mathcal P}^d_k(\Psi )^G = \sum _{\lambda } b^{\lambda }_{(d)}$
, where $\displaystyle \dim {\mathcal P}^d_k(\Psi )^G = \sum _{\lambda } b^{\lambda }_{(d)}$
, where $\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,n\})$
 with all row lengths even. $\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,n\})$
 with all row lengths even.
- 
(3) Let  $G = \operatorname {\mathrm {Sp}}_{2n}$
. Then $G = \operatorname {\mathrm {Sp}}_{2n}$
. Then $\displaystyle \dim {\mathcal P}^{d}_k(\Psi )^G = \sum _\lambda b^{\lambda }_{(d)}$
, where $\displaystyle \dim {\mathcal P}^{d}_k(\Psi )^G = \sum _\lambda b^{\lambda }_{(d)}$
, where $\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,2n\})$
 with all column lengths even. $\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,2n\})$
 with all column lengths even.
Proof (general linear group)
 Recall from the two thick arrows in diagram (4.1) that we have a linear isomorphism 
 $\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, it will suffice to show that
$\mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, it will suffice to show that 
 $\dim \mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d}$
 equals the sum in the theorem.
$\dim \mathcal P^k(\operatorname {\mathrm {M}}_d^{\leq n})^{\mathfrak S_d}$
 equals the sum in the theorem.
 The determinantal variety 
 $\operatorname {\mathrm {M}}_d^{\leq n}$
 admits an action by
$\operatorname {\mathrm {M}}_d^{\leq n}$
 admits an action by 
 $\operatorname {\mathrm {GL}}_d \times \operatorname {\mathrm {GL}}_d$
, via
$\operatorname {\mathrm {GL}}_d \times \operatorname {\mathrm {GL}}_d$
, via 
 $(g,h)\cdot X = gXh^{-1}$
, which extends to
$(g,h)\cdot X = gXh^{-1}$
, which extends to 
 $\mathcal P(\operatorname {\mathrm {M}}_d^{\leq n})$
 in the usual way. Weyl’s SFT (from Section 2.3) can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.12.3]:
$\mathcal P(\operatorname {\mathrm {M}}_d^{\leq n})$
 in the usual way. Weyl’s SFT (from Section 2.3) can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.12.3]: 
 $$\begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n}) \cong \bigoplus_{\lambda\in \operatorname{\mathrm{Par}}(k,\:\min\{d,n\})} \left(F^\lambda_d\right)^* \otimes F^\lambda_d. \end{align*}$$
$$\begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n}) \cong \bigoplus_{\lambda\in \operatorname{\mathrm{Par}}(k,\:\min\{d,n\})} \left(F^\lambda_d\right)^* \otimes F^\lambda_d. \end{align*}$$
Restricting to 
 ${\mathfrak S_d} \times {\mathfrak S_d}$
, we use (5.2) to write
${\mathfrak S_d} \times {\mathfrak S_d}$
, we use (5.2) to write 
 $$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n}) &\cong \bigoplus_{\lambda} \left(\bigoplus_{\mu \vdash d} b^\lambda_\mu \:Y^\mu_d\right)^* \otimes \left(\bigoplus_{\nu \vdash d} b^\lambda_\nu\: Y^\nu_d\right)\\ & \cong \bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left(Y^\mu_d \otimes Y^\nu_d\right), \end{align*} $$
$$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n}) &\cong \bigoplus_{\lambda} \left(\bigoplus_{\mu \vdash d} b^\lambda_\mu \:Y^\mu_d\right)^* \otimes \left(\bigoplus_{\nu \vdash d} b^\lambda_\nu\: Y^\nu_d\right)\\ & \cong \bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left(Y^\mu_d \otimes Y^\nu_d\right), \end{align*} $$
since the irreducible representations of 
 ${\mathfrak S_d}$
 are self-dual. Further restricting to the diagonal subgroup
${\mathfrak S_d}$
 are self-dual. Further restricting to the diagonal subgroup 
 $\Delta ({\mathfrak S_d}) = \{(\sigma ,\sigma ) \mid \sigma \in {\mathfrak S_d}\}$
, we note that the
$\Delta ({\mathfrak S_d}) = \{(\sigma ,\sigma ) \mid \sigma \in {\mathfrak S_d}\}$
, we note that the 
 $\Delta ({\mathfrak S_d})$
-action is just by conjugation on
$\Delta ({\mathfrak S_d})$
-action is just by conjugation on 
 $\operatorname {\mathrm {M}}_d^{\leq n}$
. Therefore, we are interested in the subspace of
$\operatorname {\mathrm {M}}_d^{\leq n}$
. Therefore, we are interested in the subspace of 
 $\Delta ({\mathfrak S_d})$
-invariants:
$\Delta ({\mathfrak S_d})$
-invariants: 
 $$ \begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n})^{\mathfrak S_d} \cong \left[\bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left(Y^\mu_d \otimes Y^\nu_d\right)\right]^{\Delta({\mathfrak S_d})} = \bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left( Y^\mu_d \otimes Y^\nu_d\right)^{\Delta({\mathfrak S_d})}. \end{align*} $$
$$ \begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n})^{\mathfrak S_d} \cong \left[\bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left(Y^\mu_d \otimes Y^\nu_d\right)\right]^{\Delta({\mathfrak S_d})} = \bigoplus_{\lambda,\mu,\nu} b^\lambda_\mu b^\lambda_\nu \left( Y^\mu_d \otimes Y^\nu_d\right)^{\Delta({\mathfrak S_d})}. \end{align*} $$
But by Schur’s lemma, we have 
 $\dim (Y^\mu _d \otimes Y^\nu _d)^{\Delta ({\mathfrak S_d})} = \dim \operatorname {\mathrm {Hom}}_{{\mathfrak S_d}}(Y^\mu _d,Y^\nu _d) = \delta _{\mu ,\nu }$
. Therefore, we keep only the summands in which
$\dim (Y^\mu _d \otimes Y^\nu _d)^{\Delta ({\mathfrak S_d})} = \dim \operatorname {\mathrm {Hom}}_{{\mathfrak S_d}}(Y^\mu _d,Y^\nu _d) = \delta _{\mu ,\nu }$
. Therefore, we keep only the summands in which 
 $\mu =\nu $
, and we obtain
$\mu =\nu $
, and we obtain 
 $$ \begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n})^{\mathfrak S_d} \cong \bigoplus_{\lambda,\mu} \left(b^\lambda_\mu\right)^2 \underbrace{\left(Y^\mu_d \otimes Y^\mu_d\right)^{\Delta({\mathfrak S_d})}}_{\text{one-dimensional}}, \end{align*} $$
$$ \begin{align*}\mathcal P^k(\operatorname{\mathrm{M}}_d^{\leq n})^{\mathfrak S_d} \cong \bigoplus_{\lambda,\mu} \left(b^\lambda_\mu\right)^2 \underbrace{\left(Y^\mu_d \otimes Y^\mu_d\right)^{\Delta({\mathfrak S_d})}}_{\text{one-dimensional}}, \end{align*} $$
which proves Part 1 of the theorem.
Proof (orthogonal group)
 In the 
 $\operatorname {O}_n$
-analogue of the diagram (4.1), we have an isomorphism
$\operatorname {O}_n$
-analogue of the diagram (4.1), we have an isomorphism 
 $\mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, it will suffice to show that
$\mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, it will suffice to show that 
 $\dim \mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})^{\mathfrak S_d}$
 equals the sum in the theorem.
$\dim \mathcal P^k(\operatorname {\mathrm {SM}}_d^{\leq n})^{\mathfrak S_d}$
 equals the sum in the theorem.
 The determinantal variety 
 $\operatorname {\mathrm {SM}}_d^{\leq n}$
 admits an action by
$\operatorname {\mathrm {SM}}_d^{\leq n}$
 admits an action by 
 $\operatorname {\mathrm {GL}}_n$
, via
$\operatorname {\mathrm {GL}}_n$
, via 
 $g \cdot X = g^{-T}Xg^{-1}$
, which extends to
$g \cdot X = g^{-T}Xg^{-1}$
, which extends to 
 $\mathcal P(\operatorname {\mathrm {SM}}_d^{\leq n})$
 in the usual way. The SFT can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.14.3], which we decompose under the restriction to
$\mathcal P(\operatorname {\mathrm {SM}}_d^{\leq n})$
 in the usual way. The SFT can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.14.3], which we decompose under the restriction to 
 ${\mathfrak S_d}$
 using (5.2):
${\mathfrak S_d}$
 using (5.2): 
 $$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{SM}}_d^{\leq n}) &\cong \bigoplus_{\lambda} F^{\lambda}_d\\ &\cong \bigoplus_\lambda \bigoplus_{\mu \vdash d} b^{\lambda}_\mu \: Y^\mu_d, \end{align*} $$
$$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{SM}}_d^{\leq n}) &\cong \bigoplus_{\lambda} F^{\lambda}_d\\ &\cong \bigoplus_\lambda \bigoplus_{\mu \vdash d} b^{\lambda}_\mu \: Y^\mu_d, \end{align*} $$
where the sum ranges over all 
 $\lambda \in \operatorname {\mathrm {Par}}(2k,\: \min \{d,n\})$
 with even row lengths. The partition
$\lambda \in \operatorname {\mathrm {Par}}(2k,\: \min \{d,n\})$
 with even row lengths. The partition 
 $(d)$
 labels the one-dimensional trivial representation of
$(d)$
 labels the one-dimensional trivial representation of 
 ${\mathfrak S_d}$
, and therefore the
${\mathfrak S_d}$
, and therefore the 
 ${\mathfrak S_d}$
-invariant subspace above is the sum of the trivial representations
${\mathfrak S_d}$
-invariant subspace above is the sum of the trivial representations 
 $Y^{(d)}_d$
 in the sum:
$Y^{(d)}_d$
 in the sum: 

This proves Part 2 of the theorem.
Proof (symplectic group)
 As in the previous parts, from the 
 $\operatorname {\mathrm {Sp}}_{2n}$
-analogue of the diagram (4.1), we have an isomorphism
$\operatorname {\mathrm {Sp}}_{2n}$
-analogue of the diagram (4.1), we have an isomorphism 
 $\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, we will find the dimension of
$\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})^{\mathfrak S_d} \cong \mathcal P^d_k(\Psi )^G$
. Hence, we will find the dimension of 
 $\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})^{\mathfrak S_d}$
.
$\mathcal P^k(\operatorname {\mathrm {AM}}_d^{\leq 2n})^{\mathfrak S_d}$
.
 The determinantal variety 
 $\operatorname {\mathrm {AM}}_d^{\leq 2n}$
 admits an action by
$\operatorname {\mathrm {AM}}_d^{\leq 2n}$
 admits an action by 
 $\operatorname {\mathrm {GL}}_d$
, just as in the
$\operatorname {\mathrm {GL}}_d$
, just as in the 
 $\operatorname {O}_n$
 case. The SFT can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.15.3], which we decompose under the restriction to
$\operatorname {O}_n$
 case. The SFT can be applied to obtain the decomposition below [Reference Goodman and WallachGW09, Theorem 12.2.15.3], which we decompose under the restriction to 
 ${\mathfrak S_d}$
, using (5.2):
${\mathfrak S_d}$
, using (5.2): 
 $$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{AM}}_d^{\leq 2n}) &\cong \bigoplus_{\lambda} F^\lambda_d \\ & \cong \bigoplus_\lambda \bigoplus_{\mu \vdash d} b^{\lambda}_\mu \: Y^\mu_{d}, \end{align*} $$
$$ \begin{align*} \mathcal P^k(\operatorname{\mathrm{AM}}_d^{\leq 2n}) &\cong \bigoplus_{\lambda} F^\lambda_d \\ & \cong \bigoplus_\lambda \bigoplus_{\mu \vdash d} b^{\lambda}_\mu \: Y^\mu_{d}, \end{align*} $$
where the sum ranges over all 
 $\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,2n\})$
 with even column lengths. Therefore, as in Part 2, the
$\lambda \in \operatorname {\mathrm {Par}}(2k,\:\min \{d,2n\})$
 with even column lengths. Therefore, as in Part 2, the 
 ${\mathfrak S_d}$
-invariant subspace decomposes as
${\mathfrak S_d}$
-invariant subspace decomposes as 

which proves Part 3 of the theorem.
Remark 5.2 The branching multiplicities 
 $b^\lambda _\mu $
 can be easily programmed by following the algorithm outlined in [Reference Heaton, Sriwongsa and WillenbringHSW21, Section 2]. In [Reference StanleySta99, Exercise 7.74],
$b^\lambda _\mu $
 can be easily programmed by following the algorithm outlined in [Reference Heaton, Sriwongsa and WillenbringHSW21, Section 2]. In [Reference StanleySta99, Exercise 7.74], 
 $b^\lambda _\mu $
 is interpreted as the multiplicity of
$b^\lambda _\mu $
 is interpreted as the multiplicity of 
 $F^\lambda _n$
 in
$F^\lambda _n$
 in 
 $F^\mu (S(V))$
, where
$F^\mu (S(V))$
, where 
 $F^\mu $
 is the Schur functor. See also [Reference Heaton, Sriwongsa and WillenbringHSW21] for an elegant proof using seesaw reciprocity. It is possible to prove all three parts of Theorem 5.1 with this approach, by directly decomposing
$F^\mu $
 is the Schur functor. See also [Reference Heaton, Sriwongsa and WillenbringHSW21] for an elegant proof using seesaw reciprocity. It is possible to prove all three parts of Theorem 5.1 with this approach, by directly decomposing 
 $\mathcal P^d(\Psi )$
 and then restricting to the G-invariant subspace.
$\mathcal P^d(\Psi )$
 and then restricting to the G-invariant subspace.
5.3 Bases when 
 $n=1$
$n=1$
 The theme of this section – and the motivation for looking at branching multiplicities – has been the extreme difficulty in parametrizing a linear basis for 
 $\mathcal P^d_k(\Psi )^G$
 outside the stable range. One exception to this is actually the farthest extreme from the stable range, namely the case when
$\mathcal P^d_k(\Psi )^G$
 outside the stable range. One exception to this is actually the farthest extreme from the stable range, namely the case when 
 $\dim V = 1$
. This occurs when
$\dim V = 1$
. This occurs when 
 $G= \operatorname {\mathrm {GL}}_1$
 or
$G= \operatorname {\mathrm {GL}}_1$
 or 
 $\operatorname {O}_1$
. In this case, the quadratics
$\operatorname {O}_1$
. In this case, the quadratics 
 $r_{ij}$
 are monomials, and thus so too are the expressions
$r_{ij}$
 are monomials, and thus so too are the expressions 
 $s(\Gamma )$
 and
$s(\Gamma )$
 and 
 $\varphi \circ s(\Gamma )$
. It is fairly easy to see from the definitions that when
$\varphi \circ s(\Gamma )$
. It is fairly easy to see from the definitions that when 
 $G = \operatorname {\mathrm {GL}}_1$
, we have
$G = \operatorname {\mathrm {GL}}_1$
, we have 
 $$\begin{align*}\varphi \circ s(\Gamma) = \prod_{i = 1}^d \widehat{c}_{\operatorname{indeg}(i), \operatorname{outdeg}(i)}, \end{align*}$$
$$\begin{align*}\varphi \circ s(\Gamma) = \prod_{i = 1}^d \widehat{c}_{\operatorname{indeg}(i), \operatorname{outdeg}(i)}, \end{align*}$$
where indeg and outdeg denote the in-degree and out-degree of a vertex of 
 $\Gamma $
. Likewise, when
$\Gamma $
. Likewise, when 
 $G = \operatorname {O}_1$
, we have
$G = \operatorname {O}_1$
, we have 
 $$\begin{align*}\varphi \circ s(\Gamma) = \prod_{i=1}^d \widehat{c}_{\operatorname{deg}(i)}, \end{align*}$$
$$\begin{align*}\varphi \circ s(\Gamma) = \prod_{i=1}^d \widehat{c}_{\operatorname{deg}(i)}, \end{align*}$$
where deg denotes the degree of a vertex. In other words, for both 
 $\operatorname {\mathrm {GL}}_1$
 and
$\operatorname {\mathrm {GL}}_1$
 and 
 $\operatorname {O}_1$
, the invariant
$\operatorname {O}_1$
, the invariant 
 $\varphi \circ s(\Gamma )$
 is determined by the degree sequence of
$\varphi \circ s(\Gamma )$
 is determined by the degree sequence of 
 $\Gamma $
; hence, we can actually describe a basis for each component
$\Gamma $
; hence, we can actually describe a basis for each component 
 $\mathcal P^d_k(\Psi )^G$
 by replacing the graphs in our method by simpler combinatorial objects. For
$\mathcal P^d_k(\Psi )^G$
 by replacing the graphs in our method by simpler combinatorial objects. For 
 $\operatorname {\mathrm {GL}}_1$
, we can parametrize a basis by the sets
$\operatorname {\mathrm {GL}}_1$
, we can parametrize a basis by the sets 
 $\{(a_1,b_1), \ldots , (a_d, b_d)\}$
 with
$\{(a_1,b_1), \ldots , (a_d, b_d)\}$
 with 
 $a_i,b_i \in \mathbb N$
 such that
$a_i,b_i \in \mathbb N$
 such that 
 $\sum _i a_i = \sum _i b_i = k$
. For
$\sum _i a_i = \sum _i b_i = k$
. For 
 $\operatorname {O}_1$
, we can parametrize a basis by the partitions of
$\operatorname {O}_1$
, we can parametrize a basis by the partitions of 
 $2k$
 with at most d parts.
$2k$
 with at most d parts.
 For the symplectic group, the parameter 
 $n=1$
 corresponds to
$n=1$
 corresponds to 
 $\operatorname {\mathrm {Sp}}_{2} \cong \operatorname {\mathrm {SL}}(2, \mathbb C)$
. Since the defining representation V has dimension 2, a combinatorial parametrization of linear bases seems to be much more difficult than for
$\operatorname {\mathrm {Sp}}_{2} \cong \operatorname {\mathrm {SL}}(2, \mathbb C)$
. Since the defining representation V has dimension 2, a combinatorial parametrization of linear bases seems to be much more difficult than for 
 $\operatorname {\mathrm {GL}}_1$
 and
$\operatorname {\mathrm {GL}}_1$
 and 
 $\operatorname {O}_1$
 above. Nonetheless, thanks to Theorem 5.1, we do have an especially nice expression for the dimensions in terms of a single branching multiplicity:
$\operatorname {O}_1$
 above. Nonetheless, thanks to Theorem 5.1, we do have an especially nice expression for the dimensions in terms of a single branching multiplicity: 
 $$\begin{align*}\dim \mathcal P^d_k(\mathbb C[x,y])^{\operatorname{\mathrm{SL}}(2, \mathbb C)} = b^{(k,k)}_{(d)} \end{align*}$$
$$\begin{align*}\dim \mathcal P^d_k(\mathbb C[x,y])^{\operatorname{\mathrm{SL}}(2, \mathbb C)} = b^{(k,k)}_{(d)} \end{align*}$$
for all d and k. This is because when 
 $n=1$
, there is just one element
$n=1$
, there is just one element 
 $(k,k)$
 in the set of all partitions of
$(k,k)$
 in the set of all partitions of 
 $2k$
 with length at most 2, and with even column lengths.
$2k$
 with length at most 2, and with even column lengths.
6 Examples
We have written Mathematica code to implement Algorithm 3.1, which we used to compute the examples below. The code is included in the Appendix.
6.1 The general linear group
 For 
 $\operatorname {\mathrm {GL}}_n$
, we have
$\operatorname {\mathrm {GL}}_n$
, we have 
 $\Psi = \mathcal P(V\oplus V^*)$
, which is isomorphic (as a
$\Psi = \mathcal P(V\oplus V^*)$
, which is isomorphic (as a 
 $\operatorname {\mathrm {GL}}_n$
-module) to the associated graded algebra
$\operatorname {\mathrm {GL}}_n$
-module) to the associated graded algebra 
 $\mathbb C[ x_1,\ldots ,x_n,\partial _1,\ldots ,\partial _n]$
 of the Weyl algebra, i.e., the algebra of polynomial-coefficient differential operators on
$\mathbb C[ x_1,\ldots ,x_n,\partial _1,\ldots ,\partial _n]$
 of the Weyl algebra, i.e., the algebra of polynomial-coefficient differential operators on 
 $\mathcal P(V)$
. In this context,
$\mathcal P(V)$
. In this context, 
 $x_i$
 is the operator that multiplies by
$x_i$
 is the operator that multiplies by 
 $x_i$
, and
$x_i$
, and 
 $\partial _i$
 is the differential operator
$\partial _i$
 is the differential operator 
 $\partial /\partial x_i$
. (Of course, the Weyl algebra itself is not commutative, since
$\partial /\partial x_i$
. (Of course, the Weyl algebra itself is not commutative, since 
 $\partial _i x_i = x_i\partial _i+1$
, but here we are interested only in the G-module structure.) Explicitly, we have
$\partial _i x_i = x_i\partial _i+1$
, but here we are interested only in the G-module structure.) Explicitly, we have 
 $\operatorname {span}\{x_1,\ldots ,x_n\} \cong V^*$
 and
$\operatorname {span}\{x_1,\ldots ,x_n\} \cong V^*$
 and 
 $\operatorname {span}\{\partial _1,\ldots ,\partial _n\} \cong V$
 as
$\operatorname {span}\{\partial _1,\ldots ,\partial _n\} \cong V$
 as 
 $\operatorname {\mathrm {GL}}_n$
-modules. (See the detailed exposition in [Reference ProcesiPro07, p. 39].) Thus,
$\operatorname {\mathrm {GL}}_n$
-modules. (See the detailed exposition in [Reference ProcesiPro07, p. 39].) Thus, 
 $\Psi $
 is of interest because the
$\Psi $
 is of interest because the 
 $\operatorname {\mathrm {GL}}_n$
-orbits are precisely the equivalence classes of linear partial differential equations with polynomial coefficients, under linear change of coordinates. In turn, the invariants
$\operatorname {\mathrm {GL}}_n$
-orbits are precisely the equivalence classes of linear partial differential equations with polynomial coefficients, under linear change of coordinates. In turn, the invariants 
 $\mathcal P(\Psi )^{\operatorname {\mathrm {GL}}_n}$
 are those polynomial functions constant on the
$\mathcal P(\Psi )^{\operatorname {\mathrm {GL}}_n}$
 are those polynomial functions constant on the 
 $\operatorname {\mathrm {GL}}_n$
-orbits. For example (
$\operatorname {\mathrm {GL}}_n$
-orbits. For example (
 $n=3$
), if
$n=3$
), if 
 $\omega (x,y)$
 is a polynomial, then the two-dimensional time-dependent Schrödinger equation
$\omega (x,y)$
 is a polynomial, then the two-dimensional time-dependent Schrödinger equation 
 $$\begin{align*}-i \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \omega(x,y)u \end{align*}$$
$$\begin{align*}-i \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \omega(x,y)u \end{align*}$$
corresponds to the Weyl algebra element 
 $i \partial _3 + \partial _1^2 + \partial _2^2 + \omega (x_1, x_2) \in \Psi $
, upon setting
$i \partial _3 + \partial _1^2 + \partial _2^2 + \omega (x_1, x_2) \in \Psi $
, upon setting 
 $x = x_1$
,
$x = x_1$
, 
 $y = x_2$
, and
$y = x_2$
, and 
 $t = x_3$
. See also Example 6.5 below, in which we view vector fields as elements of
$t = x_3$
. See also Example 6.5 below, in which we view vector fields as elements of 
 $\Psi $
.
$\Psi $
.
Remark 6.1 One might further hope that the invariants separate the orbits, but this is not true: if the closures of two orbits intersect, then any invariant function is constant on the union of those orbits. Therefore, the correct statement is the following [Reference WallachWal17, Theorem 3.20]: for any classical group G, the G-invariants separate the closed G-orbits in 
 $\Psi $
, with respect to the following topology on
$\Psi $
, with respect to the following topology on 
 $\Psi $
. We have a filtration
$\Psi $
. We have a filtration 
 $\Psi = \bigcup _{\ell \in \mathbb N} \Psi _\ell $
, where
$\Psi = \bigcup _{\ell \in \mathbb N} \Psi _\ell $
, where 
 $\Psi _\ell $
 is the space of polynomials of degree at most
$\Psi _\ell $
 is the space of polynomials of degree at most 
 $\ell $
. A proper subset of
$\ell $
. A proper subset of 
 $\Psi $
 is defined to be closed if it is a Zariski-closed subset of
$\Psi $
 is defined to be closed if it is a Zariski-closed subset of 
 $\Psi _\ell $
 for some
$\Psi _\ell $
 for some 
 $\ell $
. The G-invariant polynomial functions on
$\ell $
. The G-invariant polynomial functions on 
 $\Psi $
 separate the closed G-orbits since G does not change degree. The topological aspects of invariant theory are delicate; see the excellent source [Reference ShafarevichSha94].
$\Psi $
 separate the closed G-orbits since G does not change degree. The topological aspects of invariant theory are delicate; see the excellent source [Reference ShafarevichSha94].
Example 6.2 (
 $d=k=1$
)
$d=k=1$
)
 Let 
 $\Gamma $
 be the digraph consisting of a single loop on a single vertex; then we can use Algorithm 3.1 to compute the invariant
$\Gamma $
 be the digraph consisting of a single loop on a single vertex; then we can use Algorithm 3.1 to compute the invariant 
 $\varphi \circ s(\Gamma )$
 by hand. Clearly,
$\varphi \circ s(\Gamma )$
 by hand. Clearly, 
 $A^\Gamma = [1]$
, and so
$A^\Gamma = [1]$
, and so 
 $s(\Gamma ) = r_{11} = \sum _{\ell = 1}^n y_{\ell 1} x_{\ell 1}$
. We have
$s(\Gamma ) = r_{11} = \sum _{\ell = 1}^n y_{\ell 1} x_{\ell 1}$
. We have 
 $\varphi (x_{\ell 1} y_{\ell 1}) = \widehat {c}_{\epsilon _\ell ,\epsilon _\ell }$
, where
$\varphi (x_{\ell 1} y_{\ell 1}) = \widehat {c}_{\epsilon _\ell ,\epsilon _\ell }$
, where 
 $\epsilon _\ell $
 denotes the n-tuple whose
$\epsilon _\ell $
 denotes the n-tuple whose 
 $\ell $
th component is 1 with 0’s elsewhere. Summing these up, we obtain the invariant
$\ell $
th component is 1 with 0’s elsewhere. Summing these up, we obtain the invariant 
 $\sum _{\ell = 1}^n c_{\epsilon _\ell ,\epsilon _\ell }$
. (Note that in this case, the factorials are all
$\sum _{\ell = 1}^n c_{\epsilon _\ell ,\epsilon _\ell }$
. (Note that in this case, the factorials are all 
 $1!$
 so that
$1!$
 so that 
 $\widehat {c}$
 is no different than c.) To make this more transparent, we write
$\widehat {c}$
 is no different than c.) To make this more transparent, we write 
 $[\mathbf x^\alpha \boldsymbol {\partial }^\beta ]$
 in place of
$[\mathbf x^\alpha \boldsymbol {\partial }^\beta ]$
 in place of 
 $c_{\alpha ,\beta }$
, and obtain the invariant
$c_{\alpha ,\beta }$
, and obtain the invariant 
 $[x_1\partial _1] + \cdots + [x_n\partial _n].$
$[x_1\partial _1] + \cdots + [x_n\partial _n].$
Example 6.3 (
 $n=d=k=2$
)
$n=d=k=2$
)
 In this example, we will compute a basis for 
 $\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
. Since
$\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
. Since 
 $G=\operatorname {\mathrm {GL}}_2$
, we write x and y in place of
$G=\operatorname {\mathrm {GL}}_2$
, we write x and y in place of 
 $x_1$
 and
$x_1$
 and 
 $x_2$
, so that
$x_2$
, so that 
 $\Psi = \mathbb C[x,y,\partial _x,\partial _y]$
. As in the previous example, we write coefficients as
$\Psi = \mathbb C[x,y,\partial _x,\partial _y]$
. As in the previous example, we write coefficients as 
 $[x^a y^b \partial _x ^c \partial _y^d]$
 rather than
$[x^a y^b \partial _x ^c \partial _y^d]$
 rather than 
 $c_{(a,b),(c,d)}$
.
$c_{(a,b),(c,d)}$
.
 Note that our parameters 
 $n=d=k=2$
 lie in the stable range, and so there is a one-to-one correspondence between
$n=d=k=2$
 lie in the stable range, and so there is a one-to-one correspondence between 
 $\mathcal G^2_2$
 and our desired basis. There are six directed graphs with two vertices and two edges, and thus
$\mathcal G^2_2$
 and our desired basis. There are six directed graphs with two vertices and two edges, and thus 
 $\#\mathcal G^2_2 = 6 = \dim \mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
. In Table 1, we display each of these graphs, its adjacency matrix (up to simultaneous permutation of rows and columns), and its corresponding basis element in
$\#\mathcal G^2_2 = 6 = \dim \mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
. In Table 1, we display each of these graphs, its adjacency matrix (up to simultaneous permutation of rows and columns), and its corresponding basis element in 
 $\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
.
$\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
.
Table 1: A basis for 
 $\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
, computed using Algorithm 3.1.
$\mathcal P^2_2(\Psi )^{\operatorname {\mathrm {GL}}_2}$
, computed using Algorithm 3.1.

Remark 6.4 We observe a general phenomenon from Table 1, which follows directly from the definition of the umbral operator in (3.1). Let 
 $\Gamma \in \mathcal G^d_k$
, and choose an adjacency matrix
$\Gamma \in \mathcal G^d_k$
, and choose an adjacency matrix 
 $A^\Gamma $
 for any vertex labeling. Then, in each term
$A^\Gamma $
 for any vertex labeling. Then, in each term 
 $$ \begin{align*}c_{\alpha^1,\beta^1} \cdots c_{\alpha^d,\beta^d} \quad (\alpha^i,\beta^i \in \mathbb N^n) \end{align*} $$
$$ \begin{align*}c_{\alpha^1,\beta^1} \cdots c_{\alpha^d,\beta^d} \quad (\alpha^i,\beta^i \in \mathbb N^n) \end{align*} $$
of the corresponding invariant 
 $\varphi \circ s(\Gamma )$
, the d factors
$\varphi \circ s(\Gamma )$
, the d factors 
 $c_{\alpha ^i,\beta ^i}$
 can be rearranged so that
$c_{\alpha ^i,\beta ^i}$
 can be rearranged so that 
 $$ \begin{align} \begin{split} |\alpha^i| &= i\text{th column sum of }A^\Gamma,\\ |\beta^i| &= i\text{th row sum of }A^\Gamma \end{split} \end{align} $$
$$ \begin{align} \begin{split} |\alpha^i| &= i\text{th column sum of }A^\Gamma,\\ |\beta^i| &= i\text{th row sum of }A^\Gamma \end{split} \end{align} $$
simultaneously for each 
 $i=1,\ldots , d$
.
$i=1,\ldots , d$
.
 Now recall that an element 
 $\psi \in \Psi $
 is a vector field if it takes the form
$\psi \in \Psi $
 is a vector field if it takes the form 
 $$\begin{align*}\psi = \sum_{i=1}^n f_i(\mathbf x) \:\partial_i \end{align*}$$
$$\begin{align*}\psi = \sum_{i=1}^n f_i(\mathbf x) \:\partial_i \end{align*}$$
with each 
 $f_i(\mathbf x) \in \mathbb C[\mathbf x]$
. In this case,
$f_i(\mathbf x) \in \mathbb C[\mathbf x]$
. In this case, 
 $c_{\alpha ,\beta }(\psi ) \neq 0$
 implies that
$c_{\alpha ,\beta }(\psi ) \neq 0$
 implies that 
 $|\beta |=1$
. By the observation (6.1), then,
$|\beta |=1$
. By the observation (6.1), then, 
 $\varphi \circ s(\Gamma )$
 vanishes on
$\varphi \circ s(\Gamma )$
 vanishes on 
 $\psi $
 unless
$\psi $
 unless 
 $A^\Gamma $
 contains exactly one 1 in each row, with 0’s elsewhere; equivalently, every vertex in
$A^\Gamma $
 contains exactly one 1 in each row, with 0’s elsewhere; equivalently, every vertex in 
 $\Gamma $
 has out-degree 1. For fixed d, each such digraph can be regarded naturally as the equivalence class of a finite dynamical system on a d-element set.
$\Gamma $
 has out-degree 1. For fixed d, each such digraph can be regarded naturally as the equivalence class of a finite dynamical system on a d-element set.
Example 6.5 (Quadratic invariants on two-dimensional vector fields)
 Let 
 $G = \operatorname {\mathrm {GL}}_2$
, and define the vector field
$G = \operatorname {\mathrm {GL}}_2$
, and define the vector field 
 $$ \begin{align*}\psi = \big(x^2 + y^2 + 2xy + 2x + 2y + 1\big)\: \partial_x + \big(x^2 + y^2 - 2xy + 4x - 4y+4\big)\: \partial_y, \end{align*} $$
$$ \begin{align*}\psi = \big(x^2 + y^2 + 2xy + 2x + 2y + 1\big)\: \partial_x + \big(x^2 + y^2 - 2xy + 4x - 4y+4\big)\: \partial_y, \end{align*} $$
which (since all coefficients are real) we depict in Figure 1a. Let 
 $g = \left [\begin {smallmatrix} 0 & -2 \\ 1 & \phantom {-}0 \end {smallmatrix}\right ] \in G$
. Then
$g = \left [\begin {smallmatrix} 0 & -2 \\ 1 & \phantom {-}0 \end {smallmatrix}\right ] \in G$
. Then 
 $$ \begin{align*}g \cdot \psi = -\left(\frac{1}{2}x^2 + 2y^2 + 2xy + 4x + 8y + 8\right)\partial_x + \left(\frac{1}{4} x^2 + y^2 - xy - x + 2y + 1\right)\partial_y, \end{align*} $$
$$ \begin{align*}g \cdot \psi = -\left(\frac{1}{2}x^2 + 2y^2 + 2xy + 4x + 8y + 8\right)\partial_x + \left(\frac{1}{4} x^2 + y^2 - xy - x + 2y + 1\right)\partial_y, \end{align*} $$
which we depict in Figure 1b. We will evaluate the quadratic G-invariant functions at both 
 $\psi $
 and
$\psi $
 and 
 $g \cdot \psi $
. The only graphs in Table 1 that correspond to nonvanishing invariants on
$g \cdot \psi $
. The only graphs in Table 1 that correspond to nonvanishing invariants on 
 $\psi $
 are the finite dynamical systems, presented in rows 1, 4, and 6. We compute these invariants in Table 2.
$\psi $
 are the finite dynamical systems, presented in rows 1, 4, and 6. We compute these invariants in Table 2.

Figure 1: The vector fields from Example 6.5.
Table 2: Nonvanishing quadratic invariants on the vector fields 
 $\psi $
 and
$\psi $
 and 
 $g \cdot \psi $
 from Example 6.5.
$g \cdot \psi $
 from Example 6.5.

6.2 The orthogonal group
Example 6.6 We consider the familiar example of conic sections in 
 $\mathbb R^2$
. The general form of a conic section is
$\mathbb R^2$
. The general form of a conic section is 
 $$ \begin{align*}Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0,\end{align*} $$
$$ \begin{align*}Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0,\end{align*} $$
where 
 $A,\ldots ,F \in \mathbb R$
. (We remark that
$A,\ldots ,F \in \mathbb R$
. (We remark that 
 $\operatorname {O}_n$
 is defined over
$\operatorname {O}_n$
 is defined over 
 $\mathbb R$
, and its real points constitute the subgroup
$\mathbb R$
, and its real points constitute the subgroup 
 $\operatorname {O}(n,\mathbb R)$
.) In Table 3, we list the well-known invariants on conic sections, under the action of
$\operatorname {O}(n,\mathbb R)$
.) In Table 3, we list the well-known invariants on conic sections, under the action of 
 $\operatorname {O}(2,\mathbb R)$
; the right-hand column presents the corresponding graphs from Algorithm 3.1, where
$\operatorname {O}(2,\mathbb R)$
; the right-hand column presents the corresponding graphs from Algorithm 3.1, where 
 $G = \operatorname {O}_2$
 is the complexification of
$G = \operatorname {O}_2$
 is the complexification of 
 $\operatorname {O}(2,\mathbb R)$
.
$\operatorname {O}(2,\mathbb R)$
.
Table 3: Invariants of conic sections under the action of 
 $\operatorname {O}(2,\mathbb R)$
.
$\operatorname {O}(2,\mathbb R)$
.

6.3 The symplectic group
 Let 
 $n=1$
. In this case, since
$n=1$
. In this case, since 
 $G = \operatorname {\mathrm {Sp}}_2 \cong \operatorname {\mathrm {SL}}_2$
, our Algorithm 3.1 actually finds
$G = \operatorname {\mathrm {Sp}}_2 \cong \operatorname {\mathrm {SL}}_2$
, our Algorithm 3.1 actually finds 
 $\operatorname {\mathrm {SL}}_2$
-invariants on
$\operatorname {\mathrm {SL}}_2$
-invariants on 
 $\Psi \cong \mathbb C[x,y]$
. Whereas early classical invariant theory focused on
$\Psi \cong \mathbb C[x,y]$
. Whereas early classical invariant theory focused on 
 $\operatorname {\mathrm {SL}}_2$
-invariants on binary m-forms, i.e., on the space
$\operatorname {\mathrm {SL}}_2$
-invariants on binary m-forms, i.e., on the space 
 $S^m(\mathbb C^2)$
 spanned by
$S^m(\mathbb C^2)$
 spanned by 
 $\{x^m, x^{m-1}y, \ldots , xy^{m-1}, y^m\}$
, our approach comprises the
$\{x^m, x^{m-1}y, \ldots , xy^{m-1}, y^m\}$
, our approach comprises the 
 $\operatorname {\mathrm {SL}}_2$
-invariants on the direct sum of all these spaces, namely the entire polynomial ring
$\operatorname {\mathrm {SL}}_2$
-invariants on the direct sum of all these spaces, namely the entire polynomial ring 
 $\mathbb C[x,y] \cong \bigoplus _{m=0}^\infty S^m(\mathbb C^2)$
.
$\mathbb C[x,y] \cong \bigoplus _{m=0}^\infty S^m(\mathbb C^2)$
.
 In [Reference Olver and ShakibanOS89], and subsequently in [Reference OlverOlv99, Chapter 7], Olver describes a graphical method for invariants (and more generally, covariants) of binary forms, which can be regarded as a special case of our Algorithm 3.1. Specifically, when 
 $G = \operatorname {\mathrm {Sp}}_2$
 and
$G = \operatorname {\mathrm {Sp}}_2$
 and 
 $\Gamma $
 is m-regular (i.e., every vertex has degree m), our corresponding invariant
$\Gamma $
 is m-regular (i.e., every vertex has degree m), our corresponding invariant 
 $\varphi \circ s(\Gamma )$
 restricts to an invariant on the space of binary m-forms, which coincides (up to a constant multiple) with the invariant obtained from the same graph in Olver’s method. (Although Olver’s graphs are directed, reversing an arrow just multiplies the corresponding covariant by
$\varphi \circ s(\Gamma )$
 restricts to an invariant on the space of binary m-forms, which coincides (up to a constant multiple) with the invariant obtained from the same graph in Olver’s method. (Although Olver’s graphs are directed, reversing an arrow just multiplies the corresponding covariant by 
 $-1$
.)
$-1$
.)
Remark 6.7 In the 
 $n=1$
 case, our quadratic
$n=1$
 case, our quadratic 
 $r_{ij}=x_{1i}x_{2j}-x_{2i}x_{1j}$
 is just the determinant of the minor corresponding to columns i and j of a
$r_{ij}=x_{1i}x_{2j}-x_{2i}x_{1j}$
 is just the determinant of the minor corresponding to columns i and j of a 
 $2 \times d$
 matrix, i.e., a Plücker coordinate. In classical invariant theory, this determinant is often denoted by
$2 \times d$
 matrix, i.e., a Plücker coordinate. In classical invariant theory, this determinant is often denoted by 
 $[ij]$
, or more commonly by bracketed Greek letters, and historically has been named a symbolic determinantal factor [Reference Grace and YoungGY10], a bracket factor [Reference WeylOlv99, Reference OlverWey39], or a homogenized root [Reference Kung and RotaKR84].
$[ij]$
, or more commonly by bracketed Greek letters, and historically has been named a symbolic determinantal factor [Reference Grace and YoungGY10], a bracket factor [Reference WeylOlv99, Reference OlverWey39], or a homogenized root [Reference Kung and RotaKR84].
Example 6.8 (Invariants of binary forms)
 In Table 4, we list the well-known fundamental invariants of the binary quadric, cubic, and quartic (
 $m=2,3,4$
), along with their corresponding graphs from Algorithm 3.1, up to a scale factor. In place of our c notation, we write the coefficients as capital letters
$m=2,3,4$
), along with their corresponding graphs from Algorithm 3.1, up to a scale factor. In place of our c notation, we write the coefficients as capital letters 
 $A,B,\ldots $
 in descending order of degree in x. The symbol
$A,B,\ldots $
 in descending order of degree in x. The symbol 
 $\Delta _m$
 denotes the discriminant of the binary m-form. In the case of the quartic, we follow [Reference OlverOlv99, p. 29] in denoting the two fundamental invariantsFootnote 
1
 by i and j; then the discriminant is
$\Delta _m$
 denotes the discriminant of the binary m-form. In the case of the quartic, we follow [Reference OlverOlv99, p. 29] in denoting the two fundamental invariantsFootnote 
1
 by i and j; then the discriminant is 
 $\Delta _4 = i^3 - 27j^2$
. Graphically, the product of invariants corresponds to the union of their corresponding graphs. Note that the graphs in Table 4 are indeed m-regular, with the number of vertices giving the degree of the invariant in the coefficients.
$\Delta _4 = i^3 - 27j^2$
. Graphically, the product of invariants corresponds to the union of their corresponding graphs. Note that the graphs in Table 4 are indeed m-regular, with the number of vertices giving the degree of the invariant in the coefficients.
Table 4: Fundamental invariants of the binary quadric, cubic, and quartic.

Example 6.9 In Olver’s method, for fixed m, a graph that is not m-regular corresponds to a covariant on binary m-forms (i.e., an 
 $\operatorname {\mathrm {SL}}_2$
-invariant polynomial in not just the coefficients of the form, but also in the variables x and y). For us, however, all graphs correspond to true invariants on
$\operatorname {\mathrm {SL}}_2$
-invariant polynomial in not just the coefficients of the form, but also in the variables x and y). For us, however, all graphs correspond to true invariants on 
 $\mathbb C[x,y]$
. Consequently, certain syzygies among Olver’s graphs do not carry over into our graphs, specifically Olver’s “Rule #2”; see illustration (7.3) in [Reference OlverOlv99, p. 135]. As a specific example, take the following graph
$\mathbb C[x,y]$
. Consequently, certain syzygies among Olver’s graphs do not carry over into our graphs, specifically Olver’s “Rule #2”; see illustration (7.3) in [Reference OlverOlv99, p. 135]. As a specific example, take the following graph 
 $\Gamma \in \mathcal G^3_4$
, which for Olver in [Reference OlverOlv99, p. 135] corresponds to the zero covariant on a binary form of degree
$\Gamma \in \mathcal G^3_4$
, which for Olver in [Reference OlverOlv99, p. 135] corresponds to the zero covariant on a binary form of degree 
 $m \geq 3$
:
$m \geq 3$
: 

For us, however, 
 $\Gamma $
 corresponds to a nontrivial degree-
$\Gamma $
 corresponds to a nontrivial degree-
 $3$
 invariant on
$3$
 invariant on 
 $\mathbb C[x,y]$
:
$\mathbb C[x,y]$
: 
 $$ \begin{align*}\varphi \circ s(\Gamma) = 16c_{12}^2 c^{}_{20}-8c^{}_{11}c^{}_{12}c^{}_{21}-48c^{}_{03}c^{}_{20}c^{}_{21}+16c^{}_{02}c^2_{21}+72c^{}_{03}c^{}_{11}c^{}_{30}-48c^{}_{02}c^{}_{12}c^{}_{30,} \end{align*} $$
$$ \begin{align*}\varphi \circ s(\Gamma) = 16c_{12}^2 c^{}_{20}-8c^{}_{11}c^{}_{12}c^{}_{21}-48c^{}_{03}c^{}_{20}c^{}_{21}+16c^{}_{02}c^2_{21}+72c^{}_{03}c^{}_{11}c^{}_{30}-48c^{}_{02}c^{}_{12}c^{}_{30,} \end{align*} $$
where we have suppressed the parentheses around the ordered pairs in the subscripts. Observe that the vertices of 
 $\Gamma $
 have degrees
$\Gamma $
 have degrees 
 $2$
,
$2$
, 
 $3$
, and
$3$
, and 
 $3$
; this is reflected in the fact that each term in the corresponding invariant takes the form
$3$
; this is reflected in the fact that each term in the corresponding invariant takes the form 
 $c_\alpha c_\beta c_\gamma $
, where
$c_\alpha c_\beta c_\gamma $
, where 
 $\alpha ,\beta ,\gamma \in \mathbb N^2$
 and
$\alpha ,\beta ,\gamma \in \mathbb N^2$
 and 
 $$ \begin{align*}|\alpha|=2,\quad |\beta|=3, \quad |\gamma|=3. \end{align*} $$
$$ \begin{align*}|\alpha|=2,\quad |\beta|=3, \quad |\gamma|=3. \end{align*} $$
Appendix: Mathematica code
A.1 General linear group


A.2 Orthogonal group

A.3 Symplectic group

Acknowledgments
We would like to thank the referee for the careful reading and for the many helpful suggestions that improved the quality of this paper. We are especially grateful to the referee for pointing out the connection to the (largely forgotten) classical notion of perpetuants, which in turn led us to find the recent paper [Reference Kraft and ProcesiKP21].
 
 



 ;
; ;
; , where
, where  
 
 We can regard
 We can regard  
 
 
 
 
 
 .
. 
 
 
 
 
 
 .
. 
 
 .
. 
 
 
 
 .
. 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 and
 and  .
.








