I am having a litte trouble to understand what my professor told the last algebra class. Let me explain what I am talking about.
We know that if $R'$ is a ring and $R$ is a subring of it, we define $R[S]$ as being the smallest subring of $R`$ that contains $R$ and $S$. Explicity we can say that $$R[S]=\{f(s_1,...,s_n); f\in R[X_1,...,X_n], s_i \in S, n\in \mathbb{N}\}$$
Similarly if $K/F$ is a field extension and $S\subseteq K$ then $F(S)$ is the smallest subfield of $K$ contaning $S$ and $F$. Explicity $F(S)=Frac F[S]$.
Then, his WARNING: whenever you write $R[a,b,...]$ or $F(a,b,...)$ it is important that you work inside some fixed, specified ring $R`$ for field $F`$. For example, do not write $(\mathbb{Z}/2\mathbb{Z})[\sqrt{2}]$. But $\mathbb{Q}[\sqrt{2}]$ is okay.
I think I understood the warning. I just did not understand why the first example is wrong and the second one is correct. Can someone make it clear for me?
Thank you everybody! Have a good weekend!