TriangularMaxIncrement #
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.
For an oriented pair $x,y\in\mathbb Z^2$, put $$ M_{x,y}=\max\bigl\{|y_1-x_1|,|y_2-x_2|, |(y_1-x_1)-(y_2-x_2)|\bigr\}. $$ Equivalently, $M_{x,y}$ is the largest signed-height increase along one of the six triangular-lattice steps.