Documentation

CslibFrontier.Logics.Propositional.ClauseSet.Sparsification.CountingQuantitative

Input-dependent budgets for disjoint sparsification #

For a fixed denominator d ≥ 2, use the dyadic approximation to (n + 1) ^ (1/d) as the inverse error budget of the existing disjoint counting sparsifier. The budget is computable in polynomial time from binary n. The same choice yields a power saving 1/d in the leaf-count exponent and at most a constant times (n + 1) ^ (1 + 2*k/d) clauses per leaf.

This proves the combinatorial bounds needed in [MITHardnessGroup2026SH, Lemma 2.2, §2.2, printed pp. 6–7] for reciprocal integer savings, using the thresholds and disjoint branches from [OpenAI2026ETH, Appendix A] already formalized in this library. The bound concerns the leaf list and does not certify its generation time.

Dyadic inverse sparsification error budget for n declared variables and saving 1/d.

The selected inverse error budget is positive, including on zero variables.

theorem Cslib.Logic.PL.ClauseSet.Sparsification.countingPowerBudget_quotient_le {d : ℕ} (hd : 1 ≤ d) (n : ℕ) :
↑(n / countingPowerBudget d n + 1) ≤ 3 * (↑n + 1) ^ (1 - (↑d)⁻¹)

The binary enumeration exponent saves a fixed power, uniformly in the variable count.

theorem Cslib.Logic.PL.ClauseSet.Sparsification.exists_countingPowerBudget_clauseBound_le {k : ℕ} (hk : 2 ≤ k) :
∃ (A : ℕ), ∀ {d : ℕ}, 1 ≤ d → ∀ (n : ℕ), ↑((2 * ∑ j ∈ Finset.range k, countingThresholdBase k (countingPowerBudget d n) ^ j) * n + 1) ≤ ↑A * (↑n + 1) ^ (1 + 2 * ↑k / ↑d)

For fixed width, the selected density times the variable count bounds the leaf size by a constant times (n + 1) ^ (1 + 2*k/d), uniformly in d.

theorem Cslib.Logic.PL.ClauseSet.Sparsification.countingLeaves_nontautological_powerBudget_spec {k d : ℕ} (hk : 2 ≤ k) (hd : 2 ≤ d) :
∃ (A : ℕ), ∀ {V : Type u_1} [inst : DecidableEq V] (φ : CNF V) (declared : Finset V), (∀ c ∈ φ, List.length c ≤ k) → φ.vars.toFinset ⊆ declared → have n := declared.card; have M := countingThresholdBase k (countingPowerBudget d n); have leaves := countingLeaves (fun (x : ℕ) => M ^ x) (reduce (nontautological φ.toClauseSet)); ↑leaves.length ≤ 2 ^ (3 * (↑n + 1) ^ (1 - (↑d)⁻¹)) ∧ (List.map (fun (L : ClauseSet V) => L.toCNF.modelCountOn declared) leaves).sum = φ.modelCountOn declared ∧ (∀ (x : V → Bool), List.countP (fun (F : CNF V) => CNF.eval x F) (List.map toCNF leaves) = if CNF.eval x φ = true then 1 else 0) ∧ ∀ L ∈ leaves, ↑(Finset.card L) ≤ ↑A * (↑n + 1) ^ (1 + 2 * ↑k / ↑d)

The normalized disjoint leaf list simultaneously has a power-saving count bound and a polynomial clause bound. Exact model counts use the original declared variable set.