BandOrderedGeneralSubtileRoutingCertificate #
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.
Given a BandOrderedGeneralSubtileInterfaceCertificate, a subtile
routing certificate records an actual common footprint edge through the
normalized point, the induced-edge properties of both outer lattice tiles,
and a direction whose opposite incident cells lie in the normalized root and
fixed supports. It then chooses exactly one signed piece of the already
fixed decomposition containing the root-side incident cell.
The certificate retains that same slot and sign by naming its central periodic occurrence, recording equality with the normalization certificate's central index for that piece, and transferring the routed root-side cell to that occurrence. It transfers the opposite cell to the already fixed exterior occurrence and records that these same two occurrences cover the normalized point and its four axial neighbors. No second decomposition or second piece selection is permitted by the data.
- edgeAtPoint : ∃ (edge : Finset GaussianInt), normalization.normalizedPoint ∈ edge ∧ edge ∈ FootprintEdges normalization.normalizedRoot ∩ FootprintEdges normalization.normalizedFixed
- root_induced (y : GaussianInt) : y ∈ FootprintVertices normalization.normalizedRoot → ∀ z ∈ FootprintVertices normalization.normalizedRoot, FourNeighborAdjacent y z → {y, z} ∈ FootprintEdges normalization.normalizedRoot
- fixed_induced (y : GaussianInt) : y ∈ FootprintVertices normalization.normalizedFixed → ∀ z ∈ FootprintVertices normalization.normalizedFixed, FourNeighborAdjacent y z → {y, z} ∈ FootprintEdges normalization.normalizedFixed
- routedDirection : Fin 4
The incident-square direction with root and fixed cells in opposite sectors.
- routed_root_cell : LatticeVertexIncidentCell normalization.normalizedPoint self.routedDirection ∈ normalization.normalizedRoot.cells
- routed_fixed_cell : LatticeVertexIncidentCell normalization.normalizedPoint (self.routedDirection + 2) ∈ normalization.normalizedFixed.cells
- selectedSlot : Fin 3
The selected parent slot of the fixed six-piece decomposition.
- selectedSign : Bool
The sign of that selected occurrence in the same decomposition family.
- selected_piece_cell : LatticeVertexIncidentCell normalization.normalizedPoint self.routedDirection ∈ (normalization.pieces self.selectedSlot self.selectedSign).cells
- centralIndex : PeriodicSubtileIndex
The central occurrence containing the selected root-side incident square.
- 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_central_index : self.centralIndex = normalization.pieceIndex self.selectedSlot self.selectedSign
- exterior_routed_cell : LatticeVertexIncidentCell normalization.normalizedPoint (self.routedDirection + 2) ∈ (SubtileOccurrenceInterpretation normalization.layout.P normalization.layout.u normalization.layout.v normalization.exteriorIndex).cells
- central_routed_cell : LatticeVertexIncidentCell normalization.normalizedPoint self.routedDirection ∈ (SubtileOccurrenceInterpretation normalization.layout.P normalization.layout.u normalization.layout.v self.centralIndex).cells
- selected_star (y : GaussianInt) : y = normalization.normalizedPoint ∨ y = normalization.normalizedPoint + 1 ∨ y = normalization.normalizedPoint - 1 ∨ y = normalization.normalizedPoint + { re := 0, im := 1 } ∨ y = normalization.normalizedPoint - { re := 0, im := 1 } → y ∈ FootprintVertices (SubtileOccurrenceInterpretation normalization.layout.P normalization.layout.u normalization.layout.v normalization.exteriorIndex) ∨ y ∈ FootprintVertices (SubtileOccurrenceInterpretation normalization.layout.P normalization.layout.u normalization.layout.v self.centralIndex)