A described network over O #
The contraction recursion of [OAI26k] (§D.4, pp. 57–64) is proved correct over the valuation
ring O = ℤ_(2)[U] / (f), while the native algorithm carries networks of descriptors
(DescribedNetwork (VertexDesc T)) and computes with coefficient lists in
A_p = (ℤ / 2 ^ p)[U] / (f). This file gives the network over O that a described network stands
for.
- Lifts. A coefficient list
clifts to∑ i < e, c_i U ^ iinO(GaloisRingArith.liftO), and reducing the lift modulo2 ^ pgives the value ofcinA_p(GaloisRingArith.reduction_liftO). This is the canonical lifting of representatives of §D.4.1 (p. 58): a retained vertex is read through the lift of its entry at every later precision. Lifts of distinct lists with binary coordinates differ by a unit (GaloisRingArith.isUnit_liftO_sub); in particular the binary digits of0, …, n - 1are interpolation points whenn ≤ 2 ^ e(GaloisRingArith.pairwise_isUnit_liftO_sub_digits). - Rows first. A described network is rows-first bipartite at
r(DescribedNetwork.IsRowsFirstBipartite) when every port names an edge and every edge is a port of exactly one of the firstrvertices, once, and of exactly one of the others, once. The ends of the edges are then computed by listing the vertices at each edge (DescribedNetwork.incident,DescribedNetwork.edgeEnds), in polynomial time (DescribedNetwork.computableInPolyTime_edgeEnds). - The network (
DescribedNetwork.toNetwork). A rows-first described network and an evaluator give a Boolean tensor network onFin kvertices andFin medges with these ends, whose tensor at a vertex is the evaluator at its descriptor and the bits on its ports. It has the contraction of the described network (DescribedNetwork.contraction_toNetwork). OverO, with the lifts of the entries, its contraction reduces modulo2 ^ pto the contraction of the values inA_p(DescribedNetwork.reduction_contraction_toNetwork).
Main definitions #
Cslib.GaloisRingArith.liftO: the lift of a coefficient list toO.Cslib.Circuits.Frontier.DescribedNetwork.incident,Cslib.Circuits.Frontier.DescribedNetwork.edgeEnds: the ends of the edges.Cslib.Circuits.Frontier.DescribedNetwork.toNetwork: the network of a described network.
Main results #
Cslib.GaloisRingArith.reduction_liftO,Cslib.GaloisRingArith.mk_liftO: reducing a lift.Cslib.GaloisRingArith.isUnit_liftO_sub,Cslib.GaloisRingArith.pairwise_isUnit_liftO_sub_digits: binary lists as interpolation points.Cslib.Circuits.Frontier.DescribedNetwork.rows_le_of_isRowsFirstBipartite: row count bound.Cslib.Circuits.Frontier.DescribedNetwork.incident_eq: the vertices at an edge.Cslib.Circuits.Frontier.DescribedNetwork.contraction_toNetwork,Cslib.Circuits.Frontier.DescribedNetwork.reduction_contraction_toNetwork: the contraction.Cslib.Circuits.Frontier.DescribedNetwork.computableInPolyTime_edgeEnds: polynomial time.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.1 (pp. 57–58) and §D.4.6 (pp. 63–64).
Lifts of coefficient lists #
ℤ_(2) lies in the valuation ring O of ℚ[U] / (f).
The class of U in the valuation ring O = ℤ_(2)[U] / (f), f = monicOf fl.
The lift of a coefficient list to O: ∑ i < e, c_i U ^ i, with e = fl.length.
Reduction sends U to U.
Reducing a lift modulo 2 ^ p gives the value in A_p.
The class of a lift modulo 2 ^ p is the image of the value in A_p.
Binary lists as interpolation points #
Lifts of distinct binary lists differ by a unit. If two lists have binary coordinates
below e = fl.length and differ at one of them, their lifts to O differ by a unit: they are
digit lifts (AdjoinRoot.isUnit_integerDigitLift_sub).
Binary-digit points are interpolation points. The lists of the binary digits below
e = fl.length of 0, …, n - 1, for n ≤ 2 ^ e, have lifts to O with unit differences.
Lists of lists with one occurrence #
Rows first #
Being rows-first depends only on the ports, not on the descriptors.
The vertices at the edge j: those having j among their ports, in increasing order.
The ends of the edges: for each edge, its first and its second vertex.
A rows-first network with an edge has at most as many rows as vertices.
The two ends of an edge of a rows-first network: a row s < r and a column t ≥ r, which
are the only vertices with the edge among their ports, each once.
The vertices at an edge of a rows-first network are its row and its column.
The first vertex at an edge of a rows-first network is a vertex.
The second vertex at an edge of a rows-first network is a vertex.
The network of a described network #
The row of an edge of a rows-first network.
The column of an edge of a rows-first network.
The network of a rows-first described network, on Fin k vertices and Fin m edges: the
edge j runs from its row to its column, and the tensor of a vertex is the evaluator at its
descriptor and the bits on its ports.
The edges run from the rows.
The edges end at the columns.
A vertex has an edge among its ports exactly when it is an end of the edge.
The network has the contraction of the described network.
The network of a described network commutes with maps of the entries.
Over O, the contraction reduces to the contraction in A_p. For the network with the
lifts of the entries of the descriptors, reduction modulo 2 ^ p of its contraction is the
contraction of the described network with the values of the entries in A_p.
Polynomial time #
The vertices at an edge are polynomial-time, with the edge in unary.
The ends of the edges are polynomial-time.