Runtime construction of balanced label schedules #
Completes the (n + m)-slot greedy pass and empty-scope factor normalization of Lemma 4.5 of
[OAI26c] (printed pp. 30–32) on top of Complexity.Computability.PolyTime.GreedySlotScore.
- Streaming
(n + m)-slot pass:greedySchedulePassiteratesgreedySlotStepBodyviaCslib.GenericRAM.IndexFold.runacross allnvariable andmfactor slots usingstreamBestSlotLabel, andconstructBalancedSchedulesnormalizes empty-scope factors (∀ e ∈ edges, e.1 ≠ f) toList.replicate Q 0. - Lemma 4.5 occupancy bounds:
constructBalancedSchedules_balancedbridges the runtime pass togreedyLabelPass, proving empty-factor normalization and both occupancy bounds under (4.13). - Bit-length bounds and native certificates:
length_encOuterState_run_le,length_encOuterState_run_valid_le,greedySchedulePassCertificate, andconstructBalancedSchedulesCertificatecertifyO((r ^ Q + 1) * poly(|input|))native time and polynomial workspace (ComputableInPolySpace).
Public encoded ComputableInPolyTime, NativeCertificate, ComputableInO, and
ComputableInPolySpace theorems govern slotOfIndex, greedySchedulePass,
constructBalancedSchedules, and their certificates (built on the concrete list/integer step and
postprocessing subroutines pendingSlotOfState, greedySlotStepBody, and
normalizeEmptyFactorSchedules) under encScheduleParams and encOuterAcc, whereas
constructedVarSchedule and constructedFactorSchedule are unencoded typed specification
bridges (Fin n → Fin Q → Fin r and Fin m → Fin Q → Fin r) to greedyLabelPass,
completeLabels, normalizeEmptyFactors, potential, and occupancy. Total fallback conventions:
slotOfIndex caps s at n + m via min (n + m) s before unary subtraction and returns none
for s ≥ n + m; pendingSlotOfState and greedySlotStepBody leave assigned or out-of-range
indices unchanged; when r = 0 (Q > 0, so r ^ Q = 0) or a slot is none, fallback words are
List.replicate Q 0 (when Q = 0, every word is []); normalizeEmptyFactorSchedules sets every
empty-scope factor (∀ e ∈ edges, e.1 ≠ f) to List.replicate Q 0 (group ⟨0, hr⟩ for
d_f(t) = 1); and constructedVarSchedule / constructedFactorSchedule clamp out-of-range digits
or missing positions to 0 via wordToSchedule.
Main definitions #
slotOfIndex,ScheduleParams,pendingSlotOfState,greedySlotStepBody: outer(n + m)-slot decoding and single-slot step callback overIndexFold.run.greedySchedulePass,normalizeEmptyFactorSchedules,constructBalancedSchedules: full greedy pass, empty-scope factor normalization, and complete schedule constructor.constructedVarSchedule,constructedFactorSchedule: typed schedule bridges.encScheduleParams,encOuterAcc,greedySchedulePassCertificate,constructBalancedSchedulesCertificate: encodings and uniformNativeCertificates.
Main results #
run_greedySlotStepBody_wf,wf_constructBalancedSchedules,getD_constructBalancedSchedules_empty_factor: word well-formedness and empty-scope factor reset.greedySchedulePass_eq_greedyLabelPass,constructedSchedules_eq_pass,constructedFactorSchedule_empty_factor: exact agreement withgreedyLabelPassand completion.constructBalancedSchedules_score_le,constructBalancedSchedules_score_le_two,constructBalancedSchedules_balanced: potential and Lemma 4.5 occupancy bounds under (4.13).length_encEdges_le_of_lt,length_encPartialSchedules_le,length_encSlotSelectState_run_valid_le,length_encOuterState_run_valid_le,length_encOuterState_run_le: encoded bit-length bounds across inner and outer loop prefixes.computableInPolyTime_slotOfIndex,greedySchedulePassCertificate_bounds,computableInO_greedySchedulePass,computableInPolySpace_greedySchedulePass,constructBalancedSchedulesCertificate_bounds,computableInO_constructBalancedSchedules,computableInPolySpace_constructBalancedSchedules: native time and workspace bounds.
References #
- OpenAI, The Exponential Time Hypothesis is False, §4.4, Lemma 4.5, pp. 30–32.
Section 1: (n + m)-slot pass and empty-scope factor normalization #
Runtime input tuple ((n, m, Q), (r, C), edges) for full schedule construction.
Instances For
Section 2: Prefix invariants and Lemma 4.5 occupancy bounds #
Outer-loop prefix invariant: at every slot prefix s, varSched has length n, facSched
has length m, and every assigned word has length Q with digits < max r 1.
Every variable and factor word produced by constructBalancedSchedules has exact length Q
and digits < max r 1 (hence < r whenever 1 ≤ r).
Concrete empty-factor normalization: any factor f < m absent from edges gets
List.replicate Q 0.
Exact bridge between the runtime IndexFold.run schedule pass greedySchedulePass and the
combinatorial specification greedyLabelPass.
Typed schedules extracted from constructBalancedSchedules coincide with completing and
normalizing greedyLabelPass.
constructBalancedSchedules achieves joint normalized potential at most the initial
finite-uniform average over (Fin n → Fin Q → Fin r) × (Fin m → Fin Q → Fin r).
Under Lemma 4.5's degree hypotheses (hb, hw), constructBalancedSchedules achieves joint
normalized potential at most 2.
Lemma 4.5 correctness for constructBalancedSchedules ([OAI26c], pp. 30–31):
under degree bounds hb, hw, 0 < b + w, and size bounds (4.13)
2 * (b + w) * ((r ^ Q) ^ 2) ^ 2 ≤ E and 2 * Q * r ^ 2 ≤ n, the runtime output satisfies
empty-factor normalization and both incidence and variable-group occupancy bounds.
Section 3: Hypergraph-valid bit-length bounds and native machine certificates #
Encoding of runtime inputs ((n, m, Q), (r, C), edges) to constructBalancedSchedules.
Instances For
Encoded bit-length bound for an incidence list edges with endpoints < m and < n.
Encoded bit-length bound for partial schedule tables (varSched, facSched) of lengths n, m
whose assigned words have length Q and digits < max r 1.
Explicit O((n + m + 1) * (Q + 1) * log(r + 2) + |E| * log(n + m + 2) + log(C + 2)) inner-loop
prefix bit-length bound for valid hypergraph incidences and partial schedules.
All-prefix live-state bit-length bound for the outer (n + m)-slot IndexFold.run loop across
every visited slot prefix s ≤ n + m, in terms of input parameters and valid edges.
Unconditional all-prefix live-state bit-length bound for the outer (n + m)-slot
IndexFold.run loop in terms of input bit length L = |encScheduleParams p|.
slotOfIndex is computable in polynomial time.
Uniform native machine certificate for greedySchedulePass.
Instances For
Uniform native machine certificate for constructBalancedSchedules ([OAI26c],
Lemma 4.5, p. 31).
Instances For
Trajectory-maximum time and polynomial-workspace bounds for greedySchedulePassCertificate:
O((r ^ Q + 1) * poly(|input|)) native time and polynomial workspace.
greedySchedulePass runs in O((r ^ Q + 1) * poly(|input|)) native time and polynomial
workspace.
greedySchedulePass runs in polynomial workspace (ComputableInPolySpace).
Trajectory-maximum time and polynomial-workspace bounds for
constructBalancedSchedulesCertificate ([OAI26c], Lemma 4.5, pp. 30–31).
constructBalancedSchedules runs in O((r ^ Q + 1) * poly(|input|)) native time
and polynomial workspace. For valid incidence endpoints, this gives
poly(n, m, |E|, D, Q, r, C) bit operations, where D = r ^ (2 * Q).
constructBalancedSchedules runs in polynomial workspace (ComputableInPolySpace) without
materializing r ^ Q candidate words.