Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.FastAnalysis

The resource analysis of the native recursion: the recursion tree and the sizes #

The resource analysis CountingSimulation.FastAnalysis of the native recursion (FastContraction.nativeMk) of Theorem D.1 of [OAI26k] (Appendix D.4.7, p. 64), reduced to the leaf bounds (CountingSimulation.fastAnalysis_nativeMk): direct summation at a reached leaf takes time poly(n) 2 ^ O(s / √⌊log₂ s⌋) and polynomial space (CountingSimulation.FastLeaves).

The rest of the analysis is proved here:

CountingSimulation.reach_facts collects what the leaf bounds may use about a reached call: its scale m with s ≤ m ≤ C s, at most 2 m edges, and, from some size on, precision at most m ^ 4 and at most leafSize m edges at a leaf.

Main definitions #

Main results #

References #

The clock #

theorem Cslib.Complexity.CountingSimulation.two_mul_sub_one_le_fuel {m p N D : ℕ} (hm : D + 2 ≤ m) (hp : p ≤ D * m) (hN : N ≤ 2 ^ ((245760 * (p / m + 1) + 37) * m / (Nat.log 2 m).sqrt)) :

The call count fits in the clock. For a root with m ≥ D + 2 edges and precision p ≤ D m, a derivation with at most 2 ^ ((245760 C' + 37) m / √⌊log₂ m⌋) nodes, C' = ⌊p / m⌋ + 1, has 2 N - 1 at most the clock 2 ^ (K₀ (m + p) / √⌊log₂ (m + p)⌋): the exponent is at most 245797 (m + p) / √⌊log₂ m⌋, and ⌊log₂ (m + p)⌋ ≤ 3 ⌊log₂ m⌋.

theorem Cslib.Complexity.CountingSimulation.exists_activeBounds_le (D : ℕ) :
∃ (s₀ : ℕ), ∀ (s : ℕ), s₀ ≤ s → ∀ C ≤ D + 1, ∀ (d M p : ℕ), Circuits.Frontier.ContractionSchedule.Active C s d M p → Circuits.Frontier.ContractionSchedule.ActiveBounds C s d M p

The schedule's certificate for every constant up to D + 1, from some size on.

The root #

The number of edges of an explicit network is below the length of an encoded input.

The analysis from the sizes and the leaves #

Polynomial sizes along the recursion: for all constants C and D there are c and d such that on every guarded input admissible at size s ≥ 2 with constant C and with precision 1 ≤ P ≤ D s, every call reached from the root, its frames and its value are at most c (n + 1) ^ d long, for the input length n.

The leaf bounds: for all constants C and D there is K such that on every guarded input admissible at size s ≥ 2 with constant C and with precision 1 ≤ P ≤ D s, direct summation at every reached call that the machine treats as a leaf takes time at most K (n + 1) ^ K 2 ^ (K s / √⌊log₂ s⌋) and space at most K (n + 1) ^ K.

The resource analysis of the native recursion, from polynomial sizes along the recursion and the leaf bounds. The derivation of the root over the reached calls has at most m + 1 stack levels, and, from some size on, its nodes fit in the clock.

The sizes #

The modulus has at most 32 (m + 1) ^ 2 coefficients.

The coefficients of the modulus are 0 or 1.

Polynomial sizes along the recursion: FastSizes holds. For all C and D there are constants c and d such that, on the guarded admissible inputs of FastSizes, every call reached from the root, its frames and its tagged value are at most c (n + 1) ^ d long. The proof takes c = 2 ^ 55 and d = 24.

The resource analysis of the native recursion, given the leaf bounds.

Facts at the leaves #

The facts at the reached calls that the leaf bounds use. For all constants C and D there is s₀ such that on every guarded input admissible at size s ≥ 2 with constant C and with precision 1 ≤ P ≤ D s, every call reached from the root has scale m with s ≤ m ≤ C s, at most 2 m edges, and, from s₀ on, precision at most m ^ 4, and at most leafSize m edges if the machine treats it as a leaf.