P4261T2LiteralInterface #
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 positive band circles $D,C$, literal supports $T,T'$ and functions
$h,h'$, a literal opposing interface consists of an orientation, a base,
two literal endpoint tiles $R^-,R^+$, forward and reverse tile lists and
function lists, and two functions $h^-,h^+$. The forward list
OdometerStringRespects the string from $R^-$ to $R^+$ and the
reverse list respects the string from $R^+$ to $R^-$ on that same base.
Their head/last functions are respectively $(h^-,h^+)$ and $(h^+,h^-)$.
It also contains a repetition-free vertex list $P$ of length at least two.
Its vertex set is exactly $\operatorname{foot}(T)\cap\operatorname{foot}(T')$;
its consecutive unordered pairs are exactly $E(T)\cap E(T')$.
For each consecutive pair $x,y$ there are literal zipped entries $(U,g)$,
$(V,k)$ in the retained forward and reverse lists such that $\{x,y\}$
is an actual footprint edge of both supports, and
AncestorOdometer holds for $(U,g)$ in $(T,h)$ and for $(V,k)$
in $(T',h')$, with coordinates $D,C$. In particular these certificates
retain the domain inclusions and the actual restriction value equations.
- orientation : Bool
The selected triangular completion used by both oriented tile strings.
- base : ProtoTile
The common base tile of the regular family containing both strings.
- minus : ProtoTile
The literal initial endpoint tile of the forward string.
- plus : ProtoTile
The literal terminal endpoint tile of the forward string.
The forward ordered list of tiles along the complete interface.
The reverse oriented tile list on the same regular-family base.
- functions : List PartialOdometer
The literal partial odometers assigned to the forward tile list.
- reverseFunctions : List PartialOdometer
The literal partial odometers assigned to the reverse tile list.
- hminus : PartialOdometer
The partial odometer at the initial endpoint.
- hplus : PartialOdometer
The partial odometer at the terminal endpoint.
- path : List GaussianInt
The nontrivial simple lattice path covering the complete common interface.
- forward : OdometerStringRespect D self.orientation self.base self.minus self.plus self.tiles self.functions
- backward : OdometerStringRespect D self.orientation self.base self.plus self.minus self.reverseTiles self.reverseFunctions
- edges (edge : Finset GaussianInt) : edge ∈ FootprintEdges T ∩ FootprintEdges T' ↔ ∃ (x : GaussianInt) (y : GaussianInt) (pre : List GaussianInt) (post : List GaussianInt), self.path = pre ++ x :: y :: post ∧ edge = {x, y}
- restrictions (x y : GaussianInt) (pre post : List GaussianInt) : self.path = pre ++ x :: y :: post → ∃ (U : ProtoTile) (V : ProtoTile) (g : PartialOdometer) (k : PartialOdometer), (U, g) ∈ self.tiles.zip self.functions ∧ (V, k) ∈ self.reverseTiles.zip self.reverseFunctions ∧ {x, y} ∈ FootprintEdges U ∩ FootprintEdges V ∧ AncestorOdometer (↑↑D) (↑↑C) U T g h ∧ AncestorOdometer (↑↑D) (↑↑C) V T' k h'