I'm trying to prove this question:
Let $D$ be a divisor in $F|K$ such that $\dim (D)\gt 0$ and $0 \neq f\in \mathscr L(D)$. Thus $f\notin \mathscr L(D-P)$ for almost all $P$. Then show that $$\dim (D-P)=\dim (D)-1$$ for almost all $P$.
I proved the first part of the question, but I couldn't prove $\dim (D-P)=\dim (D)-1$ using this first part.
Thanks
Source: first chapter of Algebraic function fields and codes from Henning Stichtenoth
Let $C$ be a curve over $k$, and $P$ a $k$-point.
Recall that we can think of $\mathcal{L}(D)$ as
$$\mathcal{L}(D)(U)=\left\{f\in K(F):\text{div}(f)\mid_U+D\mid_U\geqslant 0\right\}$$
Then,
$$\mathcal{L}(D-P)(U)=\left\{f\in K(C):\text{div}(f)\mid_U+D\mid_U-P\mid_U\geqslant 0\right\}$$
So, I think you can see that $\mathcal{L}(D-P)$ is a subsheaf of $\mathcal{L}(D-P)$, whose global sections correspond to global sections of $\mathcal{L}(D)$ vanishing at $P$. So, in particular, for almost all $P$, $\Gamma(C,\mathcal{L}(D-P))\subsetneq\Gamma(C,\mathcal{L}(D))$.
But, note that if we think of $\mathcal{L}(-p)$ as being the ideal sheaf of the closed subscheme $p\subseteq F$, then we have the exact sequence
$$0\to\mathcal{L}(-p)\to \mathcal{O}_C\to \mathcal{O}_p\to 0$$
Tensoring this with $\mathcal{L}(D)$ gives
$$0\to\mathcal{L}(D-P)\to\mathcal{L}\to \mathcal{L}(D)\otimes\mathcal{O}_p\to 0$$
Passing to global sections we get
$$0\to\mathcal{L}(D-P)(C)\to\mathcal{L}(D)(C)\to k$$
Which tells you that $\dim\mathcal{L}(D-P)(C)$ is either $\dim\mathcal{L}(D)(C)$ or $\dim\mathcal{L}(D-P)(C)-1$.
So, for almost all $P$, so that $\mathcal{L}(D-P)(C)\subsetneq\mathcal{L}(D)(C)$ you have the desired dimension.