V_in + V_out = V_vanilla: the barrier-hit event A and its complement partition every path, so the discounted expected payoffs add to the vanilla price. Pure linearity of expectation; needs no barrier density.
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → ℝ → Measure Ω → (Ω → ℝ) → ℝDiscounted risk-neutral value of a payoff g under pricing measure Q and discount factor D: D · E_Q[g]. The present-value functional the pricing files had been spelling out inline; named here so in–out parity is an identity about values rather than raw integrals.