1 version of the statement of Mean bound from counts below a moving threshold, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 1 , first version
Let $m$ be a positive integer, $x_1,\ldots,x_m\in\mathbb R$, $a\in\mathbb R$, and $S\ge0$. Let $w:\mathbb R\to\mathbb R$ be such that $\tau\mapsto\min\{1,w(\tau)\}$ is Lebesgue integrable on $[0,S]$. Suppose that
$$x_j\ge a-S\quad(1\le j\le m),\qquad\#\{j:x_j<a-\tau\}\le m\,w(\tau)\quad(0\le\tau\le S).$$
Then
$$a-\int_0^S\min\{1,w(\tau)\}\,d\tau\le\frac1m\sum_{j=1}^m x_j.$$