Polynomial representations of $$\mathrm{GL }(n)$$GL(n) and Schur–Weyl duality