P4194T1DiamondCellRows #
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.P4194T1DiamondCellRows
(m : ℕ)
(z : GaussianInt)
:
(z ∈ DiamondCellDomain m ↔ 0 ≤ z.im ∧ z.im < 2 * ↑m ∧ -(z.im + 1) ≤ z.re ∧ z.re < z.im + 1 ∧ -(2 * ↑m - z.im) ≤ z.re ∧ z.re < 2 * ↑m - z.im) ∧ ((∀ (j : Fin 4), LatticeVertexIncidentCell z j ∈ DiamondCellDomain m) ↔ 1 ≤ z.im ∧ z.im ≤ 2 * ↑m - 1 ∧ -(z.im - 1) ≤ z.re ∧ z.re ≤ z.im - 1 ∧ -(2 * ↑m - z.im - 1) ≤ z.re ∧ z.re ≤ 2 * ↑m - z.im - 1)