I was asked to show the following statement:
Let $X, Y$ both be equally distributed random variables on $[0,1]$, we define
$$ P(\{Y \leq y\}|\{X=x\}) = \lim_{h \downarrow 0} P(\{Y \leq y\}|\{x \leq X \leq x+h \}). $$
Show that $$ P(\{Y \leq g(X) \}|\{X=x\}) = g(x)$$.
$$----$$
We haven't covered joint probability distribution functions yet. In the end I got stuck at evaluating
$$ P(\{Y \leq g(X)\} \cap \{x\leq X \leq x+h\})$$
Thanks!
For $x \in [0, 1]$, we have $$P(Y \leq g(X) \mid X = x) = P(Y \leq g(x) \mid X = x).$$
Assuming $X$ and $Y$ are independent, we can say further that $P(Y \leq g(x) \mid X = x) = P(Y \leq g(x))$, so $$P(Y \leq g(X) \mid X = x) = P(Y \leq g(x)).$$ Now, assuming that $Y$ is uniformly distributed on $[0, 1]$, we get $$P(Y \leq g(X) \mid X = x) = P(Y \leq g(x)) = g(x).$$
Edit: Here is the approach computing the limit $\lim_{h \to 0}P(Y \leq g(X) \mid x_0 \leq X \leq x_0 + h)$ directly: \begin{align} P(Y \leq g(X), x_0 \leq X \leq x_0 + h) &= \int_{0}^{1}\int_{0}^{1}I(y \leq g(x), x_0 \leq x \leq x_0 + h)\,dy\,dx \\ &= \int_{x_0}^{x_0 + h}\int_{0}^{1}I(y \leq g(x))\,dy\,dx \\ &= \int_{x_0}^{x_0 + h}g(x)\,dx, \end{align} and $$P(x_0 \leq X \leq x_0 + h) = h.$$ So $$\lim_{h \to 0}P(Y \leq g(X) \mid x_0 \leq X \leq x_0 + h) = \lim_{h \to 0}\frac{1}{h}\int_{x_0}^{x_0 + h}g(x)\,dx = g(x_0)$$ assuming $g$ is continuous at $x_0$.