# The Stacks Project

## Tag 02FX

Lemma 28.27.1. Let $f : X \to S$ be a morphism of schemes. Let $x \in X$ and set $s = f(x)$. Assume $f$ is locally of finite type. Then $$\dim_x(X_s) = \dim(\mathcal{O}_{X_s, x}) + \text{trdeg}_{\kappa(s)}(\kappa(x)).$$

Proof. This immediately reduces to the case $S = s$, and $X$ affine. In this case the result follows from Algebra, Lemma 10.115.3. $\square$

The code snippet corresponding to this tag is a part of the file morphisms.tex and is located in lines 4891–4901 (see updates for more information).

\begin{lemma}
\label{lemma-dimension-fibre-at-a-point}
Let $f : X \to S$ be a morphism of schemes.
Let $x \in X$ and set $s = f(x)$.
Assume $f$ is locally of finite type.
Then
$$\dim_x(X_s) = \dim(\mathcal{O}_{X_s, x}) + \text{trdeg}_{\kappa(s)}(\kappa(x)).$$
\end{lemma}

\begin{proof}
This immediately reduces to the case $S = s$, and $X$ affine.
In this case the result follows from
Algebra, Lemma \ref{algebra-lemma-dimension-at-a-point-finite-type-field}.
\end{proof}

Comment #2448 by Andy on March 9, 2017 a 3:48 pm UTC

What is $S=s$ supposed to mean?

## Add a comment on tag 02FX

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the lower-right corner).