P4055T1GridPathImage #
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.P4055T1GridPathImage
(f : GaussianInt → GaussianInt)
:
Function.Injective f →
(∀ (a b : GaussianInt),
b = a + 1 ∨ b = a - 1 ∨ b = a + { re := 0, im := 1 } ∨ b = a - { re := 0, im := 1 } →
f b = f a + 1 ∨ f b = f a - 1 ∨ f b = f a + { re := 0, im := 1 } ∨ f b = f a - { re := 0, im := 1 }) →
∀ (V : Set GaussianInt) (E : Set (Finset GaussianInt)) (x y : GaussianInt),
SimpleGridPathBetween V E x y →
SimpleGridPathBetween (f '' V) ((fun (e : Finset GaussianInt) => Finset.image f e) '' E) (f x) (f y)