In the remark section of my textbook, it says that $a \space \mathbf{div} \space d = \lfloor a/d\rfloor$ and $a \space \mathbf {mod}\space d = a - d$.
Take $a = 15$ and $d = 4 \gt 0$.
$$15 \space \mathbf{div} \space 4 =\lfloor15/4\rfloor = 3$$
$$15 \space \mathbf {mod}\space 4 = 3 \neq 15 - 4 = 11$$
Am I mistaken?

You're right. The solution at the bottom of the page contradicts the definition of $\textrm{mod}$ given in the remark. In fact, $a \, \textrm{mod} \, b = a - a \, \textrm{div} \, d$