OctoInform Beta

OpenAI preprint, September 2026 · §6. Sampling integral columns

Lemma 6.1: Projective collision bounds in shifted integer boxes, residue lift fibers, and the Heilbronn point sampling law

Collision probability bounds for sampled integral columns.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In the Heilbronn triangle construction, planar point configurations in the unit square [0,1]2[0, 1]^2 are obtained by sampling integral columns u=(u1,u2,u3)u = (u_1, u_2, u_3) from the shifted integer box ([0,N)2×[N,2N))∩ℤ3([0, N)^2 \times [N, 2N)) \cap \mathbb{Z}^3 and applying the projective map π(u)=(u1/u3,u2/u3)\pi(u) = (u_1 / u_3, u_2 / u_3). Two columns map to the same point in [0,1]2[0, 1]^2 precisely when they are proportional.

Controlling the number of colliding pairs in a sampled configuration requires an upper bound on the probability that π(u)=π(v)\pi(u) = \pi(v) for two sampled columns uu and vv. The Lean library establishes this bound in three stages: for uniform pairs from arbitrary subsets of size L3L^3 inside the shifted box, for uniform pairs from Chinese Remainder Theorem (CRT) residue lifts modulo coprime moduli hh and qq, and for the full Heilbronn point sampling law combining a finite-field norm digit encoding with an auxiliary cap.

Shifted boxes and residue lifts

A point in ℝ2\mathbb{R}^2 is an ordered pair of real numbers✦, and the unit square [0,1]2[0, 1]^2 consists of those points (x,y)∈ℝ2(x, y) \in \mathbb{R}^2 with 0≤x≤10 \le x \le 1 and 0≤y≤10 \le y \le 1.✦ For natural numbers NN and nn and an integer shift vector t=(t1,…,tn)∈ℤnt = (t_1, \dots, t_n) \in \mathbb{Z}^n, the shifted integer box of side length NN is the Cartesian product ∏i=1n([ti,ti+N)∩ℤ)\prod_{i=1}^n ([t_i, t_i + N) \cap \mathbb{Z}).✦

In dimension 33, the sampling shift is (0,0,N)(0, 0, N), and the corresponding shifted box is ℬN=([0,N)2×[N,2N))∩ℤ3,\mathcal{B}_N = \bigl([0, N)^2 \times [N, 2N)\bigr) \cap \mathbb{Z}^3,(1) which also identifies with {0,…,N−1}2×{N,…,2N−1}⊆ℕ3\{0, \dots, N - 1\}^2 \times \{N, \dots, 2N - 1\} \subseteq \mathbb{N}^3. On ℤ3\mathbb{Z}^3 (and in particular on ℬN\mathcal{B}_N), the projective map π\pi to ℝ2\mathbb{R}^2 is given by π(u)=(u1u3,u2u3).\pi(u) = \left(\frac{u_1}{u_3}, \frac{u_2}{u_3}\right).(2) When N>0N > 0, every column u∈ℬNu \in \mathcal{B}_N satisfies π(u)∈[0,1]2\pi(u) \in [0, 1]^2. For any modulus m∈ℕm \in \mathbb{N}, the residue vector modulo mm of a column uu in a shifted integer box is the vector in (ℤ/mℤ)n(\mathbb{Z}/m\mathbb{Z})^n obtained by reducing each coordinate of uu modulo mm.✦

For natural numbers hh, qq, LL, aa, and bb and an integer tt, an integer double residue lift is an integer x∈[t,t+Lhq)∩ℤx \in [t, t + L h q) \cap \mathbb{Z} whose Euclidean remainders modulo hh and qq equal aa and bb, respectively.✦ Given a,b∈ℕna, b \in \mathbb{N}^n and t∈ℤnt \in \mathbb{Z}^n, an integer residue lift box is a tuple of such lifts across all nn coordinates✦, and its underlying vectors form a finite set of integer column lifts in ℤn\mathbb{Z}^n.✦ Taking n=3n = 3 and the sampling shift (0,0,Lhq)(0, 0, L h q) gives the finite set ℒ(h,q,L;a,b)⊆ℬLhq\mathcal{L}(h, q, L; a, b) \subseteq \mathcal{B}_{L h q} of shifted CRT column lifts.✦

