OctoInform Beta

OpenAI preprint, September 2026 · §7. Counting determinant-zero triples

Proposition 7.1: Logarithmic upper bound on W(A)W(A) over singular lattice matrices and three-case dyadic shell estimates

Weighted count bound for determinant-zero lattice matrices.

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 probabilistic lower bound for Heilbronn’s triangle function Δ(n)\Delta(n), one estimates a weighted count of 3×33 \times 3 integer matrices AA whose entries are bounded by 2N2N, whose rows lie in a fixed sublattice Λ⊆ℤ3\Lambda \subseteq \mathbb{Z}^3 of index II coming from a residue matrix modulo h=Bkh = B^k, whose determinant vanishes, and whose three columns project to pairwise distinct points in the plane under π(u)=(u1/u3,u2/u3)\pi(u) = (u_1/u_3, u_2/u_3). Each matrix is weighted by a normalized auxiliary inclusion weight W(A)W(A) induced by a random cap in (ℤ/qℤ)3(\mathbb{Z}/q\mathbb{Z})^3.

Because det⁡A=0\det A = 0, every such matrix annihilates a primitive integer vector x∈ℤ3x \in \mathbb{Z}^3, and partitioning those null vectors into dyadic shells according to their Euclidean length reduces the global count to shell-level sums. Proposition 7.1 establishes a global upper bound of order (N6/I2)log⁡(4N)(N^6 / I^2)\log(4N) on the total weight, together with the three-case shell decomposition and the three shell estimates for affinely independent column triples, non-exceptional equal column pairs, and exceptional rank-two pairs.

Lattices, projections, and smith normal form

An integer vector v=(v1,v2,v3)∈ℤ3v = (v_1, v_2, v_3) \in \mathbb{Z}^3 has Euclidean norm ∥v∥=(v12+v22+v32)1/2\|v\| = (v_1^2 + v_2^2 + v_3^2)^{1/2} in ℝ3\mathbb{R}^3 and coordinate greatest common divisor (GCD) gcd⁡(v1,v2,v3)∈ℕ\gcd(v_1, v_2, v_3) \in \mathbb{N}; it is primitive when gcd⁡(v1,v2,v3)=1\gcd(v_1, v_2, v_3) = 1.✦ For a 3×33 \times 3 integer matrix AA and column index j∈{1,2,3}j \in \{1, 2, 3\}, the projected column π(A⋅j)∈ℝ2\pi(A_{\cdot j}) \in \mathbb{R}^2 is (A1j/A3j,A2j/A3j)(A_{1j}/A_{3j}, A_{2j}/A_{3j}), taking a quotient with zero denominator to be 00.✦

For a natural number hh, write Rh=ℤ/hℤR_h = \mathbb{Z}/h\mathbb{Z} for the residue ring modulo hh. Reduction modulo hh is the additive homomorphism ℤ3→Rh3\mathbb{Z}^3 \to R_h^3 reducing each coordinate modulo hh.✦ For a 3×33 \times 3 matrix CC over a ring RR, the row space of CC is the additive subgroup {wC:w∈R3}⊆R3\{w C : w \in R^3\} \subseteq R^3.✦ When C∈Rh3×3C \in R_h^{3 \times 3}, its integer row lattice modulo hh, written ΛC⊆ℤ3\Lambda_C \subseteq \mathbb{Z}^3, is the preimage of the row space of CC under reduction modulo hh.✦

For natural numbers pp and kk, a Smith normal form modulo pkp^k of a matrix C∈Rpk3×3C \in R_{p^k}^{3 \times 3} consists of natural numbers bb and ee with b≤e≤kb \le e \le k and invertible matrices P,Q∈GL3(Rpk)P, Q \in \mathrm{GL}_3(R_{p^k}) satisfying (1): C=Pdiag⁡(1,pb,pe)Q.C = P \operatorname{diag}(1, p^b, p^e) Q.(1)✦

