Documentation

CslibFrontier.Computability.Complexity.Classes.CountingHierarchy.BoundedSearch

Quantification and first-event tests on binary intervals #

An interval endpoint can have exponential value but polynomial binary length. Existential and universal quantification cost one function level; testing a property of the first event costs two. These rules use one evaluator for all indices, including nested indices.

Existential quantification over a short binary interval costs one function level.

Universal quantification over a short binary interval also costs one function level.

noncomputable def Cslib.Complexity.firstEventTest {α : Type} (event test : α × ℕ → Bool) (r : α → ℕ) (x : α) :

Does the first event below a binary endpoint satisfy the supplied test? Both event and test are uniform evaluators, not input-dependent families of programs.

theorem Cslib.Complexity.firstEventTest_eq_true_iff {α : Type} (event test : α × ℕ → Bool) (r : α → ℕ) (x : α) :
firstEventTest event test r x = true ↔ ∃ i < r x, event (x, i) = true ∧ test (x, i) = true ∧ ∀ j < i, event (x, j) = false

Semantic characterization of the first-event operation, including empty intervals.

A test at the first event on a short binary interval uses two function levels. The inner universal test and outer existential test have fixed uniform evaluators.