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.