Complete rotation tables for the zig-zag tower #
Build a table one level at a time using two previous-table lookups and two fixed-base rotations.
Each row stores the neighboring vertex and return label for every fixed edge label. Arithmetic
numbering agrees with the existing mathematical tower. Resource certificates live separately
in Computability/Machines/Turing/MultiTape/Complexity/PolyTime/RotationMap/Tower.
Main definitions #
Cslib.RotationMap.TowerTable: complete rotation tables with fixed edge labels.Cslib.RotationMap.TowerTable.lookup: read a rotation from a table, defaulting out of range.Cslib.RotationMap.TowerTable.Valid: every stored neighbor is a row of the table.Cslib.RotationMap.TowerTable.initial: the table of the squared fixed base.Cslib.RotationMap.TowerTable.nextRow: a row of the next square-and-zig-zag level.Cslib.RotationMap.TowerTable.next: construct the next square-and-zig-zag level.Cslib.RotationMap.TowerTable.build: build the first level large enough for a requested size.
Main results #
Cslib.RotationMap.TowerTable.Valid.lookup_lt,Cslib.RotationMap.TowerTable.lookup_iterate_numbered: neighbor range preservation and numbered tower agreement.Cslib.RotationMap.TowerTable.valid_iterate: every stored neighbor remains in range.Cslib.RotationMap.TowerTable.lookup_build: exact agreement with the numbered tower.
References #
A complete rotation table: a row for each numbered vertex and each fixed edge label.
Read a rotation, returning vertex zero with the same label for an out-of-range row.
Every stored neighbor is a valid vertex of the table.
The fixed base, squared, gives the initial rotation table.
Construct every row of the next level from the preceding table.
The initial table has one row for each of the b base vertices.
The next level has b rows for each row of the table.
The initial table stores valid neighbors.
Lookup at a valid row returns a valid neighbor.
One complete level preserves the range of every neighbor.
A table built from a numbered base retains the original tower's exact rotation.
Reading a selected table agrees with the numbered tower, including its return label.