Bounded-occurrence reductions for fine-grained decision and model counting #
Connects the occurrence-splitting compiler (CNF.toThreeOccurrence, toThreeSATThree,
Papadimitriou, Proposition 9.3) with dense variable numbering
(CNF.denseRelabel), fine-grained exponential/subexponential reductions (FineGrained/Reduction),
and the depth-first counting-sparsification search (CountingSparsify.search,
OpenAI, The Exponential Time Hypothesis is False, Section 6.4 and Appendix A,
pp. 43–47).
Main definitions #
Cslib.Complexity.toThreeOccurrenceDense: split variable occurrences viaCNF.toThreeOccurrenceand renumber the resulting copies densely onto0, …, φ.vars.length - 1viaCNF.denseRelabel.Cslib.Complexity.guardOccurrenceCounter: guard a model counterf : CNF ℕ → ℕby the clause-width check∀ c ∈ ψ, c.length ≤ kand precompose withtoThreeOccurrenceDense.
Main results #
Cslib.Complexity.computableInPolyTime_toThreeOccurrenceDense,Cslib.Complexity.modelCount_toThreeOccurrenceDense,Cslib.Complexity.vars_toThreeOccurrenceDense_toFinset,Cslib.Complexity.width_toThreeOccurrenceDense,Cslib.Complexity.count_vars_toThreeOccurrenceDense_le,Cslib.Complexity.numVars_toThreeOccurrenceDense_le_mul_length:toThreeOccurrenceDenseruns in polynomial time, preservesSatisfiable,modelCount, and clause width≤ k(for2 ≤ k), and produces a dense formula onFinset.range φ.vars.length(numVars ≤ k * φ.length) in which every variable occurs at most three times.Cslib.Complexity.DecidableInExpTime.threeSAT_length_of_threeSATThree_numVars,Cslib.Complexity.DecidableInExpTime.threeSAT_length_of_threeSATThree_length: exponential-time reductions fromThreeSATin clauses toThreeSATThreein variables and in clauses, at every rateδ ≥ 0. Subexponential-time versions are not stated:ThreeSATis already decidable in subexponential time (CountingNativeEndpoint.decidableInSubexpTime_KSAT), so they would carry no information.Cslib.Complexity.SH.not_decidableInPowerExpTime_threeSATThree_numVars,Cslib.Complexity.SH.not_decidableInPowerExpTime_threeSATThree_length: under SH, no fixed power saving in the exponent for bounded-occurrence 3SAT in either size parameter.Cslib.Complexity.exists_computableInO_guardOccurrenceCounter_of_promise,Cslib.Complexity.exists_computableInO_guardOccurrenceCounter,Cslib.Complexity.CountingSparsify.exists_computableInO_search_threeOccurrence_of_promise,Cslib.Complexity.CountingSparsify.exists_computableInO_search_of_threeOccurrence_counter: a total model counterfrunning in time and spaceO(2 ^ (δ * χ.numVars) * (|encCNF χ| + 1) ^ e)(either globally or on dense width-≤ k, occurrence-≤ 3formulas) yields a clause-exponential leaf counter in time and spaceO(2 ^ ((k * δ) * ψ.length) * (|encCNF ψ| + 1) ^ E), and hence (underCountingTreeBound, a library adaptation of Appendix A.2–A.3) a general width-≤ kmodel counter viaCountingSparsify.searchin time and spaceO(2 ^ ((1 / B + occBound K M * (k * δ)) * φ.numVars) * (|encCNF φ| + 1) ^ E').Cslib.Complexity.exists_computableInO_guardOccurrenceCounter_polySpace_of_promise,CountingSparsify.exists_computableInO_search_threeOccurrence_polySpace_of_promise: the same guard, compiler, and search with separate leaf time and polynomial workspace promises, yielding a total machine with the same time envelope and independent polynomial workspace in the full input encoding. Parameters are fixed; no leaf counter or runtime parameter uniformity is supplied by these transfer results.
References #
- C. H. Papadimitriou, Computational Complexity, Proposition 9.3
- R. Impagliazzo, R. Paturi, F. Zane, Which problems have strongly exponential complexity?
- OpenAI, The Exponential Time Hypothesis is False, Section 2 (pp. 7–14), Section 6.4 (pp. 43–44), and Appendix A (pp. 44–47).
1. Dense occurrence-3 compiler (toThreeOccurrenceDense) #
Split literal occurrences via CNF.toThreeOccurrence and renumber the resulting (ℕ × ℕ × ℕ)
copy variables densely onto 0, …, φ.vars.length - 1 via CNF.denseRelabel (a library adaptation
combining Papadimitriou, Proposition 9.3 with first-occurrence dense variable
numbering).
toThreeOccurrenceDense preserves satisfiability.
toThreeOccurrenceDense preserves the occurring-variable model count.
The number of distinct occurring variables of toThreeOccurrenceDense φ equals the number of
literal occurrences φ.vars.length of φ.
The occurring variables of toThreeOccurrenceDense φ are Finset.range φ.vars.length.
The occurring variables of toThreeOccurrenceDense φ are Finset.range of its own
numVars.
The declared-variable model count of toThreeOccurrenceDense φ on
Finset.range (toThreeOccurrenceDense φ).numVars equals φ.modelCount.
toThreeOccurrenceDense φ has φ.length + φ.vars.length clauses.
toThreeOccurrenceDense φ has 3 * φ.vars.length total literal occurrences.
For 2 ≤ k, toThreeOccurrenceDense preserves clause width ≤ k.
Every variable occurs at most three times in toThreeOccurrenceDense φ.
On a formula φ of clause width at most k, toThreeOccurrenceDense φ has at most
k * φ.length distinct variables.
On a formula φ of clause width at most k, toThreeOccurrenceDense φ has at most
(k + 1) * φ.length clauses.
toThreeOccurrenceDense is computable in polynomial time under encCNF.
2. Fine-grained ThreeSATThree reductions #
For every φ : CNF ℕ, toThreeSATThree φ has at most 3 * φ.length distinct variables.
For every φ : CNF ℕ, toThreeSATThree φ has at most 4 * φ.length + 1 clauses.
Exponential-time reduction from ThreeSAT (KSAT 3) in clauses to ThreeSATThree in
variables. Deciding ThreeSATThree in time O(2 ^ (δ * numVars) * poly) decides ThreeSAT in
time O(2 ^ ((3 * δ) * length) * poly).
Exponential-time reduction from ThreeSAT (KSAT 3) in clauses to ThreeSATThree in
clauses. Deciding ThreeSATThree in time O(2 ^ (δ * length) * poly) decides ThreeSAT in
time O(2 ^ ((4 * δ) * length) * poly).
Lower bounds under the Satisfiability Hypothesis #
Under SH, deciding width-three SAT with at most three literal occurrences per variable admits no fixed power saving in the exponent measured in the number of occurring variables.
Under SH, deciding width-three SAT with at most three literal occurrences per variable admits no fixed power saving in the exponent measured in the number of clauses.
3. Guarded leaf model-counter reduction for CountingSparsify.search #
Guard a model counter f : CNF ℕ → ℕ by the clause-width check ∀ c ∈ ψ, c.length ≤ k and
apply f to the dense 3-occurrence formula toThreeOccurrenceDense ψ.
If f computes χ.modelCount on every dense formula χ : CNF ℕ of width ≤ k (2 ≤ k) and
at most 3 occurrences per variable (∀ v, χ.vars.count v ≤ 3 and
χ.vars.toFinset = Finset.range χ.numVars), then guardOccurrenceCounter k f ψ = ψ.modelCount on
every formula ψ : CNF ℕ of width ≤ k (and 0 otherwise).
On formulas ψ of width ≤ k (2 ≤ k), guardOccurrenceCounter k f ψ = ψ.modelCount
whenever f counts dense width-≤ k, occurrence-≤ 3 formulas.
When f counts dense width-≤ k, occurrence-≤ 3 formulas (2 ≤ k),
guardOccurrenceCounter k f ψ ≤ 2 ^ ψ.numVars for all ψ : CNF ℕ.
When f counts dense width-≤ k, occurrence-≤ 3 formulas (2 ≤ k),
0 < guardOccurrenceCounter k f ψ holds if and only if ψ ∈ KSAT k.
From variable-exponential occurrence-3 counting to clause-exponential leaf counting (promised
runtime).
If 2 ≤ k and f : CNF ℕ → ℕ has a combined time-and-space certificate
ComputableInO f encCNF encNat tf tf whose time and space tf χ satisfy
(tf χ : ℝ) ≤ c * (2 ^ (δ * χ.numVars) * (|encCNF χ| + 1) ^ e) + c on every dense formula χ of
width ≤ k and variable occurrence ≤ 3, then guardOccurrenceCounter k f has a combined
time-and-space certificate ComputableInO (guardOccurrenceCounter k f) encCNF encNat T T with
(T ψ : ℝ) ≤ C₀ * (2 ^ ((k * δ) * ψ.length) * (|encCNF ψ| + 1) ^ E) + C₀ for all ψ : CNF ℕ.
From variable-exponential occurrence-3 counting to clause-exponential leaf counting.
If f : CNF ℕ → ℕ has a combined time-and-space certificate ComputableInO f encCNF encNat tf tf
with (tf χ : ℝ) ≤ c * (2 ^ (δ * χ.numVars) * (|encCNF χ| + 1) ^ e) + c for all χ : CNF ℕ, then
guardOccurrenceCounter k f has a combined time-and-space certificate
ComputableInO (guardOccurrenceCounter k f) encCNF encNat T T with
(T ψ : ℝ) ≤ C₀ * (2 ^ ((k * δ) * ψ.length) * (|encCNF ψ| + 1) ^ E) + C₀ for all ψ : CNF ℕ.
The existing width guard and dense occurrence-3 compiler preserve independent polynomial
workspace. hf is one total machine; ht and hs need hold only on the dense width-≤ k,
occurrence-≤ 3 promise. The result is total, including the zero output on rejected widths.
The compiler output, its retained input, and the leaf output are charged by the native composition
rules. All parameters and polynomial constants are fixed before choosing the resulting machine.
Counting sparsification from a dense 3-occurrence model counter (promised runtime).
Under CountingTreeBound, given 2 ≤ k ≤ K and a total model counter f : CNF ℕ → ℕ with a
combined time-and-space certificate ComputableInO f encCNF encNat tf tf that on every dense
formula χ of width ≤ k and variable occurrence ≤ 3 computes χ.modelCount and satisfies
(tf χ : ℝ) ≤ c * (2 ^ (δ * χ.numVars) * (|encCNF χ| + 1) ^ e) + c, the search
search M K k B (guardOccurrenceCounter k f) computes φ.modelCount on every formula φ of width
≤ k and has a combined time-and-space certificate with fixed-parameter transfer bound
O(2 ^ ((1 / B + occBound K M * (k * δ)) * φ.numVars) * (|encCNF φ| + 1) ^ E).
Counting sparsification from a dense 3-occurrence model counter.
Under CountingTreeBound, given 2 ≤ k ≤ K and a total model counter f : CNF ℕ → ℕ that
computes χ.modelCount on every dense formula χ of width ≤ k and variable occurrence ≤ 3 and
has a combined time-and-space certificate ComputableInO f encCNF encNat tf tf with global bound
(tf χ : ℝ) ≤ c * (2 ^ (δ * χ.numVars) * (|encCNF χ| + 1) ^ e) + c, the search
search M K k B (guardOccurrenceCounter k f) computes φ.modelCount on every formula φ of width
≤ k and has a combined time-and-space certificate with fixed-parameter transfer bound
O(2 ^ ((1 / B + occBound K M * (k * δ)) * φ.numVars) * (|encCNF φ| + 1) ^ E).
Counting sparsification with independent polynomial workspace from one total dense
occurrence-3 counter whose correctness, time, and space guarantees are promised only on dense
width-≤ k, occurrence-≤ 3 formulas. The unchanged search returns the model count on width
≤ k inputs and zero otherwise, in the original exponential time envelope and polynomial space
in the full input encoding. M, K, k, B, and L_coeff are fixed parameters; this does not
supply a counter or establish uniformity for runtime parameter choices.