Sparsification -- the branching tree #
A branching rule (BranchingRule) makes the procedure deterministic: it is a step on states
that represent clause sets, which at every state that is not sparse takes the heart (false) or
the petal (true) child for one valid choice. Any valid choice will do, so a rule may compute its
choice, and its states may be any representation of clause sets. The canonical rule
(chooseRule) works on clause sets themselves, with a valid choice made by chooseBranch.
The tree of a rule (BranchingRule.tree) is the binary branching whose leaves are the sparse
states; its words, node words and leaf words are those of Cslib.BinaryBranching. Each step
decreases the potential, so the tree terminates (BranchingRule.tree_terminating). Every leaf
word yields a Path with the same length and the same petal steps (exists_path_of_isLeafWord),
and every solution of the root reaches a leaf containing it (exists_isLeafWord_sat).
Main definitions #
Cslib.Logic.PL.ClauseSet.Sparsification.BranchingRule: a deterministic branching step.Cslib.Logic.PL.ClauseSet.Sparsification.chooseRule: the canonical rule on clause sets.Cslib.Logic.PL.ClauseSet.Sparsification.BranchingRule.tree: the branching tree of a rule.
Main results #
Cslib.Logic.PL.ClauseSet.Sparsification.BranchingRule.tree_terminating: the tree terminates.Cslib.Logic.PL.ClauseSet.Sparsification.BranchingRule.exists_isLeafWord_sat_iff: a state is satisfiable exactly when one of its leaves is.Cslib.Logic.PL.ClauseSet.Sparsification.BranchingRule.exists_path_of_isLeafWord: leaf words are branches.
References #
chooseBranch θ ψ yields a valid branching choice whenever ψ is not sparse.
A 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 (true) child for one valid choice.
- toClauseSet : σ → ClauseSet V
The clause set a state represents.
- next : σ → Bool → σ
The heart (
false) or petal (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) = child (self.toClauseSet s) c H b
At a state that is not sparse, both children are taken for one valid choice.
The canonical branching rule on clause sets, with the choice chooseBranch.
The branching tree of a rule: its leaves are the sparse states.
One step #
The tree #
Termination. Each branching step strictly decreases the potential.
Every clause reached along a node word is contained in a clause of the start.
Covering. Every solution of a state reaches a leaf of which it is a solution.
Solutions of a state reached along a node word are solutions of the start.
A state is satisfiable exactly when one of its leaves is.
A leaf word is a branch. From a reduced state, it yields a Path with the same length,
ending in a sparse node, whose nodes are the states along the word and whose petal steps are the
positions of true in the word.