Upper-triangular representatives of integral matrices of fixed determinant #
Mathlib's FixedDetMatrices.reps n is the set of integral matrices (a b; 0 d) with ad = n,
0 < a and 0 ≤ b < |d|, and Mathlib proves (FixedDetMatrices.reduce_mem_reps) that, for
n ≠ 0, the reduction algorithm carries every determinant-n matrix into it. This file completes
that to the statement that FixedDetMatrices.reps n is a set of representatives for the action of
SL(2, ℤ) by left multiplication on the determinant-n matrices, n ≠ 0, and counts it.
It also records that only finitely many integral matrices of a given determinant have entries
bounded by a given constant. Restricted to the primitive matrices, those whose entries have greatest
common divisor one, the representatives FixedDetMatrices.primitiveReps n are the
(a b; 0 d) with gcd(a, b, d) = 1.
Main results #
FixedDetMatrices.exists_smul_mem_reps: forn ≠ 0, every determinant-nmatrix can be moved intoFixedDetMatrices.reps nbySL(2, ℤ).FixedDetMatrices.eq_one_of_smul_mem_reps: the onlyg ∈ SL(2, ℤ)moving a matrix ofFixedDetMatrices.reps nintoFixedDetMatrices.reps nisg = 1; hence (FixedDetMatrices.eq_of_smul_eq_of_mem_reps) two matrices ofFixedDetMatrices.reps nin the sameSL(2, ℤ)-orbit are equal.FixedDetMatrices.repsEquiv: the representatives are parametrized by positive factor pairs(a, d)of|n|and residues0 ≤ b < d.FixedDetMatrices.ncard_reps:FixedDetMatrices.reps nhasσ₁(|n|)elements.FixedDetMatrices.sum_reps_pow: for evenw, the sum ofdʷover the representatives(a b; 0 d)isσ_{w+1}(|n|).FixedDetMatrices.finite_setOf_abs_le: there are only finitely many integral matrices of determinantnwhose entries are at mostBin absolute value.FixedDetMatrices.toGL: forn ≠ 0, an integral matrix of determinantnas an element ofGL(m, ℚ), on which left multiplication bySL(m, ℤ)is multiplication by its image (FixedDetMatrices.toGL_smul), andFixedDetMatrices.toGLReal, its image inGL(m, ℝ).FixedDetMatrices.isPrimitive_smul_iff: left multiplication bySL(m, ℤ)preserves primitivity.FixedDetMatrices.primitiveReps: the primitive matrices ofFixedDetMatrices.reps n, andFixedDetMatrices.exists_smul_mem_primitiveReps: forn ≠ 0every primitive matrix of determinantncan be moved into them bySL(2, ℤ).
References #
- A. Popa and D. Zagier, An elementary proof of the Eichler--Selberg trace formula,
J. Reine Angew. Math. 762 (2020), 105--122, arXiv:1711.00327, Sections 1–2: these are the
representatives
ℳₙ^∞ofΓ \ ℳₙfixing∞.
Every determinant-n matrix can be moved into reps n by left
multiplication by SL(2, ℤ), when n ≠ 0.
The entries of g • A for g ∈ SL(2, R) and a 2 × 2 matrix A of fixed determinant.
No nontrivial element of SL(2, ℤ) moves a representative to a representative: if A and
g • A both lie in reps n, then g = 1.
The diagonal entries of an upper-triangular 2 × 2 matrix of determinant m multiply to
m.
The upper-triangular representatives, explicitly parametrized. For n ≠ 0, a
representative (a b; 0 d) is recorded by the positive factor pair (|a|, |d|) of |n|
and the residue b ∈ Fin |d|. The inverse gives d the sign of n.
This is the summation interface for the representatives: an invariant may be summed first over factor pairs and then over the upper-right entry.
Instances For
The matrix represented by a factor pair (a, d) and a residue b is
(a b; 0, sign(n)d).
The number of upper-triangular representatives: the set reps n has σ₁(|n|)
elements, one for each divisor d of |n| and each 0 ≤ b < d.
The divisor sum over the upper-triangular representatives: for even w, the
sum of dʷ over the representatives (a b; 0 d) in reps n is σ_{w+1}(|n|), since each factor
pair (a, d) of |n| carries |d| representatives.
Finiteness of bounded matrices: there are only finitely many integral matrices of
determinant n whose entries are at most B in absolute value.
Integral matrices of nonzero determinant as rational invertible matrices #
For n ≠ 0, an integral matrix of determinant n as an invertible rational matrix, the form
in which it acts on the upper half-plane and on the cusps ℙ¹(ℚ).
Instances For
The underlying matrix of toGL hn A is the entrywise cast of A.
The determinant of toGL hn A is n.
toGL hn is injective: the cast ℤ → ℚ is.
Left multiplication by g ∈ SL(m, ℤ) becomes multiplication by its image in GL(m, ℚ).
Integral matrices of nonzero determinant as real invertible matrices #
For n ≠ 0, an integral matrix of determinant n as an invertible real matrix. For 2 × 2
matrices and 0 < n this is the form in which it acts on the upper half-plane, by the Möbius
transformation τ ↦ (a τ + b) / (c τ + d).
Instances For
The underlying matrix of toGLReal hn A is the entrywise cast of A.
The entries of toGLReal hn A are the casts of the entries of A.
The determinant of toGLReal hn A is n.
Left multiplication by g ∈ SL(m, ℤ) becomes multiplication by its image in GL(m, ℝ).
Left multiplication by SL(m, ℤ) preserves and reflects primitivity: the greatest common
divisor of the entries is unchanged.
Primitive representatives #
The primitive matrices among the upper-triangular representatives reps n: the matrices
(a b; 0 d) with ad = n, 0 < a, 0 ≤ b < |d| and gcd(a, b, d) = 1. For n ≠ 0 they
represent the orbits of SL(2, ℤ) on the primitive integral matrices of determinant n.
Instances For
A matrix lies in primitiveReps n exactly when it is a primitive matrix of reps n.
For n ≠ 0, every primitive matrix of determinant n can be moved into
primitiveReps n by left multiplication by SL(2, ℤ).