P5130T5UnitCase #
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.P5130T5UnitCase
(P : FordFareyParameter)
(hq : P.q = 1)
:
have g := fun (x : GaussianInt) => x.re * (x.re - 1) / 2 + P.p * x.re * x.im;
(∀ x ∈ FordDoubledBoundary P.q, g x = IntegerCeilDiv (P.p * x.re * x.im) ↑P.q ⋯) ∧ (∀ (x : GaussianInt), g (x + { re := 0, im := -↑P.q }) = g x - P.p * x.re) ∧ (∀ (x : GaussianInt), g (x + { re := ↑P.q, im := ↑P.q₁ }) = g x + P.p₁ * x.re + P.p * x.im + ↑P.q₁ * P.p) ∧ ∀ (x : GaussianInt), g (x + { re := -↑P.q, im := ↑P.q₂ }) = g x + P.p₂ * x.re - P.p * x.im - ↑P.q * P.p₂