For example $f:\mathbb{R}\to\mathbb{R}$ is a function. How to simply express a correspondent function $g:\mathbb{Q}\to\mathbb{R}$ such that $g(x)=f(x)$, $\forall x\in\mathbb{Q}$?
Is there a particular notation for a function confined in a set?
1
$\begingroup$
notation
terminology
2 Answers
2
Other notations could also be
$g=f\mid \mathbb Q$ and $g=f\mid_{\mathbb Q}$
In general if we restrict a function $f$ to a set $A$ we may write
$f\mid A\text{ or } f\mid_A$
(apart from Asaf's notation)
In reply to the comment: It is called an extension of $f$. "Let $f\colon X \to Y$ be a function and $A$ and $B$ be sets such that $X\subseteq A$ and $Y\subseteq B$. An extension of $f$ to $A$ is a function $g\colon A \to B$ such that $f(x)=g(x)$ for all $x\in X $. Alternatively, $g$ is an extension of $f$ to $A$ if $f$ is the restriction of $g$ to $X$". The TeX was missing so I pasted here
-
0See above. ${}$ – 2012-10-06
4
This is known as the restriction of $f$ to $\mathbb Q$. The common notation is: $f\upharpoonright_{\mathbb Q}\colon\mathbb Q\to\mathbb R$
-
0Or my preferred version, $f\upharpoonright\Bbb Q$. – 2012-10-07