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:
- the derivation of the root over the reached calls (
FastContraction.reachInv), with at mostm + 1stack levels for every input (FastContraction.exists_eval_reachInv), and, from some size on, with at most2 ^ ((245760 C' + 37) m / √⌊log₂ m⌋)nodes forC' = ⌊p / m⌋ + 1(FastContraction.exists_eval_onSchedule), which fit in the clock (CountingSimulation.two_mul_sub_one_le_fuel). The clock's fixed constant serves every precision because the call count's exponent is linear inC'; - the sizes (
CountingSimulation.fastSizes): for some constantscandd, the reached calls, their frames and their values are at mostc (n + 1) ^ dlong on guarded admissible inputs of lengthn. The proof takesc = 2 ^ 55andd = 24, from the structural shapes of the calls (FastContraction.Reach.shape) and the encoded lengths ofFastContraction.Shape.length_le_pow.
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 #
Cslib.Complexity.CountingSimulation.FastSizes: polynomial sizes along the recursion.Cslib.Complexity.CountingSimulation.FastLeaves: the leaf bounds, the remaining obligation.
Main results #
Cslib.Complexity.CountingSimulation.two_mul_sub_one_le_fuel: the call count fits in the clock.Cslib.Complexity.CountingSimulation.onSchedule_root_capPrecision: guarded roots are on the schedule.Cslib.Complexity.CountingSimulation.fastAnalysis_nativeMk_of: the resource analysis from the sizes and the leaf bounds.Cslib.Complexity.CountingSimulation.fastSizes: the sizes.Cslib.Complexity.CountingSimulation.fastAnalysis_nativeMk: the resource analysis from the leaf bounds.Cslib.Complexity.CountingSimulation.reach_facts: the facts at the reached calls that the leaf bounds use.
References #
- OpenAI, The Exponential Time Hypothesis is False, Theorem D.1 (p. 53) and Appendix D.4.7 (p. 64).
The clock #
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⌋.
The schedule's certificate for every constant up to D + 1, from some size on.
The root #
Guarded roots are on the schedule, for every constant C ≥ 1 with precision at most
C m.
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.
The encoded network is at most the encoded input long.
The vertices of an explicit network, encoded, are at most the encoded network long.
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.