P5448T1CommonAffineFordPair #
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.P5448T1CommonAffineFordPair
(F : FordFareyParameter)
(hq : 1 < F.q)
(U V : ProtoTile)
(hp hm : PartialOdometer)
(hplus : TileOdometer (FordCircleCoordinate F.p F.q) U hp)
(hminus : TileOdometer (FordCircleCoordinate F.p F.q) V hm)
(hdp : ∀ (z : GaussianInt), z ∈ hp.domain ↔ -↑F.q₁ ≤ z.re ∧ z.re ≤ ↑F.q₂ ∧ 0 ≤ z.im ∧ z.im ≤ ↑F.q)
(hdm : ∀ (z : GaussianInt), z ∈ hm.domain ↔ -↑F.q₂ ≤ z.re ∧ z.re ≤ ↑F.q₁ ∧ -↑F.q ≤ z.im ∧ z.im ≤ 0)
(sp sm : ℝ × ℝ)
(hsp : PartialOdometerSlope hp = some sp)
(hsm : PartialOdometerSlope hm = some sm)
(hsx : sm.1 - sp.1 = -↑F.p)
(hsy : sm.2 - sp.2 = ↑F.p₁ - ↑F.p₂)
(hshared : hp.value 0 = hm.value 0)
:
∃ (a : GaussianInt) (b : ℤ),
(∀ z ∈ hp.domain,
hp.value z = FordOdometer F (z + { re := ↑F.q₁, im := 0 }) - F.p₁ * z.im + a.re * z.re + a.im * z.im + b) ∧ ∀ z ∈ hm.domain,
hm.value z = FordOdometer F (z + { re := ↑F.q₂, im := ↑F.q }) - F.p * z.re - F.p₂ * z.im - F.p * ↑F.q₂ + a.re * z.re + a.im * z.im + b