Documentation

CslibFrontier.Computability.Complexity.FineGrained.ReplacementParams

The concrete replacement parameter schedule (Section 4.7, Lemma 4.8) #

Section 4.7 of [OpenAI2026ETH] instantiates the general replacement-matrix hypotheses of Lemma 4.7 in the polylogarithmic degree/occurrence regime b, w ≤ λ ^ β, where λ = ⌈log₂ n⌉ and ν = ⌈log₂ λ⌉. Equation (4.17) sets

This module gives computable integer definitions for the discrete parameters, proves their exact identities with the real floor/ceiling formulas of equation (4.17), establishes the deterministic containment, biased Binomial tail (binomTail_lt_tailBudget), and row-cost (rowCost_le) bounds once 2 ≤ r, 32 ≤ R, and 6 R ≤ Q, proves Lemma 4.8 (exists_feasible) for all sufficiently large n, and connects n * rowCost β n to interpolationScale from CountingScale.lean.

Main definitions #

Main results #

References #

Schedule definitions (equation 4.17) #

Number of variable/factor groups r = ⌊√λ / ν²⌋, computed via integer square root and division for λ = Nat.clog 2 n and ν = Nat.clog 2 λ.

Number of interpolation nodes per block Q = ⌊λ / (128 ν)⌋.

Degree/interval length parameter R = (β + 3) ⌈√λ⌉.

Auxiliary replacement dimension D = r ^ (2 Q).

Measurement step scale τ = 1 / (r λ).

Binomial tail budget ε = 1 / (b r² λ) of equation (4.17).

Single-trial bias p = (r - 1) / (2 r) of Lemma 4.7 and Lemma 4.8.

Binomial mean μ = Q (r - 1) / (2 r) of Lemma 4.8.

Left endpoint A₀ = ⌊μ - (R - 1) / 2⌋ of the concentrated weight interval I.

Discrete weight interval I = {A₀, …, A₀ + R - 1}.

Binomial tail probability Pr[W ∉ I] for W ~ Bin(Q, (r - 1) / (2 r)).

The three-term counting-exponent quantity (R / Q) log (2 Q / R) + τ log (2 D + 1) + 1 / r bounded in equation (4.18).

Exact floor/ceiling identities and unconditional auxDim bound #

tailBudget b n equals τ / (r b), matching Lemma 4.7's tail threshold.

Lower integer comparison bound: r² ν⁴ ≤ λ for every n, where r = numGroups n, λ = Nat.clog 2 n, and ν = Nat.clog 2 λ ([OAI26k], Proposition 6.4, pp. 43–44).

Upper integer comparison bound: λ < (r + 1)² ν⁴ whenever 1 ≤ ν (3 ≤ n), where r = numGroups n, λ = Nat.clog 2 n, and ν = Nat.clog 2 λ ([OAI26k], Proposition 6.4, pp. 43–44).

numGroups n agrees with the real floor ⌊√λ / ν²⌋₊ for every n.

numNodes n agrees with the real floor ⌊λ / (128 ν)⌋₊ for every n.

rowBound β n agrees with (β + 3) * ⌈√λ⌉₊ for every β and n.

Unconditional integer auxiliary dimension bound D ≤ 2 ^ (λ / 128) of Lemma 4.8.

Real-exponent form D ≤ 2 ^ ((λ : ℝ) / 128) of Lemma 4.8.

Deterministic interval, Binomial tail, and row-cost bounds #

intervalStart β n equals the ℕ-floor ⌊μ - (R - 1) / 2⌋₊ once 2 ≤ r, 1 ≤ R, and 2 R ≤ Q.

(intervalStart β n : ℤ) equals the integer floor ⌊μ - (R - 1) / 2⌋ once 2 ≤ r, 1 ≤ R, and 2 R ≤ Q.

The interval I = {A₀, …, A₀ + R - 1} has exact cardinality R whenever 1 ≤ R.

Whenever 2 ≤ r, 1 ≤ R, and 2 R ≤ Q, the interval I lies inside {0, …, Q}.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.mem_interval_of_abs_sub_le {β n k : ℕ} (hr : 2 ≤ numGroups n) (hR : 32 ≤ rowBound β n) (hRQ : 2 * rowBound β n ≤ numNodes n) (hk : |↑k - mean n| ≤ ↑(rowBound β n) / 4) :
k ∈ interval β n

Whenever 2 ≤ r, 32 ≤ R, and 2 R ≤ Q, every natural number within R / 4 of μ belongs to interval β n.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.binomTail_lt_tailBudget {β n b : ℕ} (hβ : 1 ≤ β) (hr : 2 ≤ numGroups n) (hR : 32 ≤ rowBound β n) (hRQ : 6 * rowBound β n ≤ numNodes n) (hb₁ : 1 ≤ b) (hb₂ : b ≤ Nat.clog 2 n ^ β) :

