Fix positive integers $m$ and $n$. For all polynomial functions $f,g: \mathbb{Z}^m \to \mathbb{Z}$ define the equivalence relation $\sim$ by $$f \sim g \iff \forall x \in \mathbb{Z}^m \ ( \ f(x) \equiv g(x) \pmod{n} \ )$$ $\sim$ is compatible with pointwise addition and multiplication of polynomial functions. I have several questions regarding the $\sim$ relation that I'm having trouble finding the answers to.
Question 1: Given polynomial functions $f,g : \mathbb{Z}^m \to \mathbb{Z}$, let $F,G \in \mathbb{Z}[x_1,\dots,x_m]$ be corresponding polynomials. That is, $F$ is the polynomial corresponding to $f$ and $G$ the polynomial corresponding to $g$. Is this statement true or false? $$f \sim g \iff F \equiv G \pmod{\langle \{n,x_1^{\phi(n)+1}-x_1,\dots,x_m^{\phi(n)+1}-x_m\} \rangle}$$ where $\phi$ is Euler's totient function and for a subset $A$ of a ring $R$, $\langle A \rangle$ denotes the ideal generated by $A$, and $x \equiv y \pmod{\langle A \rangle}$ iff $x-y \in \langle A \rangle$.
If the statement is false, is it true if $n$ is prime?
Question 2: Given polynomial functions $f,g : \mathbb{Z}^m \to \mathbb{Z}$, is there an algorithm to determine whether or not $f \sim g$, without calculating $f(a)-g(a) \pmod{n}$ for every $a \in \{0,\dots,n-1\}^m$ (or any other complete residue system modulo $n$)?
Question 3: Does the type of equivalence given by $\sim$ have a typical name? It's not polynomial congruence mod $n$. Is there a textbook or other reference that deals specifically with relations similar to $\sim$?
Any help or information is very much appreciated. Thank you for your time and consideration.