Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.TruncatedPolynomialEntries

Direct truncated contraction with polynomial-time entries #

For a fixed polynomial-time entry procedure, direct truncated contraction costs a polynomial in the encoded input times 2 ^ m, where m is the number of edges, and polynomial space. This is the finite-size fallback for bounded-degree weighted counting.

Main results #

theorem Cslib.Circuits.Frontier.truncDirectCertificate_le_of_isPolynomial {T : Type} {encT : T ↪ List Bool} {entry : T → List Bool → List ℕ} (ce : GenericRAM.NativeCertificate (fun (q : T × List Bool) => entry q.1 q.2) (Turing.MultiTapeTM.encPair encT Turing.MultiTapeTM.encBits) (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) (hce : ce.IsPolynomial) :
∃ (K : ℕ), ∀ (P ℓ r : ℕ) (G : DescribedNetwork T), (truncDirectCertificate entry ce).time (P, ℓ, r, G) ≤ K * (((encTrunc encT) (P, ℓ, r, G)).length + 1) ^ K * 2 ^ G.numEdges ∧ (truncDirectCertificate entry ce).space (P, ℓ, r, G) ≤ K * (((encTrunc encT) (P, ℓ, r, G)).length + 1) ^ K

Direct truncated contraction with a polynomial entry procedure has only the 2 ^ m enumeration factor. The result includes its encoded output in the space bound.