Documentation

CslibFrontier.Computability.Complexity.Classes.PH.Kannan

Kannan's theorem #

For every k, some language in Σ₂ ∩ Π₂ has no circuits of size O(n ^ k): it lies in no class SIZE (c (n + 1) ^ k) (Cslib.Complexity.exists_mem_SigmaP_two_inter_PiP_two_notMem_SIZE). This is Kannan's statement, Theorem 2 of the technical memo Kannan (p. 5); the journal version is Kannan. The weaker Σ₂ form (Cslib.Complexity.exists_mem_SigmaP_two_notMem_SIZE) is set as an exercise in Arora and Barak, Chapter 6. Size counts gates, as in Cslib.Circuits.Boolean.SIZE.

Kannan's language (Cslib.Complexity.Kannan.language) is first built in Σ₃. At input length n, let m = (k + 3) (⌊log₂ (n + 1)⌋ + 1); the language evaluates, on the first m bits of the input, the function of the first truth table on m inputs, in lexicographic order, that needs more than (n + 1) ^ (k + 1) gates. Shannon's counting argument provides such tables at all large lengths. Fixing the inputs after the first m to false turns the slice of the language at length n into the hard function and adds at most two gates, so the language is in no SIZE (c (n + 1) ^ k) (Cslib.Complexity.Kannan.language_notMem_SIZE). A truth table has at most 2 ^ (k + 3) (n + 1) ^ (k + 3) bits and the MCSP verifier checks circuits for it in polynomial time, so a Σ₃ verifier guesses the table T, then for every table T' and every circuit c of at most (n + 1) ^ (k + 1) gates guesses such a circuit c', and checks that c does not compute T, that c' computes T' if T' comes before T, and that T gives true on the input (Cslib.Complexity.Kannan.language_mem_SigmaP_three).

The theorem splits on whether SAT has circuits of polynomial size. If some language in P/poly has preimage SAT under encCNF, the Karp–Lipton theorem (Cslib.Complexity.PH_eq_SigmaP_two_of_SAT) collapses the polynomial hierarchy to Σ₂, so Kannan's language is in Σ₂; so is its complement, which is in Π₃, so the language is also in Π₂. Otherwise the encodings of the satisfiable formulas, a problem in NP ⊆ Σ₂ ∩ Π₂ (Cslib.Complexity.image_SAT_mem_NP), have no circuits of polynomial size at all. The proof does not say which of the two languages witnesses the theorem.

Main definitions #

Main results #

References #

Parameters #

The number of inputs of the hard functions at input length n.

The number of gates that the hard functions at input length n exceed.

Hard truth tables #

T is a truth table on arity k n inputs whose function needs more than threshold k n gates.

T is the first hard truth table in lexicographic order: the hard table that is least as a binary number, most significant bit first.

Kannan's language: the words x whose first arity k x.length bits, as an input of the first hard truth table, give true. The slices at the lengths without hard truth tables are empty.

theorem Cslib.Complexity.Kannan.IsFirstHard.unique {k n : ℕ} {T₁ T₂ : List Bool} (h₁ : IsFirstHard k n T₁) (h₂ : IsFirstHard k n T₂) :
T₁ = T₂
theorem Cslib.Complexity.Kannan.exists_isFirstHard {k n : ℕ} (h : ∃ (T : List Bool), IsHard k n T) :
∃ (T : List Bool), IsFirstHard k n T

If some truth table is hard, there is a first one.

Shannon's counting argument: hard truth tables exist at all large lengths.

The circuit lower bound #

Kannan's language has no circuits of size O(n ^ k).

Kannan's language is hard at all large lengths: its slices need more than (n + 1) ^ k gates for every large n.

The Σ₃ verifier #

The length of the blocks holding truth tables.

The length of the blocks holding circuits.

The truth table in the first bits of a block.

The Σ₃ verifier for Kannan's language. On (x, w₁ ++ w₂ ++ w₃), where w₁ has tableBound bits and w₂ has tableBound + certBound bits, it reads a truth table T from w₁, a truth table T' and a circuit certificate c from w₂ and a circuit certificate c' from w₃, as MCSP.tableVerifier reads them with the threshold threshold k x.length. It accepts when c is not a circuit within the threshold for T, c' is one for T' if T' comes before T, and T gives true on the first arity bits of x.

The polynomial tableBound.

The polynomial certBound.

Polynomial time #

Kannan's language is in PSPACE, since Σ₃ ⊆ PSPACE.

Kannan's theorem #

Kannan's theorem: for every k, some language in Σ₂ ∩ Π₂ has no circuits of size O(n ^ k), that is, lies in no class SIZE (c (n + 1) ^ k) (Kannan, Theorem 2, p. 5; Kannan). If some language in P/poly has preimage SAT under encCNF, the Karp–Lipton theorem collapses the polynomial hierarchy to Σ₂, so Kannan's language, in Σ₃, and its complement, in Π₃, are both in Σ₂; otherwise the encodings of the satisfiable formulas, in NP ⊆ Σ₂ ∩ Π₂, have no circuits of polynomial size.

theorem Cslib.Complexity.exists_mem_SigmaP_two_notMem_SIZE (k : ℕ) :
∃ L ∈ SigmaP 2 Turing.MultiTapeTM.encBits, ∀ (c : ℕ), L ∉ Circuits.Boolean.SIZE fun (n : ℕ) => c * (n + 1) ^ k

Kannan's theorem, Σ₂ form: for every k, some language in Σ₂ has no circuits of size O(n ^ k). This form is set as an exercise in Arora and Barak, Chapter 6; Kannan's own statement is Cslib.Complexity.exists_mem_SigmaP_two_inter_PiP_two_notMem_SIZE.