PartialOdometer #
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.
A partial odometer is an integer-valued function on a finite subset $T\subseteq\mathbb Z[i]$. Formally, we represent it by its finite domain and by the extension of its values by zero outside that domain; values outside the displayed domain are not part of the partial function.
- domain : Finset GaussianInt
The finite set of lattice vertices where the partial function is defined.
- value : IntegerLatticeFunction
The integer value function, extended by zero outside the finite domain.
- value_outside (x : GaussianInt) : x ∉ self.domain → self.value x = 0