From local weight bit lengths to the constraint network's bit budget #
A constraint network has one row tensor per constraint and equality tensors with entries zero or one. Its arity bound controls every table length. Consequently a polynomial bound on the binary length of each local weight gives a polynomial bound on the total encoded table length, with explicit constants. This supplies the bit-budget premise of native binary-weight counting.
Main results #
ClauseNetwork.size_entry_cspNetwork_le: local weight bit bounds hold throughout the network.ClauseNetwork.binaryTableBound_cspNetwork_le: local polynomial bit bounds imply the explicit total table-bit budget.
theorem Cslib.Circuits.Frontier.ClauseNetwork.size_entry_cspNetwork_le {Rel : Type u_1} {k W : ℕ} {wt : Rel → List Bool → ℕ} {F : Logic.PL.CSP Rel ℕ} (hW : 1 ≤ W) (hk : ∀ c ∈ F, c.scope.length ≤ k) (hwt : ∀ c ∈ F, ∀ (w : List Bool), w.length = c.scope.length → (wt c.rel w).size ≤ W) (v : List ℕ × List ℕ) :
Every table entry of the constraint network satisfies the local weight-bit bound, provided that the bound also covers the equality tensors' unit entries.
theorem Cslib.Circuits.Frontier.ClauseNetwork.binaryTableBound_cspNetwork_le {Rel : Type u_1} {k : ℕ} {wt : Rel → List Bool → ℕ} {F : Logic.PL.CSP Rel ℕ} (d : ℕ) (hk : ∀ c ∈ F, 1 ≤ c.scope.length ∧ c.scope.length ≤ k) (hwt : ∀ c ∈ F, ∀ (w : List Bool), w.length = c.scope.length → (wt c.rel w).size ≤ (F.vars.length + 1) ^ d) :
(cspNetwork k wt F).2.binaryTableBound ≤ (3 * 2 ^ max k 4 + 1) * ((cspNetwork k wt F).2.numEdges + 1) ^ (d + 1)
If each local weight has at most (N + 1) ^ d bits, the automatic network table-bit bound is
at most (3 * 2 ^ (max k 4) + 1) * (s + 1) ^ (d + 1), where s = 3 N is its edge count.