I'm reading Steven Galbraith "Mathematics of Public Key Cryptography" and can't understand lemma 8.4.2 on page 154 that necessary for proof of Riemann-Roch theorem.
Suppose $C$ $-$ curve over $\mathbb k$.
We want to prove that if $D' \ge D$ then $dim_{\mathbb k} (\mathscr L_{\mathbb k} (D')/\mathscr L_{\mathbb k}(D)) \le \deg(D') - \deg(D)$. Where $L_{\mathbb k}(D)$ $-$ Riemann-Roch space of $D$, i.e. $\mathscr L_{\mathbb k} (D) = \{f \in \mathbb k(C)^∗ : v_P(f) \ge -n_P\ for\ all\ P \in C(\mathbb k)\} \cup \{0\}$. In order to prove that we are trying to prove following fact:
Let $P_0 \in C(\overline{\mathbb k})$. Then $dim_{\mathbb k}(\mathscr L_{\mathbb k} (D + P_0)/\mathscr L_{\mathbb k} (D)) \le 1$.
Proof is following:
Write $D = \sum_{P \in C(\overline{\mathbb k})} n_P(P)$. Note that $\mathscr L_{\mathbb k} (D)$ is a $\mathbb k$-vector subspace of $\mathscr L_{\mathbb k} (D + P_0)$. Let $t \in k(C)^∗$ be a function such that $v_{P_0} (f) = n_{P_0} + 1$ (e.g., take $t$ to be a power of a uniformizer at $P_0$). If $f \in \mathscr L_{\mathbb k} (D + P_0)$ then $ft \in O_{P,k}(C)$. We therefore have a $\mathbb k$-linear map $\psi : \mathscr L_{\mathbb k} (D + P_0) → \mathbb k$ given by $\psi(f) = (ft)(P_0)$. The kernel of $\psi$ is $\mathscr L_{\mathbb k} (D)$ and the first part of the statement follows.
Let consider following example $$C(\mathbb Q) = V(y=0),\ f = \frac{x^2-xz}{x^2-2},\ t = \frac{x^2-2}{z^2},\ P_0 = (\sqrt{2}:0:1) \in C(\overline{\mathbb Q}).$$
Hence $ft = \frac{x^2-xz}{z^2}$ and $ft(P_0) = 2 - \sqrt{2} \notin \mathbb Q$. And we cannot say that $\psi : \mathscr L_{\mathbb Q} (D + P_0) → \mathbb Q$.
Is that error in book or I don't understand something?