% \usepackage{tikz-cd}
% \usetikzlibrary{arrows,decorations.pathreplacing,calligraphy,patterns,bending,calc,tikzmark}
\usepackage{ytableau}
\ytableausetup{centertableaux, smalltableaux}
\ytableausetup{boxsize=.3em}

\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\FF}{\mathbb{F}}
\renewcommand{\sl}{\mathfrak{sl}}
\DeclareMathOperator{\wt}{wt}
\DeclareMathOperator{\SSYT}{SSYT}
\newcommand{\B}{\mathcal{B}}
\renewcommand{\top}{\mathrm{top}}
\renewcommand{\bot}{\mathrm{bot}}
\newcommand{\Top}{\B_{\top}}
\newcommand{\Topr}[1][r]{\B^{#1}_{\top}}
\newcommand{\Bottom}{\B_{\bot}}
\newcommand{\Bottomr}[1][r]{\B^{#1}_{\bot}}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\Alt}{\Lambda}%{\bigwedge\nolimits}
\DeclareMathOperator{\HW}{HW}
\DeclareMathOperator{\Cons}{Cons}
\DeclareMathOperator{\round}{round}
\DeclareMathOperator{\floor}{floor}

\newcommand{\qbinom}[2]{\genfrac{[}{]}{0pt}{}{#1}{#2}}

\usepackage{etoolbox}
\newcommand{\rowTab}[1]{
    \fontsize{8}{9}\selectfont%\scriptsize
    \def\arraystretch{1.2}
    \setlength{\arraycolsep}{2pt}
    \begin{array}{|c|c|c|c|c|c|}
    \hline #1 \\ \hline
    \end{array}
}
\newcommand{\colTab}[1]{
    \def\nextitem{\gdef\nextitem{\\ \hline}}%
    \renewcommand*{\do}[1]{\nextitem \mathbf{##1}}%
    {\fontsize{8}{9}\selectfont%\scriptsize
    \def\arraystretch{1.2}
    \setlength{\arraycolsep}{2pt}
    \begin{array}{|c|}
        \hline
        \docsvlist{#1}
        \\ \hline
    \end{array}
    }
}
\newcommand{\roundVec}[1]{
    \def\nextitem{\gdef\nextitem{\\ }}%
    \renewcommand*{\do}[1]{\nextitem ##1}%
    {
    \def\arraystretch{1.2}
    \left\lfloor
    \begin{smallmatrix}
        \docsvlist{#1}
    \end{smallmatrix}
    \right\rfloor
    }
}
\newcommand{\Vector}[1]{
    \def\nextitem{\gdef\nextitem{\\ }}%
    \renewcommand*{\do}[1]{\nextitem ##1}%
    {
    \def\arraystretch{1.2}
    \bigg(
    \begin{smallmatrix}
        \docsvlist{#1}
    \end{smallmatrix}
    \bigg)
    }
}
\newcommand{\colTabInline}[1]{
    \smash{
    \fontsize{8}{9}\selectfont%\scriptsize
    \def\nextitem{\gdef\nextitem{&}}%
    \renewcommand*{\do}[1]{\nextitem \mathbf{##1}}%
    {
    \def\arraystretch{1.2}
    \setlength{\arraycolsep}{2pt}
    \begin{array}{|c|c|c|c|c|}
        \hline
        \docsvlist{#1}
        \\ \hline
    \end{array}
    }'
    }
}
\newcommand{\pletRowTab}[1]{
    \fontsize{8}{9}\selectfont%\scriptsize
    \def\arraystretch{1.2}
    \setlength{\arraycolsep}{2pt}
    \begin{array}{|c|c|c|c|c|c|}
    \hline \mathbf{#1} \\ \hline
    \end{array}
}