Row lattice Smith data consists of a prime BB, natural numbers b,e,kb, e, k with e≤ke \le k, a sublattice Λ⊆ℤ3\Lambda \subseteq \mathbb{Z}^3, a 3×33 \times 3 integer matrix CC, and invertible matrices P,Q∈GL3(Rh)P, Q \in \mathrm{GL}_3(R_h) for h=Bkh = B^k, such that the reduction of CC modulo hh equals Pdiag⁡(1,Bb,Be)QP \operatorname{diag}(1, B^b, B^e) Q, every multiple BevB^e v with v∈ℤ3v \in \mathbb{Z}^3 lies in Λ\Lambda, every row of CC lies in Λ\Lambda, and [ℤ3:Λ]=Bb+e[\mathbb{Z}^3 : \Lambda] = B^{b+e}.✦ From this data we set h=Bkh = B^k✦, E=BeE = B^e✦, and I=Bb+eI = B^{b+e}✦.

Auxiliary cap sampling and column pairs

For a field FF, a subset of F3F^3 is a cap in F3F^3 if no three distinct points of it are collinear.✦ Given a finite outcome space Ω\Omega, a real weight function ρ:Ω→ℝ\rho : \Omega \to \mathbb{R}, and a family of finite subsets V(ω)V(\omega) of a set XX, a triple b=(b1,b2,b3)∈X3b = (b_1, b_2, b_3) \in X^3 is contained in V(ω)V(\omega) if b1,b2,b3∈V(ω)b_1, b_2, b_3 \in V(\omega).✦ The triple inclusion mass μ(b)\mu(b) is given by (2): μ(b)=∑ω∈Ωb1,b2,b3∈V(ω)ρ(ω).\mu(b) = \sum_{\substack{\omega \in \Omega \\ b_1, b_2, b_3 \in V(\omega)}} \rho(\omega).(2)✦

The auxiliary triple weight normalizes the probability that a triple of residue columns lands simultaneously in a random cap against the cube of the cap density.For natural numbers qq and ss, the auxiliary triple weight W(b)W(b) of b∈X3b \in X^3 with respect to (Ω,ρ,V)(\Omega, \rho, V) is given by (3): W(b)=(q3s)3μ(b).W(b) = \left(\frac{q^3}{s}\right)^3 \mu(b).(3)✦ For a 3×33 \times 3 integer matrix AA, we write W(A)W(A) for the auxiliary triple weight evaluated at the triple of columns of AA reduced modulo qq in (ℤ/qℤ)3(\mathbb{Z}/q\mathbb{Z})^3.

An auxiliary cap sampling law for a prime qq and a natural number HH consists of a finite outcome space Ω\Omega, a nonnegative probability weight ρ:Ω→ℝ\rho : \Omega \to \mathbb{R} with ∑ω∈Ωρ(ω)=1\sum_{\omega \in \Omega} \rho(\omega) = 1, a family of finite subsets V(ω)⊆(ℤ/qℤ)3V(\omega) \subseteq (\mathbb{Z}/q\mathbb{Z})^3, and a positive integer ss satisfying q2≤20003H6sq^2 \le 2000^3 H^6 s, such that for every ω∈Ω\omega \in \Omega: |V(ω)|=s|V(\omega)| = s, 0∉V(ω)0 \notin V(\omega), V(ω)V(\omega) is a cap in (ℤ/qℤ)3(\mathbb{Z}/q\mathbb{Z})^3, and no three distinct elements p1,p2,p3∈V(ω)p_1, p_2, p_3 \in V(\omega) satisfy a relation ∑i=13xipi=0\sum_{i=1}^3 x_i p_i = 0 in (ℤ/qℤ)3(\mathbb{Z}/q\mathbb{Z})^3 for any nonzero x∈ℤ3x \in \mathbb{Z}^3 with |xi|≤H|x_i| \le H for all ii.✦ In addition, for every triple p∈((ℤ/qℤ)3)3p \in ((\mathbb{Z}/q\mathbb{Z})^3)^3, its auxiliary triple weight satisfies W(p)≤8W(p) \le 8 when pp is affinely independent over ℤ/qℤ\mathbb{Z}/q\mathbb{Z}, W(p)≤4q3/sW(p) \le 4 q^3 / s when pp has two distinct entries, and W(p)≤2(q3/s)2W(p) \le 2 (q^3 / s)^2 in general.

