Documentation

CslibFrontier.Computability.Circuit.Boolean.Zhegalkin.ParameterBounds

Internal logarithmic parameter estimates for asymptotic bounds #

Internal parameter selection and remainder estimates (exists_log_threshold, log_param_props, div_two_sub_add_rem_le, Additive.matrixRem_mul_sq_le, Boolean.Zhegalkin.zhegRem_mul_sq_le) consumed by AdditiveBound and UpperBound; never re-exported through Zhegalkin.

Main results #

theorem Cslib.Circuits.exists_log_threshold (C : ℕ) :
∃ (L₁ : ℕ), 8 ≤ L₁ ∧ C ≤ L₁ ∧ ∀ {L : ℕ}, L₁ ≤ L → C * Nat.log 2 L ≤ L ∧ 6 * Nat.log 2 L ≤ L ∧ L ^ 2 ≤ 2 ^ L
theorem Cslib.Circuits.log_param_props {M : ℕ} (hL8 : 8 ≤ Nat.log 2 M) (hlog6 : 6 * Nat.log 2 (Nat.log 2 M) ≤ Nat.log 2 M) (hpow2 : Nat.log 2 M ^ 2 ≤ 2 ^ Nat.log 2 M) :
have L := Nat.log 2 M; have s := L - 3 * Nat.log 2 L; 0 < s ∧ s ≤ L ∧ L ≤ 2 * s ∧ 1 ≤ Nat.log 2 L ∧ L ^ 2 ≤ M ∧ L ^ 3 * 2 ^ s ≤ 8 * M
theorem Cslib.Circuits.logb_two_ge_one {m : ℕ} (hm : 2 ≤ m) :
1 ≤ Real.logb 2 ↑m
theorem Cslib.Circuits.div_two_sub_add_rem_le {M S U rem K : ℕ} {ε : ℝ} (hε : 0 < ε) (hL8 : 8 ≤ Nat.log 2 M) (h6log : 6 * Nat.log 2 (Nat.log 2 M) ≤ Nat.log 2 M) (hpow2 : Nat.log 2 M ^ 2 ≤ 2 ^ Nat.log 2 M) (hClog : (⌈↑(4 + 2 * K) / ε⌉₊ + 10) * Nat.log 2 (Nat.log 2 M) ≤ Nat.log 2 M) (hSU : S ≤ U) (hrem : Nat.log 2 M ^ 2 * rem ≤ K * U) :
↑(S / (2 * (Nat.log 2 M - 3 * Nat.log 2 (Nat.log 2 M)))) + ↑rem ≤ ↑S / (2 * Real.logb 2 ↑M) + ε * (↑U / Real.logb 2 ↑M)
theorem Cslib.Circuits.Additive.matrixRem_mul_sq_le (m n : ℕ) (hL8 : 8 ≤ Nat.log 2 m) (hlog6 : 6 * Nat.log 2 (Nat.log 2 m) ≤ Nat.log 2 m) (hpow2 : Nat.log 2 m ^ 2 ≤ 2 ^ Nat.log 2 m) :
have L := Nat.log 2 m; have s := L - 3 * Nat.log 2 L; have p := m / L ^ 2 + 1; L ^ 2 * (n * 2 ^ s / s + m * p + m ⌈/⌉ p * 2 ^ s * (n ⌈/⌉ s)) ≤ 34 * (m + n) ^ 2
theorem Cslib.Circuits.Boolean.Zhegalkin.zhegRem_mul_sq_le (n M : ℕ) (hL8 : 8 ≤ Nat.log 2 M) (hlog6 : 6 * Nat.log 2 (Nat.log 2 M) ≤ Nat.log 2 M) (hpow2 : Nat.log 2 M ^ 2 ≤ 2 ^ Nat.log 2 M) :
have L := Nat.log 2 M; have s := L - 3 * Nat.log 2 L; have p := 2 * M / L ^ 2 + 1; L ^ 2 * ((n + M) * 2 ^ s / s + 2 * M * (p + s + 1) + 2 * M ⌈/⌉ p * 2 ^ s * ((n + M) ⌈/⌉ s) + n + M + 2) ≤ 88 * (M * (M + 2 * n))