The shapes of the calls of the native contraction recursion #
Structural bounds on every call reached from a root of the native recursion
(FastContraction.scheme FastContraction.nativeMk) with m edges, valid for every input, whatever
the schedule: they are what makes the calls, frames and values polynomially long.
The invariant (FastContraction.Shape). A reached call at depth d keeps the root's scale and
modulus, is well-formed, has at most 2 m edges, precision at most p₀ + 40 m² d for the root's
precision p₀, at most V₀ + m² d vertices for the root's V₀ vertices, as many rows (unless it
is the root), and every vertex descriptor is a descriptor of the root or a packet descriptor whose
fields are bounded (FastContraction.PacketBound). It passes to the native children
(FastContraction.Shape.child): a child has at most twice the edges of its parent
(NativeChild.numEdges_nativeChild_le), its precision p_t = p + 8 h 2 ^ (a - i) + 8 M (a + 1) is
at most p + 40 m² since 2 ^ a ≤ m, and it adds at most M (2 ^ a) ^ 12 ≤ m² packet vertices
(NativeChild.numPackets_nativeParentPacking_le).
Root descriptors keep their number of ports along the recursion
(FastContraction.Reach.exists_root_of_inl), since the native child renumbers the ports of the
vertices it keeps (NativeChild.exists_mem_of_mem_nativeChild_inl).
Main definitions #
Cslib.Circuits.Frontier.FastContraction.PacketBound: the bounded packet descriptors.Cslib.Circuits.Frontier.FastContraction.Shape: the invariant.
Main results #
Cslib.Circuits.Frontier.FastContraction.Shape.child: the invariant passes to the native children.Cslib.Circuits.Frontier.FastContraction.Reach.shape: every reached call satisfies it.Cslib.Circuits.Frontier.FastContraction.Reach.exists_root_of_inl: root descriptors keep their number of ports.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.6–§D.4.7 (pp. 63–64).
A bounded packet descriptor for a root with modulus fl and m edges, at precision at most
P, on a vertex with k ports: its precision is at most P and is its number of exponents per
tile, its modulus is fl, it has 2 ^ a slots with a ≤ ⌊log₂ m⌋, 2 ^ (i + 1) tiles with
i ≤ a, a grid point of size at most 2 ^ a, no column list, a 0/1 interpolation value with at
most e coordinates, k tags with slots below 2 ^ a, and at most 2 ^ (i + 1) p exponents, each
at most p.
The shape of a call reached from a root x₀ with m edges, precision p₀ and V₀
vertices, at depth d.
The scale is the root's.
The modulus is the root's.
- wf : WF x
The call is well-formed.
The bound plus the depth does not exceed the root's.
At most twice the root's number of edges.
The precision grows by at most
40 m²per level.The vertices grow by at most
m²per level.The rows are the root's or at most the vertices of a parent.
- desc (v : List ℕ × VertexDesc T) : v ∈ x.net.vertices → (∃ w ∈ x₀.net.vertices, v.2 = w.2) ∨ ∃ (d : NativePacket.PacketDesc), v.2 = Sum.inr d ∧ PacketBound x₀.fl x₀.edges (x₀.prec + x.depth * (40 * x₀.edges ^ 2)) v.1.length d
Every descriptor is a descriptor of the root or a bounded packet descriptor.
The level of a node index is at most a, and its node has size at most 2 ^ a.
A packet descriptor built from a packet context with bounded fields is bounded.
The shape passes to the native children of an active call, from a root x₀ at scale m
equal to its number of edges, with bound plus depth m + 1.
Every reached call has the shape of a root x₀ that is well-formed, at scale its number of
edges, with bound plus depth m + 1.
Root descriptors keep their number of ports along the recursion: every root descriptor of a call reached by the native child builder is the descriptor of a vertex of the root with as many ports.