Documentation

CslibFrontier.Computability.Complexity.FineGrained.CircuitLowerBoundBudget

The quantitative counting budget for circuit lower bounds #

ContractionCounting.exists_circuitSatCounter_sizeBudget fixes one exact circuit counter and constants A, e, b before the decoder overhead D. On a circuit with at most 3 * (n * q(n) / (12 * (A + 1))) + D * (n + 1) gates, where q(n) = Nat.sqrt (Nat.log 2 (n + 2)), its time bound is at most 2 ^ (n / 2) times a polynomial in the circuit encoding length once q(n) ≥ 8 * A * (D + 1) and n ≥ 1. Its space bound is polynomial throughout.

Here n is the input length of a prospective reduction, not the number of inputs of the checker circuit. All divisions in the theorem are natural-number divisions. The existing shifted-scale comparison permits a checker smaller than n: we take A = 22 * A₀, with A₀ from exists_circuitSatCounter. This fixed loss is independent of D; it avoids needing to construct a padded circuit merely to apply a numerical inequality. ComputableInO retains its fixed multiplicative machine constant, so T below is a certified asymptotic time bound, not an exact number of transitions.

The theoretical transfer #

Corollary 1.4 of [OAI26k] already states that some language in E^NP requires more than c n √log n fan-in-two gates at infinitely many lengths, for some c > 0. Appendix C.1 (pp. 51–52) proves it using a quantitative version of Williams's witness-circuit argument ([Wil10], Lemma 3.2 and Theorem 6.1). That appendix uses the local reduction of Jahanjou–Miles–Viola and a unary hierarchy language. The following instead uses the standard tableau variant from Williams's Theorem 6.1, with general inputs x, in the integer scale of this library. The class separation itself is not proved in this module.

Fix any power overhead required by the machine simulations, then choose a nondeterministic exponential-time language H with a time-hierarchy gap large enough to absorb it. For x of length n, use a uniformly constructible succinct 3-CNF tableau Φₓ, satisfiable exactly when x ∈ H, padding unused clause indices with tautologies. Its clause and variable indices have O(n) bits. Require a decoder circuit with O(n) gates and a polynomial-time construction of its code from x. A standard exponential-size tableau suffices: even a quadratic tableau has only O(n)-bit indices, and its local constraints can be addressed with bit-field operations. The linear gate bound and the uniform code construction are separate obligations.

Let W(x, i) be bit i of the lexicographically first satisfying assignment of Φₓ, with zero as the value when no assignment exists. Fixed-width framing puts these inputs at length N = d * n for a fixed positive integer d; unused encodings can be rejected. Writing Φₓ explicitly and making exponentially many NP prefix-extension queries decides W in deterministic exponential time with an NP oracle, so W ∈ E^NP.

Suppose, towards a contradiction, that W has circuits of size at most s(n) = n * q(n) / (12 * (A + 1)) at all sufficiently large lengths d * n. On input x, guess a circuit of that size and hardwire its x input. Use three copies to obtain the purported assignment values of a decoded clause. The circuit output is true exactly when that clause is violated; decoding the clause, handling signs and combining the three values cost at most D * (n + 1) further gates. Its total size is therefore at most 3 * s(n) + D * (n + 1), retaining the separate coefficient of the guessed circuit. Choose one fixed complete fan-in-two Boolean gate signature throughout, such as the signature of all binary Boolean gates. Translating gate bases would require an additional fixed size factor. The counter is available for every finite signature.

Accept the guessed circuit exactly when this checker has zero satisfying inputs. If x ∈ H, the circuit for W supplies an accepting guess. If x ∉ H, every guessed circuit describes an assignment violating some clause, so every guess is rejected. Soundness does not require certifying that the guessed circuit computes the canonical witness.

The theorem below bounds the counting exponent by n / 2. The guessed and constructed circuits have polynomial encoding length in n, so guessing, constructing and running the counter cost poly(n) * 2 ^ (n / 2), including its fixed multiplicative constant. This is eventually at most 2 ^ n. Finitely many smaller lengths can be hardwired, contradicting the chosen hierarchy gap. If translating between machine conventions costs a fixed power, choose the hierarchy gap before this argument to absorb that power.

Consequently the witness circuit complexity exceeds s(n) for infinitely many n. Nat.frequently_mul_sqrt_logb_div_lt, in Foundations.Data.Nat.SqrtLog.LowerBound, converts this integer lower bound at lengths d * n into the conventional real-valued bound with the explicit coefficient ε = 1 / (24 * (A + 1) * d) for log₂. The overhead D affects only the starting length: n + 2 ≥ 2 ^ ((8 * A * (D + 1)) ^ 2) suffices for the counting budget. No numerical value for the counter constant A or framing constant d is claimed. The quantifier order is counter and A, then fixed reduction and d, D, then ε, then the hypothetical small circuits. This gives some positive ε, not every coefficient or an almost-everywhere lower bound.

This file proves the counter application and uses checked integer arithmetic. The rescaling inequality and polynomial-time computation of s(n) are proved in their respective SqrtLog.LowerBound and PolyTime.Nat.SqrtLog.Budget modules. The full formal separation still requires the hierarchy language, framing and preparation of the witness language, uniform decoder/checker construction, and nondeterministic simulation to be connected. The existing preimage_witnessBit_mem_ENP supplies a generic witness-bit bridge, using the canonical SAT self-reduction assignment in place of the lexicographically first one; either choice suffices. These remaining connections are part of #1539.

Main results #

References #

theorem Cslib.Complexity.ContractionCounting.exists_circuitSatCounter_sizeBudget {σ : Circuits.Signature} [Finite σ.Op] (encOp : σ.Op ↪ List Bool) (I : Circuits.Interpretation σ Bool) :
∃ (count : (k : ℕ) × Circuits.Circuit σ k 1 → ℕ) (T : (k : ℕ) × Circuits.Circuit σ k 1 → ℕ) (S : (k : ℕ) × Circuits.Circuit σ k 1 → ℕ) (A : ℕ) (e : ℕ) (b : ℕ), (∀ (c : (k : ℕ) × Circuits.Circuit σ k 1), count c = c.snd.satCount I) ∧ Turing.MultiTapeTM.ComputableInO count (Circuits.Circuit.encCircuit encOp 1) Turing.MultiTapeTM.encNat T S ∧ (∀ (c : (k : ℕ) × Circuits.Circuit σ k 1), S c = (((Circuits.Circuit.encCircuit encOp 1) c).length + 1) ^ b) ∧ ∀ (D n : ℕ), 1 ≤ n → 8 * A * (D + 1) ≤ (Nat.log 2 (n + 2)).sqrt → ∀ (c : (k : ℕ) × Circuits.Circuit σ k 1), c.snd.size ≤ 3 * (n * (Nat.log 2 (n + 2)).sqrt / (12 * (A + 1))) + D * (n + 1) → T c ≤ 2 ^ (n / 2) * (((Circuits.Circuit.encCircuit encOp 1) c).length + 1) ^ e

A superlinear circuit-size budget for one fixed counter. The counter and its constants are chosen before the decoder overhead D. The reduction length n is independent of the number of circuit inputs. The time bound includes the polynomial in the encoding length; the theorem does not assert a complexity-class separation.