Bounded normal forms from decision trees #
A decision tree of depth d has both an exact width-d DNF and an exact
width-d CNF. This module constructs the DNF structurally from accepting
paths, then obtains the CNF by De Morgan duality.
Repeated queries require care: conjoining a branch literal keeps an identical literal already present in a term, discards a contradictory term, and inserts the literal only when its coordinate is absent. Thus the construction applies to arbitrary decision trees and does not assume a read-once normal form. It is a symbolic tree traversal, not truth-table enumeration or depth optimization.
Conjoin one literal with a noncontradictory term. A conflicting repeated
literal makes the conjunction false, represented by none.
Equations
- One or more equations did not get rendered due to their size.
Instances For
conjoinLiteral has exactly the semantics of Boolean conjunction.
Conjoining one literal increases term width by at most one.
Conjoin every term of a DNF with one literal, discarding contradictory terms.
Equations
- formula.conjoinLiteral literal = { terms := List.filterMap (fun (term : Algebraic.AC0.Term n) => term.conjoinLiteral literal) formula.terms }
Instances For
Literal conjunction raises a DNF width bound by at most one.
Concatenating two DNFs preserves a common width bound.
Structural DNF expansion of a decision tree. Each accepting path becomes a term; incompatible repeated queries are discarded while matching repeats do not increase width.
Equations
- One or more equations did not get rendered due to their size.
- (Algebraic.AC0.DecisionTree.leaf false).toDNF = Algebraic.AC0.DNF.bottom
- (Algebraic.AC0.DecisionTree.leaf true).toDNF = Algebraic.AC0.DNF.top
Instances For
The structural DNF computes exactly the source decision tree.
Every term in the structural DNF has width at most the tree depth.
De Morgan-derived structural CNF expansion of a decision tree.
Instances For
The structural CNF computes exactly the source decision tree.
Every clause in the structural CNF has width at most the tree depth.
Any function of decision-tree depth at most bound has an exact
width-bound DNF representation.
Any function of decision-tree depth at most bound has an exact
width-bound CNF representation.