The parameter schedule of the tensor contraction recursion #
This file fixes the parameters of the recursion in the proof of the Boolean tensor contraction
theorem (Theorem D.1) of [OAI26k] (§D.4.2, (D.4)–(D.6), p. 58) and proves the inequalities
its running time rests on: the conditions of the packing lemma, the precision bound (D.11)
(p. 61) and the count (D.15) of the mode tuples (pp. 62–63). Correctness of the recursion does not
depend on these choices; they bound the number of its calls by 2 ^ O(s / √⌊log₂ s⌋) (§D.4.7,
p. 64).
The schedule. Fix the size s and write λ = ⌊log₂ s⌋.
- A call with at most
H = ⌊s / ⌊√λ⌋⌋edges is a leaf (leafSize). - At depth
dthe taper isu_d = ⌊λ / 2 ^ (17 + d)⌋(taper), the manuscript's⌊ε λ / 2 ^ d⌋withε = 1 / (128 · 1024) = 2 ^ (-17). - Labels have
a_d = 2 ∑_{j ≤ d} u_jcoordinates (slotBits), packetsL = 2 ^ a_dslots, and there areD_arr = 64 ^ (2 a_d)pairs of labels (r = 64). - The degree bound is
Δ = 2 ^ (⌊9 λ / 10⌋ + 2)(degreeBound), a power of two that is at leasts ^ (9/10)(pow_nine_le_degreeBound_pow_ten) and at most2 ^ 20 s ^ 9in tenth power, and monotone ins(degreeBound_mono). - The node
tof valuationiis recovered from its children at precisionp_t = p + 8 h 2 ^ (a - i) + 8 M (a + 1)(nodePrecision), as in Lemma D.5, whereD_t = L / 2 ^ i. - Precisions stay below
precisionBound C s d, which starts atC s (⌊log₂ s⌋ + 1)and grows by8 C s (4 · 2 ^ a_d + a_d + 1)per level.
Active calls. Active C s d M p says that a call at depth d has M edges, with
16 ^ d M ≤ C s and H < M, and precision p ≤ precisionBound C s d. The root is active when
it has more than H edges, at most C s edges and precision at most
C s (⌊log₂ s⌋ + 1) (Active.root_logPrecision), and an
active call's children are active when they have more than H edges (Active.child): Lemma D.3
gives them at most M / 16 edges.
The certificate. For every C there is s₀ such that for all s ≥ s₀
(exists_activeBounds):
- precisions up to depth
λare at mosts ^ 2; - every active call satisfies
ActiveBounds: its depth is at mostλ - 2;1 ≤ u_d ≤ M; the conditions (D.6) of the packing lemma,2 Δ D_arr² ≤ M,L D_arr ≤ Mand2 L ≤ Δ, in the formCslib.PacketPacking.exists_packingtakes them;M (2 L - 1) + 1 ≤ 2 ^ (4 λ)interpolation points; and, for each nodetwithq_t > 0andh = ⌈3 M / u⌉, the precision bound (D.11)p_t u_d ≤ 34 M D_ttogether withp_t ≤ precisionBound C s (d + 1).
From (D.11), the mode count (D.15) gives at most 2 ^ e_d mode tuples with
e_d = 4 ⌊15360 C s / (⌊√λ⌋ 8 ^ d)⌋ + 4 (card_modeBudget_le, branchExponent), and the
exponents sum to O(s / √⌊log₂ s⌋) over the levels (sum_branchExponent_le). With the factor
2 ^ (2 λ) for the nodes, interpolation points and groups (ActiveBounds.branching_le), a call at
depth d has at most 2 ^ (2 λ + e_d) children. These are the hypotheses of a recursion tree with
2 ^ O(s / √⌊log₂ s⌋) nodes.
Differences from the source. We use λ = ⌊log₂ s⌋ and H = ⌊s / ⌊√λ⌋⌋, the scale of the
consumer interface of #1833, where the manuscript has ⌈log₂ s⌉ and ⌈s / ⌊√λ⌋⌉; we take
Δ = 2 ^ (⌊9 λ / 10⌋ + 2) instead of ⌈s ^ (9/10)⌉; and we prove the weaker lower bound
u_d ≥ ⌊√λ⌋ / (2 ^ 17 C) instead of u_d ≥ λ ^ (4/5), which suffices for (D.11). The manuscript's
precision bound p ≤ s λ^{O(1)} 2 ^ (a_{d-1}) is precisionBound_le.
The logarithmic factor in the root precision extends the manuscript's O(s) allowance.
It changes only the polynomial factor in the inherited-precision estimate (D.11); the taper
absorbs it, so the mode and call-count bounds are unchanged.
Main definitions #
leafSize,taper,prefixBits,slotBits,degreeBound,nodePrecision,precisionBound,branchExponent: the schedule.Active: an active call within the schedule.ActiveBounds: the inequalities that hold at an active call for larges.
Main results #
exists_activeBounds: the parameter certificate.card_modeBudget_le,ActiveBounds.card_modeBudget_le: the mode count (D.15) at an active call.sum_branchExponent_le: the excess exponents sum toO(s / √⌊log₂ s⌋).precisionBound_le: the precision boundp ≤ C s 2 ^ (a_{d-1}) (λ + 1 + d (8 λ + 40)).
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.2 (D.4)–(D.6) (p. 58), Lemma D.5 and (D.11) (pp. 60–61), (D.13)–(D.15) (pp. 62–63) and §D.4.7 (p. 64).
The schedule #
The leaf size H = ⌊s / ⌊√⌊log₂ s⌋⌋⌋: calls with at most H edges are evaluated by direct
summation.
The taper u_d = ⌊⌊log₂ s⌋ / 2 ^ (17 + d)⌋ at depth d, the manuscript's ⌊ε λ / 2 ^ d⌋
with ε = 2 ^ (-17).
2 ∑_{j < d} u_j, the manuscript's a_{d - 1}.
The number a_d = 2 ∑_{j ≤ d} u_j of label coordinates at depth d: packets have 2 ^ a_d
slots.
The degree bound Δ = 2 ^ (⌊9 ⌊log₂ s⌋ / 10⌋ + 2), a power of two at least s ^ (9/10).
The precision p_t = p + 8 h 2 ^ (a - i) + 8 M (a + 1) at which a node t of valuation i
is recovered by Lemma D.5, for input precision p, h = ⌈3 M / u⌉ and 2 ^ a slots.
The precision schedule: C s (⌊log₂ s⌋ + 1) at the root, growing by
8 C s (4 · 2 ^ a_d + a_d + 1) from depth d to d + 1.
The excess exponent e_d = 4 ⌊15360 C s / (⌊√⌊log₂ s⌋⌋ 8 ^ d)⌋ + 4 of the mode count at
depth d.
An active call at depth d of the recursion for size s and constant C: it has M
edges, at most C s / 16 ^ d and more than the leaf size, and precision p within the
schedule.
Each level divides the number of edges by at least
16.The call is not a leaf.
- precision_le : p ≤ precisionBound C s d
The precision is within the schedule.
The same schedule allows root precision C s (⌊log₂ s⌋ + 1), with unchanged branching
bounds. The additional logarithm is absorbed by the taper in (D.11).
A child of an active call at depth d with at most a sixteenth of its edges, precision
within the schedule and more than the leaf size is an active call at depth d + 1.
Arithmetic of the schedule #
a ≤ 4 ε λ: 2 ∑_{j < d} u_j ≤ ⌊λ / 2 ^ 15⌋.
The degree bound is at least s ^ (9/10): s ^ 9 ≤ Δ ^ 10.
A degree x with x ^ 10 ≤ s ^ 9 is at most the degree bound.
The degree bound is at most 2 ^ 2 s ^ (9/10): Δ ^ 10 ≤ 2 ^ 20 s ^ 9.
The degree bound is monotone.
The precision bound of (D.11), p ≤ s λ^{O(1)} 2 ^ (a_{d - 1}):
precisionBound C s d ≤ C s 2 ^ (a_{d - 1}) (λ + 1 + d (8 λ + 40)).
Active calls #
The certificate #
The inequalities that hold at an active call at depth d with M edges and precision p, for
s large enough. Write u = taper s d, a = slotBits s d, L = 2 ^ a, Δ = degreeBound s and
λ = ⌊log₂ s⌋.
The call and its children lie in the first
λlevels.1 ≤ u, as Lemma D.5 requires.u ≤ M, as Lemma D.5 requires.(D.6):
2 Δ D_arr² ≤ M.(D.6):
L D_arr ≤ M.(D.6):
2 L ≤ Δ, so packet vertices respect the degree bound.There are
2 ^ (4 λ)residue-field lifts for theM (2 L - 1) + 1interpolation points.- branching_le : 2 * 2 ^ slotBits s d * (M * (2 * 2 ^ slotBits s d - 1) + 1) * 64 ≤ 2 ^ (2 * Nat.log 2 s)
The nodes, interpolation points and
64groups contribute a factor2 ^ (2 λ)to the branching. - nodePrecision_le (i h : ℕ) : i < taper s d → h * taper s d ≤ 3 * M + taper s d → nodePrecision p h (slotBits s d) M i ≤ precisionBound C s (d + 1)
The children's precisions are within the schedule.
- nodePrecision_mul_taper_le (i h : ℕ) : i < taper s d → h * taper s d ≤ 3 * M + taper s d → nodePrecision p h (slotBits s d) M i * taper s d ≤ 34 * M * 2 ^ (slotBits s d - i)
(D.11):
p_t u ≤ 34 M D_t.
Arithmetic lemmas #
The certificate #
The parameter certificate. For every C there is s₀ such that for all s ≥ s₀ the
precisions up to depth ⌊log₂ s⌋ are at most s ^ 2, and every active call satisfies
ActiveBounds.
The mode count #
The mode count (D.15) at an active call: if the node t of valuation i ≤ a satisfies
the precision bound (D.11) p_t u ≤ 34 M D_t with u ≥ 1, and the packing has #P 2 ^ a ≤ 3 M
packets (Lemma D.3 (1)), then there are at most 2 ^ e_d tuples of exponents of the modes
P × Fin (2 ^ (i + 1)) × Fin p_t (packet, tile, b) of weight b + 1 below p_t. There are
#P 2 ^ (i + 1) ≤ 6 M / D_t modes of each weight (D.13).
At an active call satisfying the certificate, s ≥ 2.
The mode count (D.15) at a certified active call: for a node of valuation i < u and
h = ⌈3 M / u⌉, and a packing with #P 2 ^ a ≤ 3 M (Lemma D.3 (1)), there are at most 2 ^ e_d
mode tuples. This is card_modeBudget_le with its hypotheses supplied by ActiveBounds.
The excess exponents sum to O(s / √⌊log₂ s⌋): over at most ⌊log₂ s⌋ levels,
∑_d e_d ≤ (245760 C + 4) ⌊s / ⌊√⌊log₂ s⌋⌋⌋. The terms decrease geometrically, as in the
manuscript's (√2 / 8) ^ d (§D.4.7, p. 64).