P5157T1AlternatingStaircase #
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.P5157T1AlternatingStaircase
(z : GaussianInt)
(h : Bool)
(s : ℤ)
(hs : s = 1 ∨ s = -1)
(N : ℕ)
(hN : 0 < N)
:
have p := P5157T1StaircasePoint z h s;
Function.Injective p ∧ SimpleGridPath {v : GaussianInt | ∃ j ≤ N, v = p j} {e : Finset GaussianInt | ∃ j < N, e = {p j, p (j + 1)}}