Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.Nat.BlockMove

Native block movement on binary indices #

The raw block permutation performs only binary comparison, addition and truncated subtraction. Its runtime depends on the encoded operands even for an index beyond the actual block lengths. This supplies the index arithmetic used by the native ordered-boundary append program.

theorem Turing.MultiTapeTM.ComputableInPolyTime.natBlockMove' {α : Type} {input : α ↪ List Bool} {before moved after index : α → ℕ} (hb : ComputableInPolyTime before input encNat) (hm : ComputableInPolyTime moved input encNat) (ha : ComputableInPolyTime after input encNat) (hi : ComputableInPolyTime index input encNat) :
ComputableInPolyTime (fun (x : α) => (before x).blockMove (moved x) (after x) (index x)) input encNat

Move computed binary blocks with the exact total raw-index fallback. No operand is converted into a unary iteration count.