P5130T5BoundaryConsistency #
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.P5130T5BoundaryConsistency
(P P₁ P₂ : FordFareyParameter)
(hq : 1 < P.q)
(hp₁ : P₁.p = P.p₁)
(hq₁ : P₁.q = P.q₁)
(hp₂ : P₂.p = P.p₂)
(hq₂ : P₂.q = P.q₂)
(g₁ g₂ : IntegerLatticeFunction)
(h₁ : ∀ x ∈ FordDoubledBoundary P₁.q, g₁ x = IntegerCeilDiv (P₁.p * x.re * x.im) ↑P₁.q ⋯)
(h₂ : ∀ x ∈ FordDoubledBoundary P₂.q, g₂ x = IntegerCeilDiv (P₂.p * x.re * x.im) ↑P₂.q ⋯)
(i : Fin 4)
(x : GaussianInt)
:
x ∈ FordRecursiveVertexDomains P i →
x ∈ FordDoubledBoundary P.q → P5130T5Prescription P g₁ g₂ i x = IntegerCeilDiv (P.p * x.re * x.im) ↑P.q ⋯