P4120T1FordGeometry #
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.P4120T1FordGeometry
(P : FordFareyParameter)
(hP : 1 < P.q)
(T : ProtoTile)
(S : Fin 3 → Bool → ProtoTile)
(u : GaussianInt)
(hcells : T.cells = (TileTranslation (FordTile P.q) u).cells)
(hanchor : T.cells = ∅ → T.anchor = (TileTranslation (FordTile P.q) u).anchor)
(hS : ∀ (i : Fin 3) (s : Bool), BandSubtileOccurrence (FordRecursiveQuadruple P) T i s (S i s))
(x : GaussianInt)
(hx : x ∈ FootprintVertices T)
(hxb : x ∉ BoundaryFootprintVertices T)
:
have y := x - u;
have k := Nat.card { a : Fin 3 × Bool // x ∈ BoundaryFootprintVertices (S a.1 a.2) };
(1 ≤ y.re ∧ y.re ≤ ↑P.q - 1 ∧ 1 ≤ y.im ∧ y.im ≤ ↑P.q - 1) ∧ k = FordBoundaryMultiplicity P y ∧ (k = 2 → GaussianRealPoint x ≠ TileCentroid T) ∧ (k = 4 → P.q = 2 ∧ GaussianRealPoint x = TileCentroid T) ∧ ((k = 2 ∨ k = 3 ∨ k = 4) ∨ ∃ (i : Fin 3) (s : Bool),
0 < (FordRecursiveQuadruple P i.succ).1 ∧ x ∈ FootprintVertices (S i s) ∧ x ∉ BoundaryFootprintVertices (S i s))