Documentation

CslibFrontier.Computability.Complexity.FineGrained.SparseCountingScale

Asymptotic parameter schedules for sparse and general k-SAT counting #

In Sections 6.3 and 6.4 of OpenAI's The Exponential Time Hypothesis is False [OAI26k], satisfiability counting on a k-CNF with n variables and m clauses reduces via disjoint sparsification (Lemma 6.3) to counting sparse leaf formulas at the discrete parameter schedule λ_n = ⌈log₂ n⌉, ν_n = ⌈log₂ λ_n⌉, and s_n = ⌊√λ_n / ν_n²⌋. Notice that s_n coincides with the replacement-matrix group count ReplacementParams.numGroups n of Section 4.7, equation (4.17).

This module establishes the exact integer-comparison floor characterization and sharp permanent threshold 2 ≤ numGroups n (640000 ≤ ⌈log₂ n⌉), the tree-exponent bound n / numGroups n = O(interpolationScale n), the polylogarithmic absorption (log n)^d = o(interpolationScale n) underlying equation (6.4), the polylogarithmic leaf-occurrence bound B = O_k((s_n log s_n)^{k - 1}) ≤ λ_n^k discharging Lemma 4.8 feasibility, and the uniform runtime-composition theorems of Section 6.3 equation (6.4) (on the sparse domain m ≤ C_B * ⌈log₂ n⌉ ^ β * n) and Proposition 6.4 (across all n, m : ℕ).

The runtime-composition theorems are real-arithmetic statements about an arbitrary function time : ℕ → ℕ → ℝ: the hypothesis htime bounds time n m by the composed cost terms (exhaustive-search fallback, sparsification tree, construction and candidate calls), and the conclusion absorbs these into a single bound. These theorems mention no machine, algorithm or CNF formula.

Main definitions #

Main results #

References #

Integer floor characterization of numGroups (s_n = ⌊√λ_n / ν_n²⌋) #

numGroups n ≤ √⌈log₂ n⌉ for every natural number n.

numGroups n ≤ ⌈log₂ n⌉ for every natural number n.

Combined floor characterization s_n² ν_n⁴ ≤ λ_n < (s_n + 1)² ν_n⁴ for 1 ≤ ν_n.

Exact integer-comparison characterization of numGroups n (s_n in Proposition 6.4): when 1 ≤ ν_n, numGroups n is the largest natural number m satisfying m² ν_n⁴ ≤ λ_n.

Decidable equality characterization of numGroups n via pure integer comparisons for 1 ≤ ν_n.

Permanent positivity threshold and divergence of numGroups #

Exact permanent threshold in λ_n = ⌈log₂ n⌉: whenever 640000 ≤ Nat.clog 2 n, 2 ≤ numGroups n. (Note λ_n = 639999 still gives ν_n = 20 and s_n = 799 / 400 = 1, so 640000 is sharp.)

Explicit dyadic threshold: for 2 ^ 640000 ≤ n, 2 ≤ numGroups n.

The discrete sparsification parameter numGroups n (s_n) tends to infinity, justifying the finiteness of the exhaustive-search fallback s_n < 2 in Proposition 6.4.

For any bound B, there are only finitely many n with numGroups n < B.

Core Section 6.4 tree-exponent bound (n / numGroups n = O(interpolationScale n)) #

When 1 ≤ numGroups n, the integer floor gives n / s_n ≤ 2 n ν_n² / √λ_n.

Explicit constant tree-exponent inequality: whenever 640000 ≤ Nat.clog 2 n, n / numGroups n ≤ 16 * interpolationScale n.

Concrete eventual tree-exponent bound (C = 16): eventually n / numGroups n ≤ 16 * interpolationScale n.

Core Section 6.4 tree-exponent asymptotic bound: n / numGroups n = O(interpolationScale n).

Core Section 6.3 equation (6.4) polylogarithmic and quasi-polynomial absorption #

Any fixed power of log (n + 16) is o(interpolationScale n) (Section 6.3, p. 43).

Any fixed power of λ_n = ⌈log₂ n⌉ is o(interpolationScale n).

Every constant multiple of log (n + 16) ^ d is eventually bounded by ε * interpolationScale n for any ε > 0.

