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 #
Cslib.Complexity.CMMSAInstance.length_formulas_le,Cslib.Complexity.CMMSAInstance.length_weights_le,Cslib.Complexity.CMMSAInstance.le_of_mem_weights,Cslib.Complexity.CMMSAInstance.threshold_le: the parts of an instance are no larger than its encoding.Cslib.Complexity.GapCMMSA.yes_mono,Cslib.Complexity.GapCMMSA.no_mono: monotonicity of the gap problem in the boundΔ.
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.