Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.BitString.Dot

Polynomial-time inner products of bit lists #

Main results #

theorem Turing.MultiTapeTM.ComputableInPolyTime.bitsListDot {α : Type} {input : α ↪ List Bool} {left right : α → List Bool} (hleft : ComputableInPolyTime left input encBits) (hright : ComputableInPolyTime right input encBits) :
ComputableInPolyTime (fun (a : α) => Cslib.BitString.listDot (left a) (right a)) input encBool

The inner product of two computed raw words is polynomial time.