Counting sparsification -- branching rules #
A counting branching rule (CountingBranchingRule) is the counting-sparsification analogue of
BranchingRule (CslibFrontier/Logics/Propositional/ClauseSet/Sparsification/Tree.lean): a
deterministic step next : σ → Bool → σ on states σ representing clause sets via toClauseSet,
which at every state that is not sparse takes the heart (false) or petal-plus-negated-heart-units
(true) child (ClauseSet.Sparsification.countingChild) for some valid choice Choice θ. Its
tree (CountingBranchingRule.tree) is the binary branching whose leaves are the sparse states;
words, leaf words and the depth-first search are those of Cslib.BinaryBranching.
When all thresholds for j ≥ 1 are at least 2 (in particular for countingThreshold M with
M ≥ 2), every non-sparse step strictly decreases the clause-set potential
potential ψ = ∑ C ∈ ψ, 2 ^ C.card (potential_countingChild_lt from CountingTree.lean), so the
tree terminates (CountingBranchingRule.tree_terminating): removing a flower of |F| ≥ 2 clauses
of width c decreases the potential by |F| · 2 ^ c, while adding the |F| petals of width
c - |H| ≤ c - 1 and |H| ≤ c - 1 unit clauses adds at most |F| · 2 ^ (c - 1) + 2 (c - 1) < |F| · 2 ^ c. Furthermore, because reduce eliminates every clause of the flower F on both
branches, each step increases the total clause count by at most K (card_countingChild_le,
CountingBranchingRule.card_walk_le).
At the list level, Cslib.Logic.PL.CNF.Sparsification.countingRule instantiates
CountingBranchingRule on {ψ : CNF V // CountingNormalized k ψ} using countingNext θ k. The
model count is additive at its inner states, so it is the sum of the model counts of the leaves
(Cslib.Logic.PL.CNF.Sparsification.sum_leafWords_countingRule_modelCountOn).
Main definitions #
Cslib.Logic.PL.ClauseSet.Sparsification.CountingBranchingRule: a deterministic counting-sparsification branching rule.Cslib.Logic.PL.ClauseSet.Sparsification.CountingBranchingRule.tree: its branching tree.Cslib.Logic.PL.CNF.Sparsification.countingRule: the list-level counting branching rule on{ψ : CNF V // CountingNormalized k ψ}.
Main results #
Cslib.Logic.PL.ClauseSet.Sparsification.CountingBranchingRule.tree_terminating: strict potential decrease on both counting branches when∀ j, 1 ≤ j → 2 ≤ θ j.Cslib.Logic.PL.ClauseSet.Sparsification.card_countingChild_le,Cslib.Logic.PL.ClauseSet.Sparsification.CountingBranchingRule.card_walk_le: each counting step increases the number of clauses by at most the widthK.Cslib.Logic.PL.CNF.Sparsification.sum_leafWords_countingRule_modelCountOn: the sum ofmodelCountOn declaredover all leaf words equals the rootmodelCountOn declared.
References #
- OpenAI, The Exponential Time Hypothesis is False, Section 6.4, Proposition 6.4 (pp. 43–44) and Appendix A (pp. 44–47).
Clause-set properties of countingChild #
Each counting child increases the number of clauses by at most k: the flower F is removed
from ψ while at most |F| + |H| ≤ |F| + k clauses are added.
Counting branching rules #
A counting branching rule for the thresholds θ: a deterministic step next on states σ,
each representing the clause set toClauseSet s, which at every state that is not sparse takes the
heart (false) or petal + negated-heart-units (true) child countingChild for one valid choice.
- toClauseSet : σ → ClauseSet V
The clause set a state represents.
- next : σ → Bool → σ
The heart (
false) or petal + negated-heart-units (true) child of a state. - exists_choice_next (s : σ) : ¬Sparse θ (self.toClauseSet s) → ∃ (c : ℕ) (H : Finset (Literal V)), Choice θ (self.toClauseSet s) c H ∧ ∀ (b : Bool), self.toClauseSet (self.next s b) = countingChild (self.toClauseSet s) c H b
At a state that is not sparse, both children are taken for one valid choice.
The branching tree of a counting rule: its leaves are the sparse states.
Termination. When ∀ j, 1 ≤ j → 2 ≤ θ j, each counting branching step strictly decreases
the potential.
Node words preserve clause width ≤ k.
Along a node word w from a state of width ≤ k, the number of clauses increases by at most
k * w.length.
For 2 ≤ M and 1 ≤ j, 2 ≤ countingThreshold M j.
The list-level counting branching rule, on formulas in nontautological normal form
(CountingNormalized k): uses countingNext θ k.
Walking along countingRule preserves variable support containment for any word w.
List-level leaf model-count partition. If f computes CNF.modelCountOn · declared on
every leaf of s under countingRule, then the sum of f over the leaf words of s equals
s.1.modelCountOn declared.