Theorem. The Euler product [fdip-008P]

The finite-field partition functions attach one complex number \(Z_p(Q)\) to a symmetric integral matrix at each odd prime. For a nondegenerate form that number is a signed Legendre symbol times an explicit normaliser. The product of those normalised factors is an \(L\)-function of the discriminant character.

Let \(Q\) be a symmetric \(n\times n\) integral matrix with \(\det Q\neq 0\). Write \(d_{\pm }(Q)\) for its signed discriminant, the integer \((-1)^{n(n-1)/2}\det Q\) named by the finite-field evaluation, and let \(\chi _D\) be the primitive character of that integer in the discriminant note. When \(d_{\pm }(Q)\) is a square, this character is the trivial character of conductor one; write \(D=1\) in that case. For an odd prime \(p\) that does not divide \(\det Q\), the signed evaluation gives \[Z_p(Q)=\Bigl (\frac {d_{\pm }(Q)}{p}\Bigr )g^{\varepsilon }p^{m},\] where \(n=2m+\varepsilon \) and \(\varepsilon \) is \(0\) or \(1\). The Gauss sum satisfies \(g^2=\bigl (\frac {-1}{p}\bigr )p\neq 0\), so the quotient \(\hat Z_p(Q)=\frac {Z_p(Q)}{g^{\varepsilon }p^{m}}\) equals \(\bigl (\frac {d_{\pm }(Q)}{p}\bigr )\). For \(\operatorname {Re}s>1\), \[\prod _{p\nmid 2\det Q}\bigl (1-\hat Z_p(Q)\,p^{-s}\bigr )^{-1} =L(s,\chi _D) \prod _{p\mid 2\det Q,\ p\nmid D} \bigl (1-\chi _D(p)\,p^{-s}\bigr ).\] No prime divides \(D=1\), so in the square case the second product runs over every prime dividing \(2\det Q\). The comparison point with the quadratic center character is \(s=2\).

When \(n\) is odd, \(\varepsilon =1\), and the normaliser retains one factor \(g\). The sign \(\,(-1)^m\) already sits inside the Legendre symbol, so \(\hat Z_p(Q)\) is that real symbol. This section does not choose a square root of \(p\), and it does not replace \(g\) by a complex unit.

The product omits \(2\) and every prime divisor of \(\det Q\). At an odd prime where the rank of \(Q\) drops to \(r\), the same finite-field note gives \(Z_p(Q)=p^{n-r}Z_p(Q')\) for a nondegenerate block \(Q'\) of rank \(r\), and \(p^n\) when \(r=0\). That value is not the quotient by the nondegenerate normaliser of rank \(n\). The prime \(2\) lies outside because the diagonalization divides by \(2\).

On the massive four-cycle, \(n=4\) and \(d_{\pm }(Q)=45\). Since \(45=9\cdot 5\) and \(5\equiv 1\pmod 4\), the discriminant of that integer is \(D=5\). The omitted primes that do not divide \(5\) are \(2\) and \(3\). Under the Kronecker convention named in the center note, \(\chi _5(2)=\bigl (\frac {5}{2}\bigr )=(-1)^{(5^2-1)/8}=-1\). Since \(5\equiv 2\pmod 3\) and \(2^{(3-1)/2}\equiv -1\pmod 3\), \(\bigl (\frac {5}{3}\bigr )=-1\). The character note gives \(\chi _5(3)=\bigl (\frac {5}{3}\bigr )\). The prime \(5\) divides \(D\), so \(\chi _5(5)=0\) and that factor is not restored. The identity specialises to \[L(s,\chi _5)\,(1+2^{-s})\,(1+3^{-s}).\] At \(s=2\) the two restored factors are \(5/4\) and \(10/9\).

The correspondence with formal libraries is partial. Mathlib's legendreSym.quadratic_reciprocity is the law that exchanges the two arguments of a Legendre symbol. This section does not use that law. Mathlib's DirichletCharacter.LFunction agrees, for real part greater than \(1\), with the Dirichlet series \(\sum _n\chi (n)n^{-s}\). Neither declaration identifies \(\hat Z_p(Q)\) with \(\chi _D(p)\) or assembles the product above.

The identity does not evaluate \(L(s,\chi _D)\) in closed form. In particular it does not derive \(4\pi ^2/(25\sqrt 5)\).

A function of \(L(s,\chi _D)\) does not recover a trace ratio. That obstruction is the fiber-constancy criterion, which concerns invariants of the quadratic form alone. The product above does not evaluate a Weil index, and it is not identified with the real normalizer.