The components of the native contraction recursion in polynomial time #
The scheme Cslib.Circuits.Frontier.FastContraction.scheme ev mk of the contraction recursion of
[OAI26k] has polynomial-time components (Cslib.Algorithms.StackRecursion.Scheme.PolyTime)
for the encodings FastContraction.encCall encT, encFrame and encValue whenever the child
builder mk is polynomial-time (FastContraction.scheme_polyTime), for every type T of root
descriptors with an encoding encT and every entry procedure ev: the leaf test does not
evaluate an entry, and the descriptors are only copied. The native child builder is
(FastContraction.nativeMk_polyTime), so the scheme of FastContraction.nativeMk has
polynomial-time components (FastContraction.scheme_nativeMk_polyTime).
Every call. The components compute the data of a call on every call and every frame, not only
on the active calls and the cursor's states. The scale s, the depth, the edge bound, the
precision and the number M of edges are in unary, so the schedule's quantities are polynomial in
the input:
a = slotBits s d ≤ ⌊log₂ s⌋ / 32768, so2 ^ a ≤ s + 1(ContractionSchedule.two_pow_slotBits_le);- the multiplicity step
h = ⌈3 M / u⌉is at most3 M + u; - every level is at most
a + 1(FastContraction.level_le), so a node has at most4 (s + 1)tiles; - the native packing has at most
M (2 ^ a) ^ 12packets (NativeChild.numPackets_nativeParentPacking_le), which bounds the mode weights and the cursor's exponent tuples.
The number of rows and the cursor's exponents are stored in binary, so the packing and the child
builder cap them, at the number of vertices (FastContraction.rowCap) and at the node's precision.
The caps change nothing on well-formed active calls (FastContraction.nativeMk_eq).
Main results #
Cslib.Circuits.Frontier.ContractionSchedule.taper_polyTime,Cslib.Circuits.Frontier.ContractionSchedule.slotBits_polyTime,Cslib.Circuits.Frontier.ContractionSchedule.taperStep_polyTime,Cslib.Circuits.Frontier.ContractionSchedule.leafSize_polyTime,Cslib.Circuits.Frontier.ContractionSchedule.degreeBound_polyTime: the schedule.Cslib.Circuits.Frontier.FastContraction.active_polyTime,nodePrec_polyTime,packets_polyTime,weights_polyTime,points_polyTime,table_polyTime: the data of a call.Cslib.Circuits.Frontier.FastContraction.scheme_polyTime: the components of the scheme, for a polynomial-time child builder.Cslib.Circuits.Frontier.FastContraction.nativeMk_polyTime,Cslib.Circuits.Frontier.FastContraction.scheme_nativeMk_polyTime: the native child builder and the components of its scheme.
References #
The schedule #
The taper is polynomial-time, in unary from the scale and the depth in unary.
The number of label coordinates is polynomial-time, in unary from the scale and the depth in unary.
The multiplicity step is polynomial-time, in unary from the scale, the depth and the number of edges in unary.
The leaf size is polynomial-time, in unary from the scale in unary.
The degree bound is polynomial-time: 2 ^ (9 ⌊log₂ s⌋ / 10 + 2) in binary from s in
unary.
The parameters of a call #
The scale is polynomial-time.
The edge bound is polynomial-time.
The precision is polynomial-time.
The coefficients of the modulus are polynomial-time.
The number of rows is polynomial-time.
The network is polynomial-time.
The number of edges is polynomial-time, in unary.
The vertices are polynomial-time.
The schedule of a call #
The number of label coordinates is polynomial-time.
The number 2 ^ a of slots is polynomial-time, in unary.
The number 2 ^ (a + 1) of grid indices is polynomial-time, in unary.
The number of levels is polynomial-time.
The multiplicity step is polynomial-time.
The number of interpolation points is polynomial-time, in unary.
The shift Δ' is polynomial-time, in unary.
The common precision N = p + Δ' is polynomial-time, in unary.
Nodes, levels and precisions #
The level of a grid index is polynomial-time, in unary.
The nodes of positive multiplicity are polynomial-time, as unary grid indices.
The grid index of the i-th node is polynomial-time, in unary.
The level of the i-th node is polynomial-time, in unary.
The number 2 ^ (v₂ t + 1) of tiles of the i-th node is polynomial-time, in unary.
The precision of the i-th node is polynomial-time, in unary.
The packing and the weights #
The capped number of rows is polynomial-time, in unary.
The packing is polynomial-time on every call.
The number of packets is polynomial-time, in unary, on every call: there are at most
M (2 ^ a) ^ 12 ≤ M (s + 1) ^ 12 of them (NativeChild.numPackets_nativeParentPacking_le).
The weights of the modes of the i-th node are polynomial-time.
The number of modes of the i-th node is polynomial-time, in unary.
Points and the table #
The binary digits are polynomial-time, from the length and the number in unary.
The interpolation points are polynomial-time.
The table of native recovery is polynomial-time, from a call and the stored values.
Active calls #
Whether a call is active, as a conjunction of tests.
Whether a call is active is polynomial-time.
The components of the scheme #
The leaf test is polynomial-time.
The initial accumulator is polynomial-time.
The child call at a cursor state is polynomial-time, given a polynomial-time builder.
Child generation is polynomial-time, given a polynomial-time builder.
Absorbing a child's value is polynomial-time.
The value of a call is polynomial-time.
The components of the scheme are polynomial-time, for a polynomial-time child builder.
The native child builder #
The native child builder is polynomial-time on every call and cursor state
(NativeChild.computableInPolyTime_nativeChild_nativeParentPacking). The rows are capped at the
number of vertices and the exponents at the node's precision, so both are polynomial in unary; the
number 2 ^ a of slots is at most s + 1 and the number 2 ^ (v₂ t + 1) of tiles at most
4 (s + 1).