Lengths of encoded lists #
The framed encoding of a list (Turing.MultiTapeTM.encList) spends 2 * |enc a| + 1 symbols on
each element a. In particular the sum of the lengths of its encoded elements is no longer than
the encoding, as is the list itself (Turing.MultiTapeTM.length_le_length_encList). Such bounds
are what a reduction needs to bound the size of its output, or a verifier the length of a
certificate, in terms of the input.
Main results #
Turing.MultiTapeTM.length_encList: the exact length.Turing.MultiTapeTM.sum_length_le_length_encList: the encoded elements are no longer, in total, than the encoded list.Turing.MultiTapeTM.length_encList_set_le: bound on the encoded length after replacing a list element.Turing.MultiTapeTM.length_unframe_add_dropFrame_le: the unframed prefix and remaining suffix of any bit list satisfy2 * (unframe v).length + (dropFrame v).length ≤ v.length.