Every constant multiple of ⌈log₂ n⌉ ^ d is eventually bounded by ε * interpolationScale n for any ε > 0.

Quasi-polynomial base-2 overhead (2 : ℝ) ^ (C * ⌈log₂ n⌉ ^ d) is eventually bounded by (2 : ℝ) ^ (ε * interpolationScale n) for every ε > 0.

Concrete leaf-factor bound (A_tree = 17): for any polynomial degree d, eventually (n + numGroups n + 1) ^ d * 2 ^ (n / numGroups n) ≤ 2 ^ (17 * ρ(n)).

For any polynomial degree d, there exists A_tree > 0 such that eventually the full sparsification leaf factor (n + numGroups n + 1) ^ d * 2 ^ (n / numGroups n) is bounded by 2 ^ (A_tree * interpolationScale n).

theorem Cslib.Complexity.SubexponentialSAT.SparseCountingScale.eventually_query_overhead_poly_le (C_B β C_P e_B e_μ : ℕ) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (m B P : ℕ), m ≤ B * n → B ≤ C_B * Nat.clog 2 n ^ β → P ≤ C_P * B ^ e_B * Nat.clog 2 (2 * m + 4) ^ e_μ → 3 * ↑n * (2 * ↑m + 2) ^ P + 1 ≤ 2 ^ (ε * interpolationScale n)

General polynomial-exponent query overhead absorption: for any C_B, β, C_P, e_B, e_μ : ℕ and every ε > 0, eventually in n, every (m, B, P) satisfying m ≤ B * n, B ≤ C_B * ⌈log₂ n⌉ ^ β, and P ≤ C_P * B ^ e_B * ⌈log₂ (2 m + 4)⌉ ^ e_μ obeys 3 * n * (2 * m + 2) ^ P + 1 ≤ 2 ^ (ε * interpolationScale n).

theorem Cslib.Complexity.SubexponentialSAT.SparseCountingScale.eventually_query_overhead_le (C_B β C_P : ℕ) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (m B P : ℕ), m ≤ B * n → B ≤ C_B * Nat.clog 2 n ^ β → P ≤ C_P * Nat.clog 2 (2 * m + 2) → 3 * ↑n * (2 * ↑m) ^ P + 1 ≤ 2 ^ (ε * interpolationScale n)

Query-count overhead absorption (3 * n * (2 * m) ^ P + 1 ≤ 2 ^ (ε * interpolationScale n)): when m ≤ B * n, B ≤ C_B * ⌈log₂ n⌉ ^ β, and P ≤ C_P * ⌈log₂ (2 m + 2)⌉, the Lemma 6.2 candidate count is eventually bounded by 2 ^ (ε * interpolationScale n) for every ε > 0.

Section 6.4 leaf occurrence polylogarithmic bound #

The per-variable occurrence bound C_k * (s * (⌈log₂ (2 s)⌉ + 1)) ^ (k - 1) of Lemma 6.3 specialized to σ = 1 / s (printed p. 44).

For every 5 ≤ n, numGroups n * (⌈log₂ (2 * numGroups n)⌉ + 1) ≤ ⌈log₂ n⌉.

Uniform polynomial occurrence bound: for every 5 ≤ n (in particular whenever 2 ≤ numGroups n), leafOccurrenceBound C_k k (numGroups n) ≤ C_k * ⌈log₂ n⌉ ^ (k - 1).

Explicit threshold form of the leaf occurrence bound (β = k): for 1 ≤ k, 5 ≤ n, and C_k ≤ ⌈log₂ n⌉, leafOccurrenceBound C_k k (numGroups n) ≤ ⌈log₂ n⌉ ^ k.

Discharging Lemma 4.8's polylogarithmic occurrence hypothesis b ≤ ⌈log₂ n⌉ ^ β with explicit exponent β = k: for 1 ≤ k (including all 2 ≤ k in Lemma 6.3 and Proposition 6.4), eventually leafOccurrenceBound C_k k (numGroups n) ≤ ⌈log₂ n⌉ ^ k.

Direct Lemma 4.8 feasibility bridge: for 1 ≤ k, the Proposition 6.4 leaf-occurrence cap leafOccurrenceBound C_k k (numGroups n) eventually discharges the b ≤ ⌈log₂ n⌉ ^ k hypothesis of ReplacementParams.exists_feasible, yielding ReplacementParams.Feasible k n b w M.

