P3723T1AllContactRouting #
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$, an all-contact routing
extends P3723T1ContactPorts by half-arc sets $J_{ab}$
and full-arc sets $A_{ab}$. Both sets are empty on noncontacts.
For every present port $q_{ab}$, $J_{ab}$ is interval-homeomorphic
with named endpoints $x_a,q_{ab}$ and is contained in
$\operatorname{int}I_a\cup\{q_{ab}\}$. Distinct contact half-arcs
incident to $a$ meet exactly in $\{x_a\}$.
Full arcs are symmetric and, on present ports, satisfy
$A_{ab}=J_{ab}\cup J_{ba}$. For every genuine contact they are
interval-homeomorphic with endpoints $x_a,x_b$. Distinct unordered
contact pairs satisfy the exact intersection law
$A_{ab}\cap A_{cd}=x(\{a,b\}\cap\{c,d\})$.
For every compact plane set $K$, the ordered contacts whose full arcs
meet $K$ form a finite set. Every half-arc at a present port and every
full contact arc also retain a continuous injective plane-valued
parametrization with that exact range, the stated endpoint values,
and a P3723T1PolygonalParameterization certificate.
Half- and full-arc sets translate equivariantly under all periods.
Here $I_a=\operatorname{TileRealization}(T_a)$ as in
TileRealization. These data retain
arcs for nonprescribed genuine contacts as public fields; no contact
classification or facial-region data are included.
- portEdge : ι → ι → Finset GaussianInt
- portEdge_common (a b : ι) : P3723T1EdgeContact P a b → self.portEdge a b ∈ FootprintEdges (P.tile a) ∩ FootprintEdges (P.tile b)
- position_cell (a : ι) : ∃ z ∈ (P.tile a).cells, self.position a = GaussianRealPoint z + (1 / 2, 1 / 2)
- interior_disjoint_tiles (a b : ι) : a ≠ b → Disjoint (interior (TileRealization (P.tile a))) (TileRealization (P.tile b))
- port_frontier (a b : ι) (p : ℝ × ℝ) : self.port a b = some p → p ∈ frontier (TileRealization (P.tile a)) ∩ frontier (TileRealization (P.tile b))
- contactOrbitReps : Finset (ι × ι)
- 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
- position_periodic (u : ↥P.lattice) (a : ι) : self.position (P.shift u a) = self.position a + GaussianRealPoint ↑u
- 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)
- port_periodic (u : ↥P.lattice) (a b : ι) : self.port (P.shift u a) (P.shift u b) = Option.map (fun (p : ℝ × ℝ) => p + GaussianRealPoint ↑u) (self.port a b)
The tile-interior half arc from a tile position to a genuine-contact port.
The full arc joining the positions of two genuinely contacting tiles.
- noncontact_has_no_halfArc (a b : ι) : ¬P3723T1EdgeContact P a b → self.halfArc a b = ∅
- noncontact_has_no_edgeArc (a b : ι) : ¬P3723T1EdgeContact P a b → self.edgeArc a b = ∅
- incident_halfArc_intersections (a b c : ι) : P3723T1EdgeContact P a b → P3723T1EdgeContact P a c → b ≠ c → self.halfArc a b ∩ self.halfArc a c = {self.position a}