Parameters and residue encodings

The norm-encoding construction fixes the natural-number parameters d=41,M=(4d−1d),T=(M3),k=T2+1.\begin{aligned} d &= 41, & M &= \binom{4d - 1}{d}, \\ T &= \binom{M}{3}, & k &= T^2 + 1. \end{aligned}(3) For natural numbers kk and rr satisfying 2≤k2 \le k, 200k2≤r200 k^2 \le r, and 400k2≤r400 k^2 \le r, prime parameter data DD consists of primes BB and qq with gcd⁡(Bk,q)=1\gcd(B^k, q) = 1, where h=Bkh = B^k, satisfying 100k2r30<B≤200k2r30,B≤r31,h100<q≤2h100,q≤h101,2000h4≤q.\begin{aligned} 100 k^2 r^{30} &< B \le 200 k^2 r^{30}, & B &\le r^{31}, \\ h^{100} &< q \le 2 h^{100}, & q &\le h^{101}, \\ 2000 h^4 &\le q. \end{aligned}(4)✦ Associated with DD are the combined modulus hqh q, the box size N=(hq)10N = (h q)^{10}, and the lift multiplicity (hq)9(h q)^9.

For a prime rr, labels are elements of the finite field 𝔽rd\mathbb{F}_{r^d} equipped with a fixed basis β\beta over 𝔽r\mathbb{F}_r indexed by {0,…,d−1}\{0, \dots, d - 1\}. The moment column of x∈𝔽rdx \in \mathbb{F}_{r^d} is (1,x,x2)(1, x, x^2)✦, and its label coordinate vector in 𝔽r{0,1,2}×{0,…,d−1}\mathbb{F}_r^{\{0, 1, 2\} \times \{0, \dots, d - 1\}} records the β\beta-coordinates of these three entries.✦ On polynomial variables indexed by {0,1,2}×{0,1,2}×{0,…,d−1}\{0, 1, 2\} \times \{0, 1, 2\} \times \{0, \dots, d - 1\}, the coordinate linear form at (j,i)(j, i) is ∑ν=0d−1β(ν)Xj,i,ν\sum_{\nu=0}^{d-1} \beta(\nu) X_{j, i, \nu}✦, and the determinant polynomial is the determinant of the 3×33 \times 3 matrix whose (i,j)(i, j) entry is the coordinate linear form at (j,i)(j, i).✦

For a Galois extension K/FK / F and a multivariate polynomial PP over KK, the Galois conjugate product is ∏σ∈Gal⁡(K/F)σ(P)\prod_{\sigma \in \operatorname{Gal}(K/F)} \sigma(P)✦; its descent to a multivariate polynomial over FF is the norm polynomial of PP over FF.✦ Applying this construction to the determinant polynomial for 𝔽rd/𝔽r\mathbb{F}_{r^d} / \mathbb{F}_r yields the label norm polynomial over 𝔽r\mathbb{F}_r.✦

The degree-dd multi-indices on the coordinate set {0,1,2}×{0,…,d−1}\{0, 1, 2\} \times \{0, \dots, d - 1\} are the natural-number exponent vectors of total degree dd.✦ They have cardinality MM and are enumerated by {0,…,M−1}\{0, \dots, M - 1\}.✦ For each i∈{0,…,M−1}i \in \{0, \dots, M - 1\} and label x∈𝔽rdx \in \mathbb{F}_{r^d}, evaluating the ii-th monomial on the label coordinate vector of xx gives the monomial value mi(x)∈𝔽rm_i(x) \in \mathbb{F}_r.✦ For three multi-indices, combining them across the three variable blocks and extracting the corresponding coefficient of the label norm polynomial gives the triple-block tensor coefficient ci,j,ℓ∈𝔽rc_{i, j, \ell} \in \mathbb{F}_r.

