I am a bit confused.
The probability law regarding a random variable is defined as mapping $\mathcal{P} : \mathbb{B} \to [0,1]$, where $\mathbb{B}$ is the regular Borel set; that is, a probability law is an image measure.
On the other hand, the probability distribution is $\mathbb{D} : \mathbb{R} \to [0,1]$, where $\mathbb{D}$ is defined as $\mathbb{D}(x) = P(\omega | X (\omega) < x)$.
Although they are very similar, they are not equivalent, since the latter has a very specific structure, but, in the former, one can find the measure of any Borel set. Why, then, do a lot of texts informally claim that they are the, in fact, equivalent?
It is clear that, for any measurable function, for example, a random variable, one can write its distribution using the probability law mapping, but, conversely, for example, assigning a probability measure to an arbitrary Borel set using the distribution function is not very clear to me.
I have never taken a formal course on probability theory, so forgive me if this question seems too stupid, or does not make much sense.