Yes completeness of the CMMSA table #
If a CMMSA instance I has a satisfying assignment S of weight at most θ, then for every choice
of the functions f the partial truth table FromCMMSA.toInstance I Δ k λ P f is in partial MCSP,
once λ ≥ λ₀ (m + 1) ² for a constant λ₀ depending only on Δ, k and P
(FromCMMSA.exists_toInstance_mem_PartialMCSP). This is the completeness half of the library's
reduction from GapCMMSA Δ g 1 to partial MCSP (issue #4362, route B); the reduction and its
analysis are the library's own, and [Hir22] fixes only the shape of the problem.
The Yes circuit. Pack the blocks of the functions f v, v ∈ S, into one table F on
L = ⌈log₂ (2 θ λ)⌉ inputs. This works because ∑_{v ∈ S} 2 ^ ℓ v ≤ 2 λ w(S) ≤ 2 θ λ ≤ 2 ^ L, and
because the blocks can be placed at aligned starting points (Nat.exists_aligned_packing). On an
input with formula index j:
- choose a term
tofφ_jwhose variables all lie inS; - for each occupied slot
(t, q)and each seedi, readFat the address whose bits aboveℓ vare the start of the block ofvand whose bits below are those of the seed: this isf vat the seed; - output the mask bits of term
tplus theΔ ktable values.
At a defined entry this is term t's parity, which is the entry. The Δ k readings of F cost
(1 + 1 / P) 2 ^ L / L gates by Uhlig's theorem
(MassProduction.eventually_mul_complexity_table_le). Each address bit and the output read only
⌈log₂ m⌉ + O(Δ² + Δ k) input bits, so they cost O((m + 1) (L + 1) ²) gates
(complexity_le_mul_of_forall_dependsOn). That is at most 2 ^ L / (P L) once
(m + 1) ² ≤ 2 ^ L, which λ ≥ λ₀ (m + 1) ² ensures.
The threshold is existential. λ₀ = 2 ^ L₀ comes from Uhlig's and Lupanov's eventual bounds
and is not computed. A reduction fixes it and takes λ = λ₀ (|I| + 1) ², which is polynomial in the
input length whatever the constant is, since m ≤ |I| for the encoding of I.
Main results #
Cslib.PartialMCSP.FromCMMSA.exists_toInstance_mem_PartialMCSP: Yes instances map to Yes instances of partial MCSP for everyf, onceλ ≥ λ₀ (m + 1) ².Cslib.PartialMCSP.FromCMMSA.exists_satTerm: a satisfying assignment satisfies a term of every formula.Cslib.PartialMCSP.FromCMMSA.sum_two_pow_varLength_le_two_mul_weight: the blocks of an assignmentShave total size at most2 w(S) λ.
The last two are also used by the MINKT* generator (Cslib.Kolmogorov.MINKTStar.GenWitness).
References #
Bits of numbers #
The hard-wired table #
Addresses and the output #
Correctness #
Every formula of a Yes instance has a term whose variables lie in the satisfying assignment.
The blocks of the variables of an assignment S have total size at most 2 w(S) λ.
Size #
Yes completeness #
Yes completeness of the CMMSA table. For every Δ, k and precision P > 0 there is a
constant λ₀ such that every Yes instance I of GapCMMSA Δ g σ maps into partial MCSP for every
choice of the functions f, once λ ≥ λ₀ (m + 1) ², where m is the number of formulas.
λ₀ is existential and not computed: it comes from the eventual bounds of Uhlig's theorem
(MassProduction.eventually_mul_complexity_table_le) and of 16 (P K) ² L ⁶ ≤ 2 ^ L. A reduction
fixes it and takes λ = λ₀ (|I| + 1) ² for the input length |I|, which is at least m. The gap
g and the proportion σ play no part on the Yes side.