ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs
The paper introduces the category of $\omega$PAP spaces, a denotational semantics for probabilistic and differentiable programs that accommodates general recursion, higher-order functions, discontinuous primitives, and both discrete and continuous sampling, while excluding pathological denotations. This framework enables unified correctness proofs: for automatic differentiation and its use in gradient descent, for the almost-everywhere differentiability of probabilistic programs' trace density functions, and for the existence of convenient base measures for density computation in Monte Carlo inference. All proofs work directly with programs' denotations.