The column index pair map sends p∈{1,2,3}p \in \{1, 2, 3\} to the ordered pairs (i1,j1)=(1,2)(i_1, j_1) = (1, 2), (i2,j2)=(1,3)(i_2, j_2) = (1, 3), and (i3,j3)=(2,3)(i_3, j_3) = (2, 3).✦ A triple v=(v1,v2,v3)v = (v_1, v_2, v_3) in (F3)3(F^3)^3 has an equal column pair at pp if vip=vjpv_{i_p} = v_{j_p}.✦ Writing e1,e2,e3e_1, e_2, e_3 for the standard basis of F3F^3, the coordinate difference for indices i,j∈{1,2,3}i, j \in \{1, 2, 3\} is ei−ej∈F3e_i - e_j \in F^3✦, and a vector x∈F3x \in F^3 is an exceptional normal vector at pp if xx lies in the FF-span of eip−ejpe_{i_p} - e_{j_p}.✦

Define the zero-determinant plane constant cpl=(144π)3c_{\mathrm{pl}} = (144\pi)^3✦, the zero global count constant K(Ca,Cg,Cd)K(C_a, C_g, C_d) for Ca,Cg,Cd∈ℝC_a, C_g, C_d \in \mathbb{R} by (4), K(Ca,Cg,Cd)=4(1024Ca+3(125Cg+512Cd))cpl,K(C_a, C_g, C_d) = 4\bigl(1024 C_a + 3(125 C_g + 512 C_d)\bigr) c_{\mathrm{pl}},(4)✦ and the auxiliary zero count constant Ccnt=K(8,2⋅20006,4⋅20003)C_{\mathrm{cnt}} = K(8, 2 \cdot 2000^6, 4 \cdot 2000^3).✦

The claim

Theorem A. Let DD be row lattice Smith data with prime BB, exponents b,e,kb, e, k, sublattice Λ⊆ℤ3\Lambda \subseteq \mathbb{Z}^3, modulus h=Bkh = B^k, E=BeE = B^e, and index I=Bb+eI = B^{b+e}. Let qq be a prime and N≥1N \ge 1 a natural number such that EE is invertible modulo qq and h26≤qh^{26} \le q, and let an auxiliary cap sampling law for qq and h2h^2 be given, with associated weight WW. Let SS be a finite set of 3×33 \times 3 integer matrices such that every A∈SA \in S has det⁡A=0\det A = 0, rows in Λ\Lambda, nonzero third-row entries, pairwise distinct projected columns π(A⋅1),π(A⋅2),π(A⋅3)\pi(A_{\cdot 1}), \pi(A_{\cdot 2}), \pi(A_{\cdot 3}), and entries satisfying |Aij|≤2N|A_{ij}| \le 2N for all i,ji, j. Then ∑A∈SW(A)≤CcntN6I2log⁡(4N)log⁡2.\sum_{A \in S} W(A) \le C_{\mathrm{cnt}} \frac{N^6}{I^2} \frac{\log(4N)}{\log 2}.(5)✦

