FordOdometerFamilyExistsUnique #
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.FordOdometerFamilyExistsUnique :
∃! G : FordFareyParameter → IntegerLatticeFunction, (∀ (P : FordFareyParameter) (x : GaussianInt), P.q = 1 → G P x = x.re * (x.re - 1) / 2 + P.p * x.re * x.im) ∧ (∀ (P : FordFareyParameter), ∀ x ∈ FordDoubledBoundary P.q, G P x = IntegerCeilDiv (P.p * x.re * x.im) ↑P.q ⋯) ∧ (∀ (P : FordFareyParameter) (x : GaussianInt), G P (x + { re := 0, im := -↑P.q }) = G P x - P.p * x.re) ∧ (∀ (P : FordFareyParameter) (x : GaussianInt),
G P (x + { re := ↑P.q, im := ↑P.q₁ }) = G P x + P.p₁ * x.re + P.p * x.im + ↑P.q₁ * P.p) ∧ (∀ (P : FordFareyParameter) (x : GaussianInt),
G P (x + { re := -↑P.q, im := ↑P.q₂ }) = G P x + P.p₂ * x.re - P.p * x.im - ↑P.q * P.p₂) ∧ ∀ (P P₁ P₂ : FordFareyParameter),
1 < P.q →
P₁.p = P.p₁ →
P₁.q = P.q₁ →
P₂.p = P.p₂ →
P₂.q = P.q₂ →
(∀ x ∈ FordRecursiveVertexDomains P 0, G P x = G P₁ x) ∧ (∀ x ∈ FordRecursiveVertexDomains P 1,
G P x = G P₁ (x - { re := ↑P.q₂, im := ↑P.q₂ }) + P.p₂ * x.re + P.p₂ * x.im - P.p₂ * ↑P.q₂ + 1) ∧ (∀ x ∈ FordRecursiveVertexDomains P 2,
G P x = G P₂ (x - { re := ↑P.q₁, im := 0 }) + P.p₁ * x.im) ∧ ∀ x ∈ FordRecursiveVertexDomains P 3,
G P x = G P₂ (x - { re := 0, im := ↑P.q₁ }) + P.p₁ * x.re