BandOrderedGeneralSubtileNormalizationCertificate #
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 the supplied proper presentation $q$ of a subtile-lattice pair $(C_0,C_i,T_0,T_i,h_0,h_i)$, a subtile normalization certificate records one cyclic parent rotation and one packing-symmetry word, the resulting ordered-general presentation, transformed circles, literal supports, functions, point, and slopes, and the transported subtile adjacency. It retains the transformed parent slot and quarter-turn index and the literal parent-coordinate, centroid, and two slope equations returned by transport. It contains one ordered-general layout rooted at the transformed $T_0$, a centered quarter-turn symmetry of that root, and one reindexed six-piece decomposition of its transformed odometer.
The certificate assigns each of the six decomposition pieces to one of the six central periodic occurrences and records equality of cells, conditional equality of empty anchors, equality of footprints, and equality of function domains. It also assigns the transformed fixed support to one of the twelve exterior occurrences $$ A_{-1,-1},A_{0,-1},C_{1,0},C_{1,1},E_{0,1},E_{-1,0}, B_{1,1},B_{0,1},D_{-1,0},D_{-1,-1},F_{0,-1},F_{1,0} $$ with cell and conditional empty-anchor equality. Finally it retains the transformed point in both function domains and the transported five-point footprint cover. It contains no outer-interface record and makes no choice of a decomposition piece.
- presentation_proper : ProperBandQuadruple q
- 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 = ![q 0, q self.parentRotation.succ, q (self.parentRotation + 1).succ, q (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 hᵢ
- normalized_root_odometer : TileOdometer (self.normalizedPresentation 0) self.normalizedRoot self.normalizedRootFunction
- normalized_fixed_odometer : TileOdometer (↑↑self.normalizedFixedCircle) self.normalizedFixed self.normalizedFixedFunction
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
- normalizedParentSlot : Fin 3
The parent slot after transporting the supplied subtile adjacency.
- normalizedQuarterTurn : Fin 4
The transported quarter-turn index of that subtile-adjacency witness.
- normalized_parent_coordinate : self.normalizedPresentation self.normalizedParentSlot.succ = ↑↑self.normalizedFixedCircle
- normalized_adjacency_centroid : TileCentroid self.normalizedFixed - TileCentroid self.normalizedRoot = (1 / 2) • GaussianRealPoint ({ re := 0, im := 1 } ^ ↑self.normalizedQuarterTurn * (BandVectors.1 (self.normalizedPresentation self.normalizedParentSlot.succ) (self.normalizedPresentation 0) + BandVectors.1 (self.normalizedPresentation 0) (self.normalizedPresentation self.normalizedParentSlot.succ)))
- normalized_adjacency_slope_real : self.normalizedFixedSlope.1 - self.normalizedRootSlope.1 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑self.normalizedQuarterTurn * (BandVectors.2 (self.normalizedPresentation self.normalizedParentSlot.succ) (self.normalizedPresentation 0) + BandVectors.2 (self.normalizedPresentation 0) (self.normalizedPresentation self.normalizedParentSlot.succ)))).1
- normalized_adjacency_slope_imag : self.normalizedFixedSlope.2 - self.normalizedRootSlope.2 = ((1 / 2) • GaussianRealPoint ((-{ re := 0, im := 1 }) ^ ↑self.normalizedQuarterTurn * (BandVectors.2 (self.normalizedPresentation self.normalizedParentSlot.succ) (self.normalizedPresentation 0) + BandVectors.2 (self.normalizedPresentation 0) (self.normalizedPresentation self.normalizedParentSlot.succ)))).2
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 (j : Fin 3) (e : Bool) : TileOdometer (self.normalizedPresentation j.succ) (self.pieces j e) (self.functions j e)
- piece_cell_cover (z : LatticeCell) : z ∈ self.normalizedRoot.cells ↔ ∃ (j : Fin 3) (e : Bool), z ∈ (self.pieces j e).cells
- piece_footprint (j : Fin 3) (e : Bool) : FootprintVertices (self.pieces j e) ⊆ FootprintVertices self.normalizedRoot
- piece_centroid (j : Fin 3) (e : Bool) : TileCentroid (self.pieces j e) - TileCentroid self.normalizedRoot = (if e = true then 1 else -1) • (1 / 2) • (GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ)) - (-(GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ))).2, (GaussianRealPoint (BandVectors.1 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ))).1))
- function_domain_cover (z : GaussianInt) : z ∈ self.normalizedRootFunction.domain ↔ ∃ (j : Fin 3) (e : Bool), z ∈ (self.functions j e).domain
- piece_slope (j : Fin 3) (e : Bool) : (self.normalizedPresentation j.succ).1 = 0 ∨ ∃ (p : ℝ × ℝ) (p_j : ℝ × ℝ), PartialOdometerSlope self.normalizedRootFunction = some p ∧ PartialOdometerSlope (self.functions j e) = some p_j ∧ p_j.1 - p.1 = (if e = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ)).re - ↑(BandVectors.2 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ)).im) ∧ p_j.2 - p.2 = (if e = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ)).im + ↑(BandVectors.2 (self.normalizedPresentation (j + 2).succ) (self.normalizedPresentation (j + 1).succ)).re)
- adjacency : SubtileLatticeAdjacent self.normalizedCircle self.normalizedFixedCircle self.normalizedRoot self.normalizedFixed self.normalizedRootFunction self.normalizedFixedFunction
- root_quarter_turn : QuarterTurnSymmetric self.normalizedRoot
- layout : BandOrderedGeneralLayoutCertificate self.normalizedPresentation self.configuration self.normalizedCircle self.normalizedRoot
The literal ordered-general layout rooted at the normalized decomposed root tile.
- pieceIndex : Fin 3 → Bool → PeriodicSubtileIndex
The central periodic occurrence index aligned with each signed decomposition piece.
- piece_index_central (j : Fin 3) (e : Bool) : self.pieceIndex j e = { label := SixSubtileLabel.A, first := 0, second := 0 } ∨ self.pieceIndex j e = { label := SixSubtileLabel.B, first := 0, second := 0 } ∨ self.pieceIndex j e = { label := SixSubtileLabel.C, first := 0, second := 0 } ∨ self.pieceIndex j e = { label := SixSubtileLabel.D, first := 0, second := 0 } ∨ self.pieceIndex j e = { label := SixSubtileLabel.E, first := 0, second := 0 } ∨ self.pieceIndex j e = { label := SixSubtileLabel.F, first := 0, second := 0 }
- piece_layout_footprint (j : Fin 3) (e : Bool) : FootprintVertices (self.pieces j e) = FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v (self.pieceIndex j e))
- piece_layout_domain (j : Fin 3) (e : Bool) : ↑(self.functions j e).domain = FootprintVertices (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v (self.pieceIndex j e))
- exteriorIndex : PeriodicSubtileIndex
The literal exterior occurrence aligned with the entire normalized fixed support.
- 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 }
- fixed_exterior_cells : (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex).cells = self.normalizedFixed.cells
- fixed_exterior_empty_anchor : (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex).cells = ∅ → (SubtileOccurrenceInterpretation self.layout.P self.layout.u self.layout.v self.exteriorIndex).anchor = self.normalizedFixed.anchor
- 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