AffineTriangularComplexChart #
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.
Let $P$ be a periodic tile complex and let
$\operatorname{tileAt}:\mathbb Z^2\to\mathcal T$ be a coordinate-indexed
family of prototiles. An affine triangular complex chart for
$(P,\operatorname{tileAt})$ consists of a bijection
$\kappa:\mathbb Z^2\to V(P)$ and two face maps
$U,D:\mathbb Z^2\to F(P)$ with the following properties. In chart
coordinates, adjacency is exactly TriangularLatticeAdjacent.
Both $U$ and $D$ are injective, their images are disjoint, and every face is
in exactly one of their images. Writing $e_1=(1,0)$ and $e_2=(0,1)$, the
ordered incident vertices are exactly
$$ U_x=(\kappa(x),\kappa(x+e_1),\kappa(x-e_2)),\qquad D_x=(\kappa(x),\kappa(x-e_1),\kappa(x+e_2)). $$
Finally, the tile indexed by $\kappa(x)$ in $P$ is
$\operatorname{tileAt}(x)$ for every $x\in\mathbb Z^2$.
Identify integer coordinate pairs with the vertices of the periodic complex.
- adjacent_iff (x y : ℤ × ℤ) : P.plane.adjacent (self.vertexEquiv x) (self.vertexEquiv y) ↔ TriangularLatticeAdjacent x y
The upward face based at each integer coordinate pair.
The downward face based at each integer coordinate pair.
- up_injective : Function.Injective self.up
- down_injective : Function.Injective self.down
- up_vertices (x : ℤ × ℤ) : P.plane.faceVertex (self.up x) 0 = self.vertexEquiv x ∧ P.plane.faceVertex (self.up x) 1 = self.vertexEquiv (x + (1, 0)) ∧ P.plane.faceVertex (self.up x) 2 = self.vertexEquiv (x - (0, 1))
- down_vertices (x : ℤ × ℤ) : P.plane.faceVertex (self.down x) 0 = self.vertexEquiv x ∧ P.plane.faceVertex (self.down x) 1 = self.vertexEquiv (x - (1, 0)) ∧ P.plane.faceVertex (self.down x) 2 = self.vertexEquiv (x + (0, 1))