Polynomial preprocessing and decoding of native algorithms #
A polynomial-time preprocessing and a polynomial-time decoder preserve a common running-time factor when the intermediate native algorithm uses polynomial space. The space hypothesis also bounds the encoded intermediate output, so the decoder does not multiply the exponential factor.
Main results #
NativeCertificate.exists_polynomial_overhead: uniform polynomial overhead for a native algorithm between two polynomial-time transformations, with an arbitrary factor at least one.
theorem Cslib.GenericRAM.NativeCertificate.exists_polynomial_overhead {α β γ δ : Type} {ei : α ↪ List Bool} {eb : β ↪ List Bool} {ec : γ ↪ List Bool} {eo : δ ↪ List Bool} {prepare : α → β} {f : β → γ} {decode : γ → δ} (c : NativeCertificate f eb ec) (hp : Turing.MultiTapeTM.ComputableInPolyTime prepare ei eb) (hd : Turing.MultiTapeTM.ComputableInPolyTime decode ec eo) (K : ℕ) :
∃ (K' : ℕ),
∀ (a : α) (X : ℕ),
1 ≤ X →
c.time (prepare a) ≤ K * ((eb (prepare a)).length + 1) ^ K * X →
c.space (prepare a) ≤ K * ((eb (prepare a)).length + 1) ^ K →
((ofPolyTime hd).comp (c.comp (ofPolyTime hp))).time a ≤ K' * ((ei a).length + 1) ^ K' * X ∧ ((ofPolyTime hd).comp (c.comp (ofPolyTime hp))).space a ≤ K' * ((ei a).length + 1) ^ K'
Polynomial-time preprocessing and decoding preserve an arbitrary time factor X ≥ 1,
provided the intermediate output is charged to polynomial space. The constant is selected before
the input and before X.