P4677T2DrawingData #
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.
For Gaussian integers $u,v$ and an additive subgroup $L$, periodic drawing
data consist of positions on PeriodicSubtileIndex, edge arcs,
and regions indexed by PeriodicSubtileFaceIndex, with the
geometric laws of PlaneTriangulation: injective positions,
symmetric arcs, interval homeomorphisms with the specified endpoint
positions on allowed edges, intersections of distinct allowed edges
exactly at common endpoint positions, open connected pairwise disjoint
face regions, face frontier exactly the three side arcs, and coverage
by positions, allowed arcs, and face regions. Here adjacency is
AllowedSubtileIncidence and face vertices are
SixSubtileFaceVertices. The abstract graph laws, including
three-connectivity and the two-face incidence law, are not part of these
data. A coordinate function $c:L\to\mathbb Z^2$ satisfies
$c_1(w)u+c_2(w)v=w$. Vertex shift adds $c(w)$ to the two integer
coordinates, preserving the label; face shift does the same. Both shifts
have the zero and addition action laws.
Adjacency is invariant, and the face-vertex map is equivariant. Positions,
edge arcs, and open face regions translate by the real vector of $w$.
There are finite vertex, ordered-edge, and face representative sets.
Every ordered-edge representative $(a,b)$ satisfies allowed incidence
between $a$ and $b$.
The vertex representatives are exactly the six zero-coordinate indices;
the face representatives are exactly the twelve zero-coordinate faces.
Every vertex has a unique representative in its shift orbit, and every
ordered adjacent pair and every face is a shift of a representative.
These data contain no tile, selected lattice point, footprint walk, or
fundamental set of lattice cells.
- position : PeriodicSubtileIndex → ℝ × ℝ
The embedded position of each periodic occurrence index.
- edgeArc : PeriodicSubtileIndex → PeriodicSubtileIndex → Set (ℝ × ℝ)
The stored plane arc for each ordered pair of occurrence indices.
- faceRegion : PeriodicSubtileFaceIndex → Set (ℝ × ℝ)
The open region of each translated face label.
- position_injective : Function.Injective self.position
- region_open (f : PeriodicSubtileFaceIndex) : IsOpen (self.faceRegion f)
- region_connected (f : PeriodicSubtileFaceIndex) : IsConnected (self.faceRegion f)
- region_disjoint : Pairwise fun (f g : PeriodicSubtileFaceIndex) => Disjoint (self.faceRegion f) (self.faceRegion g)
- face_boundary (f : PeriodicSubtileFaceIndex) : frontier (self.faceRegion f) = self.edgeArc (SixSubtileFaceVertices f 0) (SixSubtileFaceVertices f 1) ∪ self.edgeArc (SixSubtileFaceVertices f 1) (SixSubtileFaceVertices f 2) ∪ self.edgeArc (SixSubtileFaceVertices f 2) (SixSubtileFaceVertices f 0)
The integral coefficients of a period in the chosen two-vector basis.
- shift : ↥L → PeriodicSubtileIndex → PeriodicSubtileIndex
Translate an occurrence index by a period lattice element.
- faceShift : ↥L → PeriodicSubtileFaceIndex → PeriodicSubtileFaceIndex
Translate the entire face index by a period lattice element.
- shift_eq (w : ↥L) (a : PeriodicSubtileIndex) : self.shift w a = { label := a.label, first := a.first + (self.coordinates w).1, second := a.second + (self.coordinates w).2 }
- faceShift_eq (w : ↥L) (f : PeriodicSubtileFaceIndex) : self.faceShift w f = { label := f.label, first := f.first + (self.coordinates w).1, second := f.second + (self.coordinates w).2 }
- edge_periodic (w : ↥L) (a b : PeriodicSubtileIndex) : AllowedSubtileIncidence (self.shift w a) (self.shift w b) ↔ AllowedSubtileIncidence a b
- face_vertices_periodic (w : ↥L) (f : PeriodicSubtileFaceIndex) (i : Fin 3) : SixSubtileFaceVertices (self.faceShift w f) i = self.shift w (SixSubtileFaceVertices f i)
- position_periodic (w : ↥L) (a : PeriodicSubtileIndex) : self.position (self.shift w a) = self.position a + GaussianRealPoint ↑w
- faceRegion_periodic (w : ↥L) (f : PeriodicSubtileFaceIndex) : self.faceRegion (self.faceShift w f) = (fun (p : ℝ × ℝ) => p + GaussianRealPoint ↑w) '' self.faceRegion f
- vertexReps : Finset PeriodicSubtileIndex
The six zero-coordinate occurrence representatives.
- edgeReps : Finset (PeriodicSubtileIndex × PeriodicSubtileIndex)
The selected finite family of ordered allowed-edge representatives.
- faceReps : Finset PeriodicSubtileFaceIndex
The twelve zero-coordinate face representatives.
- edge_reps_allowed (r : PeriodicSubtileIndex × PeriodicSubtileIndex) : r ∈ self.edgeReps → AllowedSubtileIncidence r.1 r.2
- vertex_orbits (a : PeriodicSubtileIndex) : ∃! r : PeriodicSubtileIndex, r ∈ self.vertexReps ∧ ∃ (w : ↥L), a = self.shift w r
- edge_orbits (a b : PeriodicSubtileIndex) : AllowedSubtileIncidence a b → ∃ r ∈ self.edgeReps, ∃ (w : ↥L), a = self.shift w r.1 ∧ b = self.shift w r.2
- face_orbits (f : PeriodicSubtileFaceIndex) : ∃ r ∈ self.faceReps, ∃ (w : ↥L), f = self.faceShift w r