AcyclicIndegreeOrientation #
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.
Let $D$ be a finite set of lattice vertices and let $\sigma:\mathbb Z[i]\to\mathbb Z$ be an ambient lattice function. An \emph{acyclic indegree orientation with data $\sigma$} chooses exactly one direction on every four-neighbor edge of the induced graph on $D$, chooses no other directed edges, and has indegree $\sigma(x)$ at each $x\in D$. Thus only the restriction of the ambient function $\sigma$ to $D$ supplies the prescribed indegrees. A natural-valued rank strictly increasing along every directed edge is included as an explicit certificate of acyclicity.
- edge : GaussianInt → GaussianInt → Prop
The chosen direction of each edge of the finite lattice graph.
- edgeDecidable (x y : GaussianInt) : Decidable (self.edge x y)
Decidable membership in the chosen directed edge relation.
- rank : GaussianInt → ℕ
A natural rank that increases strictly along each directed edge.
- supported (x y : GaussianInt) : self.edge x y → x ∈ D ∧ y ∈ D ∧ FourNeighborAdjacent x y
- increasing (x y : GaussianInt) : self.edge x y → self.rank x < self.rank y