Theorem B. Let FF be a field, let α\alpha and β\beta be sets, let X⊆βX \subseteq \beta be finite, and let ν:β→F3\nu : \beta \to F^3 satisfy ν(x)≠0\nu(x) \ne 0 for all x∈Xx \in X. For each x∈Xx \in X, let S(x)⊆αS(x) \subseteq \alpha be finite, and let ψ:α→ℝ\psi : \alpha \to \mathbb{R} and v:α→(F3)3v : \alpha \to (F^3)^3 be functions such that for every x∈Xx \in X and a∈S(x)a \in S(x), one has ψ(a)≥0\psi(a) \ge 0, and if ψ(a)>0\psi(a) > 0 then either v(a)v(a) is affinely independent over FF or v(a)v(a) has an equal column pair at some p∈{1,2,3}p \in \{1, 2, 3\}. Suppose Caff,Cadd,Cspec∈ℝC_{\mathrm{aff}}, C_{\mathrm{add}}, C_{\mathrm{spec}} \in \mathbb{R} satisfy: the sum of ψ(a)\psi(a) over all x∈Xx \in X and a∈S(x)a \in S(x) with v(a)v(a) affinely independent is at most CaffC_{\mathrm{aff}}; for each p∈{1,2,3}p \in \{1, 2, 3\}, the sum of ψ(a)\psi(a) over all x∈Xx \in X and a∈S(x)a \in S(x) having an equal column pair at pp while ν(x)\nu(x) is not an exceptional normal vector at pp is at most CaddC_{\mathrm{add}}; and for each p∈{1,2,3}p \in \{1, 2, 3\}, the sum of ψ(a)\psi(a) over all x∈Xx \in X and a∈S(x)a \in S(x) having an equal column pair at pp, two distinct entries v(a)i≠v(a)jv(a)_i \ne v(a)_j, and ν(x)\nu(x) an exceptional normal vector at pp is at most CspecC_{\mathrm{spec}}. Then ∑x∈X∑a∈S(x)ψ(a)≤Caff+3(Cadd+Cspec).\sum_{x \in X} \sum_{a \in S(x)} \psi(a) \le C_{\mathrm{aff}} + 3(C_{\mathrm{add}} + C_{\mathrm{spec}}).(6)✦

Theorem C. Let BB be a prime, k∈ℕk \in \mathbb{N}, and C∈RBk3×3C \in R_{B^k}^{3 \times 3} a matrix with a Smith normal form modulo BkB^k having exponents b≤e≤kb \le e \le k. Let RR be a positive integer, let S⊆ℤ3S \subseteq \mathbb{Z}^3 be a finite set of primitive vectors with R≤∥x∥<2RR \le \|x\| < 2R for all x∈Sx \in S, and for each x∈ℤ3x \in \mathbb{Z}^3 let F(x)⊆ℤ3×3F(x) \subseteq \mathbb{Z}^{3 \times 3} be finite. Let ψ:ℤ3×3→ℝ\psi : \mathbb{Z}^{3 \times 3} \to \mathbb{R} and let N,W0≥0N, W_0 \ge 0 be real numbers. Suppose that for every x∈Sx \in S and A∈F(x)A \in F(x), one has Ax=0Ax = 0, every row of AA lies in ΛC\Lambda_C, ψ(A)≤W0\psi(A) \le W_0, |Aij|≤2N|A_{ij}| \le 2N for all i,ji, j, there exist s,t∈{1,2,3}s, t \in \{1, 2, 3\} with A3s≠0A_{3s} \ne 0, A3t≠0A_{3t} \ne 0, and π(A⋅s)≠π(A⋅t)\pi(A_{\cdot s}) \ne \pi(A_{\cdot t}), and whenever ψ(A)>0\psi(A) > 0 one has (Bk)2<∥x∥(B^k)^2 < \|x\|. Then ∑x∈S∑A∈F(x)ψ(A)≤1024W0(144π)3N6(Bb+e)2.\sum_{x \in S} \sum_{A \in F(x)} \psi(A) \le \frac{1024\, W_0\, (144\pi)^3 N^6}{(B^{b+e})^2}.(7)✦

