P5188T1E3E4Boundary #
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.P5188T1E3E4Boundary
(P P₂ : FordFareyParameter)
(hq : 1 < P.q)
(hp₂ : P₂.p = P.p₂)
(hq₂ : P₂.q = P.q₂)
(g₂ : IntegerLatticeFunction)
(h₂ : ∀ x ∈ FordDoubledBoundary P₂.q, g₂ x = IntegerCeilDiv (P₂.p * x.re * x.im) ↑P₂.q ⋯)
:
(∀ (x : GaussianInt),
↑P.q₁ ≤ x.re ∧ x.re ≤ ↑P.q ∧ 0 ≤ x.im ∧ x.im ≤ ↑P.q₂ →
x ∈ FordDoubledBoundary P.q →
g₂ (x - { re := ↑P.q₁, im := 0 }) + P.p₁ * x.im = IntegerCeilDiv (P.p * x.re * x.im) ↑P.q ⋯) ∧ ∀ (x : GaussianInt),
0 ≤ x.re ∧ x.re ≤ ↑P.q₂ ∧ ↑P.q₁ ≤ x.im ∧ x.im ≤ ↑P.q →
x ∈ FordDoubledBoundary P.q →
g₂ (x - { re := 0, im := ↑P.q₁ }) + P.p₁ * x.re = IntegerCeilDiv (P.p * x.re * x.im) ↑P.q ⋯