In Kemper's book 'A Course on Commutative Algebra' there is a question (2.5 specifically) where one has to show that given a field $K$, a sub-algebra $A\subseteq K[x_1, ..., x_n]$, if we have a $S\subseteq A$ which generates $A$, as an algebra, then $S$ is separating. I'm not actually interested in how to show this as it is straightforward once the definition of 'generated' is clear, but it rather confused me. I figured that $S$ generating $A$ as an algebra means that every $f\in A$ can be written as $\sum_{i = 1}^n g_i h_i$, where $g_i\in S$ and $h_i\in K[x_1, ..., x_n]$, just like one would generate a module. This did not yield a proof after some work, so I figured my definition must be wrong but Googling didn't provide any alternatives. I then looked at the solution. Kemper says this:
"That $S$ generates $A$ means that for every element $f\in A$ there exist finitely many elements $f_1, ..., f_m \in S$ and a polynomial $F\in K[T_1, ..., T_m]$ in $m$ indeterminates such that $f = F(f_1, ..., f_m)$.
I suspect my mistake is simple, but I currently can't see the forest for the trees. Is how I generate elements based on such an $S$ incorrect? It seems like the natural way to generate elements based on how one would generate elements in modules to me.
EDIT: After a little more searching, I discovered I should have been more thorough. The question had been asked before: Definition of a finitely generated $k$ - algebra