P3723T1ContactPorts #
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 a PeriodicTileComplex $P$, this record has a position
$x_a$ for each index, a selected lattice edge $e_{ab}$ and optional
plane point $q_{ab}$ for each ordered pair, with the following laws.
The edge and port are symmetric. On every genuine
P3723T1EdgeContact, the edge belongs to both footprint
edge sets, has two endpoints, and the port is present and equals the
coordinatewise sum of these endpoints divided by two. Off contacts
the port is absent and the edge empty, and port absence is equivalent
to noncontact.
Each position is the center $\operatorname{GaussianRealPoint}(z)+(1/2,1/2)$ of some cell $z\in T_a.\mathrm{cells}$, is in the tile's ambient interior, and the position map is injective. For $a\ne b$, the interior of $T_a$'s realization is disjoint from all of $T_b$'s realization. Every present port is in both ambient frontiers and in no third tile realization. Two present ports at the same point have the same unordered owner pair, and distinct contacts incident to one index have distinct ports.
Every index has finitely many contact neighbors. The record retains a finite set of ordered genuine contact representatives such that every ordered contact is a simultaneous lattice shift of one of them. A shift stabilizing any unordered pair of indices is zero, and genuine contact is invariant under simultaneous shifts. Positions translate by the real period, selected edges by endpointwise lattice translation, and ports by optional real translation, for every pair including noncontacts. No reverse implication from contact to prescribed adjacency is included.
The selected constituent-cell center used as the tile position.
- portEdge : ι → ι → Finset GaussianInt
The selected common unit footprint edge at each genuine contact.
The midpoint of the selected edge, absent exactly on noncontacts.
- portEdge_common (a b : ι) : P3723T1EdgeContact P a b → self.portEdge a b ∈ FootprintEdges (P.tile a) ∩ FootprintEdges (P.tile b)
- portEdge_two (a b : ι) : P3723T1EdgeContact P a b → (self.portEdge a b).card = 2
- noncontact_has_no_portEdge (a b : ι) : ¬P3723T1EdgeContact P a b → self.portEdge a b = ∅
- position_injective : Function.Injective self.position
- interior_disjoint_tiles (a b : ι) : a ≠ b → Disjoint (interior (TileRealization (P.tile a))) (TileRealization (P.tile b))
A finite set representing all ordered genuine contacts under period translation.
- contactOrbitReps_genuine (e : ι × ι) : e ∈ self.contactOrbitReps → P3723T1EdgeContact P e.1 e.2
- contact_orbit_representatives (a b : ι) : P3723T1EdgeContact P a b → ∃ e ∈ self.contactOrbitReps, ∃ (u : ↥P.lattice), a = P.shift u e.1 ∧ b = P.shift u e.2
- contact_periodic (u : ↥P.lattice) (a b : ι) : P3723T1EdgeContact P (P.shift u a) (P.shift u b) ↔ P3723T1EdgeContact P a b
- portEdge_periodic (u : ↥P.lattice) (a b : ι) : self.portEdge (P.shift u a) (P.shift u b) = Finset.image (fun (z : GaussianInt) => z + ↑u) (self.portEdge a b)