In a finite linearly ordered set ι\iota, the strictly increasing triples t1<t2<t3t_1 < t_2 < t_3 have cardinality (|ι|3)\binom{|\iota|}{3}.✦ Enumerating the TT strictly increasing triples t=(t1,t2,t3)t = (t_1, t_2, t_3) in {0,…,M−1}3\{0, \dots, M - 1\}^3 by a∈{0,…,T−1}a \in \{0, \dots, T - 1\}, the determinant decomposition rows at aa and xx are the three values (ct1,t2,t3mt1(x),mt2(x),mt3(x))(c_{t_1, t_2, t_3} m_{t_1}(x), m_{t_2}(x), m_{t_3}(x)) in 𝔽r\mathbb{F}_r.✦ The designated digit positions at aa in rows 00, 11, and 22 are aa, TaT a, and T2−(T+1)aT^2 - (T + 1) a, respectively.✦ For each row i∈{0,1,2}i \in \{0, 1, 2\} and digit position v∈{0,…,k−1}v \in \{0, \dots, k - 1\}, the prescribed residue modulo rr at (i,v,x)(i, v, x) is the sum of the ii-th decomposition row value at (a,x)(a, x) over all aa whose ii-th designated digit position equals vv.

For natural numbers r>0r > 0 and mm and a residue class α∈ℤ/rℤ\alpha \in \mathbb{Z}/r\mathbb{Z}, the residue fiber in {1,…,rm}\{1, \dots, r m\} is the set of integers n∈{1,…,rm}n \in \{1, \dots, r m\} satisfying n≡α(mod⁡r)n \equiv \alpha \pmod{r}, which has cardinality mm.✦ When rm<Br m < B, enumerating this fiber assigns to each sample index in {0,…,m−1}\{0, \dots, m - 1\} a prescribed base-BB digit in {0,…,B−1}\{0, \dots, B - 1\}.✦ With m=r9m = r^9 and prime parameter data DD for k=T2+1k = T^2 + 1 and rr, one has r10<Br^{10} < B, so each label x∈𝔽rdx \in \mathbb{F}_{r^d}, row i∈{0,1,2}i \in \{0, 1, 2\}, position v∈{0,…,k−1}v \in \{0, \dots, k - 1\}, and sample index in {0,…,r9−1}\{0, \dots, r^9 - 1\} yields a sampled base-BB digit di,vd_{i, v}. On the main latent sample space Λr=𝔽rd×{0,…,r9−1}{0,1,2}×{0,…,k−1}\Lambda_r = \mathbb{F}_{r^d} \times \{0, \dots, r^9 - 1\}^{\{0, 1, 2\} \times \{0, \dots, k - 1\}}, the sampled column in Rh3R_h^3, where Rh=ℤ/hℤR_h = \mathbb{Z}/h\mathbb{Z}, has ii-th entry ∑v=0k−1di,vBvmod⁡h\sum_{v=0}^{k-1} d_{i, v} B^v \bmod h.

Auxiliary caps and point sampling laws

A subset SS of F3F^3 over a field FF is a cap if no three distinct points of SS are collinear.✦ Given a finite outcome space Ω\Omega, a real-valued weight function ww on Ω\Omega, and a family of finite subsets VωV_\omega of a set EE, a triple b=(b1,b2,b3)∈E3b = (b_1, b_2, b_3) \in E^3 is contained in VωV_\omega if b1,b2,b3∈Vωb_1, b_2, b_3 \in V_\omega.✦ Its triple inclusion mass is the total weight of all ω∈Ω\omega \in \Omega whose subset contains all three entries of bb✦, and for natural numbers qq and ss, its normalized auxiliary triple weight is W(b)=(q3s)3∑ω∈Ωb1,b2,b3∈Vωw(ω).W(b) = \left(\frac{q^3}{s}\right)^3 \sum_{\substack{\omega \in \Omega \\ b_1, b_2, b_3 \in V_\omega}} w(\omega).(5)✦

