Documentation

CslibFrontier.Computability.MCSP.PartialHardness.Soundness

No soundness of the CMMSA table #

For a No instance I of GapCMMSA Δ g 1, the partial MCSP table FromCMMSA.toInstance I Δ k λ P f is a No instance for at least two thirds of the choices of the functions f, once λ ≥ λ₀ (N + 1) ² for a bound N on the number of formulas, the number of variables and the weights (issue #4362, route B, milestone H4). The table comes from CslibFrontier.Computability.MCSP.PartialHardness.Construction, and its Yes completeness is CslibFrontier.Computability.MCSP.PartialHardness.Completeness. The analysis is the library's own; [Hir22] fixes only the problem shape.

The count. A circuit h of size at most s that agrees with the table for f makes the variables v with f v ∈ cand h v weigh more than g θ (FromCMMSA.lt_weight_cand). The set cand h v does not depend on f. With γ = log 2 - H(δ₀) and B = log (4 Δ⁴) + A log 2 for the input length A, the list-size bound FromCMMSA.card_cand_le and 2 ^ ℓ v ≥ w v λ give #cand h v ≤ e^(-c w v) 2 ^ 2 ^ ℓ v with c = γ λ - B. Independence of the f v and the weighted tail bound Cslib.card_filter_le_sum_weight_le leave at most a 2 ^ n e^(-c g θ) fraction of the f for each h. A union bound over any family F of at most 2 ^ M functions that covers the f in question bounds their fraction by 2 ^ (M + n) e^(-c g θ) (FromCMMSA.three_mul_card_le_of_log_le). For partial MCSP, F is the functions of complexity at most s (Cslib.Circuits.Boolean.card_computableFunctions_le_two_pow).

The parameters. The threshold is s = ⌊(P + 2) 2 ^ L / (P L)⌋ with 2 ^ L ≤ 4 θ λ, so M ≤ (s + 1) (2 L + 3) ≈ 8 (1 + 2 / P) θ λ, while c g θ ≈ g γ θ λ. Since A = O(log λ) and n ≤ N ≤ λ / λ₀, the fraction is below 1 / 3 for large λ once g (log 2 - H(δ₀)) > 8 (1 + 2 / P) log 2, that is g > 8 (1 + 2 / P) / (1 - H₂(δ₀)) for the binary entropy H₂ = H / log 2 in bits. Here 8 comes from the crude count card_computableFunctions_le_two_pow; improving it to 4 would need a Stirling-level count of circuits. The gap g is free in the NP-hardness of GapCMMSA, so the larger constant does not affect the reduction.

Other families. When F has at most 2 ^ (κ θ λ + C (N + 1)) members, the same analysis needs only g (log 2 - H(δ₀)) > κ log 2 and λ ≥ λ₀ (N + 1) (FromCMMSA.exists_three_mul_card_le_of_card_le_two_pow). This serves targets whose small objects are counted directly, such as truth tables of small time-bounded Kolmogorov complexity (MINKT*, issue #4447).

Main results #

References #

Analysis helpers #

theorem Cslib.PartialMCSP.FromCMMSA.inputLength_le_clog {I : Complexity.CMMSAInstance} {Δ k lam : ℕ} (hm : I.formulas.length ≤ lam) (hw : ∀ w ∈ I.weights, w ≤ lam) :
inputLength I Δ k lam ≤ Nat.clog 2 lam + Δ ^ 2 * (2 * k * Nat.clog 2 lam + 1)

The input length is logarithmic in λ. When the numbers of formulas and the weights are at most λ, the input length is at most (1 + 2 k Δ²) ⌈log₂ λ⌉ + Δ².

The count for fixed parameters #

theorem Cslib.PartialMCSP.FromCMMSA.agreesWith_toInstance_iff {I : Complexity.CMMSAInstance} {Δ k lam P : ℕ} {f : VarFunctions I lam} {h : BooleanFunction (inputLength I Δ k lam)} :
(toInstance I Δ k lam P f).AgreesWith h ↔ ∀ (x : BitString (inputLength I Δ k lam)) (b : Bool), entry f x = some b → h x = b

Agreement through the entries. A total function agrees with the table toInstance I Δ k λ P f exactly when it extends entry f; the threshold P plays no role.

theorem Cslib.PartialMCSP.FromCMMSA.three_mul_card_le_of_log_le {I : Complexity.CMMSAInstance} {Δ k lam : ℕ} {g : ℝ} (hI : I ∈ (Complexity.GapCMMSA Δ g 1).no) (hk : Odd k) (hΔ : 0 < Δ) {δ₀ : ℝ} (hδ₀ : 0 ≤ δ₀) (hδ₀' : δ₀ ≤ 1 / 2) (hkδ : (1 - 2 * δ₀) ^ k ≤ 1 / (2 * ↑Δ ^ 2)) (F : Finset (BooleanFunction (inputLength I Δ k lam))) {M : ℕ} (hF : F.card ≤ 2 ^ M) (Good : VarFunctions I lam → Prop) [DecidablePred Good] (hGood : ∀ (f : VarFunctions I lam), Good f → ∃ h ∈ F, ∀ (x : BitString (inputLength I Δ k lam)) (b : Bool), entry f x = some b → h x = b) (hc : 0 ≤ ↑lam * (Real.log 2 - Real.binEntropy δ₀) - (Real.log (4 * ↑Δ ^ 4) + ↑(inputLength I Δ k lam) * Real.log 2)) (hlog : Real.log 3 + (↑M + ↑I.weights.length) * Real.log 2 ≤ (↑lam * (Real.log 2 - Real.binEntropy δ₀) - (Real.log (4 * ↑Δ ^ 4) + ↑(inputLength I Δ k lam) * Real.log 2)) * (g * ↑I.threshold)) :
3 * {f : VarFunctions I lam | Good f}.card ≤ Fintype.card (VarFunctions I lam)

The count for fixed parameters, for any family of functions. Let F hold at most 2 ^ M functions on the input length A, and let every f with Good f have its entries extended by some member of F. If log 3 + (M + n) log 2 ≤ c g θ for c = γ λ - B ≥ 0, then Good holds for at most a third of the functions f. For partial MCSP, F is the functions of circuit complexity at most the threshold; for MINKT*, the functions whose truth tables have small K^t.

No soundness #

theorem Cslib.PartialMCSP.FromCMMSA.three_mul_card_toInstance_mem_PartialMCSP_le (Δ k P : ℕ) (hP : 0 < P) (hk : Odd k) {δ₀ g : ℝ} (hδ₀ : 0 ≤ δ₀) (hδ₀' : δ₀ ≤ 1 / 2) (hkδ : (1 - 2 * δ₀) ^ k ≤ 1 / (2 * ↑Δ ^ 2)) (hg : 8 * (1 + 2 / ↑P) * Real.log 2 < g * (Real.log 2 - Real.binEntropy δ₀)) :
∃ (lam₀ : ℕ), ∀ I ∈ (Complexity.GapCMMSA Δ g 1).no, ∀ (N : ℕ), I.formulas.length ≤ N → I.weights.length ≤ N → (∀ w ∈ I.weights, w ≤ N) → ∀ (lam : ℕ), lam₀ * (N + 1) ^ 2 ≤ lam → 3 * {f : VarFunctions I lam | toInstance I Δ k lam P f ∈ PartialMCSP}.card ≤ Fintype.card (VarFunctions I lam)

No soundness of the CMMSA table. Let k be odd, 0 ≤ δ₀ ≤ 1 / 2 with (1 - 2 δ₀) ^ k ≤ 1 / (2 Δ ²), and g (log 2 - H(δ₀)) > 8 (1 + 2 / P) log 2, that is g > 8 (1 + 2 / P) / (1 - H₂(δ₀)) with the binary entropy H₂ in bits. There is a constant λ₀ such that for every No instance I of GapCMMSA Δ g 1 whose numbers of formulas and variables and whose weights are at most N, and every λ ≥ λ₀ (N + 1) ², at most a third of the choices of the functions f put the table toInstance I Δ k λ P f in partial MCSP.

λ₀ is existential and not computed: it comes from eventual bounds on L / 2 ^ L. The constant 8 comes from the crude circuit count card_computableFunctions_le_two_pow; improving it to 4 would need a Stirling-level count.

theorem Cslib.PartialMCSP.FromCMMSA.exists_three_mul_card_le_of_card_le_two_pow (Δ k : ℕ) (hk : Odd k) {δ₀ g : ℝ} (hδ₀ : 0 ≤ δ₀) (hδ₀' : δ₀ ≤ 1 / 2) (hkδ : (1 - 2 * δ₀) ^ k ≤ 1 / (2 * ↑Δ ^ 2)) (κ C : ℕ) (hg : ↑κ * Real.log 2 < g * (Real.log 2 - Real.binEntropy δ₀)) :
∃ (lam₀ : ℕ), 1 ≤ lam₀ ∧ ∀ I ∈ (Complexity.GapCMMSA Δ g 1).no, ∀ (N : ℕ), I.formulas.length ≤ N → I.weights.length ≤ N → (∀ w ∈ I.weights, w ≤ N) → ∀ (lam : ℕ), lam₀ * (N + 1) ≤ lam → ∀ (F : Finset (BooleanFunction (inputLength I Δ k lam))), F.card ≤ 2 ^ (κ * I.threshold * lam + C * (N + 1)) → ∀ (Good : VarFunctions I lam → Prop) [inst : DecidablePred Good], (∀ (f : VarFunctions I lam), Good f → ∃ h ∈ F, ∀ (x : BitString (inputLength I Δ k lam)) (b : Bool), entry f x = some b → h x = b) → 3 * {f : VarFunctions I lam | Good f}.card ≤ Fintype.card (VarFunctions I lam)

No soundness for any small family of functions. Let k be odd, 0 ≤ δ₀ ≤ 1 / 2 with (1 - 2 δ₀) ^ k ≤ 1 / (2 Δ ²), and g (log 2 - H(δ₀)) > κ log 2. There is a constant λ₀ ≥ 1 such that for every No instance I of GapCMMSA Δ g 1 whose numbers of formulas and variables and whose weights are at most N, and every λ ≥ λ₀ (N + 1), the following holds. Let F be at most 2 ^ (κ θ λ + C (N + 1)) functions on the input length, and let every f with Good f have its entries extended by some member of F. Then Good holds for at most a third of the choices of the functions f.

This is the union bound of three_mul_card_toInstance_mem_PartialMCSP_le with the family left abstract and its size linear in θ λ; it serves a target problem whose small objects number at most 2 ^ (κ θ λ + C (N + 1)), such as the truth tables of small time-bounded Kolmogorov complexity. λ₀ is existential and not computed.