Documentation

CslibFrontier.Computability.Circuit.Boolean.Razborov.MiddleSlice

A middle slice not in AC⁰[2] #

The middle slice (middleSlice) accepts the n-bit strings with exactly a(n) zeros, where a(n) = ⌈n / 2⌉ - ⌊√(n + 1)⌋ / 10 (sliceLevel). It passes Razborov's rank test at level a(n) (middleSlice_mem_rankTest), so the size–depth tradeoff of the rank test (two_mul_two_pow_le_size_of_mem_rankTest) bounds every constant-depth circuit for it with MOD_2 gates from below by 2 ^ Ω(n ^ (1 / (2 d))). Hence the middle slice is not in AC⁰[2] (middleSlice_notMem_AC0Mod_two) [Raz87]. It is in P, by counting the true bits and comparing with a(n) computed in unary from the length, which separates P from AC⁰[2] (Cslib.Circuits.Boolean.Razborov.middleSlice_mem_P and Cslib.Circuits.Boolean.Razborov.exists_mem_P_notMem_AC0Mod_two). Those are in CslibFrontier.Computability.Circuit.Boolean.Razborov.MiddleSlice.P, kept apart so that this lower bound does not import the polynomial-time Turing machine library.

For odd primes, parity separates P from AC⁰[p]; the middle slice covers p = 2, where parity is a single gate. Cslib.Circuits.Boolean.exists_mem_P_notMem_AC0Mod combines the two for every prime, and Cslib.Circuits.Boolean.Smolensky.majority_notMem_AC0Mod uses the middle slice to show that majority is not in AC⁰[2].

The lower bound follows the rank argument as recorded by Razborov and Rudich, §3.2 and sketched for p = 2 by Carmosino et al., p. 10:20, in the variant described in Cslib.Circuits.Boolean.Razborov.RankProperty. The choice of slice (an exact-weight function at distance about √n / 10 below the middle) is made so that the parameters of that variant apply; Razborov's original argument [Raz87] was not checked for its choice of hard function.

Main definitions #

Main results #

References #

The gap of the middle slice below the middle, ⌊√(n + 1)⌋ / 10.

The level of the middle slice, ⌈n / 2⌉ - ⌊√(n + 1)⌋ / 10.

The middle slice: the n-bit strings with exactly sliceLevel n zeros, that is, of weight n - sliceLevel n.

The level of the middle slice, unfolded.

@[simp]

The middle slice holds exactly at the points of weight n - sliceLevel n.

The middle slice passes the rank test at level sliceLevel n.

theorem Cslib.Circuits.Boolean.Razborov.two_mul_two_pow_le_size_of_mem_rankTest_sliceLevel {m d ℓ : ℕ} (hℓ : 1 ≤ ℓ) (hm : 100 * (ℓ ^ d + 1) ^ 2 ≤ m + 1) {f : BooleanFunction m} (hf : f ∈ rankTest m (sliceLevel m)) {C : Circuit Unbounded.extSignature m 1} (hC : C.Computes (Unbounded.extInterpretation (modGate 2)) (single f)) (hCd : C.depth ≤ d) :
2 * 2 ^ ℓ ≤ 5 * (m + 1) * C.size

Size–depth tradeoff at the slice level: on m inputs, a circuit of depth at most d with MOD_2 gates computing a function that passes the rank test at level sliceLevel m has at least 2 · 2 ^ ℓ / (5 (m + 1)) gates, whenever ℓ ≥ 1 and 100 (ℓ ^ d + 1)² ≤ m + 1.

The middle slice is not in AC⁰[2] [Raz87]: constant-depth, polynomial-size circuits of negations, unbounded fan-in conjunctions and disjunctions, and MOD_2 gates do not decide it.