Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.BinaryWeightBounds

Precision and truncation bounds for binary weights #

If the number of vertices is linear in s and local weights have a fixed polynomial number of bits, binary-digit contraction needs precision O(s log s) and a fixed polynomial truncation order. These elementary estimates keep the constants before the instance parameters.

Main results #

theorem Cslib.Circuits.Frontier.binaryWeight_size_le {B D d s : ℕ} (hB : B ≤ D * (s + 1) ^ d) :
B.size ≤ (D.size + 2 * d + 1) * (Nat.log 2 s + 1)

The binary length of a number bounded by D (s + 1)^d is at most a fixed multiple of ⌊log₂ s⌋ + 1.

theorem Cslib.Circuits.Frontier.binaryWeight_parameters_le {B C D d s v : ℕ} (hs : 1 ≤ s) (hv : v ≤ C * s) (hB : B ≤ D * (s + 1) ^ d) :
s + v * B.size + 1 ≤ (C * (D.size + 2 * d + 1) + 2) * s * (Nat.log 2 s + 1) ∧ (B - 1) * v + 1 ≤ (C * D + 1) * (s + 1) ^ (d + 1)

For at most C s vertices, a polynomial bound on local bit-length gives logarithmic-linear precision and polynomial truncation. The displayed constant depends only on C, D and d.