I am reading a book on reinforcement learning. The author says, let $(\Omega , \mathcal{F}, P)$ be a probability space. Let $(\mathbb{R}, \mathcal{B})$ be a measurable space, where $\mathcal{B}$ is the smallest sigma-algebra of subsets of $\mathbb{R}$ that contains all the open intervals in $\mathbb{R}$ (which means $\mathcal{B}$ is a Borel set). Then the author says, let $X$ be a measurable map from $(\Omega , \mathcal{F}, P)$ to $(\mathbb{R}, \mathcal{B})$ (which means $X$ is a random variable). Then he goes on to say that the expected value of $X$ is \begin{equation} E(X)=\int_{w\in\Omega} X(w)P(\mathrm{d}w). \end{equation}
Now the thing I don't understand is, what is $P(\mathrm{d}w)$? Since $P:\mathcal{F}\rightarrow [0,1]$, and the author is introducing $P(\mathrm{d}w)$, which implies $\mathrm{d}w\in \mathcal{F}$? Then please explain to me how $\mathrm{d}w\in \mathcal{F}$?
My intuition says $E(X)=\int_{w\in\Omega} X(w) P(w)$, not $\int_{w\in\Omega} X(w) P(\mathrm{d}w)$. I am attaching the screenshot of the book I am reading.

It is just notation. If $\mu$ is a measure on a measurable space $X$, and $f$ a (complex) measurable function on $X$, we have (by definition) $$\int_X f d\mu =\int_X f(x)d\mu(x)=\int_X f(x) \mu(dx).$$