Documentation

LeanPool.ApollonianSuperharmonic.P4062T1RemainderGeometry

P4062T1RemainderGeometry #

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.P4062T1RemainderGeometry (P : FordFareyParameter) (hP : 2 < P.q) :
have A := P4062T1RecursiveInteriors P; have E := A 0 ∪ A 1 ∪ (A 2 ∪ A 3); have W := P4062T1InteriorSquare P.q \ E; have B := P4062T1RemainderPaths P; have d := fun (x : GaussianInt) => have a := if x ∈ (B 0).1 then (B 0).2 else (B 1).2; (x.re - a.re).natAbs + (x.im - a.im).natAbs; E ⊆ P4062T1InteriorSquare P.q ∧ W = (B 0).1 ∪ (B 1).1 ∧ Disjoint (B 0).1 (B 1).1 ∧ (∀ x ∈ (B 0).1, ∀ y ∈ (B 1).1, ¬FourNeighborAdjacent x y) ∧ (∀ (j : Fin 2), ∀ x ∈ (B j).1, ∀ y ∈ (B j).1, FourNeighborAdjacent x y ↔ (x.re = y.re ∨ x.im = y.im) ∧ (d x).dist (d y) = 1) ∧ (∀ (j : Fin 2), ∀ x ∈ (B j).1, {y ∈ E | FourNeighborAdjacent y x}.card = 2 ∧ (FordBoundaryMultiplicity P x = if x = (B j).2 then 3 else 2) ∧ {y ∈ (B j).1 | FourNeighborAdjacent y x ∧ d y < d x}.card = if x = (B j).2 then 0 else 1) ∧ (∀ x ∈ W, ↑{y ∈ E | FourNeighborAdjacent y x}.card + ↑{y ∈ W | FourNeighborAdjacent y x ∧ d y < d x}.card = 2 + FourNeighborLaplacian (FordOdometer P) x) ∧ ∀ x ∈ W, ∀ y ∈ W, FourNeighborAdjacent x y → d x ≠ d y