Documentation

CslibFrontier.Computability.MCSP.PartialHardness.Completeness

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:

  1. choose a term t of φ_j whose variables all lie in S;
  2. for each occupied slot (t, q) and each seed i, read F at the address whose bits above ℓ v are the start of the block of v and whose bits below are those of the seed: this is f v at the seed;
  3. output the mask bits of term t plus the Δ k table 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 #

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 #

theorem Cslib.PartialMCSP.FromCMMSA.exists_satTerm {I : Complexity.CMMSAInstance} {S : Finset ℕ} (hmono : ∀ φ ∈ I.formulas, ∀ t ∈ φ, ∀ l ∈ t, l.2 = true) (hsat : ∀ φ ∈ I.formulas, Logic.PL.DNF.eval (fun (i : ℕ) => decide (i ∈ S)) φ = true) :
∃ (τ : ℕ → ℕ), ∀ j < I.formulas.length, τ j < List.length (I.formulas.getD j []) ∧ ∀ q < List.length (term I j (τ j)), var I j (τ j) q ∈ S

Every formula of a Yes instance has a term whose variables lie in the satisfying assignment.

theorem Cslib.PartialMCSP.FromCMMSA.sum_two_pow_varLength_le_two_mul_weight {I : Complexity.CMMSAInstance} {Δ lam : ℕ} {S : Finset ℕ} (hS : S ⊆ Finset.range I.weights.length) (hwf : I.WellFormed Δ) (hlam : 1 ≤ lam) :
∑ v ∈ S, 2 ^ varLength I lam v ≤ 2 * I.weight S * lam

The blocks of the variables of an assignment S have total size at most 2 w(S) λ.

Size #

Yes completeness #

theorem Cslib.PartialMCSP.FromCMMSA.exists_toInstance_mem_PartialMCSP (Δ k P : ℕ) (hP : 0 < P) :
∃ (lam₀ : ℕ), ∀ (g σ : ℝ), ∀ I ∈ (Complexity.GapCMMSA Δ g σ).yes, ∀ (lam : ℕ), lam₀ * (I.formulas.length + 1) ^ 2 ≤ lam → ∀ (f : VarFunctions I lam), toInstance I Δ k lam P f ∈ PartialMCSP

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.