Resource certificates for lazy-diagonal verifiers #
Assemble the common input decoding, simulation, negated exhaustive search and conditional branches of a lazy-diagonal verifier. Clock construction and its estimates belong to callers: the polynomial and exponential hierarchies use different clocks. The resulting time bound charges only the branch taken; the space witness is independent of that time bound.
Main results #
Cslib.Complexity.Diagonal.exists_computableInO_lazyAccepts: construct acceptance from a binary clock.Cslib.Complexity.Diagonal.exists_computableInO_lazyBrute: search with polynomial-time acceptance and parameter selection, including a separately supplied unary length.Cslib.Complexity.Diagonal.exists_computableInO_sizeLength_le: construct a horizon comparison from an independently bounded unary clock.Cslib.Complexity.Diagonal.exists_computableInO_lazyTests: construct the three tests together.Cslib.Complexity.Diagonal.exists_computableInO_lazyVerifier: assemble a verifier from certificates for its tests, acceptance simulation and exhaustive search.
Construct the acceptance simulation with an arbitrary binary clock. Its time and space budgets include input access; positivity and a linear binary-length bound suffice for the shared universal-simulation estimate. The clock may depend on both input and certificate.
Exhaustive acceptance search after polynomial-time parameter selection. The parameter may include a unary certificate length, so the same construction covers both directly constructible lengths and lengths supplied by a separate, more expensive preprocessing step. The bound charges the entire encoded parameter, preserving that preprocessing interface.
Construct a horizon comparison from a unary clock certificate. The tested word may be the input or its one-bit extension. Only its time and length bounds are needed; its space bound and the clock's space bound remain independent.
Construct all three lazy-verifier tests from a unary horizon certificate. The common time budget covers input access and the comparison square; each test keeps its own space witness, independently of the clock's space budget.
Compose the lazy verifier without replacing branch costs by their worst case.
The caller supplies three tests at cost C, an acceptance simulation at cost B, and
exhaustive search at cost R. Test space bounds may differ from each other and from time.