In Hartshorne's proof of Bertini's theorem (CH. 2, Theorem 8.18), I am having difficulty in the first part of the proof which tells us that the scheme $H \cap X$ is regular at every point.
I could follow till the statement that $x \in H \cap X \iff \varphi_x(f) \in \mathfrak{m}_x$.
(Q-1) I just want to confirm here that there is an abuse of notation here and the statement means $x \in H \cap X \iff \varphi_x(f) \in \mathfrak{m}_x/ \mathfrak{m}_x^2 = \overline{\mathfrak{m}_x} $.
I am not able to make any progress on the next statement that says "$x$ is non-regular on $H \cap X \iff \varphi_x(f) \in \mathfrak{m}_x^2$ because in that case the local ring $\mathcal{O}_x/ (\varphi(f))$ will not be regular."
(Q-2) I hope that RHS is 0 i.e. $\varphi_x(f) \in \mathfrak{m}_x^2$ is same as saying that $\varphi_x(f)=0$.
(Q-3) What will be the local ring of $H \cap X$ at $x$? Why does Hartshorne says that it will be $\mathcal{O}_x/(\varphi_x(f))$? (hoping that there is a typo: Intended $\varphi_x(f)$ but printed $\varphi(f)$)
My answer: It should be described as $\mathcal{O}_{X,x} / (\overline{f})$, where $\overline{f}$ is the image of $f$ in $\mathcal{O}_{X,x}$.
(Q-4) Prove that: $x$ is non-regular on $H \cap X \Rightarrow \varphi_x(f) \in \mathfrak{m}_x^2$ (or 0 based on my Q-2)
My attempt: Let us denote the local ring $A := \mathcal{O}_{X,x} / (\varphi_x(f))$ along with its maximal ideal $\mathfrak{m}$, I am not able to related how the fact that $\dim \mathfrak{m}/\mathfrak{m}^2 > \dim A $ leads to RHS?
(Q-5) Converse of Q-4?
It seems like you're getting really hung up on the notation while Hartshorne is being pretty free about identifying things with their image under quotient maps and the like. I think you're sophisticated enough to figure out what it should be if you insist on being really exacting like this - you're completely correct in your post when you're making statements about what the notation should be. In detail:
Parts 4 & 5 are basically separate concerns.