Exact MAX-SAT threshold counts #
An instance declares its number of Boolean variables and lists its clauses. Its score is the number of satisfied clauses, counting repeated clauses with their multiplicity. The compiled circuit has precisely those declared inputs, so every assignment contributes exactly once. No fresh guessed bits or auxiliary-assignment multiplicities enter the threshold count.
The circuit evaluates every clause and compares their population count with the requested
cutoff. It has at most 478 * (literal occurrences + clauses + 1) gates. This bound depends on
the formula's actual occurrence count: a variable-count bound requires a density hypothesis.
Variable references outside the declared range read false. This convention makes the compiler
total; for well-formed instances all references are below the declared variable count. See
Cslib.Logic.PL.MaxSAT (CslibFrontier.Logics.Propositional.MaxSAT) for the underlying
propositional weighted partial MaxSAT definition, bridged in
CslibFrontier.Computability.Complexity.FineGrained.MaxSAT.Histogram.
Main results #
MaxSAT.eval_thresholdCircuit: the compiler accepts exactly the assignments meeting the cutoff.MaxSAT.satCount_thresholdCircuit: exact preservation of the assignment count.MaxSAT.size_thresholdCircuit_le: an explicit linear gate bound.
References #
- [OAI26k], proof of Corollary 1.2: exact MAX-SAT on sparse sampled instances via a linear-size threshold circuit. This module makes the count-preserving reduction explicit.
The declared variable count and the list of clauses.
A threshold query supplies the instance and a unary score cutoff.
Number of satisfied clauses, with the original list multiplicities.
Number of assignments satisfying at least the cutoff many clauses.
Structural formula size used in the exponent: literal occurrences plus clauses.
The score never exceeds the number of clauses.
A positive threshold count is precisely the existence of a qualifying assignment.
A declared literal needs at most one gate, including the default for invalid references.
Literal compilation respects polarity and the declared-variable convention.
A single literal costs at most one gate.
A two-input disjunction used to combine clause literals.
Evaluate one clause by a balanced disjunction of its literal circuits.
The clause compiler returns its disjunction, including false for an empty clause.
A balanced clause uses at most two gates per literal and one empty-clause fallback.
Compute all clause values on the original declared inputs.
The clause-value word has exactly the formula's score as its Hamming weight.
All clause values together have linear gate count.
The full threshold circuit, with no fresh guessed inputs.
Threshold compilation accepts exactly the assignments whose score meets the cutoff.
Exact assignment-count preservation; every declared input assignment contributes once.
All gates, including shared constants and empty-clause defaults, satisfy a linear bound.
On width-k formulas, the structural size is at most (k+1) times the clause count.