An auxiliary cap sampling law for a prime qq and a natural number HH consists of a finite outcome space Ω\Omega, nonnegative weights ww on Ω\Omega summing to 11, a positive integer ss satisfying q2≤20003H6sq^2 \le 2000^3 H^6 s, and subsets Vω⊆(ℤ/qℤ)3V_\omega \subseteq (\mathbb{Z}/q\mathbb{Z})^3 of cardinality ss such that every VωV_\omega avoids 00, is a cap, and admits no nontrivial integer linear relation ∑i=13xipi=0\sum_{i=1}^3 x_i p_i = 0 in (ℤ/qℤ)3(\mathbb{Z}/q\mathbb{Z})^3 with |xi|≤H|x_i| \le H among any three distinct elements p1,p2,p3∈Vωp_1, p_2, p_3 \in V_\omega.✦ In addition, for every triple b∈((ℤ/qℤ)3)3b \in ((\mathbb{Z}/q\mathbb{Z})^3)^3, W(b)≤8if b is affinely independent,W(b)≤4q3sif b has two distinct entries,W(b)≤2(q3s)2in general.\begin{aligned} W(b) &\le 8 && \text{if $b$ is affinely independent,} \\ W(b) &\le 4 \frac{q^3}{s} && \text{if $b$ has two distinct entries,} \\ W(b) &\le 2 \left(\frac{q^3}{s}\right)^2 && \text{in general.} \end{aligned}(6)

On finite spaces, the uniform probability weight assigns 1/|α|1 / |\alpha| to each element of α\alpha.✦ Given a weight μ\mu on α\alpha, the product probability weight of a family x∈αιx \in \alpha^\iota is ∏i∈ιμ(xi)\prod_{i \in \iota} \mu(x_i).✦ Given a mixing weight pp on a finite set β\beta and weights νb\nu_b on α\alpha, the mixture weight at a∈αa \in \alpha is ∑b∈βp(b)νb(a)\sum_{b \in \beta} p(b) \nu_b(a).✦ Given a prior weight ρ\rho on Θ\Theta and conditional weights μθ\mu_\theta on α\alpha, the conditional product weight of (θ,x)∈Θ×αι(\theta, x) \in \Theta \times \alpha^\iota is ρ(θ)∏i∈ιμθ(xi)\rho(\theta) \prod_{i \in \iota} \mu_\theta(x_i).

For residue maps f:X→Af : X \to A and g:X→Eg : X \to E, a target residue a∈Aa \in A, a finite subset V⊆EV \subseteq E, and natural numbers ss and LL, the conditional column mass assigns to each x∈Xx \in X a real probability mass conditioned on f(x)=af(x) = a and g(x)∈Vg(x) \in V.✦ Evaluating this mass on a shifted integer box of side LhqL h q with the residue maps modulo hh and qq yields the integer column law.✦

A point sampling law 𝒫\mathcal{P} consists of a finite environment space Θ\Theta, a finite column space XX, nonnegative weights ρ\rho on Θ\Theta and μθ\mu_\theta on XX (for each θ∈Θ\theta \in \Theta) each summing to 11, and a map ϕ:Θ×X→[0,1]2\phi : \Theta \times X \to [0, 1]^2. Its pair collision probability Ppair(𝒫)P_{\mathrm{pair}}(\mathcal{P}) is the expected pair collision mass.✦

