Interval and generalized prefix distribution trees for segment extraction #
Internal combinatorial tree structures representing binary interval aggregation trees
(IntervalTree) and bounded-fanout segment distribution trees (GenPrefixTree) extracted along the
principal chain of a zero-deficiency prefix circuit [Ser25a].
Main definitions #
Cslib.Circuits.Prefix.IntervalTree: binary aggregation tree partitioning[a, b)into contiguous subintervals.Cslib.Circuits.Prefix.GenPrefixTree: bounded-fanout distribution tree over interval states with output andmul-transition counters.
Main results #
Cslib.Circuits.Prefix.IntervalTree.width_le_two_pow,Cslib.Circuits.Prefix.IntervalTree.suffixOfLeftPrefix: width boundb - a ≤ 2 ^ depthand right-suffix extraction after erasing a left-anchored interval(a, s).Cslib.Circuits.Prefix.GenPrefixTree.outCount_le_two_pow: output count boundoutCount ≤ 2 ^ depthat fanout bound2when each state occurs as an output at most once.
References #
Binary aggregation tree partitioning [a, b) into contiguous subintervals.
- leaf (a : ℕ) : IntervalTree a (a + 1)
- node {a m b : ℕ} (left : IntervalTree a m) (right : IntervalTree m b) : IntervalTree a b
Every IntervalTree a b spans a nonempty interval a < b.
Depth of a binary interval aggregation tree.
Set of subintervals (p, q) represented by nodes of an IntervalTree.
An interval tree over [a, b) has span b - a ≤ 2 ^ t.depth.
Given a proper left prefix (a, s) ∈ t.intervals.erase (a, b), extracts a suffix interval tree
on [s, b) of depth at most t.depth covering all intervals starting at ≥ s.
Generalized bounded-fanout prefix distribution tree extracted from a DAG segment.
- node (state : ℕ) (hasOut : Bool) (r : ℕ) (isMul : Fin r → Bool) (child : Fin r → GenPrefixTree) : GenPrefixTree
Prefix state label at the root of a GenPrefixTree.
Root fanout budget r + (1 if hasOut else 0) of a GenPrefixTree.
Tree height of a GenPrefixTree.
Every node in the GenPrefixTree uses total fanout budget at most k.
Every node in the GenPrefixTree carries state strictly below b.
Validity of GenPrefixTree transitions against an allowed interval set iv.
Total number of output-bearing nodes in a GenPrefixTree.
Number of output-bearing nodes at state s in a GenPrefixTree.
Number of mul child transitions landing at state m in a GenPrefixTree.
A fanout-2 GenPrefixTree with at most one output per state has outCount ≤ 2 ^ depth.