Documentation

CslibFrontier.Computability.MCSP.MultiNPHard.Reduction

The reduction from Set Cover to Multi-MCSP #

The reduction of Ilango, Loff and Oliveira [IlangoLoffOliveira2020, §4.2, pp. 22:20–22:21], from the constant-gap Set Cover problem GapSetCover 3 to Multi-output MCSP, as a function of the Set Cover instance and a random string, with its correctness for every outcome of the randomness. The source reduces from Trevisan's r-bounded Set Cover; here the source problem is the library's GapSetCover 3, which GapSetCover_npHard shows NP-hard.

rpReducible_of_computableInPolyTime derives the randomized reduction from the hypothesis that reduce runs in polynomial time. MultiMCSP.Reduction.computableInPolyTime_reduce (CslibFrontier.Computability.MCSP.MultiNPHard.PolyTime) proves that hypothesis, and CslibFrontier.Computability.MCSP.MultiNPHard states the resulting NP-hardness.

Given (S, k), write N for the length of S.ground and t for the number of sets.

Main definitions #

Main results #

References #

Window.tableFun T is the function whose truth table is T.

The truth table of Window.tableFun T is T.

Yes- and no-instances of GapSetCover 3 #

A yes-instance of GapSetCover 3 is a coverable system with optimum at most k.

A no-instance of GapSetCover 3 is a coverable system with optimum at least 3k, for a positive k.

A no-instance of GapSetCover 3 has a nonempty ground list: the empty family covers an empty one at cost 0 < 3k.

Positions and parameters #

The positions j of the ground list whose element lies in set i. Elements of the set that are not in the ground list give no position, so they are ignored.

Relabelling. The sets C cover every position of the ground list exactly when they cover S. A repeated ground element repeats a covering obligation, and set elements outside the ground list play no part on either side.

N + t + 4, for N ground positions and t sets.

The arity 6 · size (N + t + 4) of the output instances.

Instances For

    2^p exceeds (N + t + 4)^6.

    2^p is at most 64 (N + t + 4)^6.

    The output instances #

    noncomputable def Cslib.MultiMCSP.Reduction.ofTable (S : Complexity.SetSystem) (k : ℕ) (T : Fin (2 ^ arity S) → Bool) :

    The output instance for the table T: the window template of the lifted position sets followed by T, with threshold the template's number of distinct non-input gate functions plus min k t. The clamp keeps the threshold, written in unary, polynomial in the binary k; it changes nothing that matters, since a cover never needs more than the t sets.

    The output for an empty ground list: one input, one output x₀ and threshold one.

    The reduction, as a function of the instance (S, k) and the random string r: for a nonempty ground list, ofTable of the first 2^p bits of r, read as false past its end.

    Positivity. Every output instance has positive arity, number of outputs and threshold, as Definition 1 asks: the template has the non-input gate function ¬x₀.

    Correctness #

    Completeness, for every random string. A yes-instance of GapSetCover 3 maps to a yes-instance of Multi-MCSP: the at most min k t sets of an optimal cover give T as an OR of windows.

    Soundness, as a count of tables. For a no-instance of GapSetCover 3, at most a third of the tables give a yes-instance of Multi-MCSP.

    The randomized reduction #

    The length 64 (n + 4)^6 of the random string, for an input of length n.

    The random string covers the table: 2^p ≤ 64 (n + 4)^6 for an input of length n.

    At most a third of the random strings give a yes-instance on a no-instance.

    The randomized reduction, given its running time. If reduce runs in polynomial time, GapSetCover 3 reduces to Multi-MCSP, restricted to Definition 1's positive instances, by a randomized reduction with one-sided error: yes-instances always map to yes-instances, and no-instances to no-instances with probability at least 2/3 [IlangoLoffOliveira2020, §4.2, pp. 22:20–22:21]. The basis is any Boolean.DeMorganBasis: Boolean.DeMorgan.interpretation is the source's constant-free basis of Definition 1, Boolean.interpretation the library variant with constants. Soundness uses the library's union bound in place of the source's Lemma 16. MultiMCSP.rpReducible_gapSetCover discharges the running-time hypothesis.