Documentation

LeanPool.ApollonianSuperharmonic.P5537T1PredecessorCoordinates

P5537T1PredecessorCoordinates #

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.P5537T1PredecessorCoordinates (K : DiamondParameter) (hk : 1 < ↑K) (x : GaussianInt) :
have n := ↑↑K; (x ∈ FootprintVertices (DiamondTile ↑K) ∧ x - { re := n, im := 1 - n } ∈ FootprintVertices (DiamondTile (↑K - 1)) ↔ 1 ≤ x.re ∧ x.re ≤ n ∧ 0 ≤ x.im ∧ x.im ≤ n - 1 ∧ x.re - 1 ≤ x.im ∧ x.im ≤ x.re) ∧ (x ∈ FootprintVertices (DiamondTile ↑K) ∧ x - { re := n, im := n + 1 } ∈ FootprintVertices (DiamondTile (↑K - 1)) ↔ 1 ≤ x.re ∧ x.re ≤ n ∧ n + 1 ≤ x.im ∧ x.im ≤ 2 * n ∧ 2 * n ≤ x.re + x.im ∧ x.re + x.im ≤ 2 * n + 1) ∧ (x ∈ FootprintVertices (DiamondTile ↑K) ∧ x - { re := -n, im := n + 1 } ∈ FootprintVertices (DiamondTile (↑K - 1)) ↔ -n ≤ x.re ∧ x.re ≤ -1 ∧ n + 1 ≤ x.im ∧ x.im ≤ 2 * n ∧ 2 * n ≤ x.im - x.re ∧ x.im - x.re ≤ 2 * n + 1) ∧ (x ∈ FootprintVertices (DiamondTile ↑K) ∧ x - { re := -n, im := 1 - n } ∈ FootprintVertices (DiamondTile (↑K - 1)) ↔ -n ≤ x.re ∧ x.re ≤ -1 ∧ 0 ≤ x.im ∧ x.im ≤ n - 1 ∧ -1 ≤ x.re + x.im ∧ x.re + x.im ≤ 0)