Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.FastContractionStep

The step of the native contraction recursion #

The child builder of the recursion of Cslib.Circuits.Frontier.FastContraction.scheme is the native child (FastContraction.nativeMk: NativeChild.childRows and NativeChild.nativeChild at the cursor state, with the rows and the exponents capped so that it is polynomial-time on every state), and a call is well-formed (FastContraction.WF) when its modulus is irreducible modulo 2 and its network is rows-first. The step of an active call is then correct (FastContraction.stepCorrect_nativeMk): its interpolation points, the binary digits of 0, …, n - 1, have lifts with unit differences (FastContraction.pairwise_isUnit_points), and the values the call stores are the sums of (D.16) at each node (FastContraction.val_table_runLoop), which is the hypothesis of the correctness of one native call (NativeCall.val_recover_eq_contraction, [OAI26k], §D.4.4–§D.4.7).

Main definitions #

Main results #

References #

The native child builder: at the cursor state (j, i, β, g), the rows and the native child of group g at the j-th node, the i-th point and the exponents β. The rows are capped at the number of vertices (FastContraction.rowCap) and the exponents at the node's precision p_j. On a well-formed active call and the cursor's states neither cap changes anything (FastContraction.nativeMk_eq); on every call and state they keep the builder polynomial-time, since the number of rows and the exponents are stored in binary but the child lists one word per row and stores the exponents in unary.

A well-formed call: its modulus is irreducible modulo 2 and its network is rows-first.

theorem Cslib.Circuits.Frontier.FastContraction.map_min_of_mem_budgetTuples {ws : List ℕ} (hw : ∀ w ∈ ws, 0 < w) {p : ℕ} {β : List ℕ} (hβ : β ∈ BudgetTuples.budgetTuples ws p) :
List.map (fun (x : ℕ) => min x p) β = β

The cap of nativeMk leaves a tuple of weight below p unchanged, for positive weights.

The children of an active call are the states of a node, a point, a tuple of weight below the node's precision and a group.

theorem Cslib.Circuits.Frontier.FastContraction.nativeMk_eq {T : Type} {x : Call T} (hx : WF x) (ha : active x = true) {c : ChildCursor.State} (hc : c ∈ children x) :
nativeMk x c = (NativeChild.childRows x.rows (level x ((nodes x).getD c.1 0)) x.net (NativeChild.nativeParentPacking x.rows (slots x) x.net) c.2.2.2, NativeChild.nativeChild x.fl (slots x) (level x ((nodes x).getD c.1 0)) (nodePrec x c.1) (NativeRecovery.node (slots x) ((nodes x).getD c.1 0)) ((points x).getD c.2.1 []) x.rows x.net (NativeChild.nativeParentPacking x.rows (slots x) x.net) c.2.2.1 c.2.2.2)

The caps of nativeMk are inactive at a well-formed active call and a state of its cursor: the builder is the native child of the rows and the exponents of the state.

theorem Cslib.Circuits.Frontier.FastContraction.level_eq {T : Type} {x : Call T} {k : ℕ} (hk : k < 2 ^ (slots x + 1)) :

The level of a node index is the 2-adic valuation of its node.

theorem Cslib.Circuits.Frontier.FastContraction.sum_taperMult_le (a u h : ℕ) :
∑ t ∈ recoveryNodes a, taperMult u h t ≤ 2 ^ (a + 1) * (h * u)

The tapered multiplicities sum to at most 2 ^ (a + 1) h u.

The interpolation points of an active call have lifts with unit differences: they are the binary digits of 0, …, n - 1 with n ≤ 2 ^ e (GaloisRingArith.pairwise_isUnit_liftO_sub_digits).

The step of an active call is correct, for the native child builder and well-formed calls.

The nodes of positive multiplicity, as grid indices.

A child of the cursor lies at a node, a point and a group in range.

Well-formedness passes to the native children: they keep the modulus, and they are rows-first (NativeChild.isRowsFirstBipartite_nativeChild).