P5098T1SquareIntersection #
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.P5098T1SquareIntersection
(p q : ℕ)
(hp : 0 < p)
(hq : 0 < q)
(a b : GaussianInt)
:
have A := TileTranslation (FordTile p) a;
have B := TileTranslation (FordTile q) b;
((FootprintEdges A ∩ FootprintEdges B).Nonempty ↔ (-↑q < (b - a).re ∧ (b - a).re < ↑p) ∧ -↑q ≤ (b - a).im ∧ (b - a).im ≤ ↑p ∨ (-↑q ≤ (b - a).re ∧ (b - a).re ≤ ↑p) ∧ -↑q < (b - a).im ∧ (b - a).im < ↑p) ∧ (¬(FootprintEdges A ∩ FootprintEdges B).Nonempty → (FootprintVertices A ∩ FootprintVertices B).Subsingleton)