Deterministic Binomial tail bound of Lemma 4.8: once 1 ≤ β, 2 ≤ r, 32 ≤ R, and 6 R ≤ Q, for every 1 ≤ b ≤ λ ^ β the Binomial tail outside interval β n is strictly less than tailBudget b n = 1 / (b r² λ).

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.rowCost_le {β n : ℕ} (hr : 2 ≤ numGroups n) (hR : 32 ≤ rowBound β n) (hRQ : 6 * rowBound β n ≤ numNodes n) :
rowCost β n ≤ 1028 * (↑β + 3) * ↑(Nat.clog 2 (Nat.clog 2 n)) ^ 2 / √↑(Nat.clog 2 n)

Deterministic row-cost bound (equation 4.18): whenever 2 ≤ r, 32 ≤ R, and 6 R ≤ Q, rowCost β n is bounded by 1028 (β + 3) ν² / √λ.

Asymptotics and Lemma 4.8 master theorem #

Combined numerical guarantees of Lemma 4.7 and Lemma 4.8 for (β, n, b, w, M).

  • twenty_le : 20 ≤ n

    Manuscript domain guard 20 ≤ n.

  • two_le_numGroups : 2 ≤ numGroups n

    At least two groups: 2 ≤ r.

  • thirtyTwo_le_rowBound : 32 ≤ rowBound β n

    Degree/interval lower bound 32 ≤ R.

  • six_mul_rowBound_le_numNodes : 6 * rowBound β n ≤ numNodes n

    Block-length separation 6 R ≤ Q.

  • tau_pos : 0 < tau n

    Step size positivity 0 < τ.

  • tau_le_half : tau n ≤ 1 / 2

    Step size upper bound τ ≤ 1 / 2.

  • auxDim_le : auxDim n ≤ 2 ^ (Nat.clog 2 n / 128)

    Auxiliary dimension power bound D ≤ 2 ^ (λ / 128).

  • aux_balance : 2 * (b + w) * auxDim n ^ 2 ≤ M

    First Lemma 4.7 balance inequality 2 (b + w) D² ≤ M.

  • var_balance : 2 * numNodes n * numGroups n ^ 2 ≤ n

    Second Lemma 4.7 balance inequality 2 Q r² ≤ n.

  • card_interval_eq : (interval β n).card = rowBound β n

    Exact interval cardinality #I = R.

  • interval_subset : interval β n ⊆ Finset.range (numNodes n + 1)

    Interval containment I ⊆ {0, …, Q}.

  • mem_interval_of_close (k : ℕ) : |↑k - mean n| ≤ ↑(rowBound β n) / 4 → k ∈ interval β n ∧ k ≤ numNodes n

    Concentration band |k - μ| ≤ R / 4 lies in I and {0, …, Q}.

  • binomTail_lt : binomTail β n < tailBudget b n

    Strict Binomial tail bound Pr[W ∉ I] < 1 / (b r² λ) = τ / (r b).

  • rowCost_bound : rowCost β n ≤ 1028 * (↑β + 3) * ↑(Nat.clog 2 (Nat.clog 2 n)) ^ 2 / √↑(Nat.clog 2 n)

    Counting-exponent bound (equation 4.18) rowCost β n ≤ 1028 (β + 3) ν² / √λ.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.exists_feasible {β : ℕ} (hβ : 1 ≤ β) :
∃ (n₀ : ℕ), 20 ≤ n₀ ∧ ∀ ⦃n b w M : ℕ⦄, n₀ ≤ n → 1 ≤ b → b ≤ Nat.clog 2 n ^ β → 1 ≤ w → w ≤ Nat.clog 2 n ^ β → n ≤ M → M ≤ b * n → Feasible β n b w M

Lemma 4.8 of [OpenAI2026ETH]: for every integer 1 ≤ β, there exists n₀ ≥ 20 such that for all n ≥ n₀, 1 ≤ b ≤ λ ^ β, 1 ≤ w ≤ λ ^ β, and n ≤ M ≤ b n, the schedule (4.17) satisfies every numerical requirement of Lemma 4.7 and Lemma 4.8.

theorem Cslib.Complexity.SubexponentialSAT.ReplacementParams.exists_feasible_of_le_const {β : ℕ} (hβ : 1 ≤ β) :
∃ (n₀ : ℕ), 20 ≤ n₀ ∧ ∀ ⦃n b w M : ℕ⦄, n₀ ≤ n → 1 ≤ b → b ≤ β → 1 ≤ w → w ≤ β → n ≤ M → M ≤ b * n → Feasible β n b w M

Constant-occurrence specialization of exists_feasible for 1 ≤ b, w ≤ β.

Equation (4.18) in IsBigO form: rowCost β = O(ν² / √λ).

The counting-cost factor rowCost β n tends to 0 as n → ∞.

n * rowCost β n is O(interpolationScale n), linking Lemma 4.8 directly to the counting scale of CountingScale.lean.

Multiplying rowCost β n by n gives a sublinear counting exponent o(n).