Lean Formalization of arXiv:2510.20167
Let \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) be any function. The function \(f\) is represented by an \(n \times n\) adjacency matrix \(A=A_f\), where the entry \(a_{ij} = \delta _{f(i),j}\) and \(\delta _{i,j}\) is the Kronecker delta. With this convention, each row of \(A\) contains exactly one non-zero entry.
Let \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) be any function and \(A=A_f\) be the adjacency matrix of the function \(f\). Then for all \(i\in \{ 0,1,\ldots ,n-1\} \) and \(y\in \mathbb {Z}^n\)
The proof follows from the Definition 1.
Let \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) be any function and \(A=A_f\) be the adjacency matrix of the function \(f\). Let \(v\in \mathbb {Z}^n\), \(y = \operatorname {adj}(x I - A) v\) and \(m = \det (x I - A)\). Then for all \(i\in \{ 0,1,\ldots ,n-1\} \)
For adjugate matrix we have identity \((x I - A) \operatorname {adj} (x I - A) = \det (x I - A) I\). Therefore,
The final equality follows from the Lemma 2.
Let \(M\) be an \(n \times n\) matrix with polynomial entries \(m_{ij} \in \mathbb {Z}[x]\). Then
The determinant is a sum over permutations \(\sigma \) of products \(\prod _{i=0}^{n-1} m_{\sigma (i),i}\). Each product has degree at most \(\sum _{i=0}^{n-1} \deg (m_{\sigma (i),i})\). Since a single element of a sum is at most the whole sum (when all terms are non-negative), this is bounded by \(\sum _{i=0}^{n-1} \sum _{j=0}^{n-1} \deg (m_{ij})\). The degree of a sum is at most the maximum degree of its summands.
Let \(A\) be an \(n \times n\) matrix with integer entries. The characteristic matrix \(\chi _A(x) = x I - A\) has determinant equal to the characteristic polynomial:
For all \(n \in N\), this polynomial is monic of degree \(n\).
This follows from the standard properties of the characteristic polynomial.
Let \(A\) be an \(n \times n\) matrix with integer entries and \(\chi _A(x) = x I - A\) be its characteristic matrix. For \(i \neq j\), the \((i,j)\) entry of \(\operatorname {adj}(\chi _A(x))\) has degree at most \(n-2\).
The adjugate entry \(\operatorname {adj}(\chi _A(x))_{ij}\) equals the determinant of the characteristic matrix with row \(j\) and column \(i\) removed from \(\chi _A(x)\).
This submatrix has diagonal entries from \(\chi _A(x)\) except at diagonal positions \(i\) and \(j\) (which are deleted). Since \(\chi _A(x)\) has diagonal entries of degree \(1\) (from \(x I\)) and off-diagonal entries of degree \(0\) (from \(-A\)), the submatrix has exactly \(n-2\) diagonal entries of degree \(1\) and all other entries of degree \(0\).
By Lemma 4, the determinant has degree at most \(n-2\).
Let \(M = M(x) = \operatorname {adj}(x I - A)\) be the adjugate of the characteristic matrix \(x I - A\). Then the matrix entries \(m_{ij} = p_{ij}(x)\) are polynomials in \(x\) for all \(i,j\in \{ 0,1,\ldots ,n-1\} \) such that
\(p_{ii}(x)\) is monic of degree \(n-1\) for all \(i\in \{ 0,1,\ldots ,n-1\} \) and
\(p_{ij}(x)\) has degree at most \(n-2\) for all \(i\neq j\in \{ 0,1,\ldots ,n-1\} \).
For a polynomial \(p(x) = \sum _{i=0}^{d} p_i x^i \in \mathbb {Z}[x]\), we define the coefficients bound:
If \(p \in \mathbb {Z}[x]\) has positive leading coefficient, then for all integers \(n \ge |p|\), we have \(n {\gt} 0\) and \(p(n) {\gt} 0\).
Lemma is trivially true for \(d=0\) so we can assume \(d \geq 1\). Write \(p(n) = an^d + r(n)\) where \(a \ge 1\) is the leading coefficient of \(p\), \(d = \deg (p)\), and \(\deg (r) {\lt} d\). For \(n \ge |p|\):
Since \(n \geq 1\), we have \(|r(n)| \leq B n^{d-1}\) where \(B = |p| - a\). Therefore,
Let \(M = (m_{ij}) = M(x) = \operatorname {adj}(x I - A)\) be the adjugate of the characteristic matrix \(x I - A\). Let \(v = (1,2,\ldots ,n)^T\) and \(m = m(x) = \det (x I - A)\). Then for sufficiently large integer \(x\):
The proof follows from Lemma 7 and Lemma 9. Let \(y = Mv\). Then \(y_i = \sum _{k=0}^{n-1} m_{ik} (k+1)\).
For each entry \(y_i\), we express it as evaluation of a polynomial \(p_i(x) = \sum _{k=0}^{n-1} m_{ik}(x) (k+1) \in \mathbb {Z}[x]\). By Lemma 7, the diagonal entry \(m_{ii}\) is monic of degree \(n-1\), while off-diagonal entries \(m_{ik}\) (for \(k \neq i\)) have degree at most \(n-2\). Therefore, the coefficient of \(x^{n-1}\) in \(p_i\) is \(i+1 {\gt} 0\) (dominated by the \(m_{ii} (i+1)\) term).
For the difference \(p_j - p_i\) with \(j {\gt} i\), the leading term comes from \((m_{jj} (j+1) - m_{ii} (i+1))\). Since both \(m_{jj}\) and \(m_{ii}\) are monic of degree \(n-1\), the leading coefficient of \(p_j - p_i\) is \((j+1) - (i+1) = j - i {\gt} 0\).
Similarly, for \(p_m(x) = \det (x I - A) - p_i(x)\), since \(\det (x I - A)\) is monic of degree \(n\) (by Lemma 5) and \(p_i\) has degree at most \(n-1\), the leading coefficient is 1.
Since \(p_0(x)\) has leading coefficient \(0+1 = 1 {\gt} 0\), we have \(y_0 {\gt} 0\) for sufficiently large \(x\).
Applying Lemma 9 to these polynomials with positive leading coefficients gives the existence of \(x_0\) such that all required inequalities hold for \(x {\gt} x_0\).
Let \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) be any function. A linear representation of \(f\) is an injective function \(j: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/m\mathbb {Z}\) such that for all \(i\in \{ 0,1,\ldots ,n-1\} \),
in \(\mathbb {Z}/m\mathbb {Z}\), where \(m\) is a positive integer and \(a\) is a multiplier from \(\mathbb {Z}/m\mathbb {Z}\).
For any function \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) with \(n {\gt} 1\), there exists an integer \(a_f\) such that for any \(a {\gt} a_f\), we can construct a linear representation of \(f\) with multiplier \(a\) and modulus \(m {\gt} a\).
Let \(A = A_f\) be the adjacency matrix of \(f\) and let \(v = (1,2,\ldots ,n)^T\). By Lemma 10, there exists \(x_0\) such that for all integers \(x {\gt} x_0\), the entries \(y_i\) of \(y = \operatorname {adj}(xI - A)v\) satisfy:
where \(m(x) = \det (xI - A)\) is the characteristic polynomial of \(A\).
Since \(n {\gt} 1\), the polynomial \(m(x)\) is monic of degree \(n \geq 2\). Therefore, \(m - \text{id}\) (where \(\text{id}(x) = x\)) is also monic of degree \(n\), with leading coefficient \(1 {\gt} 0\).
By Lemma 9, the polynomial \(m - \text{id}\) is positive for all \(x \geq |m - \text{id}|\).
Set \(a_f = \max (x_0, |m - \text{id}|)\). For any \(a {\gt} a_f\), we have:
\(a {\gt} x_0\), so the strict inequalities \(0 \leq y_0 {\lt} y_1 {\lt} \cdots {\lt} y_{n-1} {\lt} m(a)\) hold
\(a \geq |m - \text{id}|\), so \((m - \text{id})(a) = m(a) - a {\gt} 0\), which gives \(m(a) {\gt} a\)
Define:
\(m = m(a) = \det (aI - A)\) as the modulus (note: \(m {\gt} a\) by construction)
\(j: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/m\mathbb {Z}\) by \(j(i) = y_i \bmod m\), where \(y = \operatorname {adj}(aI - A)v\)
Since \(0 \leq y_i {\lt} m\) for all \(i\) and the \(y_i\) are strictly increasing, \(j\) is injective.
By Lemma 3, we have \(y_{f(i)} = a \cdot y_i - m \cdot v_i\) for all \(i\). Taking this equation modulo \(m\) gives:
Therefore, \(j\) is a linear representation of \(f\) with modulus \(m {\gt} a\) and multiplier \(a \in \mathbb {Z}/m\mathbb {Z}\).
Any finite function \(f: \mathbb {Z}/n\mathbb {Z} \to \mathbb {Z}/n\mathbb {Z}\) has a linear representation.
For \(n {\gt} 1\), apply Lemma 12 to obtain a threshold \(a_f\) and choose \(a = a_f + 1 {\gt} a_f\). The lemma provides an explicit construction of a linear representation for \(f\) with multiplier \(a_f + 1\).
For \(n = 1\), the result is trivial: there is only one element in \(\mathbb {Z}/1\mathbb {Z}\) (namely 0), so any function satisfies \(f(0) = 0\). We can use \(m = 1\), the identity map \(j = \operatorname {id}\), and multiplier \(0\), giving \(j(f(0)) = 0 = 0 \cdot j(0)\) in \(\mathbb {Z}/1\mathbb {Z}\).
Examples
Consider the function \(f: \mathbb {Z}/3\mathbb {Z} \to \mathbb {Z}/3\mathbb {Z}\) defined by \(f(x) = x^2\). This function maps:
Despite being a non-linear function, Theorem 13 guarantees that \(f\) has a linear representation.
The adjacency matrix is:
The characteristic matrix is:
The characteristic polynomial is:
The adjugate matrix is:
Using vector \(v = (1, 2, 3)^T\), we get:
For \(x = 4\), we compute:
The injection \(j: \mathbb {Z}/3\mathbb {Z} \to \mathbb {Z}/36\mathbb {Z}\) is defined by \(j(i) = y_i\):
These values are strictly increasing and bounded by \(m = 36\), so \(j\) is injective.
We verify the linear representation property using Lemma 3.
The lemma states that \(y_{f(i)} = x y_i - m \cdot v_i\), which we can rewrite as:
Verification:
Thus \(j(f(i)) \equiv 4 \cdot j(i) \pmod{36}\) for all \(i \in \mathbb {Z}/3\mathbb {Z}\), confirming the quadratic function \(f(x) = x^2\) has a linear representation with modulus \(m = 36\) and multiplier \(a = 4\).