Solution (source code)

= Solution

A <T-forward measure> is a probability measure $Q^T$, equivalent to the physical measure, under which prices expressed in units of the positive maturity-$T$ bond are martingales. Equivalently, every attainable payoff $X_T$ has time-$t$ price
$$
\pi_t=B_t^T\mathbb E_{Q^T}[X_T\mid\mathcal F_t].
$$
The zero-coupon bond is the <numéraire>.