Peeling large rectangles from deterministic decomposable DAGs #
A decomposable DAG is deterministic (DecomposableDAG.IsDeterministic) when no input is accepted
by two distinct children of a union node. Over Bool with literal leaves, these are the
deterministic DNNFs (d-DNNFs) of knowledge compilation [Dar01].
In any decomposable DAG (even without smoothness), the inputs for which a node v occurs on an
accepting certificate form the rectangle of its accepted assignments and its contexts
(DecomposableDAG.occurs_eq_rectangle). When unions are disjoint
(DecomposableDAG.IsDeterministic), every accepted input has a unique accepting certificate, so
replacing v by an empty leaf (DecomposableDAG.eraseNode) removes precisely that rectangle
from the accepted set and no other inputs (DecomposableDAG.accepted_eraseNode), even when v is
shared across many branches that partition the coordinates in incompatible ways.
Peeling (DecomposableDAG.abs_signedCount_accepted_le). Let S have bias at most b ≥ 0 on
rectangles with both sides of size at least K (RectangleBias). For a smooth deterministic
decomposable DAG (DecomposableDAG.IsSmooth and DecomposableDAG.IsDeterministic), while some
occurring node v has at least K accepted assignments and at least K contexts, its occurring
inputs form such a rectangle, and deleting v peels that rectangle cleanly without increasing the
number of union edges or products. Once no such node remains, every node has a side smaller than
K, so threshold counting (DecomposableDAG.ncard_accepted_le_of_smallSides) bounds the remaining
accepted inputs by (K - 1) ^ 2 · #(union edges) + (K - 1) ^ 3 · #(products) when at least K
remain, and by K - 1 otherwise (covering the single-leaf case where unionEdges = products = 0).
Combining both phases extends Sam McGuire's branching-program peeling lemma to smooth deterministic
decomposable DAGs:
|signedCount S accepted| ≤ 2 b |accepted| + (K - 1) ^ 2 · #(union edges)
+ (K - 1) ^ 3 · #(products) + (K - 1).
These node-deletion and RectangleBias peeling theorems on DecomposableDAG are original to this
library, adapting the d-DNNF determinism condition of [Dar01] and rectangle decomposition of
[BCMS16] to Sam McGuire's peeling method in
CslibFrontier.Computability.Circuit.Frontier.AverageCase.
Main definitions #
Cslib.Circuits.DecomposableDAG.eraseNode: the DAG with a node replaced by an empty leaf.
Main results #
Cslib.Circuits.DecomposableDAG.accepted_eraseNode: underIsDeterministic, deleting a node removes exactly the inputs for which it occurs (without requiring smoothness).Cslib.Circuits.DecomposableDAG.abs_signedCount_accepted_le: McGuire peeling for smooth deterministic decomposable DAGs.Cslib.Circuits.DecomposableDAG.abs_signedCount_accepted_le_size: peeling in terms ofsize.
References #
Deleting a node #
The decomposable DAG obtained by replacing the node v₀ with an empty leaf and recomputing
acceptance bottom-up along the rank order.
Deleting a node does not increase the number of union edges.
Top-down sub-certificates #
Deleting a node preserves IsSmooth.
Deleting a node preserves IsDeterministic.
Exact rectangle deletion. In a deterministic decomposable DAG (not necessarily smooth),
replacing a node v₀ by an empty leaf removes precisely the inputs for which v₀ occurs.
McGuire peeling #
Peeling for smooth deterministic decomposable DAGs. Let S have bias at most b ≥ 0 on
rectangles with both sides of size at least K. For any smooth deterministic decomposable DAG P,
the accepted inputs in S and those outside S differ in number by at most
2 b |accepted| + (K - 1) ^ 2 · #(union edges) + (K - 1) ^ 3 · #(products) + (K - 1).
The final +(K - 1) term accounts for the base case where fewer than K accepted inputs remain
(such as a single leaf DAG with unionEdges = products = 0).
Peeling by size. Under the hypotheses of abs_signedCount_accepted_le,
|signedCount S accepted| ≤ 2 b |accepted| + (K - 1) ^ 3 · size + (K - 1).