Quantifying over words through a prefix #
A predicate that looks only at the first n entries of a word of length m ≥ n holds for some
(every) such word exactly when it holds for some (every) word of length n: a short word is the
prefix of its padding (List.exists_length_eq_take_iff, List.forall_length_eq_take_iff).
Complexity-class arguments use this to pad certificate blocks to longer, uniform or easily computed
lengths and let the verifier cut them back.
Main results #
List.exists_length_eq_take_iff,List.forall_length_eq_take_iff: quantifying over words of lengthmthrough their length-nprefix quantifies over words of lengthn.