Given coprime positive integers hh and qq, positive integers LL and ss, finite spaces Θ\Theta and Δ\Delta with probability weights ρ\rho and pp, residue targets a(θ,δ)∈Rh3a(\theta, \delta) \in R_h^3, and subsets Vθ⊆(ℤ/qℤ)3V_\theta \subseteq (\mathbb{Z}/q\mathbb{Z})^3 of size ss, the mixture point sampling law has column space ℬLhq\mathcal{B}_{L h q}, conditional column distribution given by the pp-mixture of the integer column laws for a(θ,δ)a(\theta, \delta) and VθV_\theta, and point map π\pi.✦ Taking a product environment Θ×Ω\Theta \times \Omega with product weight ρ(θ)w(ω)\rho(\theta) w(\omega) yields the independent environments point law.✦ Taking Θ=SL3(Rh)\Theta = \mathrm{SL}_3(R_h) with the uniform probability weight yields the SL3\mathrm{SL}_3 point sampling law✦; specializing h=Bkh = B^k, qq, and L=(hq)9L = (h q)^9 from prime parameter data DD produces the prime lift point law.✦

For a prime rr, prime parameter data DD for k=T2+1k = T^2 + 1 and rr, and an auxiliary cap sampling law AA for qq and H=h2H = h^2, combining AA with the uniform probability weight on Λr\Lambda_r and the sampled column map into Rh3R_h^3 via the prime lift point law defines the auxiliary point sampling law.✦ Selecting such an auxiliary cap sampling law defines the Heilbronn point sampling law 𝒫D\mathcal{P}_D.✦

The claim

Lemma 6.1. Let NN, QQ, and LL be natural numbers with Q>0Q > 0, L>0L > 0, and N=QLN = Q L. For any subsets U,V⊆ℬNU, V \subseteq \mathcal{B}_N with |U|=|V|=L3|U| = |V| = L^3, |{(u,v)∈U×V:π(u)=π(v)}||U|⋅|V|≤8Q6N3.\frac{\bigl|\{(u, v) \in U \times V : \pi(u) = \pi(v)\}\bigr|}{|U| \cdot |V|} \le \frac{8 Q^6}{N^3}.(7)✦ Let hh, qq, and LL be positive integers with gcd⁡(h,q)=1\gcd(h, q) = 1, and let a1,a2∈{0,…,h−1}3a_1, a_2 \in \{0, \dots, h - 1\}^3 and b1,b2∈{0,…,q−1}3b_1, b_2 \in \{0, \dots, q - 1\}^3. Setting ℒ1=ℒ(h,q,L;a1,b1)\mathcal{L}_1 = \mathcal{L}(h, q, L; a_1, b_1) and ℒ2=ℒ(h,q,L;a2,b2)\mathcal{L}_2 = \mathcal{L}(h, q, L; a_2, b_2), |{(u,v)∈ℒ1×ℒ2:π(u)=π(v)}||ℒ1|⋅|ℒ2|≤8(hq)6(Lhq)3.\frac{\bigl|\{(u, v) \in \mathcal{L}_1 \times \mathcal{L}_2 : \pi(u) = \pi(v)\}\bigr|}{|\mathcal{L}_1| \cdot |\mathcal{L}_2|} \le \frac{8 (h q)^6}{(L h q)^3}.(8)✦ Finally, for a prime rr and prime parameter data DD for k=T2+1k = T^2 + 1 and rr, with h=Bkh = B^k and N=(hq)10N = (h q)^{10}, the pair collision probability of the Heilbronn point sampling law 𝒫D\mathcal{P}_D satisfies Ppair(𝒫D)≤8(hq)6N3.P_{\mathrm{pair}}(\mathcal{P}_D) \le \frac{8 (h q)^6}{N^3}.(9)✦

What is checked

Lemma 6.1 is stated over subsets of size L3L^3 in the shifted box ℬN\mathcal{B}_N, shifted CRT column lifts for coprime moduli hh and qq, and the Heilbronn point sampling law 𝒫D\mathcal{P}_D constructed from prime parameter data, the finite-field norm digit encoding, and an auxiliary cap sampling law. Beyond these collision bounds, the Lean library establishes the cardinality (|ι|3)\binom{|\iota|}{3} of strictly increasing triples in a finite linearly ordered set ι\iota, the descent of the Galois conjugate product of a multivariate polynomial to the base field, the digit-base inequality r10<Br^{10} < B, and the positivity of the lift multiplicity (hq)9(h q)^9.