P4812T1RegularFaceWalks #
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.P4812T1RegularFaceWalks
(L : AddSubgroup GaussianInt)
(k : ℤ × ℤ ≃+ ↥L)
(D : P4812T1AffineDrawing L k)
(T : ProtoTile)
(hne : Finset.Nonempty T.cells)
(hup : TouchingTriple T (TileTranslation T ↑(k (1, 0))) (TileTranslation T (-↑(k (0, 1)))))
(hdown : TouchingTriple T (TileTranslation T (-↑(k (1, 0)))) (TileTranslation T ↑(k (0, 1))))
:
have fs := fun (u : ↥L) (f : D.plane.Face) =>
D.faces (Sum.map (fun (x : ↥L) => u + x) (fun (x : ↥L) => u + x) (D.faces.symm f));
∃ (rho : D.plane.Face → GaussianInt),
(∀ (f : D.plane.Face) (i : Fin 3), rho f ∈ FootprintVertices (TileTranslation T ↑(D.plane.faceVertex f i))) ∧ (∀ (u : ↥L) (f : D.plane.Face), rho (fs u f) = rho f + ↑u) ∧ ∃ (path : D.plane.Face → D.plane.Face → List GaussianInt),
(∀ (f g : D.plane.Face), path g f = (path f g).reverse) ∧ (∀ (u : ↥L) (f g : D.plane.Face),
path (fs u f) (fs u g) = List.map (fun (z : GaussianInt) => z + ↑u) (path f g)) ∧ (∀ (a b : ↥L),
D.plane.adjacent a b →
∀ (f g : D.plane.Face),
f ≠ g →
(∃ (i : Fin 3), D.plane.faceVertex f i = a) →
(∃ (i : Fin 3), D.plane.faceVertex f i = b) →
(∃ (i : Fin 3), D.plane.faceVertex g i = a) →
(∃ (i : Fin 3), D.plane.faceVertex g i = b) →
(path f g).head? = some (rho f) ∧ (path f g).getLast? = some (rho g) ∧ (∀ z ∈ path f g,
z ∈ FootprintVertices (TileTranslation T ↑a) ∩
FootprintVertices (TileTranslation T ↑b)) ∧ ∀ (x y : GaussianInt) (l₁ l₂ : List GaussianInt),
path f g = l₁ ++ x :: y :: l₂ →
{x, y} ∈ FootprintEdges (TileTranslation T ↑a) ∩
FootprintEdges (TileTranslation T ↑b)) ∧ (∀ (a b : ↥L),
D.plane.adjacent a b →
(FootprintEdges (TileTranslation T ↑a) ∩ FootprintEdges (TileTranslation T ↑b)).Nonempty) ∧ ∀ (f : D.plane.Face), path f f = []