Verifying a succinct satisfying assignment by circuit unsatisfiability #
A circuit D on q inputs describes 2 ^ q clauses of three literals on 2 ^ r variables.
Its outputs are three consecutive blocks of r + 1 bits: the address of a variable, followed
by its sign. toCNF D expands those clauses into the existing CNF representation, with
variables of type BitString r. Every address has a clause, so padding addresses must describe
tautologies rather than be ignored. Repeated variables and clauses are allowed.
Given a circuit W on r inputs, badClause D W computes whether the clause addressed by its
input is false under the assignment fun y => W.eval interpretation y 0. The decoder is used
once and the witness circuit three times. The result has exactly the original q input bits
and D.size + 3 * W.size + 17 De Morgan gates, constants included. It is unsatisfiable exactly
when the truth table of W satisfies the expanded CNF.
This is the witness-verification step in the proof of [Williams2010, Theorem 3.2, p. 10 of the
author's May 4, 2010 version]. The source uses a negation bit; here a sign is the value required
by a literal, as in Literal.eval. The exact seventeen-gate overhead is a library variant of
the source's asymptotic bound. This module proves an actual circuit construction and its
semantics and gate count.
It does not assert the easy-witness lemma, efficient construction of a tableau decoder, a
machine running time, or the resulting separation of complexity classes.
Main definitions #
Cslib.Circuits.Boolean.SuccinctVerifier.addressWire,Cslib.Circuits.Boolean.SuccinctVerifier.signWire: the layout of a decoded literal.Cslib.Circuits.Boolean.SuccinctVerifier.clause,Cslib.Circuits.Boolean.SuccinctVerifier.toCNF: the represented clauses and formula.Cslib.Circuits.Boolean.SuccinctVerifier.violationTest: the fixed three-literal test.Cslib.Circuits.Boolean.SuccinctVerifier.badClause: the circuit finding a violated clause.
Main results #
Cslib.Circuits.Boolean.SuccinctVerifier.size_badClause: the exact gate count.Cslib.Circuits.Boolean.SuccinctVerifier.eval_badClause: correctness on each clause address.Cslib.Circuits.Boolean.SuccinctVerifier.not_mem_CircuitSAT_badClause_iff: correctness of verification by circuit unsatisfiability.Cslib.Circuits.Boolean.SuccinctVerifier.exists_small_witness_iff: the size-bounded correspondence between satisfying assignments and accepted witness circuits.
References #
A clause holds precisely when one of its three addressed variables has the decoded sign.
The expanded formula holds exactly when every clause address is satisfied.
On six input wires, the first three are assignment values and the last three are signs. The test returns true exactly when all three values differ from their signs.
The fixed violation test uses seventeen De Morgan gates.
Evaluate the fixed test on the three values followed by the three signs.
The bad-clause circuit. Run the decoder once, query the proposed witness circuit on each decoded variable address, and test whether all three literals are false. Its inputs are the decoder's original clause-address bits.
Pointwise correctness. The output is the negation of the addressed clause under the assignment given by the truth table of the proposed witness circuit.
Verification by unsatisfiability. The bad-clause circuit has no satisfying input exactly when the proposed witness's truth table satisfies the entire represented formula.
The size-bounded witness correspondence. There is a satisfying assignment of circuit
complexity at most s precisely when a circuit of at most s gates passes verification.
This is a finite equivalence and assumes no easy-witness theorem.