The n-th arrival time of a Poisson(rate) process — the sum of n iid Exp(rate) interarrival times — has the Erlang(n, rate) = Gamma(n, rate) distribution. Proved from the densities up via the Gamma convolution identity (absent from Mathlib).
∀ {a r : ℝ}, 0 < a → 0 < r → ∀ {z x : ℝ}, x ≠ 0 → gammaPDF a r x * exponentialPDF r (z - x) = ENNReal.ofReal ((Set.Ioc 0 z).indicator (fun t => r ^ (a + 1) / Real.Gamma a * Real.exp (-(r * z)) * t ^ (a - 1)) x)Pointwise (away from x = 0): the product of the Gamma(a,r) density at x and the Exp(r) density at z − x collapses, after the exponentials merge, to a constant multiple of x^(a−1) supported on (0, z].