The setting
To convert residue constructions modulo two coprime moduli and into planar point sets in the unit square , one lifts pairs of residue vectors in to integer columns in the three-dimensional box and projects each column to . When divides , the Chinese Remainder Theorem (CRT) guarantees that every pair of prescribed residues has the same number of integer lifts. Uniform lifting over this box therefore yields normalized probability laws for single columns, for triples of columns, and for -tuples of columns sampled under a shared random matrix in and a shared auxiliary residue set.
Shifted boxes, residues, and projection
A point in is an ordered pair .✦ It lies in the unit square if and .✦
For natural numbers and and an integer shift vector , the shifted integer box is the finite set of integer vectors defined by (1)✦ For a natural number , the sampling shift is , and the corresponding sampling box is .✦ For natural numbers , , and , the integer column box is .✦
The projective map sends an integer column to the point (2)✦ For any natural number , write for the residue ring modulo . The residue map reduces each coordinate modulo , sending to .✦ For triples of columns in , write in .
Lifted column and triple masses
Let , , and be sets, let and be maps, let , let be a finite subset, and let and be natural numbers. The conditional column mass at equals when and , and otherwise.✦ For natural numbers , , , and , a shift , a residue , and a finite subset , the integer column law on is the real-valued function (3)✦
A triple is contained in a finite subset if for every .✦ For a finite subset and an element , the main residue mass equals when and otherwise.✦ Given a finite index set , real weights , and a family of finite subsets indexed by , the triple inclusion mass at is the sum of over all for which is contained in .✦ For natural numbers and and maps and , the auxiliary residue mass , the joint residue mass , and the lifted probability mass are given by (4)
Mixtures and the special-linear sample law
Let , , , and be sets with and finite. For real weights and a family of functions (), the mixture weight at is . For a real-valued weight function and a family , the product probability weight is . Given parameter weights and conditional weights (), the conditional product weight at is . These three weights are defined by (5)
Given maps and , a residue family , real weights , finite subsets indexed by , and natural numbers and , the mixture column mass at and is (6)✦ Specializing (6) to , , and yields the mixed integer column law for .✦
In the sampling model, all column samples share one pair of coordinate changes while choosing their labels, residues, and integer lifts independently conditioned on that pair.
For a natural number and real weights and , the joint column sample law on is the conditional product weight (7)✦
For a natural number , let be the special linear group of matrices over with determinant .✦ Each acts on a column by left matrix-vector multiplication .✦ When , the uniform law assigns weight to every .✦
The claim
Theorem. Let and be coprime positive integers.
First, for any natural numbers and with , any shift , and any residues and , the number of lifts of in satisfies (8)✦
Second, for any positive integer and any column , the projection (2) lies in the unit square: (9)✦
Third, for any positive integers and , any shift , any residue , and any finite subset with , the integer column law (3) sums to : (10)✦
Fourth, let be a finite set, let and be positive integers, let , let be a nonempty finite set, let satisfy , and let be finite subsets with for every . Then the lifted probability mass (4) on triples in with lift count sums to : (11)✦
Fifth, let and be finite sets, let and be positive integers, let be a natural number, let , and define by . If and satisfy and , and if are finite subsets with for every , then the joint column sample law (7) sums to : (12)✦
What is checked
In the Lean library, the theorem above is stated over shifted integer boxes , the sampling box with its projective map into , coordinatewise residue reductions modulo coprime positive integers and , the lifted column and triple probability masses, and the joint column sample law mixed over and a finite auxiliary index set .