Modes and the child networks of a deformed contraction #
This file proves the child identity (D.16) of [OAI26k] (§D.4.5–§D.4.6, pp. 62–63), the step of the proof of the Boolean tensor contraction theorem (Theorem D.1) that turns one deformed contraction into a sum of products of smaller contractions.
Setting. Let N be a Boolean tensor network whose edges run from rows (their sources) to
columns (their targets), and let W be a matrix indexed by the edges. The deformed contraction
(TensorNetwork.deformedContraction, the manuscript's (D.8)) is
F(W) = ∑ X Y, A(Y) B(X) ∏ e, l_{Y e}((W X) e).
A mode splitting (TensorNetwork.ModeSplitting) sorts the vertices on both sides into
groups and the edges into packets, and splits every entry of W as
W e e' = localPart e e' + ∑ Z, coeff e Z * form Z e',
where the local part only joins a row port to a column port of the same packet and group, and
each mode Z has a packet, a target group, whose row ports carry its coefficients, and a
source group, whose column ports its linear form L_Z(X) = ∑ e', form Z e' X e' reads. In the
manuscript the modes are the terms of the geometric expansion (D.12) of the crossing entries of
the Cauchy matrix; here they are arbitrary.
Mode expansion. Each affine factor l_{Y e}((W X) e) is affine in the mode values, so the
product of the affine factors of the row ports of one packet and group (a block) expands as a
polynomial in the modes targeted at that block. Its coefficient at the exponents β
(ModeSplitting.blockCoeff) sums, over the ways to pick the local term or one mode in each
factor with the multiplicities β, the product of the picked coefficients.
Children (ModeSplitting.child). For a tuple of exponents β and a group g, the child
network has the vertices of group g from both sides of N, with their tensors, and one new
vertex per packet. Its edges are the ports of group g: an edge from the row of e to the packet
of e for each row port e of group g, carrying the row bit Y e, and one from the column of
e to the packet of e for each column port of group g, carrying the column bit X e. The
tensor at a packet (ModeSplitting.packetTensor) is the coefficient at β for that packet and
group times ∏ L_Z(X) ^ β Z over the modes of that packet with source g. So children are
tensor networks on {v // group v = g} ⊕ P, bipartite with the old vertices as rows
(ModeSplitting.isBipartite_child).
The child identity (ModeSplitting.deformedContraction_eq_sum_prod_contraction_child, the
manuscript's (D.16)). If the coefficient of each mode Z is divisible by π ^ w Z with
w Z ≥ 1, and π ^ p = 0, then
F(W) = ∑ β ∈ modeBudget w p, ∏ g, Z_{g, β},
where Z_{g, β} is the contraction of the child of group g and modeBudget w p is the set of
tuples with ∑ Z, w Z * β Z < p (the manuscript's (D.14)). The manuscript works modulo 2 ^ p_t
with π = 2 and w Z = b + 1; here the ring itself has π ^ p = 0, as in A / 2 ^ p_t, and a
congruence in a larger ring follows by mapping to its quotient
(TensorNetwork.deformedContraction_map). Without truncation, the same expansion gives
F(W) = ∑ β, ∏ g, Z_{g, β} over all tuples with entries at most the number of edges, in every
commutative ring (ModeSplitting.deformedContraction_eq_sum_prod_contraction_child_of_le).
The proof is the manuscript's: distribute the product of the affine factors over the blocks, expand each block in its modes, substitute the mode values, and sum the bits of each group independently. The construction of the modes from the Cauchy kernel ((D.12)–(D.13)), the count (D.15) of the tuples, and the size bounds on the children are separate steps.
Main definitions #
TensorNetwork.affineSign: the sign of the variable part of an affine factor.TensorNetwork.ModeSplitting: groups, packets, and the splitting of a matrix into a local part and modes.TensorNetwork.modeBudget: the tuples of exponents of total weight belowp.TensorNetwork.ModeSplitting.blockCoeff: the coefficient of a mode monomial in the product of the affine factors of a block.TensorNetwork.ModeSplitting.packetTensor: the tensor at a packet vertex of a child.TensorNetwork.ModeSplitting.child: the child network of a group.
Main results #
TensorNetwork.affineFactor_add:l_b (u + w) = l_b u ± w.TensorNetwork.mem_modeBudget: membership in the budget.TensorNetwork.ModeSplitting.packetTensor_congr: a packet tensor reads only the ports of its packet and group.TensorNetwork.ModeSplitting.pow_dvd_blockCoeff: the coefficient of a mode monomial is divisible byπto its total weight.TensorNetwork.ModeSplitting.isBipartite_child,TensorNetwork.ModeSplitting.card_edges_child: children are bipartite, with one edge per port of their group.TensorNetwork.ModeSplitting.deformedContraction_eq_sum_prod_contraction_child_of_le: the exact expansion ofF(W)into children.TensorNetwork.ModeSplitting.deformedContraction_eq_sum_prod_contraction_child: the child identity (D.16).
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.5–§D.4.6, (D.14) and (D.16), pp. 62–63.
Affine factors of a sum #
The sign of the variable part of an affine factor: affineSign true = 1 and
affineSign false = -1, so that l_b (u + w) = l_b u + affineSign b * w.
An affine factor of a sum: l_b (u + w) = l_b u + affineSign b * w.
Mode splittings #
A mode splitting (§D.4.5 of [OAI26k]) of the deformed contraction of a Boolean tensor
network N along a matrix W. The rows of N (side v = true) are the sources of its edges and
the columns their targets. The vertices on both sides are sorted into groups and the edges into
packets, and every entry of W splits into a local part, which joins a row port to a column
port of the same packet and group, and a sum over the modes Z, each contributing
coeff e Z * form Z e'. A mode has a packet, a target group, the only row ports of its packet
whose forms contain it, and a source group, the only column ports of its packet that its linear
form reads.
- side : V → Bool
The side of a vertex:
truefor rows,falsefor columns. - group : V → G
The group of a vertex.
- packet : E → P
The packet of an edge.
- localPart : Matrix E E R
The local part of the matrix.
- modePacket : M → P
The packet of a mode.
- source : M → G
The source group of a mode: its form reads the column ports of this group.
- target : M → G
The target group of a mode: it occurs in the forms of the row ports of this group.
- coeff : E → M → R
The coefficient of a mode in the form of a row port.
- form : M → E → R
The linear form in the column bits that a mode stands for.
Edges start at rows.
Edges end at columns.
The splitting of the matrix.
- localPart_ne_zero (e e' : E) : self.localPart e e' ≠ 0 → self.packet e' = self.packet e ∧ self.group (N.tgt e') = self.group (N.src e)
The local part joins ports of the same packet and group.
- coeff_ne_zero (e : E) (Z : M) : self.coeff e Z ≠ 0 → self.modePacket Z = self.packet e ∧ self.target Z = self.group (N.src e)
A mode occurs only in the forms of the row ports of its packet and target group.
- form_ne_zero (Z : M) (e : E) : self.form Z e ≠ 0 → self.modePacket Z = self.packet e ∧ self.source Z = self.group (N.tgt e)
A mode reads only the column ports of its packet and source group.
The tuples of exponents β of total weight ∑ Z, w Z * β Z below p, the index set of the
manuscript's (D.14).
For positive weights, the budget holds exactly the tuples of total weight below p.
The block of a row port: its packet and the group of its row.
The block of a mode: its packet and its target group.
The source block of a mode: its packet and its source group.
The local form of a row port on the column bits X.
The value L_Z(X) = ∑ e', form Z e' X e' of a mode on the column bits X.
The terms of the expansion of the affine factor of a row port: the local term, and the coefficient of each mode.
The form of a row port splits into its local form and its modes.
The affine factor of a row port as the sum of its terms, each times the value of its mode.
Coefficients of mode monomials #
The coefficient of the mode monomial with exponents β in the product of the affine factors
of the row ports of the block k. It sums, over the ways φ to pick in each factor either its
local term or one of the modes targeted at k, each mode Z of k picked β Z times, the
product of the picked terms. It depends only on the exponents of the modes of k.
The tensor at the vertex of packet q in the child of group g: the coefficient of the mode
monomial β for the row ports of q in group g, times L_Z(X) ^ β Z for the modes of q with
source g.
A block coefficient depends only on the exponents of the modes of its block.
A packet tensor is local: it reads only the row and column ports of its packet and group.
A choice of terms with exponent β Z above the number of edges never exists, so the block
coefficient of such a mode's block vanishes.
The coefficient of a mode monomial is divisible by π to its total weight, when the
coefficient of each mode Z is divisible by π ^ w Z.
The product of the block coefficients vanishes when the total weight reaches p, if
π ^ p = 0.
The mode expansion #
Child networks #
The child network of the group g for the exponents β (§D.4.6). Its vertices are the
vertices of group g, from both sides, and one vertex per packet. For every row port e of group
g it has an edge from the row of e to the packet of e, and for every column port of group
g an edge from the column of e to the packet of e. A row keeps its tensor, reading the row
bits on its edges, and a column keeps its tensor, reading the column bits; the tensor at a packet
is packetTensor.
Children are bipartite, with the old vertices on one side and the packets on the other; every edge runs from an old vertex to a packet.
A child has one edge for each port of its group.
The exact child expansion. In every commutative ring, the deformed contraction is the sum, over the exponent tuples with entries at most the number of edges, of the products over the groups of the contractions of the children.
The child identity ((D.16) of [OAI26k]). If the coefficient of every mode Z is
divisible by π ^ w Z, with positive weights, and π ^ p = 0, then the deformed contraction is
the sum, over the exponent tuples of total weight below p, of the products over the groups of
the contractions of the children. In the manuscript, π = 2, p = p_t and the ring is
A / 2 ^ p_t.