A contraction algorithm from a guarded fast algorithm #
The contraction interface (Cslib.Complexity.CountingSimulation.ContractionAlgorithm) quantifies
its admissibility constants C and D after the machine, so a machine cannot test them. For
explicit networks, a contraction algorithm is assembled from a fast machine that is correct and
within the interface's bounds on the inputs passing a polynomial-time guard that does not mention
C and D, and from direct summation (ExplicitTensorNetwork.directContractionBinaryCertificate)
elsewhere (ContractionAlgorithm.ofGuarded). This needs only that admissible networks have at most
C s edges and that, for each C, the admissible networks failing the guard have bounded size s:
there direct summation costs 2 ^ (C s₀) times a polynomial, a constant factor.
In the contraction theorem of [OAI26k] (Theorem D.1, with the proof of Appendix D.4), the
guard is the degree bound ⌈m ^ (9/10)⌉ in the number m of edges, and a network of degree at
most C ⌊log₂ s⌋ fails it only for s below a threshold depending on C. The recursion of
Appendix D.4 then needs to be fast only on networks passing the guard.
Main definitions #
Cslib.Complexity.CountingSimulation.encExplicitRowNetwork: encoding of a row count paired with an explicit tensor network.Cslib.Complexity.CountingSimulation.ContractionAlgorithm.ofGuarded: the assembled algorithm.
References #
- OpenAI, The Exponential Time Hypothesis is False, Theorem D.1 (p. 53).
Encoding of a row-indexed explicit tensor network (r, G): the binary row count r
(encNat), framed, followed by the unframed explicit network G (encExplicitNetwork).
A contraction algorithm from a guarded fast algorithm. Let fast compute the contraction
modulo 2 ^ P on the networks passing a polynomial-time guard, within the interface's bounds on
the admissible ones. If admissible networks have at most C s edges, and for each C the
admissible networks failing the guard have bounded size s, then branching on the guard to fast
or to direct summation is a contraction algorithm.