Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.BinaryDigits

Recovering natural tensor contractions from binary-digit polynomials #

Replace each natural table entry by the polynomial of its binary digits. Its value at 2 is the original entry, so evaluating the polynomial contraction at 2 recovers the natural contraction. The coefficients of a local polynomial sum to at most the bit length of its entry.

If every entry has at most B bits, the polynomial contraction has degree at most (B - 1) * G.vertices.length and coefficient sum at most 2 ^ G.numEdges * B ^ G.vertices.length. Thus precision G.numEdges + G.vertices.length * B.size + 1 suffices to recover every coefficient exactly. The bounds apply to arbitrary explicit networks, including empty tables and isolated edges.

Main definitions #

Main results #

The binary digits of a table entry, least significant first, as natural coefficients.

@[simp]

The coefficient list has exactly the bit length of the entry.

The degree bound when every table entry has at most B bits.

A coefficient precision for a network whose entries have at most B bits.

theorem Cslib.Circuits.Frontier.ExplicitTensorNetwork.size_entry_le {table : List ℕ} {B : ℕ} (h : ∀ n ∈ table, n.size ≤ B) (bs : List Bool) :
(entry table bs).size ≤ B

A table entry satisfies any bit-length bound satisfied by every stored table value.

The degree of the binary-digit contraction is bounded by the entry bit lengths.

The coefficient sum is at most the number of edge assignments times B per vertex.

The derived precision strictly exceeds every coefficient of the polynomial contraction.

Exact natural contraction by Horner evaluation of the recovered coefficient residues.