Define a pair of functions $p, h: \mathbb{Q} \to [0,1]$ over the rational numbers, with the properties
\begin{align} 0 \le p(x) \le 1 && 0 \le h(x) \le 1 && (x\in\mathbb{Q}), \\ \end{align}
as well as
\begin{align} \sum_{x\in\mathbb{Q}}p(x)=1 && \sum_{x\in\mathbb{Q}}h(x)=1. \end{align}
Now define the functions $p', h':\mathbb{R} \to [0,1]$ according to the rules:
\begin{align} p'(y) := \sum_{x<y}p(x),\\ h'(y) := \sum_{x<y}h(x),\\ \end{align}
where the sum is taken over the rationals $x \in \mathbb{Q}$.
Suppose it is known that $p'(y) = h'(y)$ for all $y \in \mathbb{R}$. Is this knowledge sufficient to conclude that $p(x) = h(x)$ for all $x \in \mathbb{Q}$?
Assume $p'=h'$. Let $a$ be a rational number and suppose $p(a)>h(a)$. Then there is some $b>a$ such that $\sum_{y\in\Bbb Q:a<y<b}h(y)<p(a)-h(a)$. Then $$h'(b)=h'(a)+h(a)+\sum_{y\in\Bbb Q:a<y<b}h(y)<p'(a)+p(a)<p'(b)$$ a contradiction.