The setting
When a three-row binary matrix is drawn uniformly at random subject to fixed row and column sums, its three rows are coupled through the column constraints. By the Cauchy-Schwarz inequality, the variance of a sum of three random variables is at most three times the sum of their variances. For functions of the individual rows of a fixed-margin three-row binary matrix, the coupling between rows improves this constant from to .
Let be a finite set of column indices, let specify the prescribed column sums, and let specify the prescribed row sums. The set of three-row binary matrices with margins consists of all arrays satisfying (1)✦ For each and , write for row of .
For any finite set and any function , the uniform expectation is the average of over , (2)✦ taken to be when is empty. The uniform variance of is (3)✦
The claim
Lemma 3.3. Let be a finite set, let , and let be such that the set is nonempty. Suppose that are functions such that each depends only on row , meaning that whenever satisfy . Then, with respect to the uniform variance on , (4)✦
What is checked
The Lean library states Lemma 3.3 over the nonempty finite set of three-row binary matrices with prescribed row sums and column sums defined in (1), equipped with the uniform expectation (2) and uniform variance (3), for any three real-valued functions on each depending only on its corresponding row.