Since the Gram-Schmidt procedure yields a single orthonormal output for a given linearly independent input, we can view the procedure as a function which maps an original linearly independent list of vectors in finite dimensional vector space $V$ to an orthonormal list of vectors in $V$ that span the same vector space as the span of the original list.
In other words, define
$$G:\{\text{all linearly independent lists of vectors in } V\} \xrightarrow{} \{\text{all orthonormal lists of vectors in } V\}$$
as
$$(v_1,...,v_k) \mapsto (e_1,...,e_k)$$
such that $(e_1,...,e_k)$ is the orthonormal output of the Gram-Schmidt procedure, so span$(v_1,...,v_k)$ = span$(e_1,...,e_k)$.
My first question: is this function injective? I.e. can two distinct linearly independent lists (necessarily with the same span) yield the same orthonormal basis after applying Gram-Schmidt?
My second question: is $G$ surjective? I.e. given an orthonormal list of vectors in $V$, can I construct a linearly independent list of vectors in $V$ that will yield my orthonormal list after applying Gram-Schmidt?
My intuition is that $G$ is not injective because the set of all orthonormal lists is a proper subset of the set of all linearly independent lists, so the codomain is a proper subset of the domain. I feel like $G$ should be surjective but do not know how to prove this.
Thanks to Michael Burr's comment, I see that the function is surjective, because for any orthonormal list $(e_1,...,e_k)$ of vectors in $V$, $(e_1,...,e_k)$ is linearly independent and $G(e_1,...,e_k)=(e_1,...,e_k)$.
And the function is not injective. For example, $G(e_1) = e_1$ and $G(2e_1)=e_1$.