Preface
I must say I am aware of previous discussions (e.g. this one) and also of this excellent, didactic proof using Fubini's theorem as presented by Jared Niemi [I'm not saying Jared Niemi is the originator of said proof, mind you]. But I have been thinking about an example where we have a likelihood with variable support and a proper prior and the posterior is improper. I do not claim to have discovered anything new; I'm most likely missing something obvious and would be grateful if someone could point out to me where my "counter-example" below fails.
The supposed counter-example
This is supposed to be a counter-example to the assertion "if the prior $\pi(\theta)$ is proper then the posterior $p(\theta \mid y)$ will be proper almost surely".
Let $p(y | \theta) = \frac{2y}{\theta}, \theta > 0, y \in [0, \sqrt{\theta}]$. It seems to me this likelihood is a proper distribution over $y$: it's non-negative and integrates to unity over the support. The slight quirk is that the support depends on the parameter. This is the case for instance for the GEV too. Now suppose I place a standard half-Cauchy prior on $\theta$, $ \pi(\theta) = 2/\pi(1 + \theta^2), \theta > 0$. It seems to me that the posterior $p(\theta \mid y)$ is not integrable w.r.t. $\theta$: $$ \int_0^{+\infty} p(\theta \mid y) d\theta = \int_0^{+\infty} \frac{2y}{\theta} \frac{2}{\pi \left( 1 + \theta^2 \right)} d\theta = \frac{4y}{\pi} \int_0^{+\infty} \frac{1}{\theta(1+\theta)^2} d\theta = \infty.$$
If someone could point out what I'm missing here, I'd be grateful.
What is wrong
The limits of integration (see Robin's answer).