Length-checked verifiers #
An NP verifier V is only required by Cslib.Complexity.IsVerifier to decide membership when
given a certificate of the prescribed length p |enc a|; its behavior on shorter or longer strings
is unconstrained. Wrapping V in Cslib.Complexity.strictVerifier adds an explicit polynomial-time
check that the certificate has length p |enc a|.
Because the guarded verifier checks the length itself, an instance belongs to the problem iff some
certificate of any length is accepted (IsVerifier.exists_strictVerifier_eq_true_iff). In Fagin's
theorem the existential second-order sentence can therefore guess where the certificate ends
without evaluating the polynomial p in first-order logic.
Main definitions #
Cslib.Complexity.strictVerifier: a verifier guarded by the certificate-length checkw.length == p.eval (enc a).length.
Main results #
Cslib.Complexity.IsVerifier.strictVerifier:strictVerifierverifies the same problem with the same certificate polynomial.Cslib.Complexity.computableInPolyTime_strictVerifier:strictVerifieris computable in polynomial time whenVis.Cslib.Complexity.IsVerifier.exists_strictVerifier_eq_true_iff: with the guard, membership is acceptance of some certificate of any length.
References #
Guarding a verifier by its certificate-length check preserves IsVerifier.
Because strictVerifier checks the certificate length itself, an instance belongs to A iff
some certificate of any length is accepted.
Guarding a polynomial-time verifier by its certificate-length check preserves polynomial-time computability.