LatticeQuadraticForm #
Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.
noncomputable def
ApollonianSuperharmonic.LatticeQuadraticForm
(A : Matrix (Fin 2) (Fin 2) ℝ)
(x : GaussianInt)
:
For a real $2\times2$ matrix $A$ and a lattice point $x=(x_1,x_2)\in\mathbb Z^2$, define the lattice quadratic function $$ q_A(x)=\frac12 x^{\mathsf T}Ax. $$ This function is denoted by $\operatorname{LatticeQuadraticForm}(A,x)$ in the formalization.