P3161T2PathExhaustion #
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.
theorem
ApollonianSuperharmonic.P3161T2PathExhaustion
{V : Set GaussianInt}
{E : Set (Finset GaussianInt)}
{x y : GaussianInt}
(hpath : SimpleGridPathBetween V E x y)
(walk : List GaussianInt)
(hhead : walk.head? = some x)
(hlast : walk.getLast? = some y)
(hedges : ∀ (a b : GaussianInt) (l r : List GaussianInt), walk = l ++ a :: b :: r → {a, b} ∈ E)
(z : GaussianInt)
: