Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.List.Sublist

Polynomial-time subsequence comparison #

A left fold over the proposed supersequence consumes the head of the remaining pattern when the next elements agree. The intermediate pattern is always a suffix of the original, so its encoding cannot grow. This gives a native complexity certificate for List.isSublist.

The standard Boolean subsequence test is polynomial-time with any framed element encoding.