If $I\subseteq J$ are ideals in a polynomial ring of $n$ variables, how do I prove that $I = J$ if $\operatorname{in}_{\lt}(I)=\operatorname{in}_{\lt}(J)$, where $\lt$ is any monomial ordering?
Obviously it suffices to prove that $J \subseteq I$. I'm stuck with how to go forward once I pick an arbitrary element $f \in J$ and have that $\operatorname{in}_{\lt}(f) \in \operatorname{in}_{\lt} (J)=\operatorname{in}_{\lt}(I)$.