Documentation

CslibFrontier.Computability.Complexity.Problems.CMMSA.Size

Sizes of CMMSA instances #

A reduction from GapCMMSA bounds its output, and its random bits, by the size of its input. Since CMMSAInstance.encoding writes the weights and the threshold in unary, the number of formulas, the number of variables, every weight and the threshold are each at most the length N of the encoding of the instance.

The gap problem GapCMMSA Δ g σ only gets larger as the bound Δ on the literals of each formula increases: its yes- and no-instances for Δ are yes- and no-instances for every Δ' ≥ Δ (GapCMMSA.yes_mono, GapCMMSA.no_mono), since well-formedness is monotone (CMMSAInstance.WellFormed.mono). With PromiseProblem.NPHard.mono, NP-hardness for Δ passes to every larger bound.

Main results #

An instance has at most as many formulas as its encoding has bits.

An instance has at most as many variables as its encoding has bits.

Every weight, written in unary, is at most the length of the encoding.

The threshold, written in unary, is at most the length of the encoding.

theorem Cslib.Complexity.GapCMMSA.yes_mono {Δ Δ' : ℕ} {g σ : ℝ} (hΔ : Δ ≤ Δ') :
(GapCMMSA Δ g σ).yes ⊆ (GapCMMSA Δ' g σ).yes

A yes-instance for the bound Δ is a yes-instance for every larger bound.

theorem Cslib.Complexity.GapCMMSA.no_mono {Δ Δ' : ℕ} {g σ : ℝ} (hΔ : Δ ≤ Δ') :
(GapCMMSA Δ g σ).no ⊆ (GapCMMSA Δ' g σ).no

A no-instance for the bound Δ is a no-instance for every larger bound.