Theorem D. Let B>0B > 0 and kk be natural numbers, and let C∈RBk3×3C \in R_{B^k}^{3 \times 3} have a Smith normal form modulo BkB^k with exponents b≤e≤kb \le e \le k. Let qq be a prime such that BB is invertible modulo qq, let i,j∈{1,2,3}i, j \in \{1, 2, 3\} be distinct, and let R≥1R \ge 1, N≥0N \ge 0, and W0≥0W_0 \ge 0 be real numbers. Let S⊆ℤ3S \subseteq \mathbb{Z}^3 be a finite set of primitive vectors such that for every x∈Sx \in S, one has R≤∥x∥≤2RR \le \|x\| \le 2R and the reduction of xx modulo qq does not lie in the (ℤ/qℤ)(\mathbb{Z}/q\mathbb{Z})-span of ei−eje_i - e_j. For each x∈ℤ3x \in \mathbb{Z}^3, let F(x)⊆ℤ3×3F(x) \subseteq \mathbb{Z}^{3 \times 3} be finite, and let ψ:ℤ3×3→ℝ\psi : \mathbb{Z}^{3 \times 3} \to \mathbb{R}. Suppose that for every x∈Sx \in S and A∈F(x)A \in F(x), one has Ax=0Ax = 0, every row of AA lies in ΛC\Lambda_C, columns ii and jj of AA are congruent modulo qq, |Ast|≤2N|A_{st}| \le 2N for all s,ts, t, there exist s,t∈{1,2,3}s, t \in \{1, 2, 3\} with A3s≠0A_{3s} \ne 0, A3t≠0A_{3t} \ne 0, and π(A⋅s)≠π(A⋅t)\pi(A_{\cdot s}) \ne \pi(A_{\cdot t}), and ψ(A)≤W0\psi(A) \le W_0. Then ∑x∈S∑A∈F(x)ψ(A)≤125W0(144π)3N6(Bk)2q3(Bb+e)2.\sum_{x \in S} \sum_{A \in F(x)} \psi(A) \le \frac{125\, W_0\, (144\pi)^3 N^6 (B^k)^2}{q^3 (B^{b+e})^2}.(8)✦

Theorem E. Let BB be a prime, k∈ℕk \in \mathbb{N}, and C∈RBk3×3C \in R_{B^k}^{3 \times 3} a matrix with a Smith normal form modulo BkB^k having exponents b≤e≤kb \le e \le k. Let R>0R > 0 and qq be natural numbers with qq prime and (Bk)100<q(B^k)^{100} < q, and let an auxiliary cap sampling law for qq and (Bk)2(B^k)^2 be given, with associated weight WW. Let i,j,l∈{1,2,3}i, j, l \in \{1, 2, 3\} satisfy l≠il \ne i and l≠jl \ne j, and let S⊆ℤ3S \subseteq \mathbb{Z}^3 be a finite set of primitive vectors such that for every x∈Sx \in S, one has R≤∥x∥<2RR \le \|x\| < 2R, xl≠0x_l \ne 0, and the reduction of xx modulo qq lies in the (ℤ/qℤ)(\mathbb{Z}/q\mathbb{Z})-span of ei−eje_i - e_j. Let FF assign a finite set F(x)⊆ℤ3×3F(x) \subseteq \mathbb{Z}^{3 \times 3} to each x∈ℤ3x \in \mathbb{Z}^3 such that Ax=0Ax = 0 and every row of AA lies in ΛC\Lambda_C whenever A∈F(x)A \in F(x), and let N≥0N \ge 0 be real. Suppose that for every x∈Sx \in S and A∈F(x)A \in F(x), one has |Ast|≤2N|A_{st}| \le 2N for all s,ts, t, there exist s,t∈{1,2,3}s, t \in \{1, 2, 3\} with A3s≠0A_{3s} \ne 0, A3t≠0A_{3t} \ne 0, and π(A⋅s)≠π(A⋅t)\pi(A_{\cdot s}) \ne \pi(A_{\cdot t}), and there exist u,v∈{1,2,3}u, v \in \{1, 2, 3\} whose columns in AA are not congruent modulo qq. Then ∑x∈S∑A∈F(x)W(A)≤512(144π)3(4⋅20003)N6(BbBe)2.\sum_{x \in S} \sum_{A \in F(x)} W(A) \le \frac{512\, (144\pi)^3 (4 \cdot 2000^3) N^6}{(B^b B^e)^2}.(9)✦

What is checked

The Lean library states the global weighted count bound (5) over row lattice Smith data and an auxiliary cap sampling law, the abstract three-case shell bound (6) over an arbitrary field with equal column pairs and exceptional normal vectors, and the three shell estimates (7), (8), and (9) over primitive null vectors, integer row lattices modulo BkB^k, Smith normal forms modulo BkB^k, and projected columns in ℝ2\mathbb{R}^2.