Here is a typical example of what I am talking about:
\begin{align*}
\mathcal{L} &\simeq O^{-1}(T, S) \\
V &\mapsto f_V := \pi_S \circ \left(\pi_T |_V\right)^{-1} \\
V_f := \{t + f(t) | t \in T\} &\leftarrow f
\end{align*}
The result looks messy in my opinion. I would like everyting to be aligned in the center, and the arrows to extend accordingly --- something that would look like the following:
~
X ----------> Y
x |------> yyyyyyy
xxxxxxxxx <----| yyy
I suppose I could use the array
environment, but how to typeset extensible arrows? A similar question was answered in Dynamically size arrow \mapsto in function definition ; but I do not understand that piece of code, so I do not know how to adapt it (and if it is at all possible).
Thank you for your help!