P4112T1PathGeometry #
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.P4112T1PathGeometry
(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;
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