Section 6.3 equation (6.4) and Proposition 6.4 runtime composition #

theorem Cslib.Complexity.SubexponentialSAT.SparseCountingScale.sparse_formula_time_bound (N₀ C_exhaust d_exhaust C_init d_init d_call C_B β C_P e_B e_μ : ℕ) (A_sys : ℝ) (time : ℕ → ℕ → ℝ) (htime : ∀ (n m : ℕ), m ≤ C_B * Nat.clog 2 n ^ β * n → n < N₀ ∧ time n m ≤ ↑C_exhaust * (↑n + ↑m + 1) ^ d_exhaust * 2 ^ n ∨ N₀ ≤ n ∧ ∃ (B : ℕ) (P : ℕ), m ≤ B * n ∧ B ≤ C_B * Nat.clog 2 n ^ β ∧ P ≤ C_P * B ^ e_B * Nat.clog 2 (2 * m + 4) ^ e_μ ∧ time n m ≤ 2 ^ (↑C_init * ↑(Nat.clog 2 n) ^ d_init) + (↑n + ↑m + 1) ^ d_call * (3 * ↑n * (2 * ↑m + 2) ^ P + 1) * 2 ^ (A_sys * interpolationScale n)) :
∃ (C_sparse : ℕ) (d_sparse : ℕ) (A_sparse : ℝ), 0 < A_sparse ∧ ∀ (n m : ℕ), m ≤ C_B * Nat.clog 2 n ^ β * n → time n m ≤ ↑C_sparse * (↑n + ↑m + 1) ^ d_sparse * 2 ^ (A_sparse * interpolationScale n)

Section 6.3 equation (6.4) (counting one sparse formula): on the promised sparse domain m ≤ C_B * ⌈log₂ n⌉ ^ β * n, combining the finite n < N₀ fallback with Lemma 6.1 initial-test construction 2 ^ (C_init * ⌈log₂ n⌉ ^ d_init) and at most 3 n (2 m + 2) ^ P + 1 candidate calls each bounded by (n + m + 1) ^ d_call * 2 ^ (A_sys * interpolationScale n) yields a uniform bound C_sparse * (n + m + 1) ^ d_sparse * 2 ^ (A_sparse * interpolationScale n) on time n m across all n, m : ℕ with m ≤ C_B * ⌈log₂ n⌉ ^ β * n, with 0 < A_sparse. Here time : ℕ → ℕ → ℝ is an arbitrary function and these component bounds are the hypothesis htime on it, with P ≤ C_P * B ^ e_B * ⌈log₂ (2 m + 4)⌉ ^ e_μ for some B ≤ C_B * ⌈log₂ n⌉ ^ β with m ≤ B * n.

theorem Cslib.Complexity.SubexponentialSAT.SparseCountingScale.prop64_time_bound_general (N₀ C_exhaust d_exhaust C_tree d_tree C_node d_node C_init_coeff C_init d_init d_leaf C_B β C_P e_B e_μ : ℕ) (A_sys : ℝ) (time : ℕ → ℕ → ℝ) (htime : ∀ (n m : ℕ), (n < N₀ ∨ ReplacementParams.numGroups n < 2) ∧ time n m ≤ ↑C_exhaust * (↑n + ↑m + 1) ^ d_exhaust * 2 ^ n ∨ 2 ≤ ReplacementParams.numGroups n ∧ ∃ (B_n : ℕ) (m_leaf : ℕ) (P_leaf : ℕ), m_leaf ≤ B_n * n ∧ B_n ≤ C_B * Nat.clog 2 n ^ β ∧ P_leaf ≤ C_P * B_n ^ e_B * Nat.clog 2 (2 * m_leaf + 4) ^ e_μ ∧ time n m ≤ ↑C_tree * (↑n + ↑(ReplacementParams.numGroups n) + 1) ^ d_tree * 2 ^ (n / ReplacementParams.numGroups n + 1) * (↑C_node * (↑n + ↑m + 1) ^ d_node + ↑C_init_coeff * 2 ^ (↑C_init * ↑(Nat.clog 2 n) ^ d_init) + (↑n + ↑m_leaf + 1) ^ d_leaf * (3 * ↑n * (2 * ↑m_leaf + 2) ^ P_leaf + 1) * 2 ^ (A_sys * interpolationScale n))) :
∃ (C_total : ℕ) (d_total : ℕ) (A_total : ℝ), 0 < A_total ∧ ∀ (n m : ℕ), time n m ≤ ↑C_total * (↑n + ↑m + 1) ^ d_total * 2 ^ (A_total * interpolationScale n)

