FourNeighborLaplacian #
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.
For an integer lattice function $f$ and $x\in\mathbb Z[i]$, its four-neighbor discrete Laplacian is $$ \Delta f(x)=f(x+1)+f(x-1)+f(x+i)+f(x-i)-4f(x) =\sum_{y\sim x}(f(y)-f(x)). $$