We got this definition of a polynomial ring during our last lecture in Commutative Algebra:
$\forall_{n\in \mathbb{N}_+}\:\forall _{R\:-\:ring}\:\:R\left[X_1,\:...,\:X_n\right]=\left\{f:\:\mathbb{N}^n\:\rightarrow \:R\::\:\left|supp\:f\right|\:<\:\infty \right\}$ where $supp\:f\:=\:\left\{\alpha \in \mathbb{N}^n\::\:f\left(\alpha \right)\:\ne \:0\right\}$
This doesn't really make (intuitive) sense to me, wouldn't it be better to say that it's a set of such functions with finitely many zero values (and not non-zero values)?
E.g. we know that $x^2$ has only one zero value, but infinitely many nonzero values (even in $\mathbb{N}$, given it contains 0 as we do in our lecture)
So I'd really like to understand why do we define polynomial rings in such a way, maybe on an example it would be better to understand why?
Also, why do we only care about $\mathbb{N}$? Why don't we define it e.g. $f:\:\mathbb{Z}^n\:\rightarrow \:R$ or something different