A question from my Linear Algebra textbook:
Prove that there is an additive function $T : R \to R$ that is not linear. Hint: Let $V$ be the set of real numbers regarded as a vector space over the field of rational numbers. By the corollary to Theorem 1.13 (p. 61), $V$ has a basis $\beta$. Let $x$ and $y$ be two distinct vectors in $\beta$ and define $f: \beta \to V$ by $f(x) = y$, $f(y) = x$, and $f(z) = z$ otherwise. There exists a linear transformation $T: V \to V$ such that $T(u) =f(u)$ for all u in $\beta$. Then $T$ is additive, but for $c =y/x$, $T(cx) \neq cT(x)$.
I also know that if $T: V \to W$ is additive and $V$ and $W$ are vector spaces over the field of rational numbers then $T$ must be linear. So my question is how does this hint make sense? How can $T$ be linear and not be closed under scalar multiplication?