# Notation for “function from a subset of $X$ into $Y$”?

The notation $$f: X \to Y$$ implies that $$X$$ is the domain of $$f$$. It is very regularly convenient to say something like:

Let $$U \subset X$$ and $$f: U \to Y$$.

but in situations where the actual set $$U$$ isn't that important, just that it's a subset of $$X$$. Usually the subset will not be arbitrary, but will be implied by the context. The kind of thing I'm thinking of is:

Let $$\alpha : \mathbb{R} \hookrightarrow \mathbb{R}^{2}$$ be a plane curve.

Is there a common choice for notation in this case? I imagine there must be (it might even be $$\hookrightarrow$$ but I'm not certain, I think that might mean injective).

The notation does not have to encode that the required subset is connected or open or whatever the situtation might require. That should be implied by context. I only care that it's a subset.

• This is called a partial function. – Jair Taylor Jun 9 at 19:08
• I've seen $f:X \rightharpoonup Y$ (with "half" of the arrow tip) used for partial functions. It seems to me like a reasonable notation. – Andreas Blass Jun 9 at 20:41

Yes, I have usually seen $$\hookrightarrow$$ reserved for injective functions.