Suppose we're in a bicartesian closed category. Then given a morphism $$f : X \rightarrow Y_1 + \ldots + Y_n$$ and a test object $T$, we get a corresponding morphism $$T^f : X \times [Y_1,T] \times \ldots \times [Y_n,T] \rightarrow T.$$
Question. Does the morphism $T^f$ (and/or the transform $f \mapsto T^f$) have an accepted name, and where can I learn more about it?
Definition of $T^f$.
Apply the functor $[-,T]$ to $f$, obtaining an arrow $[Y_1 + \ldots + Y_n, T] \rightarrow [X,T].$
Move the $X$ back into its original position, obtaining an arrow $X \times [Y_1 + \ldots + Y_n, T] \rightarrow T.$
Distribute the exponenial over the coproduct, obtaining an arrow $X \times [Y_1,T] \times \ldots \times [Y_n,T] \rightarrow T,$ as desired.
Remark 1. I think this transform is what allows modern programming languages to offer programmers such rubbish facilities for working with coproducts, while still allowing us to program essentially anything we want. For example, if we apply the coproduct-elimination transform to the function $\mathbf{Bool} \rightarrow 1 + 1$ and simplify just a little bit, we get a function $\mathbf{Bool} \times T \times T \rightarrow T.$ Now think of $T$ as the set of all valid command sequences in a programming language such as JavaScript, and notice how this gives us the general 'shape' of expressions of the following form:
if (x < y) {
do_foo
} else {
do_bar
}
Remark 2. Let $Y := Y_1 + \ldots + Y_n$. I claim that $f : X \rightarrow Y$ can be recovered from the map $(T \mapsto T^f)$. To see this, evaluate at $Y$. We end up with $Y^f : X \times [Y_1,Y] \times \cdots \times [Y_n,Y] \rightarrow Y$. Now use partial evaluation at the canonical elements of $[Y_i,Y]$, namely the inclusions. This should recover the original morphism.