P5157T1StaircasePoint #
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.P5157T1StaircasePoint
(z : GaussianInt)
(horizontalFirst : Bool)
(s : ℤ)
(j : ℕ)
:
For a Gaussian integer $z$, a Boolean $h$, an integer $s$, and $j\geq0$, put $$ p(z,h,s,j)= \begin{cases} z+(\lceil j/2\rceil,s\lfloor j/2\rfloor),&h=\mathrm{true},\\ z+(\lfloor j/2\rfloor,s\lceil j/2\rceil),&h=\mathrm{false}. \end{cases} $$ Thus, when $s=\pm1$, the staircase alternates a rightward unit step and a vertical step of sign $s$, starting horizontally exactly when $h$ is true.
Equations
- One or more equations did not get rendered due to their size.