FordCellDomain #
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.
The Ford cell domain of denominator $q$ is the half-open $q$-by-$q$ square of cell basepoints $$ D^{\mathrm F}_q=\{x+yi:0\leq x<q,\ 0\leq y<q\}. $$ This is a set of cells. It is distinct from the closed vertex domain $[0,q]^2$ on which the Ford odometer is prescribed.
Equations
- ApollonianSuperharmonic.FordCellDomain q = Finset.image (fun (a : ℕ × ℕ) => { re := ↑a.1, im := ↑a.2 }) ((Finset.range q).product (Finset.range q))