Leaves, rank, decision lists, and energy of decision trees #
The Boolean answers along a root-to-leaf path identify the reached leaf, even when different
leaves have the same label. The structural leaf count includes unreachable leaves and exceeds the
internal node count by one. A tree of depth d has at most 2 ^ d leaves; refined by
Ehrenfeucht–Haussler rank r or by right-branch energy e, it has at most
∑ j ∈ Finset.range (r + 1), d.choose j or ∑ j ∈ Finset.range (e + 1), d.choose j leaves.
Decision lists have rank at most 1, hence at most d + 1 leaves and d internal nodes.
The energy bound is attained by ordered threshold comparisons: every positive number of leaves
up to BitString.ballSize q e is realized at depth at most q and energy at most e. The
construction returns each consecutive input index at its own leaf, so none of the counted leaves
is unreachable. This is the ordered-tree step of the scalar capacity theorem, not a construction
of native weighted-threshold circuits.
Main definitions #
Cslib.DecisionTree.leafCount: the number of structural leaves.Cslib.DecisionTree.nodeCount: the number of internal query nodes.Cslib.DecisionTree.allQueries: the variables at the internal nodes.Cslib.DecisionTree.rank: the Ehrenfeucht–Haussler rank of a binary decision tree.Cslib.DecisionTree.IsDecisionList: trees in which every internal node has a leaf child.Cslib.DecisionTree.energy: the maximum number oftruebranches on a root-to-leaf path.
Main results #
Cslib.DecisionTree.eval_eq_of_path_eq: a common path gives a common output.Cslib.DecisionTree.card_image_eval_le_leafCount: a tree takes at mostleafCountvalues.Cslib.DecisionTree.card_le_two_pow_depth_of_injOn: a tree of depthdthat recovers a function injective onShas|S| ≤ 2 ^ d.Cslib.DecisionTree.leafCount_eq_nodeCount_add_one: a binary tree has one more leaf than internal nodes.Cslib.DecisionTree.leafCount_le_two_pow_depth: a tree of depthdhas at most2 ^ dleaves.Cslib.DecisionTree.queries_subset_allQueries,Cslib.DecisionTree.card_allQueries_le_nodeCount: every input's queries are among the variables at the internal nodes, of which there are at mostnodeCount.Cslib.DecisionTree.card_biUnion_allQueries_le: a family of2 ^ rtrees of depth at mostqqueries at most2 ^ (q + r)variables in all (Goldreich, Exercise 9.15).Cslib.DecisionTree.leafCount_le_sum_choose_rank: a tree of depthdand rankrhas at most∑ j ≤ r, d.choose jleaves.Cslib.DecisionTree.two_pow_rank_le_leafCount: a tree of rankrhas at least2 ^ rleaves.Cslib.DecisionTree.IsDecisionList.rank_le_one: every decision list has rank at most1.Cslib.DecisionTree.leafCount_le_sum_choose_energy: a tree of depthdand energyehas at most∑ j ≤ e, d.choose jleaves.Cslib.DecisionTree.exists_orderedComparisonTree_iff: the exact leaf capacity of ordered comparison trees, with an evaluation specification for every consecutive input index.
References #
The number of structural leaves, including any unreachable leaves.
Every decision tree has at least one structural leaf.
A decision tree of depth d has at most 2 ^ d structural leaves.
A decision tree takes at most leafCount distinct values on any finite set of inputs.
Counting lower bound for recovery: if a decision tree agrees on a finite set S of inputs
with a function F that is injective on S, then S has at most 2 ^ depth elements.
Relabelling queries preserves the structural leaf count, including unreachable leaves.
Relabelling queries preserves the path taken by an input.
The number of internal query nodes, including any unreachable subtrees.
The structural leaf count exceeds the internal node count by one.
Relabelling queries preserves the internal node count.
The variables at the internal nodes of a decision tree: every variable it queries along some branch, including unreachable branches.
The variables queried on any input are among the variables at the internal nodes.
A decision tree queries at most as many variables as it has internal nodes.
The effective length of adaptive PCP proofs
Goldreich, Exercise 9.15: an oracle machine with r coins that makes at
most q queries examines, over all its coin sequences and all answers it may receive, at most
2 ^ (q + r) locations of its oracle. On coins ρ the machine is the decision tree T ρ, of
depth at most q, over the oracle's locations; the locations it may examine are the variables at
its internal nodes.
The Ehrenfeucht–Haussler rank of a binary decision tree: leaves have rank zero, a node
with unequal child ranks has their maximum, and equal child ranks r give rank r + 1.
The left subtree has rank at most that of the node.
The right subtree has rank at most that of the node.
The rank of a node is monotone in the ranks of its subtrees.
Relabelling queries preserves the rank.
The rank of a decision tree is at most its depth.
A decision tree of rank r has at least 2 ^ r structural leaves: it embeds a complete binary
tree of height r.
A decision tree of rank at most r and depth at most d has at most
∑ j ∈ Finset.range (r + 1), d.choose j structural leaves.
A decision tree of depth d and rank r has at most
∑ j ∈ Finset.range (r + 1), d.choose j structural leaves.
A decision tree of rank at most 1 has at most depth internal nodes.
A binary decision tree is a decision list when every internal node has at least one leaf
child (leafCount = 1).
A tree with a single structural leaf has rank zero.
Every decision list has Ehrenfeucht–Haussler rank at most 1.
A decision list has at most depth + 1 structural leaves.
A decision list has at most depth internal nodes.
Relabelling queries preserves decision-list structure.
The energy of a binary decision tree: the maximum number of true (right) branches on a
root-to-leaf path.
Relabelling queries preserves the energy.
The energy of a decision tree is at most its depth.
A decision tree of energy at most e and depth at most d has at most
∑ j ∈ Finset.range (e + 1), d.choose j structural leaves.
A decision tree of depth d and energy e has at most
∑ j ∈ Finset.range (e + 1), d.choose j structural leaves.
Exact ordered query-activity capacity. A tree making scalar threshold comparisons has
exactly L leaves, depth at most q, and true-branch energy at most e, with distinct outputs
on L consecutive scalar inputs, if and only if 0 < L ≤ BitString.ballSize q e.
Query k asks whether k ≤ a + j; on input a + j, for j < L, the output is a + j.
The arbitrary offset a lets the construction recurse on adjacent intervals. The theorem includes
zero depth, zero energy, and energy budgets exceeding depth. It formalizes the ordered-tree
construction in the proof of Theorem 4.1 of [26], not the
subsequent compilation into a native weighted-threshold circuit.