Documentation

LeanPool.ApollonianSuperharmonic.P5682T1AlignedSquareRawInterfaces

P5682T1AlignedSquareRawInterfaces #

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.P5682T1AlignedSquareRawInterfaces :
have sq := fun (n : ℕ) (a : GaussianInt) => TileTranslation (FordTile n) a; (∀ (n : ℕ), 0 < n → ∀ (a z : GaussianInt), z ∈ FootprintVertices (sq n a) ↔ a.re ≤ z.re ∧ z.re ≤ a.re + ↑n ∧ a.im ≤ z.im ∧ z.im ≤ a.im + ↑n) ∧ ∀ (n m : ℕ), 0 < n → 0 < m → ∀ (a b : GaussianInt) (v : Bool), (if v = true then b.re = a.re + ↑n else b.im = a.im + ↑n) → max (if v = true then a.im else a.re) (if v = true then b.im else b.re) < min ((if v = true then a.im else a.re) + ↑n) ((if v = true then b.im else b.re) + ↑m) → have l := max (if v = true then a.im else a.re) (if v = true then b.im else b.re); have u := min ((if v = true then a.im else a.re) + ↑n) ((if v = true then b.im else b.re) + ↑m); have x := if v = true then { re := b.re, im := l } else { re := l, im := b.im }; have y := if v = true then { re := b.re, im := u } else { re := u, im := b.im }; Disjoint (sq n a).cells (sq m b).cells ∧ SimpleGridPathBetween (FootprintVertices (sq n a) ∩ FootprintVertices (sq m b)) (FootprintEdges (sq n a) ∩ FootprintEdges (sq m b)) x y ∧ SimpleGridPathBetween (FootprintVertices (sq n a) ∩ FootprintVertices (sq m b)) (FootprintEdges (sq n a) ∩ FootprintEdges (sq m b)) y x