BandOrderedGeneralRightPlacement #
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.
Fix an ordered-general presentation $q$, its configuration, a normalized right-adjacent pair $(\bar T,\bar h),(\bar N,\bar k)$, an externally supplied family $(S_i^e,f_i^e)$ of six supports and partial odometers, a selected slot, the normalized contact point, and its routed incident-square direction. A right-adjacent normalized placement consists of the following data. This record imposes only the branch-specific adjacency, literal layout root, two boundary-piece alignments, occurrence-index roles, routed memberships, star cover, and translated full-neighbor alignment listed below. The tile-odometer facts, cell and domain covers, restriction values, compatibility, centroid formulas, and slope alternatives for $(S_i^e,f_i^e)$ are not fields of this record; they are supplied once by the enclosing normalized routed occurrence bundle.
It contains the transported right-lattice adjacency and one
BandOrderedGeneralLayoutCertificate whose root is literally the
fixed full tile $\bar N$. It stores a cyclic triple $(i,j,k)$ and a
polarity. The same $q$, direction $k$, and polarity explicitly realize
the centroid and two slope equations in the transported
RightLatticeAdjacent witness. In the positive polarity the
full-neighbor displacement is $d=v_{0k}$ and the two boundary signs are
$+$ at $i$ and $-$ at $j$; in the reflected polarity they are
$d=-v_{0k}$, $-$ at $i$, and $+$ at $j$.
Exactly the two signed pieces on this boundary are retained. In the positive case they are observably aligned with $$ R_i^0=P_i^++v_{0k},\qquad R_j^3=P_j^-+v_{0k}, $$ and in the reflected case with $$ R_i^2=P_i^--v_{0k},\qquad R_j^1=P_j^+-v_{0k}. $$ For each of these two pieces the record stores equality of cells, conditional equality of anchors when those cells are empty, equality of footprints, and equality of the corresponding function domain with the literal boundary footprint. The selected signed piece is one of these two, and it is observably aligned in the same four senses with the retained exterior occurrence $a$. No alignment of the other four decomposed pieces with exterior occurrences is asserted.
The exterior index $a$ is one of the twelve exterior indices. A retained central index $b$ is one of the six central indices and its occurrence contains the routed square belonging to $\bar N$; it is not identified with the whole tile $\bar N$. The occurrence at $a$ contains the opposite routed square, and the two occurrences' footprints cover the five axial vertices at the normalized contact point, as derived from those two routed squares.
Finally the certificate retains the resulting right-neighbor displacement and the observable full-neighbor alignment $$ \operatorname{cells}(\bar T)= \operatorname{cells}(\bar N+d) $$ and equality of the two anchors when this common cell set is empty. Thus the decomposed root is the actual translated outer neighbor of the literal layout root, while the central occurrence selected by the routed square is only a child occurrence of that layout root.
- adjacency : RightLatticeAdjacent C0 root fixed rootFunction fixedFunction
- layout : BandOrderedGeneralLayoutCertificate q cfg C0 fixed
The literal ordered-general layout rooted at the normalized fixed full tile.
- rightFirstSlot : Fin 3
The first parent slot in the retained cyclic boundary triple.
- rightSecondSlot : Fin 3
The second parent slot in that same cyclic boundary triple.
- rightDirectionSlot : Fin 3
The parent slot determining the full right-neighbor displacement.
- right_slots_cyclic : self.rightFirstSlot = 0 ∧ self.rightSecondSlot = 1 ∧ self.rightDirectionSlot = 2 ∨ self.rightFirstSlot = 1 ∧ self.rightSecondSlot = 2 ∧ self.rightDirectionSlot = 0 ∨ self.rightFirstSlot = 2 ∧ self.rightSecondSlot = 0 ∧ self.rightDirectionSlot = 1
- rightNeighborPositive : Bool
The polarity of the retained right-neighbor presentation.
The defined root slope appearing in the transported right-adjacency equations.
The defined fixed slope in the same transported adjacency witness.
- right_adjacency_centroid : TileCentroid fixed - TileCentroid root = (if self.rightNeighborPositive = true then -1 else 1) • GaussianRealPoint (BandVectors.1 (q 0) (q self.rightDirectionSlot.succ))
- right_adjacency_slope_real : self.rightFixedSlope.1 - self.rightRootSlope.1 = (if self.rightNeighborPositive = true then -1 else 1) * ↑(BandVectors.2 (q 0) (q self.rightDirectionSlot.succ)).re
- right_adjacency_slope_imag : self.rightFixedSlope.2 - self.rightRootSlope.2 = (if self.rightNeighborPositive = true then -1 else 1) * ↑(BandVectors.2 (q 0) (q self.rightDirectionSlot.succ)).im
- rightNeighborDisplacement : GaussianInt
The actual signed outgoing displacement between the two normalized full tiles.
- right_neighbor_displacement : self.rightNeighborDisplacement = (if self.rightNeighborPositive = true then 1 else -1) * BandVectors.1 (q 0) (q self.rightDirectionSlot.succ)
- right_neighbor_empty_anchor : root.cells = ∅ → root.anchor = (TileTranslation fixed self.rightNeighborDisplacement).anchor
- firstBoundarySign : Bool
The sign of the first decomposed piece lying on the fixed-tile boundary.
- secondBoundarySign : Bool
The sign of the second decomposed piece lying on that boundary.
- boundary_signs : self.rightNeighborPositive = true ∧ self.firstBoundarySign = true ∧ self.secondBoundarySign = false ∨ self.rightNeighborPositive = false ∧ self.firstBoundarySign = false ∧ self.secondBoundarySign = true
- first_boundary_cells : (pieces self.rightFirstSlot self.firstBoundarySign).cells = (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement).cells
- first_boundary_empty_anchor : (pieces self.rightFirstSlot self.firstBoundarySign).cells = ∅ → (pieces self.rightFirstSlot self.firstBoundarySign).anchor = (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement).anchor
- first_boundary_footprint : FootprintVertices (pieces self.rightFirstSlot self.firstBoundarySign) = FootprintVertices (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement)
- first_boundary_domain : ↑(functions self.rightFirstSlot self.firstBoundarySign).domain = FootprintVertices (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement)
- second_boundary_cells : (pieces self.rightSecondSlot self.secondBoundarySign).cells = (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement).cells
- second_boundary_empty_anchor : (pieces self.rightSecondSlot self.secondBoundarySign).cells = ∅ → (pieces self.rightSecondSlot self.secondBoundarySign).anchor = (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement).anchor
- second_boundary_footprint : FootprintVertices (pieces self.rightSecondSlot self.secondBoundarySign) = FootprintVertices (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement)
- second_boundary_domain : ↑(functions self.rightSecondSlot self.secondBoundarySign).domain = FootprintVertices (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement)
- selected_boundary_piece : selectedSlot = self.rightFirstSlot ∧ selectedSign = self.firstBoundarySign ∨ selectedSlot = self.rightSecondSlot ∧ selectedSign = self.secondBoundarySign
- exteriorIndex : PeriodicSubtileIndex
The literal exterior occurrence selected by the routed contact.
- centralIndex : PeriodicSubtileIndex
The literal central child occurrence selected by the opposite routed square.
- exterior_index : self.exteriorIndex = { label := SixSubtileLabel.A, first := -1, second := -1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.A, first := 0, second := -1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.C, first := 1, second := 0 } ∨ self.exteriorIndex = { label := SixSubtileLabel.C, first := 1, second := 1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.E, first := 0, second := 1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.E, first := -1, second := 0 } ∨ self.exteriorIndex = { label := SixSubtileLabel.B, first := 1, second := 1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.B, first := 0, second := 1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.D, first := -1, second := 0 } ∨ self.exteriorIndex = { label := SixSubtileLabel.D, first := -1, second := -1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.F, first := 0, second := -1 } ∨ self.exteriorIndex = { label := SixSubtileLabel.F, first := 1, second := 0 }
- central_index : self.centralIndex = { label := SixSubtileLabel.A, first := 0, second := 0 } ∨ self.centralIndex = { label := SixSubtileLabel.B, first := 0, second := 0 } ∨ self.centralIndex = { label := SixSubtileLabel.C, first := 0, second := 0 } ∨ self.centralIndex = { label := SixSubtileLabel.D, first := 0, second := 0 } ∨ self.centralIndex = { label := SixSubtileLabel.E, first := 0, second := 0 } ∨ self.centralIndex = { label := SixSubtileLabel.F, first := 0, second := 0 }
- selected_exterior_footprint : FootprintVertices (pieces selectedSlot selectedSign) = FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex)
- selected_exterior_domain : ↑(functions selectedSlot selectedSign).domain = FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex)
- exterior_routed_cell : LatticeVertexIncidentCell point routedDirection ∈ (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex).cells
- central_routed_cell : LatticeVertexIncidentCell point (routedDirection + 2) ∈ (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.centralIndex).cells
- selected_star (y : GaussianInt) : y = point ∨ y = point + 1 ∨ y = point - 1 ∨ y = point + { re := 0, im := 1 } ∨ y = point - { re := 0, im := 1 } → y ∈ FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex) ∨ y ∈ FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.centralIndex)