P4994T6UnitChartRotation #
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.P4994T6UnitChartRotation
(orientation : Bool)
(e f : GaussianInt)
(hdet : 0 < e.re * f.im - e.im * f.re)
(he : UnitTriangularStep orientation e)
(hf : UnitTriangularStep orientation f)
(hsum : UnitTriangularStep orientation (e + f))
:
∃ m < 6, ∀ (p : ℤ × ℤ), (P4994T6UnitCoordinates orientation) (↑p.1 * e + ↑p.2 * f) = (P4994T6Rotation m) p