SimpleGridPathBetween #
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.
def
ApollonianSuperharmonic.SimpleGridPathBetween
(V : Set GaussianInt)
(E : Set (Finset GaussianInt))
(x y : GaussianInt)
:
A footprint graph $(V,E)$ is a simple nontrivial grid path from $x$ to $y$ when one list $p_0,\ldots,p_n$ without repeated vertices, with $n\geq1$, simultaneously satisfies $p_0=x$, $p_n=y$, has vertex set exactly $V$, and has edge set exactly the unordered pairs $\{p_j,p_{j+1}\}$. Every consecutive pair differs by one of $\pm1,\pm i$.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
ApollonianSuperharmonic.SimpleGridPathBetween.reverse
{V : Set GaussianInt}
{E : Set (Finset GaussianInt)}
{x y : GaussianInt}
(hp : SimpleGridPathBetween V E x y)
:
SimpleGridPathBetween V E y x
Reversing a simple grid path preserves its vertices and undirected edges.