Multi-output MCSP is in NP #
Multi-output MCSP [IlangoLoffOliveira2020, Definition 1, p. 22:3] is in NP for the encoding
Cslib.MultiMCSP.encInstance, which writes n, m and s in unary and then the m · 2^n table
bits. A certificate is a De Morgan circuit with at most s gates in the format of
Cslib.Circuits.Boolean.readCertificate, followed by m fields of n + s bits, the output wire of
each component in unary (Cslib.MultiMCSP.multiCertificate). The verifier checks that the gates
form a circuit, that every output wire exists, and that output i agrees with component i on all
2 ^ n inputs. Since s is unary, certificates need no cap and are polynomially long.
Cslib.MultiMCSP.mem_NP is the statement over the constant-free basis of
Cslib.Boolean.DeMorgan, Definition 1 exactly; its verifier also rejects constant gates.
Cslib.MultiMCSP.mem_NP_boolean is the library variant over Boolean.interpretation.
Main definitions #
Cslib.MultiMCSP.testArity: the number of inputs the verifier enumerates.Cslib.MultiMCSP.readOutputs,Cslib.MultiMCSP.accepts: the output wires read from a certificate, and the check of a gate list and output wires against the table bits.Cslib.MultiMCSP.booleanVerifier,Cslib.MultiMCSP.verifier: the verifiers over the basis with constants and over the constant-free basis.Cslib.MultiMCSP.multiCertificate: the certificate of a circuit.
Main results #
Cslib.MultiMCSP.exists_circuit_of_booleanVerifier,Cslib.MultiMCSP.booleanVerifier_multiCertificate_append: soundness and completeness of the verifier over the basis with constants.Cslib.MultiMCSP.exists_circuit_of_verifier,Cslib.MultiMCSP.verifier_multiCertificate_append: soundness and completeness over the constant-free basis.Cslib.MultiMCSP.mem_NP: Multi-output MCSP over the constant-free basis is inNP.Cslib.MultiMCSP.mem_NP_boolean: the library variant overBoolean.interpretationis inNP.
References #
The verifier #
The number of inputs on which the verifier compares outputs with the table: n when there is a
component, 0 when there is none. With no component there is nothing to compare, and the guard
keeps the enumeration of 2 ^ n inputs polynomial in the encoding, which then has no table bits.
Whether the gates gates and output wires outs describe a circuit on n inputs whose output
i agrees with row i of bits on all inputs; the rows have 2 ^ n bits, in the order of
MCSP.truthTable.
The verifier over cslib's basis with constants: the certificate must describe at most
threshold gates and one output wire per component (readOutputs) that agree with the table.
Whether an operation of cslib's basis is not a constant.
The verifier over the constant-free basis [IlangoLoffOliveira2020, Definition 1]:
booleanVerifier, and no gate is a constant.
Rows of the table #
Soundness #
Soundness over the basis with constants. An accepted certificate describes a circuit with
at most threshold gates that computes the function of the instance, and its gate list is the one
read from the certificate.
Completeness #
The certificate of a circuit with at most s gates and m outputs: its single-output
certificate (Circuits.Boolean.certificate, with output field 0), then the output wire of each
component in a field of n + s bits.
The certificate of a circuit with at most s gates has length certLength n s + m (n + s).
Completeness over the basis with constants. A circuit with at most threshold gates that
computes the function of the instance has a certificate of length
certLength n s + m (n + s), accepted whatever bits follow it.
The constant-free basis #
Completeness over the constant-free basis. A constant-free circuit with at most threshold
gates that computes the function of the instance has a certificate, accepted whatever bits follow
it: that of its image in cslib's basis.
Certificates are polynomially long #
The polynomial bounding the length of certificates.
Polynomial time #
The verifier over the basis with constants is polynomial-time.
The verifier over the constant-free basis is polynomial-time.
Membership in NP #
booleanVerifier verifies the library variant over Boolean.interpretation, with
certificates of length certPolynomial.
verifier verifies Multi-output MCSP over the constant-free basis, with certificates of length
certPolynomial.
Multi-output MCSP is in NP [IlangoLoffOliveira2020, Definition 1]: over the constant-free
basis of fan-in-two AND and OR and NOT, for the encoding encInstance.
The library variant over cslib's basis with constants is in NP.