P3776T1DualEdges #
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 core $P$, dual-edge data consist of an unordered-edge port $m_{ab}$ and paths $b_{f,ab}:[0,1]\to I(T_a)\cap I(T_b)$ for every incident face $f$ of $ab$. The paths are continuous, start at $[\rho(f)]$, end at $m_{ab}$, and are unchanged by exchanging $a,b$. For the other incident face $g$ they are exactly $b_{f,ab}(t)=\operatorname{P3776\_T1\_WalkMap}(P.\mathrm{facePath}(f,g),t/2)$. The port belongs to both tile realizations, is symmetric in $a,b$, and all ports and half paths commute with lattice translations. Fields on nonedges or nonincident faces are unrestricted.
The symmetric port on each common tile interface.
The path from an incident face point to the edge port.
- port_support (a b : ι) : P.plane.adjacent a b → self.port a b ∈ TileRealization (P.tile a) ∩ TileRealization (P.tile b)
- half_spec (f : P.plane.Face) (a b : ι) : P.plane.adjacent a b → (∃ (i : Fin 3), P.plane.faceVertex f i = a) → (∃ (i : Fin 3), P.plane.faceVertex f i = b) → Continuous (self.half f a b) ∧ self.half f a b ⟨0, _proof_1⟩ = GaussianRealPoint (P.rho f) ∧ self.half f a b ⟨1, _proof_2⟩ = self.port a b ∧ (∀ (t : ↑(Set.Icc 0 1)), self.half f a b t ∈ TileRealization (P.tile a) ∩ TileRealization (P.tile b)) ∧ (∀ (t : ↑(Set.Icc 0 1)), self.half f a b t = self.half f b a t) ∧ ∃ (g : P.plane.Face), g ≠ f ∧ (∃ (i : Fin 3), P.plane.faceVertex g i = a) ∧ (∃ (i : Fin 3), P.plane.faceVertex g i = b) ∧ ∀ (t : ↑(Set.Icc 0 1)), self.half f a b t = P3776T1WalkMap (P.facePath f g) ⟨↑t / 2, ⋯⟩
- half_periodic (u : ↥P.lattice) (f : P.plane.Face) (a b : ι) : P.plane.adjacent a b → (∃ (i : Fin 3), P.plane.faceVertex f i = a) → (∃ (i : Fin 3), P.plane.faceVertex f i = b) → ∀ (t : ↑(Set.Icc 0 1)), self.half (P.faceShift u f) (P.shift u a) (P.shift u b) t = self.half f a b t + GaussianRealPoint ↑u