Numbering the vertices and edges of a child network #
A child network of the contraction recursion (TensorNetwork.ModeSplitting.child, §D.4.6 of
[OAI26k], p. 63) has as vertices the vertices of a group g, then one vertex per packet,
and as edges the row ports of group g, then the column ports of group g. A row port e joins
the row src e to the packet of e; a column port joins the column tgt e to it. A machine
numbers them (childVertexEquiv, childEdgeEquiv):
- the vertex
vof groupgby its position among the vertices of groupg(rank), and the packetqby the number of vertices of groupgplusq; - the row ports of group
gin edge order, then the column ports in edge order.
childEdgeList computes the ends of the numbered child edges from the list of groups of the
vertices and the edges with their packets, and childEdgeList_eq proves that it lists the
numbered ends of childSrc and childTgt. childPorts computes the ports of each numbered child
vertex, and childPorts_eq proves that they are the ports TensorNetwork.explicitPorts of the
written-out child. For a mode splitting S on Fin vertices, edges and packets, the ends of the
edges of S.child β g are by definition childSrc and childTgt for S.group and S.packet.
So a native child carries exactly the edge structure of the child network, and its contraction
transports along the numberings by reindexing.
The groups and packets come from the native packing (Cslib.PacketPacking.nativePacking); the
tensors of the child vertices are not treated here.
Main definitions #
Cslib.Circuits.Frontier.ChildNumbering.rank,Cslib.Circuits.Frontier.ChildNumbering.rankEquiv: the position of an element among those with a property, as a numbering.Cslib.Circuits.Frontier.ChildNumbering.childSrc,Cslib.Circuits.Frontier.ChildNumbering.childTgt: the ends of the child edges.Cslib.Circuits.Frontier.ChildNumbering.childVertexEquiv,Cslib.Circuits.Frontier.ChildNumbering.childEdgeEquiv: the numberings.Cslib.Circuits.Frontier.ChildNumbering.childEdgeList,Cslib.Circuits.Frontier.ChildNumbering.childPorts: the native child edges and ports.
Main results #
Cslib.Circuits.Frontier.ChildNumbering.childEdgeList_eq: the native child edges.Cslib.Circuits.Frontier.ChildNumbering.childPorts_eq: the native ports of the child vertices.Cslib.Circuits.Frontier.ChildNumbering.computableInPolyTime_childEdgeList,Cslib.Circuits.Frontier.ChildNumbering.computableInPolyTime_childPorts: both in polynomial time, with the vertex numbers in binary.
References #
- OpenAI, The Exponential Time Hypothesis is False, Appendix D.4.6, p. 63.
Positions #
The elements with the property p, in increasing order.
The position of v among the elements with the property p: the number of earlier ones.
The child's numbering #
The child end of a child edge: the row of a row port, or the column of a column port.
The native child #
The ends of the numbered child edges, from the groups of the vertices, the group g, the
(row, column) edges and their packets: the row ports of group g, then its column ports, each
from the position of its vertex among the vertices of group g to the number of such vertices
plus its packet.
Counting a group among the groups of all vertices gives the number of its vertices.
The native child edges are the numbered ends of the child edges.
The native ports are the ports of the written-out network: for the list of the numbered
ends of the edges, the native ports of the vertex numbered ev v are the ports
TensorNetwork.explicitPorts of v.
Polynomial time #
The inputs ((groups, g), (edges, packets)) of childEdgeList, in binary.
The encoding of ChildInput.
The native child edges are polynomial-time.
The native ports are polynomial-time.