Suppose $f\colon X \to Y $ is a morphism of schemes. We can define a function on the topological space $Y$ by sending $y\in Y$ to the dimension of the fiber of $f$ over $y$.
When is this function upper semi-continuous?
I have the following "concrete" application in mind. If an algebraic group $G$ acts on a scheme $X$, I'm pretty sure the stabilizer dimension is an upper semi-continuous function on $X$ (i.e. it can jump up on closed sub-schemes), but I don't know a proof. The stabilizers of points are the fibers of the map $\text{Stab}\to X$ in the following Cartesian square: \begin{equation} \require{AMScd} \begin{CD} \text{Stab} @>>> G \times X \\ @VVV @VV{\alpha}V \\ X @>{\Delta}>> X \times X. \end{CD} \end{equation} where $\alpha\colon G\times X\to X\times X $ is given by $(g,x) \mapsto (g\cdot x,x)$, and $\Delta\colon X\to X\times X $ is the diagonal map $x\mapsto (x,x)$. It would be nice to have a condition satisfied by $\alpha\colon G\times X \to X\times X$ that would guarantee the upper semi-continuity of fiber dimension.