This question arises from my somewhat frustrating attempts to understand what etale means (in the world of algebraic varieties for now) and marry the more advanced algebraic geometry references and the ones from differential geometry. The particular example I am studying, is the Lyasko-Looijenga morphism.
Say that $f:X\rightarrow Y$ is a finite map of affine varieties with zero-dimensional fibers. Finiteness of the map means that the coordinate ring $A(X)=S$ is a finitely generated $A(Y)=R$ module. Now say the point $y\in Y$ corresponds to the maximal ideal $P\subset R$.
I understand how the ideal $PS$ in $S$ cuts the variety $f^{-1}(y)$ but might not be radical, so we define $S/PS$ to be the algebraic fiber but we know it is not exactly the coordinate ring of $f^{-1}(y)$. Evenmore, we know that $S/PS$ is an $R/P$-vector space of dimension $k$ at most as big as the rank of $S$ as an $R$-module (and equal if in particular $S$ is a free $R$-module).
This in turn implies that the fiber $f^{-1}(y)$ will contain at most $k$-many points (the coordinate ring of a finite variety is a vector space of dimension as big as its cardinality). I am trying to understand when this number is achieved:
The approach in Shafarevich is to consider the extension $f^{*}k(Y)\subset k(X)$ and define $\operatorname{deg}f$ to be its degree; when the cardinality of the fiber equals that degree: $$\#f^{-1}(y)=\operatorname{deg}f$$ we say that $f$ is unramified at $y$. The differential geometry approach is just to check the Jacobian at $y$; $f$ is unramified at $y$ precisely when $$J_f\ (y)\neq 0.$$
Question 1: I am asking for some help to understad the equivalence here. How does the Jacobian of $f$ affect the cardinality of $f^{-1}(y)$ in relation to the degre of the extension $f^{*}k(Y)\subset k(X)$?
Question 2: What about the ring $S/PS$? It encodes all the information we need for $f^{-1}(y)$. How can we understand here which points are fatter than others? What is the situation for $\operatorname{Spec}S/PS$?
Question 3: Is it apparent that the degree of the extension $f^{*}k(Y)\subset k(X)$ is equal to the rank of $S$ as an $R$-module, when $S$ is free over $R$? What happens when $S$ is not free?
Remark: The reason that I am not just satisfied with the Jacobian definition (the fiber has full cardinality when $J_f\ (y)\neq 0$ ) is because it is easier to compute the generic size of the fiber via $S/PS$. In particular, when -as in my case- $S$ can be shown to be a free $R$-module, the rank can be calculated via the Hilbert series of the two rings.
On the other hand, it is much easier to actually find the ramification locus using the Jacobian definition. Therein lies my current conundrum...
I will only try amd answer question 1 above. For the sake of convenience, I will assume that $A,B$ are integral domains, finite type over an algebraically closed field $k$. Furthermore, we are given an inclusion of rings $f : A \hookrightarrow B$ such that $B$ is module finite over $A$.
Let us first show that Definition 1 and 2 are equivalent. This is essentially immediate. It is a standard exercise to check that if we think of $\operatorname{Jac}_f$ as a $B$-linear map $B^{\oplus r} \to B^{\oplus n}$, then $\Omega^1_{B/A}$ is the cokernel of this linear map. Hence $\operatorname{Jac}_f(\mathfrak{m})$ has full rank if and only if $$\Omega^1_{B/A} \otimes_A A/\mathfrak{m} = \Omega^1_{B \otimes_A k(\mathfrak{m})/k(\mathfrak{m})} = 0.$$ This shows that Definitions 1 and 2 are equivalent.
Now at this stage I can only prove that Definition 1 implies 3. Define
$$ N:= \text{Number of primes in $B$ lying over $\mathfrak{m}$}$$ and $$ r := \dim_{k(\eta)} B\otimes_A k(\eta) = [\operatorname{Frac}(B): \operatorname{Frac}(A)],$$ where by $\eta$ I mean the generic point of $\operatorname{Spec} A$. By upper semicontinuity of the fiber dimension of a coherent sheaf, it follows that $\dim_{k(\mathfrak{m})} B\otimes_A k(\mathfrak{m}) \geq r$. However by assumption of $f$ being unramified at $\mathfrak{m}$ in the sense of definition $1$, we have that $B\otimes_A k(\mathfrak{m})$ is a product of $\dim_{k(\mathfrak{m})} B\otimes_A k(\mathfrak{m})$ copies of $k$. It follows that $N \geq r$. However, we also know that trivially $N \leq r$ and so we are done.
Edit: The last inequality $N \leq r$ is wrong without further hypothesis. I will have to think about my answer.