Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.FastLeaves

The leaf bounds of the native recursion #

The leaf clause of the resource analysis of the native recursion of Theorem D.1 of [OAI26k] (Cslib.Complexity.CountingSimulation.FastLeaves), from the cost of a leaf with the packet shape (Cslib.Circuits.Frontier.FastContraction.exists_leafCertificate_le), the sizes of the reached calls (Cslib.Complexity.CountingSimulation.FastSizes) and three facts about the reached calls: at most twice the scale in edges and, from some size on, at most the leaf size in edges at a leaf and precision at most the fourth power of the scale. Those facts and the sizes are proved (FastContraction.Reach.edges_le_two_mul_scale, CountingSimulation.reach_facts, CountingSimulation.fastSizes), so the resource analysis of the native recursion holds (CountingSimulation.fastAnalysis_nativeMk_holds).

Every reached call is well-formed and has the packet shape (FastContraction.Reach.wf_packetShape), by FastContraction.wfChildren_nativeMk and FastContraction.packetShape_child.

Main results #

References #

theorem Cslib.Circuits.Frontier.FastContraction.Reach.wf_packetShape {T : Type} {x₀ x : Call T} (h : Reach nativeMk x₀ x) (hw : WF x₀) (hs : PacketShape x₀) :

The reached calls are well-formed and have the packet shape, from a well-formed root with the packet shape.

theorem Cslib.Circuits.Frontier.FastContraction.Reach.edges_le_two_mul_scale {T : Type} {x₀ x : Call T} (h₀s : x₀.scale = x₀.edges) (h₀b : x₀.bound + x₀.depth = x₀.edges + 1) (h : Reach nativeMk x₀ x) :

Reached calls have at most twice the scale in edges, from a root at scale its number of edges with bound plus depth one more, for every input: a child has at most twice its parent's edges (NativeChild.numEdges_nativeChild_le), and an active parent has at most the root's.

The leaf bounds of the native recursion, from the sizes of the reached calls and three facts about them on admissible guarded inputs: every reached call has at most twice its scale in edges, and for each C and D, from some size on, every reached leaf has at most the leaf size in edges and precision at most the fourth power of its scale.

The leaf bounds of the native recursion.

The resource analysis of the native recursion holds: the derivation of the root over the reached calls has polynomial height, sizes and leaf space, leaf time poly(n) 2 ^ O(s / √⌊log₂ s⌋), and, from some size on, its nodes fit in the clock.

The contraction algorithm of Theorem D.1 for admissible explicit networks: the native recursion behind a guard, with direct summation for the networks the guard rejects, in time poly(n) 2 ^ O(s / √⌊log₂ s⌋) and polynomial space.