The derivations of the native contraction recursion #
The calls that the recursion of Cslib.Circuits.Frontier.FastContraction.scheme meets from a root
(FastContraction.Reach), and derivations of the root's value over them, with their height and,
given a bound on the children of each call, their number of nodes. This is the recursion tree of
Theorem D.1 of [OAI26k] (Appendix D.4.7, p. 64), for any child builder.
The invariant (FastContraction.reachInv). The nodes of a derivation from a root x₀ are the
calls reached from x₀, its frames are the frames FastContraction.frameAt of a reached active
call along its children, and its values are the tagged values of reached calls. Every bound on
reached calls is a bound on the derivation.
The height. The children of a call receive its number of edges as their bound, and an active
call has fewer edges than its bound, so the bound plus the depth never increases along the
recursion (FastContraction.Reach.bound_add_depth_le). From a root at depth 0 with edge bound
B, every active call has depth below B - 1, and the root has a derivation with at most B
stack levels (FastContraction.exists_eval_reachInv), whatever the schedule.
The node count. If every reached active call has depth below D and at most b d children at
depth d, the derivation has at most Nat.recursionBound b D 0 nodes and D stack levels
(FastContraction.exists_eval_reachInv_count).
Main definitions #
Cslib.Circuits.Frontier.FastContraction.Reach: the calls reached from a root.Cslib.Circuits.Frontier.FastContraction.reachInv: the invariant of the derivations.
Main results #
Cslib.Circuits.Frontier.FastContraction.Reach.bound_add_depth_le: the bound plus the depth does not increase.Cslib.Circuits.Frontier.FastContraction.exists_eval_reachInv: a derivation of the root with its height.Cslib.Circuits.Frontier.FastContraction.exists_eval_reachInv_count: a derivation of the root with its node count.
References #
- OpenAI, The Exponential Time Hypothesis is False, Appendix D.4.7 (p. 64).
The calls reached from a root x₀: the root, and the children of reached active calls.
- root {T : Type} {mk : Call T → ChildCursor.State → ℕ × DescribedNetwork (VertexDesc T)} {x₀ : Call T} : Reach mk x₀ x₀
The root is reached.
- step {T : Type} {mk : Call T → ChildCursor.State → ℕ × DescribedNetwork (VertexDesc T)} {x₀ x : Call T} (c : ChildCursor.State) : Reach mk x₀ x → active x = true → c ∈ children x → Reach mk x₀ (child x mk c)
The children of a reached active call are reached.
The invariant of the derivations from a root x₀: the reached calls, the frames of reached
active calls along their children, and the tagged values of reached calls.
Reached calls keep the scale of the root.
Reached calls keep the modulus of the root.
The bound plus the depth does not increase along the recursion: a child's bound is its parent's number of edges, which is below the parent's bound at an active call.
A reached active call lies above depth B - 1, for the root's bound B plus its depth:
it has an edge and fewer edges than its bound.
Reached calls lie at or below the root's depth.
A reached call at the root's depth is the root.
A derivation of the root with its height. A root at depth 0 with edge bound B has a
derivation of its tagged value over the reached calls with at most B stack levels, for every
child builder.
A derivation of the root with its node count. If every reached active call has depth below
D and at most b d children at depth d, a root at depth 0 has a derivation of its tagged
value over the reached calls with at most Nat.recursionBound b D 0 nodes and D stack levels.