Documentation

CslibFrontier.Foundations.Data.Nat.SqrtLog.Budget

An explicit budget for the shifted square-root-logarithm scale #

Write q(n) = Nat.sqrt (Nat.log 2 (n + 2)). A size bound of 3 * (n * q(n) / (12 * (A + 1))) + D * (n + 1) + n permits three copies of a circuit of size n * q(n) / (12 * (A + 1)) and linear additional work. For any padded size M between n and this bound, the shifted exponent A * (M + 1) / q(M) is at most n / 2 once q(n) ≥ 8 * A * (D + 1).

These are natural-number inequalities, including every division and square-root rounding. They provide the arithmetic for transferring the quantitative counting bound to a circuit lower bound; they do not assert a complexity-class separation. The coefficient A remains an explicit parameter. The overhead coefficient D affects the starting length, not the coefficient 12 * (A + 1) in the circuit-size budget.

Main results #

theorem Nat.two_mul_mul_succ_div_sqrt_log_two_le {A D n M : ℕ} (hn : 1 ≤ n) (hnM : n ≤ M) (hM : M ≤ 3 * (n * (log 2 (n + 2)).sqrt / (12 * (A + 1))) + D * (n + 1) + n) (hq : 8 * A * (D + 1) ≤ (log 2 (n + 2)).sqrt) :
2 * (A * (M + 1) / (log 2 (M + 2)).sqrt) ≤ n

An explicit size budget. Three copies of a circuit with at most n * √⌊log₂ (n + 2)⌋ / (12 * (A + 1)) gates, plus linear overhead, give a shifted exponent at most n / 2. The tested size is padded to be at least n.

theorem Nat.two_mul_mul_succ_div_sqrt_log_two_le_of_pow_le {A D n M : ℕ} (hn : 1 ≤ n) (hnM : n ≤ M) (hM : M ≤ 3 * (n * (log 2 (n + 2)).sqrt / (12 * (A + 1))) + D * (n + 1) + n) (hpow : 2 ^ (8 * A * (D + 1)) ^ 2 ≤ n + 2) :
2 * (A * (M + 1) / (log 2 (M + 2)).sqrt) ≤ n

The size-budget inequality has the explicit starting-length condition 2 ^ ((8 * A * (D + 1)) ^ 2) ≤ n + 2.