The setting
For three arbitrary real-valued random variables, the Cauchy-Schwarz inequality bounds the variance of their sum by three times the sum of their individual variances. When the variables are functions of the three coordinates of a random nonnegative integer triple constrained to a fixed total , the sum constraint couples the coordinates and can yield a tighter factor. Lemma 3.2 establishes the factor for arbitrary real-valued coordinate functions whenever the triple is distributed according to a factorial product weight on the triples summing to .
The weighted triple distribution
For a nonnegative integer , let be the finite set of triples with coordinates in that sum to : (1)✦
For nonnegative integers and , the coordinate weight is the positive real number (2)✦
Fix a triple of nonnegative integer parameters . The triple weight of is the product of its coordinate weights, (3)✦
The total weight is the sum of the triple weights over , and the triple probability of is the ratio of to : (4)
For any real-valued function , its expectation and variance under are defined by (5) For a function and a coordinate , we write for the function on .
The claim
Lemma 3.2. Let be a nonnegative integer, let be a triple of nonnegative integers, and let be arbitrary functions. Under the triple probability on with parameters , (6)✦
What is checked
The Lean library states the variance inequality (6) over the finite set of triples in summing to , equipped with the coordinate weights , the triple weight , the total weight , the triple probability , and the resulting finite-sum expectation and variance , for arbitrary nonnegative integers and arbitrary real-valued functions on .