General Proposition 6.4 runtime-composition theorem (including polynomial-exponent P_leaf as in Lemma 6.1's P = 20000 B² μ² and optional per-leaf initial-matrix construction cost): if an arbitrary function time : ℕ → ℕ → ℝ satisfies, for all n, m : ℕ, either the exhaustive-search fallback bound (with n < N₀ or numGroups n < 2) or the sparsification-tree traversal bound (with 2 ≤ numGroups n) of the hypothesis htime, then there are C_total, d_total : ℕ and A_total > 0 with time n m ≤ C_total * (n + m + 1) ^ d_total * 2 ^ (A_total * interpolationScale n) for all n, m : ℕ.

theorem Cslib.Complexity.SubexponentialSAT.SparseCountingScale.prop64_time_bound (N₀ C_exhaust d_exhaust C_tree d_tree d_node d_leaf C_B β C_P : ℕ) (A_sys : ℝ) (time : ℕ → ℕ → ℝ) (htime : ∀ (n m : ℕ), (n < N₀ ∨ ReplacementParams.numGroups n < 2) ∧ time n m ≤ ↑C_exhaust * (↑n + ↑m + 1) ^ d_exhaust * 2 ^ n ∨ 2 ≤ ReplacementParams.numGroups n ∧ ∃ (B_n : ℕ) (m_leaf : ℕ) (P_leaf : ℕ), m_leaf ≤ B_n * n ∧ B_n ≤ C_B * Nat.clog 2 n ^ β ∧ P_leaf ≤ C_P * Nat.clog 2 (2 * m_leaf + 4) ∧ time n m ≤ ↑C_tree * (↑n + ↑(ReplacementParams.numGroups n) + 1) ^ d_tree * 2 ^ (n / ReplacementParams.numGroups n + 1) * ((↑n + ↑m + 1) ^ d_node + (↑n + ↑m_leaf + 1) ^ d_leaf * (3 * ↑n * (2 * ↑m_leaf + 2) ^ P_leaf + 1) * 2 ^ (A_sys * interpolationScale n))) :
∃ (C_total : ℕ) (d_total : ℕ) (A_total : ℝ), 0 < A_total ∧ ∀ (n m : ℕ), time n m ≤ ↑C_total * (↑n + ↑m + 1) ^ d_total * 2 ^ (A_total * interpolationScale n)

Proposition 6.4 runtime-composition theorem (printed pp. 43–44): combining

  1. tree node/leaf count ≤ C_tree * (n + s_n + 1) ^ d_tree * 2 ^ (n / s_n + 1) for s_n = numGroups n,
  2. per-leaf sparse-formula count time ≤ (n + m_leaf + 1) ^ d_leaf * (3 * n * (2 * m_leaf + 2) ^ P_leaf + 1) * 2 ^ (A_sys * ρ(n)) with m_leaf ≤ B_n * n, B_n ≤ C_B * ⌈log₂ n⌉ ^ β, and P_leaf ≤ C_P * ⌈log₂ (2 m_leaf + 4)⌉,
  3. per-node processing overhead (n + m + 1) ^ d_node, and
  4. finite small-n / numGroups n < 2 exhaustive-search fallback C_exhaust * (n + m + 1) ^ d_exhaust * 2 ^ n, there exist C_total, d_total : ℕ and A_total > 0 with time n m ≤ C_total * (n + m + 1) ^ d_total * 2 ^ (A_total * interpolationScale n) for all n, m : ℕ. Here time : ℕ → ℕ → ℝ is an arbitrary function and items 1–4 are the hypothesis htime on it: for each n, m, either time n m is at most bound 4 with n < N₀ or numGroups n < 2, or 2 ≤ numGroups n and, for some m_leaf, B_n, P_leaf as in item 2, time n m is at most bound 1 times the sum of bounds 3 and 2.