Documentation

CslibFrontier.Computability.Complexity.Classes.PP.SignWeights

GapP weights for the two answers to a PP decision #

For a nonzero integer gap g, the dyadic sign product at g and at -g assigns greater weight to its sign. The closure of GapP under polynomially many products makes the two weights uniform in the instance. Our factors have distinct dyadic roots. This adapts the geometric-root product of Newman, p. 11, and the dyadic product with repeated factors used in Fortnow and Reingold, §4. The weights serve both truth-table closure and postselected quantum decisions. The single tagged function in exists_gapP_separation_of_mem_PP is an original formulation of this counting argument.

Main definitions #

Main results #

References #

The dyadic sign product ∏ j ∈ range (M + 1), (2 ^ j + z), used to rationalize the sign of an integer z with 1 ≤ |z| ≤ 2 ^ M.

theorem Cslib.Complexity.one_le_newmanPoly {M : ℕ} {z : ℤ} (hz : 1 ≤ z) :

The dyadic sign product is at least 1 at every positive integer.

theorem Cslib.Complexity.two_mul_abs_newmanPoly_neg_le {M : ℕ} {z : ℤ} (hz₁ : 1 ≤ z) (hz₂ : z ≤ 2 ^ M) :

Sign separation for the dyadic product. For 1 ≤ z ≤ 2 ^ M, twice |newmanPoly M (-z)| is at most newmanPoly M z.

theorem Cslib.Complexity.GapP.newmanPoly_mem {α : Type} {enc : α ↪ List Bool} {M : α → ℕ} {g : α → ℤ} (hg : g ∈ GapP enc) (hM : Turing.MultiTapeTM.ComputableInPolyTime M enc Turing.MultiTapeTM.encUnary) :
(fun (a : α) => newmanPoly (M a) (g a)) ∈ GapP enc

Applying the dyadic sign product to a GapP function preserves GapP when the number of factors is polynomial-time computable in unary.

theorem Cslib.Complexity.exists_gapP_separation_of_mem_PP {α : Type} {enc : α ↪ List Bool} {A : Set α} (hA : A ∈ PP enc) :
∃ f ∈ GapP (Turing.MultiTapeTM.encSum enc enc), ∀ (a : α), (a ∈ A → 0 < f (Sum.inr a) ∧ 2 * |f (Sum.inl a)| ≤ f (Sum.inr a)) ∧ (a ∉ A → 0 < f (Sum.inl a) ∧ 2 * |f (Sum.inr a)| ≤ f (Sum.inl a))

A PP language admits a single GapP function on tagged instances whose value at the correct tag is positive and at least twice the absolute value at the other tag. The right tag denotes membership. Both encodings consist of one bit followed by the same instance word.