I am trying do make this looking better:
namely: curly brackets enclosing everything, tikzcd diagram vertically centered compared to the two other lines. Any suggestion?
\documentclass[letter, 11pt]{article}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{tikz-cd}
\tikzset{
commutative diagrams/.cd,
arrow style=tikz,
diagrams={>={Computer Modern Rightarrow[length=5pt,width=5pt]}},
}
\begin{document}
\begin{align*}
M :=
\left\{\begin{array}{c|c}
f:A \to B & \multirow{2}{*}{
\begin{tikzcd}[ampersand replacement=\&,column sep=1em]
X \times Y \ar[r, "m"] \ar[d, "r"']\& Z \times W \ar[r, "n"] \& V\\
X \times Y \ar[r, "m"] \& Z \times \ar[r, "n"]W \& V \ar[u, "h"']
\end{tikzcd}
} \\
g: A \times X \to Y & \\
\end{array}\right\}
\end{align*}
\end{document}