If i have a function, $$f : X \to Y$$ Does it make sense to say the following:
For $x \in X $ and $y \in Y, $
$f$ is not surjective if $f(x) \neq y$ for some $ y \in Y$.
And $f$ is not injective if $ f(x) =f(x') $, where $x \neq x'$.
First time learning about functions in such a formal way and I don't have very detailed notes to learn off. p.s, any text recommendations which may aid my understanding about this topic and the basis of analysis in general?
What's really missing from your statements are quantifiers, without which it's hard to define these things. It's correct to say that $f$ is not surjective if there exists some $y$ for which there does not exist any $x$ with $f(x)=y$.
Similarly, $f$ is not injective if there exist some $x$ and $x'$ with $x\neq x'$ and $f(x)=f(x')$.