Let $(A,\mathfrak{m}) \to (B,\mathfrak{n})$ be a local homomorphism with $A$ a regular local ring. Assume further that this ring map is finite. How can we prove that $\operatorname{depth}B = \operatorname{depth}_A B$? What about if we replace $B$ with a finitely generated $B$-module $M$?
I believe I can prove this in a roundabout way using Auslander-Buschbaum by first proving that $A \to B$ is flat, but this is probably not optimal. As this is at the edge of my knowledge on commutative algebra, I am hoping someone can help me out with an elegant proof/ what are the valid results surrounding something like that.
For those wondering why I am asking this, well I was trying to do exercise 3.9.3 of Hartshorne.