Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.BlockNetworks

The block-counting network families #

The explicit block-counting networks of #1833 (Turing.MultiTapePTM.explicitBlockNetwork) form a network family (Cslib.Complexity.CountingSimulation.NetworkFamily) for the accept count of every finite-state fair-coin machine, with explicit networks encoded by Cslib.Circuits.Frontier.ExplicitTensorNetwork.encExplicitNetwork and admissibility Cslib.Complexity.CountingSimulation.ExplicitAdmissible. This discharges the network interface of the counting simulation (milestone H3 of #1833), so the conditional class containments of CslibFrontier.Computability.Complexity.Classes.CountingSimulation.Containments hold assuming only a contraction algorithm. The joint time-and-space forms keep a single deciding machine within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and workspace T n ^ d, for a time-constructible T with max n 2 ≤ T n. The contraction algorithm remains an explicit hypothesis here; Cslib.Complexity.CountingSimulation.NTIME_subset_iUnion_DTIME_two_pow_div_sqrt_log_two and its siblings discharge it with the contraction algorithm of Theorem D.1.

The family. At the input x, the clock t and the schedule number σ, the network (Cslib.Complexity.CountingSimulation.blockNetworkOf) is the explicit block-counting network with blocks of blockLength t = ⌈log₂ (t + 2)⌉ steps, numBlocks t intervals and the schedule of σ's base-3 digits (Turing.MultiTapePTM.scheduleOfNat), together with its `numBlocks t (3 k

Main definitions #

Main results #

References #

@[reducible, inline]

Clock bound p.2.1 in a block-network input triple (x, t, σ).

@[reducible, inline]

Encoded schedule index p.2.2 in a block-network input triple (x, t, σ).

The block-counting network of the input x, the clock t and the schedule number σ: the explicit block-counting network with blocks of blockLength t steps, numBlocks t intervals and the schedule of σ, with its numBlocks t * (3 * k + 2) row vertices.

An interval of a clock t has at most 2 (t + 2) choice strings.

theorem Cslib.Complexity.CountingSimulation.sum_contraction_blockNetworkOf {k s : ℕ} {State : Type} (machine : Turing.MultiTapePTM k Bool State) (e : State ≃ Fin s) [Finite State] (x : List Bool) {t : ℕ} (ht : 2 ≤ t) :
∑ σ ∈ Finset.range (scheduleCount (k + 1) t), (blockNetworkOf machine e (x, t, σ)).2.contraction = machine.acceptCount x (paddedTime t)

The counting identity: summed over the schedule numbers, the contractions of the networks are the accept count at the padded time.

theorem Cslib.Complexity.CountingSimulation.explicitAdmissible_blockNetworkOf {k s : ℕ} {State : Type} (machine : Turing.MultiTapePTM k Bool State) (e : State ≃ Fin s) (x : List Bool) {t : ℕ} (σ : ℕ) (ht : 2 ≤ t) :
ExplicitAdmissible (6 * (3 * k + 1) * (s + k + 4)) t (blockNetworkOf machine e (x, t, σ))

Admissibility: from the clock t = 2 on, every network is admissible at size t with the constant 6 (3 k + 1) (s + k + 4).

The block-counting network family of a finite-state fair-coin machine, for its accept count: k + 1 blocked heads, admissibility constant 6 (3 k + 1) (s + k + 4), and the networks blockNetworkOf.

Network families for all machines (milestone H3 of #1833): the explicit block-counting networks discharge the network interface of the counting simulation.

The class containments assuming a contraction algorithm #

Exact terminal-path counting with subexponential time and polynomial workspace, conditional only on a contraction algorithm for admissible explicit networks.

The functional counting containment, assuming only the explicit-network contraction algorithm. Output is the exact natural count in binary.

Nondeterministic time with polynomial workspace, conditional only on a contraction algorithm for admissible explicit networks. For time-constructible T with max n 2 ≤ T n, one deterministic machine decides each problem in NTIME[T] within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and workspace T n ^ d.

Bounded-error probabilistic time with polynomial workspace, conditional only on a contraction algorithm for admissible explicit networks. For time-constructible T with max n 2 ≤ T n, one deterministic machine decides each problem in BPTIME[T] within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and workspace T n ^ d.

Strict-majority probabilistic time with polynomial workspace, conditional only on a contraction algorithm for admissible explicit networks. For time-constructible T with max n 2 ≤ T n, one deterministic machine decides each problem in PPTIME[T] within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and workspace T n ^ d.

NTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)], conditional only on a contraction algorithm for admissible explicit networks, for a time-constructible T with max n 2 ≤ T n.

BPTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)], conditional only on a contraction algorithm for admissible explicit networks, for a time-constructible T with max n 2 ≤ T n.

PPTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)], conditional only on a contraction algorithm for admissible explicit networks, for a time-constructible T with max n 2 ≤ T n.