IntegerLatticeFunction #
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.
@[reducible, inline]
An integer lattice function is a function $f:\mathbb Z[i]\to\mathbb Z$. We identify $\mathbb Z[i]$ with the square lattice $\mathbb Z^2$ by real and imaginary coordinates.