The native packet evaluator #
The native packet evaluator (Cslib.Circuits.Frontier.NativePacket) computes the entries of the
packet vertices of the child networks of the contraction algorithm of [OAI26k] on
coefficient lists (§D.4.6, p. 63). This file makes it one native machine with the source's
bounds: time exp(O(L log s)) and polynomial space.
- Row terms in polynomial time. Kernel values, cross ratios, local forms, mode coefficients
and values, and the row terms are polynomial-time
(
NativePacket.kernelValueList_polyTime, …,NativePacket.rowTermList_polyTime), with the precisionp, the bit countsaandi, the number of slotsLand the number of exponentsnbin unary, and the integers in binary sign-magnitude form (Turing.MultiTapeTM.encIntBin). The2-adic valuation needs at mostsize |n|halvings (NativePacket.twoVal_polyTime). - A packet context (
NativePacket.PacketCtx) holds what the row terms and the modes need, with the number of tiles2 ^ (i + 1)in unary. Coefficient extraction for a packet (NativePacket.packetTerms) is an instance ofCoeffScheme.Termswith polynomial-time data (NativePacket.packetTerms_polyTime). - The native packet entry (
NativePacket.packetEntryNative) multiplies the value of the stack recursion by the powers of the source mode values. Its value inA_pispacketEntry(NativePacket.val_packetEntryNative_eq), and one native machine computes it (NativePacket.entryCertificate) in timeK (m + 2) ^ L Z ^ Kand spaceK Z ^ K, formtarget modes,Lrow ports andZpolynomial in the input and the reduced coefficient lists (NativePacket.entryCertificate_le). The exponents are read in unary, since the source's are below the precision. - Descriptors (
NativePacket.PacketDesc): a packet context, the ports(isRow, slot)of the vertex in its port order and the dense exponents, "its packet data, the tupleβ, the interpolation value, and the creation precision" (p. 63).NativePacket.vertexCertificatecomputes the entry at the bits on the ports, the evaluator ofCslib.Circuits.Frontier.DescribedNetworkdirect summation at coefficient lists, with the same bounds (NativePacket.vertexCertificate_le).
Main definitions #
Cslib.Circuits.Frontier.NativePacket.encPortBits: the encoding of ports with the bits on them.Cslib.Circuits.Frontier.NativePacket.PacketCtx: the context of a packet entry.Cslib.Circuits.Frontier.NativePacket.packetTerms: coefficient extraction for a packet.Cslib.Circuits.Frontier.NativePacket.packetEntryNative: the native packet entry.Cslib.Circuits.Frontier.NativePacket.entryCertificate: its native machine.Cslib.Circuits.Frontier.NativePacket.PacketDesc,Cslib.Circuits.Frontier.NativePacket.packetVertexEntry,Cslib.Circuits.Frontier.NativePacket.vertexCertificate: descriptors of packet vertices, their entries at the bits on their ports, and the native machine for them.
Main results #
Cslib.Circuits.Frontier.NativePacket.twoVal_polyTime: the2-adic valuation.Cslib.Circuits.Frontier.NativePacket.PacketCtx.mk_polyTime: construction from certified fields with the existing unary/binary packet encoding.Cslib.Circuits.Frontier.NativePacket.kernelValueList_polyTime,Cslib.Circuits.Frontier.NativePacket.crossRatioList_polyTime: kernel values and cross ratios.Cslib.Circuits.Frontier.NativePacket.rowTermList_polyTime: the row terms.Cslib.Circuits.Frontier.NativePacket.val_packetEntryNative_eq,Cslib.Circuits.Frontier.NativePacket.map_val_packetEntryNative: the native entry is the packet entry, inA_pand in every ring receiving it.Cslib.Circuits.Frontier.NativePacket.entryCertificate_le,Cslib.Circuits.Frontier.NativePacket.vertexCertificate_le: their time and space.Cslib.Circuits.Frontier.NativePacket.val_packetVertexEntry: the entry of a packet vertex is the packet entry at the ports read from its bits.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.6 (p. 63).
The 2-adic valuation by halving #
The valuation by halving is multiplicity 2 whenever the fuel exceeds the valuation.
The valuation of a nonzero natural is below its bit length.
The 2-adic valuation is polynomial-time, on binary integers, in unary.
Residues of integers #
The odd part of a binary integer.
The residue modulo 2 ^ p of a binary integer, with p in unary.
An integer as a constant coefficient list, from its residue.
The constant list of a power of two 2 ^ k, with k in unary.
The constant list of a binary natural number.
The constant list of the odd part of a binary integer.
Sums and products of lists #
Products of computed lists of coefficient lists are polynomial-time.
Sums of computed lists of coefficient lists are polynomial-time.
Kernel values and cross ratios #
The linear factor u + 2 ^ k ζ for the odd part u of a binary integer.
The odd part of C'(0) is polynomial-time, with L in unary.
The kernel unit is polynomial-time.
Kernel values are polynomial-time, with a and L in unary and t, d binary.
Cross ratios are polynomial-time.
Ports with the bits on them, such as the column ports of a packet context: each port is the pair
(slot, b) of its slot in binary and the bit b on it. The pairs are framed and concatenated in
port order, each with its slot framed.
Local forms are polynomial-time, with the column ports in binary.
Mode coefficients are polynomial-time, with the slots in binary and the exponent b in
unary.
Mode values are polynomial-time, with the exponent b in unary.
Row terms are polynomial-time, with nb in unary and the mode index in binary.
Coefficient extraction for a packet #
The context of a packet entry: the precision p and the coefficients fl of f, the
bit counts a and i, the number of slots L = 2 ^ a and of tiles tiles = 2 ^ (i + 1), the
grid point t, the number nb of exponents per tile, whether the two symbols of the packet are
the group (e₁, e₂) and whether they differ, the column ports, and ζ.
- p : ℕ
The precision.
The coefficients of
fbelow the leading one.- a : ℕ
The number of slot bits.
- L : ℕ
The number of slots,
2 ^ a. - i : ℕ
The digit of the tiles.
- tiles : ℕ
The number of tiles,
2 ^ (i + 1). - t : ℤ
The grid point.
- nb : ℕ
The number of exponents per tile.
- e₁ : Bool
Whether the first symbol is the group.
- e₂ : Bool
Whether the second symbol is the group.
- differ : Bool
Whether the two symbols differ.
The column ports: slots and bits.
The interpolation value.
Instances For
Construct a packet context from polynomial-time fields, using its existing encoding: counts are unary, the grid point is in binary sign-magnitude form, and list entries are binary.
The precision, in polynomial time.
The coefficients of f, in polynomial time.
The number of slot bits, in polynomial time.
The number of slots, in polynomial time.
The digit of the tiles, in polynomial time.
The number of tiles, in polynomial time.
The grid point, in polynomial time.
The number of exponents per tile, in polynomial time.
Whether the first symbol is the group, in polynomial time.
Whether the second symbol is the group, in polynomial time.
Whether the symbols differ, in polynomial time.
The column ports, in polynomial time.
The interpolation value, in polynomial time.
The dense indices of the modes of a packet whose tiles target the group.
Coefficient extraction for a packet: the precision, the target modes and the row terms.
The data of coefficient extraction for a packet are polynomial-time.
Coefficient extraction for a packet is correct: with tiles = 2 ^ (i + 1), the value of
the recursion in A_p is that of the coefficient extraction of packetEntryList.
Packet entries natively #
The dense indices of the modes of a packet whose tiles have the group as source.
The native packet entry is the packet entry (§D.4.6, p. 63): for a grid point t of
valuation i < a, L = 2 ^ a, tiles = 2 ^ (i + 1) and ports in slots below L, its value in
A_p is packetEntry at the reduction of ℤ_(2), the value of ζ, and the exponents of β
at the dense indices of the modes.
The native packet entry in every ring receiving A_p. Along a ring map ψ : A_p → S
with 2 nilpotent in S, the value of the native entry is packetEntry over S at any ring
map κ : ℤ_(2) → S and at the image of ζ; with child_tensor_inr_cauchyModeSplitting, it is
the entry of a packet vertex of a child network over S.
The root of coefficient extraction, with the exponents re-encoded in binary.
The source product is polynomial-time, with the exponents in unary.
The final product of the native packet evaluator is polynomial-time.
The native packet evaluator: one native machine for packetEntryNative on every
context, row ports and dense exponents (in unary). Its time is that of the stack recursion of
coefficient extraction (CoeffScheme.Terms.valueCertificate_le, exp(O(L log m)) times a
polynomial), plus polynomial time.
The value of coefficient extraction is reduced.
The source product is reduced.
The resources of the native packet evaluator. There is K such that on an input of
length n with m target modes and L row ports, if the reduced coefficient lists of its
precision are at most Rv bits long, then with Z = n + m + Rv + 2 the time is at most
K (m + 2) ^ L Z ^ K and the space at most K Z ^ K: the exp(O(L log s)) time and polynomial
space of §D.4.6 (p. 63).
Descriptors of packet vertices #
The descriptor of a packet vertex: a packet context, whose column ports are read from
the bits instead, the ports of the vertex in its port order, each (isRow, slot), and the dense
exponents of the modes of the packet.
The entry of a packet vertex at the bits on its ports: the native packet entry, with the row ports and the column ports read from the bits.
The encoding of a packet descriptor: the context, the ports in binary, and the exponents in unary.
The ports of one side are polynomial-time.
The input of the native packet evaluator from a descriptor and the bits on its ports.
The native packet evaluator on descriptors: one native machine for the entry of a packet
vertex at the bits on its ports, the ev of the direct summation of
Cslib.Circuits.Frontier.DescribedNetwork at coefficient lists (SumOps.galois).
The resources of the native packet evaluator on descriptors. There is K such that on a
descriptor and bits of total length n, with m target modes and L row ports, if the reduced
coefficient lists of its precision are at most Rv bits long, then with Z = n + m + Rv + 2 the
time is at most K (m + 2) ^ L Z ^ K and the space at most K Z ^ K.
The entry of a packet vertex is the packet entry at the row and column ports read from its bits.