TriangularStripSegmentOrderInterval #
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.TriangularStripSegmentOrderInterval
(x y : ℤ × ℤ)
(hxy : x ≠ y)
(path : List (ℤ × ℤ))
(hpath : TriangularStripSegment x y path)
:
∃ (order : ℤ ≃ { z : ℤ × ℤ // TriangularBoundaryStrip x y z }),
(∀ (m n : ℤ), TriangularLatticeAdjacent ↑(order m) ↑(order n) ↔ n = m + 1 ∨ m = n + 1) ∧ ∃ (m : ℤ) (n : ℤ),
↑(order m) = x ∧ ↑(order n) = y ∧ (∀ (z : ℤ × ℤ), z ∈ path ↔ ∃ (k : ℤ), min m n ≤ k ∧ k ≤ max m n ∧ ↑(order k) = z) ∧ ∀ (z : ℤ × ℤ), z ∈ (List.drop 1 path).dropLast ↔ ∃ (k : ℤ), min m n < k ∧ k < max m n ∧ ↑(order k) = z