Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.FastContractionPolyTime

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:

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 #

References #

The schedule #

2 ^ a ≤ s + 1 for the number a = slotBits s d of label coordinates.

The parameters of a call #

The schedule of a call #

2 ^ a ≤ s + 1 at every call.

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 common precision N = p + Δ' is polynomial-time, in unary.

Nodes, levels and precisions #

Every level is at most a + 1.

The nodes of positive multiplicity are polynomial-time, as unary grid indices.

The number 2 ^ (v₂ t + 1) of tiles of the i-th node is polynomial-time, in unary.

The packing and the weights #

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).

Points and the table #

Active calls #

The components of the scheme #

The initial accumulator is polynomial-time.

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).

The components of the native contraction recursion are polynomial-time: the hypothesis hpoly of CountingSimulation.contractionAlgorithmOfNative.