Evaluating packet entries on coefficient lists #
The packet tensors of the child networks of the contraction algorithm of [OAI26k] are
implicit: an entry is computed from the data of its packet (§D.4.6, p. 63). This file gives that
computation on the coefficient lists of A_p = (ℤ / 2 ^ p)[U] / (f), with the arithmetic of
Cslib.GaloisRingArith, and proves that it is TensorNetwork.packetEntry in A_p, so in every
ring that A_p maps to.
- Scalars.
ℤ_(2)reduces toA_p(NativePacket.scalarHom), and any two ring maps fromℤ_(2)to a ring in which2is nilpotent agree (padicInteger_ringHom_ext). An integer is a constant list (NativePacket.intConst). - Kernel values (
NativePacket.kernelValueList) follow Lemma D.4's evaluation (kernelValue_eq_prod, p. 60), over the grid ofL = 2 ^ aslots, withLa parameter so that it can be read in unary: the inverse of the odd part ofC'(0), times2 ^ (a + 1 - v_d) ζwhend ≠ t, times the2 ^ (a + 1) - 2linear factorsu_q + 2 ^ (a + 1 - v_q) ζ. The odd part ofC'(0)is a product of odd integers, so it is1modulo2andGaloisRingArith.invinverts it. - Cross ratios (
NativePacket.crossRatioList) invertu₀ + 2 ^ (a + 1 - v) ζ, which is1modulo2sinceu₀is odd andv ≤ i ≤ a. - Local forms, mode coefficients, mode values and row terms follow
TensorNetwork.packetLocalForm,TensorNetwork.packetModeCoeff,TensorNetwork.packetModeValueandTensorNetwork.packetRowTerm, with a mode(y₀, b)given by its dense indexb + nb y₀, its number underfinProdFinEquiv. - Coefficient extraction (
NativePacket.listCoeffList) is the recursionTensorNetwork.listCoeffon coefficient lists, along a duplicate-free list of modes.
The main result (NativePacket.val_packetEntryList) is that the value of
NativePacket.packetEntryList in A_p is TensorNetwork.packetEntry at the reduction of
ℤ_(2) and the value of ζ. Transported along a ring map ψ : A_p → S with 2 nilpotent in
S (NativePacket.map_val_packetEntryList), it is the packet entry over S at any ring map
ℤ_(2) → S; with TensorNetwork.child_tensor_inr_cauchyModeSplitting, it is the entry of a
packet vertex of a child network, for instance over B ⧸ (2 ^ p).
These are functions on lists of natural numbers with explicit recursion; their certificates of
time exp(O(L log s)) and polynomial space are separate.
Main definitions #
Cslib.Circuits.Frontier.NativePacket.scalarHom: the reductionℤ_(2) → A_p.Cslib.Circuits.Frontier.NativePacket.kernelValueList,Cslib.Circuits.Frontier.NativePacket.crossRatioList: kernel values and cross ratios.Cslib.Circuits.Frontier.NativePacket.listCoeffList: coefficient extraction.Cslib.Circuits.Frontier.NativePacket.packetEntryList: the entry of a packet vertex.
Main results #
Cslib.Circuits.Frontier.padicInteger_ringHom_ext: ring maps fromℤ_(2)are unique when2is nilpotent.Cslib.Circuits.Frontier.NativePacket.val_kernelValueList,Cslib.Circuits.Frontier.NativePacket.val_crossRatioList,Cslib.Circuits.Frontier.NativePacket.val_listCoeffList: correctness of the parts.Cslib.Circuits.Frontier.NativePacket.val_packetEntryList,Cslib.Circuits.Frontier.NativePacket.map_val_packetEntryList: packet entries.
References #
- OpenAI, The Exponential Time Hypothesis is False, Lemma D.4 and its evaluation (pp. 59–60), §D.4.1 (p. 57) and §D.4.6 (p. 63).
Scalars #
The reduction ℤ_(2) → A_p, through ℤ / 2 ^ p.
With no coordinates, A_p is the zero ring.
The value of a tabulated list.
The value of a constant list is the integer.
Inverting elements that are one modulo two #
Inversion of an element that is one modulo two: Newton's inversion needs no further hypothesis.
Odd parts #
An integer not divisible by 2 ^ (i + 1) has valuation at most i.
The 2-adic valuation, computably #
The 2-adic valuation of m, halving at most k times.
The 2-adic valuation of an integer, by repeated halving: padicValInt 2 (twoVal_eq).
The valuation by halving is padicValInt 2.
Kernel values #
The grid [-L, L) of L slots, in increasing order. The number of slots is a parameter, in
place of 2 ^ a, so that it can be read in unary.
The kernel unit: kernelUnitList is the reduction of kernelUnit a.
Kernel values on coefficient lists (Lemma D.4's evaluation, p. 60): the kernel unit,
times 2 ^ (a + 1 - v_d) ζ when d ≠ t, times the linear factors u_q + 2 ^ (a + 1 - v_q) ζ
over the grid points q ≠ d, t.
Kernel values are correct: for grid points t and d, the value is
kernelValue at the reduction of ℤ_(2) and the value of ζ.
Cross ratios #
Cross ratios are correct when 2 ^ (i + 1) ∤ t - d₀ and i ≤ a: the inverted factor is
one modulo two.
The terms of a packet entry #
The value of the mode (y₀, b) on the column ports: the sum of j ^ b over the column ports
in slots y₀ + 2 ^ (i + 1) j set to one, when the symbols of the packet differ.
The terms of the affine factor of a row port r = (x, Y_x): its local term at none, and
the coefficient of the mode (k / nb, k % nb) at some k (zero when there are no exponents,
nb = 0, so that the exponent k % nb stays below nb).
Row terms are correct, at the dense indices of the modes of the packet.
Coefficient extraction #
Coefficient extraction on coefficient lists, TensorNetwork.listCoeff along a list of
modes: the first factor contributes its local term, or one of the modes still needed.
Coefficient extraction is correct, along a duplicate-free list of modes.
Packet entries #
The entry of a packet vertex on coefficient lists (§D.4.6, p. 63): coefficient extraction
along the row terms, at the exponents β of the modes targeting the group, times the powers of
the values of the modes with the group as source. A mode (y₀, b) is its dense index
b + nb y₀ (finProdFinEquiv), so β is read at dense indices, as from a dense list of
exponents.
Packet entries are correct. For a grid point t of valuation i < a and ports in slots
below 2 ^ a, the value of packetEntryList in A_p is packetEntry at the reduction of
ℤ_(2), the value of ζ and the exponents β at the dense indices of the modes.
Packet entries in every ring receiving A_p. Along a ring map ψ : A_p → S with 2
nilpotent in S, the value of packetEntryList is packetEntry over S at any ring map
κ : ℤ_(2) → S and at the image of ζ.