Documentation

CslibFrontier.Computability.Complexity.Reduction.LocalSelfReducibility

Local logspace self-reducibility #

Source mapping #

Definitions 3.1 and 3.2 of [GNR+13], expanded ECCC TR13-047, 18 March 2013, printed page 6 (PDF index 5). An active query has exactly the input's encoded length, is strictly lexicographically smaller (false before true), and agrees on the prefix before the last $\lceil\log_2 n\rceil$ bits. Nat.clog 2 also gives the source convention $\log 0=0$. On words with encBits these are the literal source conditions; on other instance types they apply to the explicit injective encoding, not the abstract value. Only active indices are constrained. Zero queries are allowed, including at minimal suffixes.

The resource and answer conventions are exactly those of LogSpaceTruthTableReducible: unary count and index, encoded queries, and an L evaluator on the input and answer word. The disjunctive/conjunctive definitions explicitly allow either Boolean base answer at zero queries; they do not force the empty OR/AND answer. The base bit is logspace computable. The indexed presentation replaces the source's tagged bit-or-nonempty-list output; no machine equivalence with a serialized tagged-list convention is asserted here.

This is a definition and semantic milestone, not Lemma 3.3(1). The unary dependency below is mathematical semantics with fixed off-input answers, not a free oracle machine or a resource certificate. Native regeneration of virtual query inputs and oracle answers during unbounded evaluation, followed by the source's Proposition 2.1 conversion, remains unproved. Concrete NL/P complete instances, Theorem 3.5, and Sections 4–5 remain open.

Main definitions #

A permitted query word, with the paper's ceiling-logarithm suffix window.

Instances For

    Strict lexicographic descent forbids a self-query.

    Consecutive permitted queries stay within the original suffix window.

    Strict local descent terminates. Equal lengths are essential: unrestricted lexicographic order on finite words is not well-founded. This supplies semantic termination only.

    Locality permits storing just the suffix and regenerating the common prefix. This is a word identity, not a space bound for a machine implementing regeneration.

    The variable suffix has at most the paper's ceiling-logarithm length.

    Definition 3.1, tt clause, using the existing native indexed reduction contract. The resource conditions and locality form the admissibility predicate of TruthTableReducibleBy.

    Every local tt self-reduction is a query-avoiding tt autoreduction.

    Every language already in L has a zero-query local self-reduction. The unused query generator is identity and is deliberately not constrained.

    Definition 3.2's disjunctive clause, including either zero-query base answer.

    Definition 3.2's conjunctive clause, including either zero-query base answer.

    An OR self-reduction with explicit base answers is an ordinary tt self-reduction.

    An AND self-reduction with explicit base answers is an ordinary tt self-reduction.

    theorem Cslib.Complexity.LogSpaceDTTSelfReducible.of_mem_L {α : Type} {encA : α ↪ List Bool} {A : Set α} (h : A ∈ L encA) :

    Either Boolean base answer is permitted in the disjunctive definition.

    theorem Cslib.Complexity.LogSpaceCTTSelfReducible.of_mem_L {α : Type} {encA : α ↪ List Bool} {A : Set α} (h : A ∈ L encA) :

    Either Boolean base answer is permitted in the conjunctive definition.

    noncomputable def Cslib.Complexity.truthTableUnaryDependency {α β : Type} (A : Set α) (x : α) (r : β → ℕ) (q : β × ℕ → α) (d : β × List Bool → Bool) (s : β) (b : Bool) :

    Off-input answers are fixed; every occurrence of the forbidden input receives b. This is the semantic unary dependency in Lemma 3.3(1), with no computability claim.

    theorem Cslib.Complexity.truthTableUnaryDependency_actual {α β : Type} {A : Set α} (x : α) (r : β → ℕ) (q : β × ℕ → α) (d : β × List Bool → Bool) (s : β) :

    Substitution of the actual input bit recovers the original answer word and decision.

    theorem Cslib.Complexity.truthTableUnaryDependency_spec {α β : Type} {A : Set α} {B : Set β} (x : α) (r : β → ℕ) (q : β × ℕ → α) (d : β × List Bool → Bool) (hB : ∀ (s : β), s ∈ B ↔ d (s, truthTableAnswers (q ⁻¹' A) r s) = true) (s : β) :
    decide (s ∈ B) = truthTableUnaryDependency A x r q d s (decide (x ∈ A))

    Correctness of the reduction supplies the paper's semantic dependency equation.

    theorem Cslib.Complexity.unary_bool_involutive_of_nonconstant (h : Bool → Bool) (hne : h false ≠ h true) (b : Bool) :
    h (h b) = b

    A nonconstant unary Boolean function is id or negation, so is its own inverse. This is the invariant update in Lemma 3.3(1); it does not assume an autoreduction.

    theorem Cslib.Complexity.unary_bool_dependency_update (h : Bool → Bool) (hne : h false ≠ h true) {a b : Bool} (hb : b = h a) :
    a = h b

    The dependency update restores the input bit from the selected child bit. The previous path's polarity need not be accumulated: the new dependency relates the child straight to the original input bit.