Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.RotationMap.Tower

Polynomial-time construction of zig-zag tower tables #

The input size is unary: construction is polynomial in the number of vertices, rather than in its bit length. The invariant charges every entry of every intermediate table, including its unary neighbor, finite return label and framing. Fixed base rotations use finite case analysis.

Main results #

References #

@[reducible, inline]
noncomputable abbrev Cslib.RotationMap.TowerTable.encoding {D : Type} [Fintype D] (label : D ↪ List Bool) :

Encode complete tables, including every unary neighbor and finite return label.

Each new row uses two stored rotations and fixed finite base operations.

theorem Cslib.RotationMap.TowerTable.polytime_next {D : Type} {b : ℕ} [Fintype D] (H : RotationMap (Fin b) D) (e : Fin b ≃ (Fin 2 → D × D)) (hb : 0 < b) (label : D ↪ List Bool) :

Construct the complete next level, accounting for every row and label.

theorem Cslib.RotationMap.TowerTable.length_encoding_le {D : Type} [Fintype D] (label : D ↪ List Bool) {table : TowerTable D} (h : table.Valid) {size : ℕ} (hsize : List.length table ≤ size) :
((encoding label) table).length ≤ size * (2 * Fintype.card (D × D) * (2 * ((2 * size + 3 * Finset.univ.sup fun (d : D) => (label d).length) + 2) + 1) + 1)

Every stored word, finite table, and row delimiter contributes to the size bound.

Building the selected tower table is polynomial in the unary requested vertex count. The invariant bounds complete intermediate tables, not only their numbers of rows.