Documentation

LeanPool.ApollonianSuperharmonic.P4217T2RectangularBoundarySlope

P4217T2RectangularBoundarySlope #

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.P4217T2RectangularBoundarySlope (h : PartialOdometer) (m n : ℕ) (hm : 0 < m) (hn : 0 < n) (a b : ℤ) (hdom : ↑h.domain = {x : GaussianInt | 0 ≤ x.re ∧ x.re ≤ ↑m ∧ 0 ≤ x.im ∧ x.im ≤ ↑n}) (hleft : ∀ (y : ℤ), 0 ≤ y → y ≤ ↑n → h.value { re := 0, im := y } = 0) (hright : ∀ (y : ℤ), 0 ≤ y → y ≤ ↑n → h.value { re := ↑m, im := y } = a * y) (hbottom : ∀ (x : ℤ), 0 ≤ x → x ≤ ↑m → h.value { re := x, im := 0 } = 0) (htop : ∀ (x : ℤ), 0 ≤ x → x ≤ ↑m → h.value { re := x, im := ↑n } = b * x) :
PartialOdometerSlope h = some (↑a * ↑n / (2 * ↑m), ↑b * ↑m / (2 * ↑n))