BandOrderedGeneralRightNormalizationCertificate #
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 right-lattice adjacent tile odometers $(T,h)$ and $(N,k)$ of a circle
$C$, a right normalization certificate consists of one proper presentation
$q$ of $C$, one cyclic parent rotation, one packing-symmetry word, and the
resulting ordered-general presentation, transformed circle, literal supports,
functions, point, and slopes. It includes one ordered-general layout rooted
at the transformed fixed support and one reindexed six-piece decomposition of
the transformed root support. It retains the transformed point's membership
in both transformed function domains, lattice-tile certificates for both
transformed outer supports, and a named
QuarterTurnSymmetric witness for the transformed fixed support.
Write $\bar q$ for the resulting ordered-general presentation. The certificate also names three parent slots $(i,j,k)$, records that they are one of the cyclic triples $$ (0,1,2),\qquad(1,2,0),\qquad(2,0,1), $$ and stores a right-neighbor polarity $\epsilon$. Writing $$ b_s=v(\bar q_0,\bar q_{s+1}) $$ for the outgoing vector of the normalized presentation and $d$ for the stored right-neighbor displacement, its exact displacement field is $$ d=\begin{cases} b_k,&\epsilon=\mathsf{true},\\ -b_k,&\epsilon=\mathsf{false}. \end{cases} $$ It records the transported adjacency with this complemented polarity, the cell and empty-anchor alignment of the two outer supports, the corresponding observable alignments of the two signed boundary pieces, and the transported five-point footprint cover. In particular, the certificate contains only one layout and one decomposition.
- presentation : Fin 4 → CircleCoordinates
The proper source presentation of the root circle.
- presentation_proper : ProperBandQuadruple self.presentation
- parentRotation : Fin 3
The cyclic parent rotation used before applying the packing symmetry.
- symmetry : BandPackingSymmetry
The single packing-symmetry word used throughout the normalization.
- rotatedPresentation : Fin 4 → CircleCoordinates
The source presentation after the chosen cyclic parent rotation.
- rotated_presentation_eq : self.rotatedPresentation = ![self.presentation 0, self.presentation self.parentRotation.succ, self.presentation (self.parentRotation + 1).succ, self.presentation (self.parentRotation + 2).succ]
- normalizedPresentation : Fin 4 → CircleCoordinates
The ordered-general presentation obtained by the symmetry action.
- normalized_presentation_eq : self.normalizedPresentation = BandPackingSymmetryQuadrupleAction self.symmetry self.rotatedPresentation
- configuration : BandOrderedGeneralConfiguration self.normalizedPresentation
The ordered-general predecessor data for the normalized presentation.
- normalizedCircle : BandCircle
The positive root circle in the normalized presentation.
- normalizedFixedCircle : BandCircle
The transformed positive circle of the fixed tile odometer.
- normalized_fixed_circle_eq : ↑↑self.normalizedFixedCircle = BandPackingSymmetryCircleAction self.symmetry ↑↑C
- normalizedRoot : ProtoTile
The literal transformed root support.
- normalizedFixed : ProtoTile
The literal transformed fixed support.
- normalizedRootFunction : PartialOdometer
The transformed root odometer on its actual finite domain.
- normalizedFixedFunction : PartialOdometer
The transformed fixed odometer on its actual finite domain.
- normalizedPoint : GaussianInt
The transformed lattice contact point.
- normalized_root_function_eq : self.normalizedRootFunction = BandPackingSymmetryPartialOdometerAction self.symmetry h
- normalized_fixed_function_eq : self.normalizedFixedFunction = BandPackingSymmetryPartialOdometerAction self.symmetry k
- normalized_root_odometer : TileOdometer (self.normalizedPresentation 0) self.normalizedRoot self.normalizedRootFunction
- normalized_fixed_odometer : TileOdometer (↑↑self.normalizedFixedCircle) self.normalizedFixed self.normalizedFixedFunction
- normalized_root_lattice : LatticeTile self.normalizedRoot
- normalized_fixed_lattice : LatticeTile self.normalizedFixed
The defined slope of the transformed root odometer.
The defined slope of the transformed fixed odometer.
- normalized_root_slope : PartialOdometerSlope self.normalizedRootFunction = some self.normalizedRootSlope
- normalized_fixed_slope : PartialOdometerSlope self.normalizedFixedFunction = some self.normalizedFixedSlope
The single family of six signed supports in the normalized root decomposition.
- functions : Fin 3 → Bool → PartialOdometer
The literal partial odometers on that same six-piece family.
- root_band : BandPrototile (self.normalizedPresentation 0) self.normalizedRoot
- piece_odometer (i : Fin 3) (s : Bool) : TileOdometer (self.normalizedPresentation i.succ) (self.pieces i s) (self.functions i s)
- piece_cell_cover (z : LatticeCell) : z ∈ self.normalizedRoot.cells ↔ ∃ (i : Fin 3) (s : Bool), z ∈ (self.pieces i s).cells
- piece_footprint (i : Fin 3) (s : Bool) : FootprintVertices (self.pieces i s) ⊆ FootprintVertices self.normalizedRoot
- piece_centroid (i : Fin 3) (s : Bool) : TileCentroid (self.pieces i s) - TileCentroid self.normalizedRoot = (if s = true then 1 else -1) • (1 / 2) • (GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ)) - (-(GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ))).2, (GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ))).1))
- function_domain_cover (z : GaussianInt) : z ∈ self.normalizedRootFunction.domain ↔ ∃ (i : Fin 3) (s : Bool), z ∈ (self.functions i s).domain
- piece_slope (i : Fin 3) (s : Bool) : (self.normalizedPresentation i.succ).1 = 0 ∨ ∃ (p : ℝ × ℝ) (p_i : ℝ × ℝ), PartialOdometerSlope self.normalizedRootFunction = some p ∧ PartialOdometerSlope (self.functions i s) = some p_i ∧ p_i.1 - p.1 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ)).re - ↑(BandVectors.2 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ)).im) ∧ p_i.2 - p.2 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ)).im + ↑(BandVectors.2 (self.normalizedPresentation (i + 2).succ) (self.normalizedPresentation (i + 1).succ)).re)
- adjacency : RightLatticeAdjacent self.normalizedCircle self.normalizedRoot self.normalizedFixed self.normalizedRootFunction self.normalizedFixedFunction
- layout : BandOrderedGeneralLayoutCertificate self.normalizedPresentation self.configuration self.normalizedCircle self.normalizedFixed
The literal ordered-general layout rooted at the normalized fixed full tile.
- fixed_quarter_turn : QuarterTurnSymmetric self.normalizedFixed
- 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.
- right_adjacency_centroid : TileCentroid self.normalizedFixed - TileCentroid self.normalizedRoot = (if self.rightNeighborPositive = true then -1 else 1) • GaussianRealPoint (BandVectors.1 (self.normalizedPresentation 0) (self.normalizedPresentation self.rightDirectionSlot.succ))
- right_adjacency_slope_real : self.normalizedFixedSlope.1 - self.normalizedRootSlope.1 = (if self.rightNeighborPositive = true then -1 else 1) * ↑(BandVectors.2 (self.normalizedPresentation 0) (self.normalizedPresentation self.rightDirectionSlot.succ)).re
- right_adjacency_slope_imag : self.normalizedFixedSlope.2 - self.normalizedRootSlope.2 = (if self.rightNeighborPositive = true then -1 else 1) * ↑(BandVectors.2 (self.normalizedPresentation 0) (self.normalizedPresentation 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 (self.normalizedPresentation 0) (self.normalizedPresentation self.rightDirectionSlot.succ)
- right_neighbor_cells : self.normalizedRoot.cells = (TileTranslation self.normalizedFixed self.rightNeighborDisplacement).cells
- right_neighbor_empty_anchor : self.normalizedRoot.cells = ∅ → self.normalizedRoot.anchor = (TileTranslation self.normalizedFixed 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 : (self.pieces self.rightFirstSlot self.firstBoundarySign).cells = (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement).cells
- first_boundary_empty_anchor : (self.pieces self.rightFirstSlot self.firstBoundarySign).cells = ∅ → (self.pieces self.rightFirstSlot self.firstBoundarySign).anchor = (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement).anchor
- first_boundary_footprint : FootprintVertices (self.pieces self.rightFirstSlot self.firstBoundarySign) = FootprintVertices (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement)
- first_boundary_domain : ↑(self.functions self.rightFirstSlot self.firstBoundarySign).domain = FootprintVertices (TileTranslation (self.layout.P self.rightFirstSlot self.firstBoundarySign) self.rightNeighborDisplacement)
- second_boundary_cells : (self.pieces self.rightSecondSlot self.secondBoundarySign).cells = (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement).cells
- second_boundary_empty_anchor : (self.pieces self.rightSecondSlot self.secondBoundarySign).cells = ∅ → (self.pieces self.rightSecondSlot self.secondBoundarySign).anchor = (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement).anchor
- second_boundary_footprint : FootprintVertices (self.pieces self.rightSecondSlot self.secondBoundarySign) = FootprintVertices (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement)
- second_boundary_domain : ↑(self.functions self.rightSecondSlot self.secondBoundarySign).domain = FootprintVertices (TileTranslation (self.layout.P self.rightSecondSlot self.secondBoundarySign) self.rightNeighborDisplacement)
- normalized_star (y : GaussianInt) : y = self.normalizedPoint ∨ y = self.normalizedPoint + 1 ∨ y = self.normalizedPoint - 1 ∨ y = self.normalizedPoint + { re := 0, im := 1 } ∨ y = self.normalizedPoint - { re := 0, im := 1 } → y ∈ FootprintVertices self.normalizedRoot ∨ y ∈ FootprintVertices self.normalizedFixed