Documentation

CslibFrontier.Computability.Complexity.Classes.Sparse.Hausdorff

Hausdorff decompositions of bounded truth-table reductions #

A bounded truth-table reduction of L to B writes L as a Boolean combination of conjunctive conditions on B, and Hausdorff's theorem writes such a combination as a union of differences C (2 d) \ C (2 d + 1) of a decreasing chain of sets [Arvind, Köbler and Mundhenk, Theorem 3.1] [AKM92]. Here the chain is built directly from the truth table. Let the reduction ask r a ≤ k queries of a, with answers b, and accept when the truth table f = d (a, ·) takes the value true at b. The set C j (Cslib.Complexity.BTT.Hausdorff f b j) holds when there are answer vectors h > v₁ > ⋯ > v_j, strictly decreasing componentwise with h ≤ b, on which f alternates and ends with true (Cslib.Complexity.BTT.StepBelow). Then:

Each C j is a union, over the finitely many candidate chains of vectors of length at most k, of a polynomial-time condition (the chain is valid for f and r a) and the conjunctive condition that the queries answered true at h lie in B. If B reduces conjunctively to a tally problem, so does each C j (Cslib.Complexity.BTT.exists_polyTimeCTTReducible_hausdorff), by the closure of these reductions under intersection and finite unions Arvind, Köbler and Mundhenk, Lemma 3.2.

The source obtains the decomposition from Hausdorff's theorem for the Boolean closure of the set ring R_ctt(SPARSE), together with the fact that bounded truth-table reductions to a class with suitable closure properties give its Boolean closure [Arvind, Köbler and Mundhenk, Fact 3.3] [AKM92]; the chains of answer vectors above are this library's direct construction for a single reduction.

Main definitions #

Main results #

References #

Alternating chains of answer vectors #

One step of an alternating chain for the truth table f: the answer vector v lies strictly below w componentwise, and f takes different values at them.

The j-th Hausdorff set of the truth table f at the answers b: there are answer vectors h, v₁, …, v_j, each strictly below the previous one with the opposite value of f, such that h ≤ b componentwise and f is true at v_j; that is, f h is true exactly when j is even.

theorem Cslib.Complexity.BTT.Hausdorff.of_succ {f : List Bool → Bool} {b : List Bool} {j : ℕ} (hH : Hausdorff f b (j + 1)) :
Hausdorff f b j

The Hausdorff sets decrease: dropping the top of a chain.

theorem Cslib.Complexity.BTT.Hausdorff.mono {f : List Bool → Bool} {b : List Bool} {i j : ℕ} (hij : i ≤ j) (hH : Hausdorff f b j) :
Hausdorff f b i
theorem Cslib.Complexity.BTT.le_length_of_hausdorff {f : List Bool → Bool} {b : List Bool} {j : ℕ} (hH : Hausdorff f b j) :

The j-th Hausdorff set is empty unless j is at most the number of answers: the vectors of a chain have strictly decreasing numbers of true answers.

theorem Cslib.Complexity.BTT.eq_decide_even_of_hausdorff {f : List Bool → Bool} {b : List Bool} {j : ℕ} (hj : Hausdorff f b j) (hj' : ¬Hausdorff f b (j + 1)) :
f b = decide (Even j)

At the last Hausdorff set containing the answers b, the value of f at b is the parity of its index: the top of a longest chain has the value f b, since otherwise b would extend the chain.

theorem Cslib.Complexity.BTT.eq_true_iff_exists_hausdorff {f : List Bool → Bool} {b : List Bool} {D : ℕ} (hb : b.length < 2 * D) :
f b = true ↔ ∃ d < D, Hausdorff f b (2 * d) ∧ ¬Hausdorff f b (2 * d + 1)

The Hausdorff decomposition of a truth table: f b = true exactly when b lies in the 2 d-th Hausdorff set but not in the next one, for some d < D, provided b has fewer than 2 D answers.

Answers of truth-table reductions #

theorem Cslib.Complexity.BTT.forall₂_le_truthTableAnswers_iff {α : Type} {A : Set (α × ℕ)} {r : α → ℕ} {a : α} {v : List Bool} :
List.Forall₂ (fun (x1 x2 : Bool) => x1 ≤ x2) v (truthTableAnswers A r a) ↔ v.length = r a ∧ ∀ (i : ℕ), v[i]? = some true → (a, i) ∈ A

Lying below the answers of a truth-table reduction is a conjunctive condition: a vector lies below the answers componentwise exactly when it has one entry per query and every query at which it is true is in the target.

Conjunctive reductions of the Hausdorff sets #

The Hausdorff sets of a bounded truth-table reduction reduce conjunctively to tally problems, when the target of the reduction does. Here r, q and d are the query count, the queries and the truth table of a reduction making at most k queries, and the target B has a conjunctive reduction to a set of natural numbers written in unary Arvind, Köbler and Mundhenk, Lemma 3.2.