Documentation

CslibFrontier.Computability.Circuit.Frontier.BoundedFanIn

Frontier lower bounds for bounded fan-in #

The frontier lower bound for fan-in at most r (Cslib.Circuits.Frontier.eventually_lt_mul_multiarySize, Cslib.Circuits.Frontier.eventually_lt_mul_innerSize) is conditional on the layout hypothesis for maximum degree r + 1. Two families of Gaussian vertex-score layouts instantiate it:

Main results #

In degree four the uniform Gaussian vertex-score coefficient is 2/5: the adjacent correlation is 2√3/4 = cos (π/6).

theorem Cslib.Circuits.Frontier.eventually_degreeCoefficient_lt_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} {r : ℕ} (hr : 2 ≤ r) (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost r → c.Decides I Acc (S n) → (1 + 1 / Gaussian.degreeCoefficient (r + 1) - ε) * ↑n < (↑r - 1) * ↑c.multiarySize

The frontier lower bound for fan-in at most r, charging only multiary gates, by Gaussian vertex-score layouts. Let S_n ⊆ U^n be K_n-rectangle-free sets over a finite alphabet U with at least two symbols, with log K_n = o(n) and n log |U| - log |S_n| = o(n). Then for every ε > 0 and all large n, every circuit of fan-in at most r ≥ 2 deciding S_n, over any basis and interpretation on U, has s multiary gates (arity ≥ 2; constant and unary gates are free) with (r - 1) s > (1 + 1/A_{r+1} - ε) n, where A_d is Gaussian.degreeCoefficient d.

theorem Cslib.Circuits.Frontier.eventually_degreeCoefficient_lt_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} {r : ℕ} (hr : 2 ≤ r) (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost r → c.Decides I Acc (S n) → (1 + 1 / Gaussian.degreeCoefficient (r + 1) - ε) * ↑n < (↑r - 1) * ↑c.innerSize

The frontier lower bound for fan-in at most r, by Gaussian vertex-score layouts. Let S_n ⊆ U^n be K_n-rectangle-free sets over a finite alphabet U with at least two symbols, with log K_n = o(n) and n log |U| - log |S_n| = o(n). Then for every ε > 0 and all large n, every circuit of fan-in at most r ≥ 2 deciding S_n, over any basis and interpretation on U, has s inner gates with (r - 1) s > (1 + 1/A_{r+1} - ε) n, where A_d is Gaussian.degreeCoefficient d.

theorem Cslib.Circuits.Frontier.eventually_seven_div_two_lt_two_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (7 / 2 - ε) * ↑n < 2 * ↑c.multiarySize

The frontier lower bound for fan-in at most three, charging only multiary gates. Under the hypotheses of eventually_degreeCoefficient_lt_mul_multiarySize, every circuit of fan-in at most three deciding S_n has s multiary gates with 2 s > (7/2 - ε) n.

theorem Cslib.Circuits.Frontier.eventually_seven_div_two_lt_two_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (7 / 2 - ε) * ↑n < 2 * ↑c.innerSize

The frontier lower bound for fan-in at most three. Under the hypotheses of eventually_degreeCoefficient_lt_mul_innerSize, every circuit of fan-in at most three deciding S_n has s inner gates with 2 s > (7/2 - ε) n.

Upgraded degree-weighted walk-kernel bounds (r = 3, 4, 5) #

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (4 - ε) * ↑n < 2 * ↑c.multiarySize

Upgraded fan-in-three frontier lower bound (2 s > (4 - ε) n), charging only multiary gates. By the degree-weighted max-product walk kernel (layoutBound_four_one_third : LayoutBound 4 (1 / 3)), every circuit of fan-in at most three deciding S_n has s multiary gates (arity ≥ 2) satisfying 2 s > (4 - ε) n.

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (4 - ε) * ↑n < 2 * ↑c.innerSize

Upgraded fan-in-three frontier lower bound (2 s > (4 - ε) n). Every circuit of fan-in at most three deciding S_n has s inner gates satisfying 2 s > (4 - ε) n.

theorem Cslib.Circuits.Frontier.eventually_two_sub_mul_lt_multiarySize_fanInThree {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (2 - ε) * ↑n < ↑c.multiarySize

Upgraded fan-in-three multiary gate-count bound (s > (2 - ε) n). Dividing eventually_four_sub_mul_lt_two_mul_multiarySize by 2 gives (2 - ε) n < c.multiarySize.

theorem Cslib.Circuits.Frontier.eventually_two_sub_mul_lt_innerSize_fanInThree {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 3 → c.Decides I Acc (S n) → (2 - ε) * ↑n < ↑c.innerSize

Upgraded fan-in-three gate-count bound (s > (2 - ε) n). Dividing eventually_four_sub_mul_lt_two_mul_innerSize by 2 gives (2 - ε) n < c.innerSize for fan-in at most three.

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_innerSize_of_nondeterministicDecides {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (k : ℕ) (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ (n + k) 1), c.FanInAtMost 3 → c.NondeterministicDecides I Acc (S n) → (4 - ε) * ↑n < 2 * ↑c.innerSize

Nondeterministic fan-in-three frontier lower bound (2 s > (4 - ε) n, uniform in witness count k).

theorem Cslib.Circuits.Frontier.eventually_weightedFive_lt_three_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 4 → c.Decides I Acc (S n) → (1 + 3 * Real.pi / (5 * Real.arccos (4 / 5)) - ε) * ↑n < 3 * ↑c.multiarySize

Upgraded fan-in-four frontier lower bound (3 s > (1 + 3π / (5 arccos (4 / 5)) - ε) n), charging only multiary gates.

theorem Cslib.Circuits.Frontier.eventually_weightedFive_lt_three_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 4 → c.Decides I Acc (S n) → (1 + 3 * Real.pi / (5 * Real.arccos (4 / 5)) - ε) * ↑n < 3 * ↑c.innerSize

Upgraded fan-in-four frontier lower bound (3 s > (1 + 3π / (5 arccos (4 / 5)) - ε) n).

theorem Cslib.Circuits.Frontier.eventually_3929_div_1000_lt_three_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 4 → c.Decides I Acc (S n) → (3929 / 1000 - ε) * ↑n < 3 * ↑c.multiarySize

Rational fan-in-four frontier lower bound (3 s > (3.929 - ε) n), charging only multiary gates.

theorem Cslib.Circuits.Frontier.eventually_3929_div_1000_lt_three_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 4 → c.Decides I Acc (S n) → (3929 / 1000 - ε) * ↑n < 3 * ↑c.innerSize

Rational fan-in-four frontier lower bound (3 s > (3.929 - ε) n).

theorem Cslib.Circuits.Frontier.eventually_weightedFive_lt_three_mul_innerSize_of_nondeterministicDecides {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (k : ℕ) (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ (n + k) 1), c.FanInAtMost 4 → c.NondeterministicDecides I Acc (S n) → (1 + 3 * Real.pi / (5 * Real.arccos (4 / 5)) - ε) * ↑n < 3 * ↑c.innerSize

Nondeterministic fan-in-four frontier lower bound.

theorem Cslib.Circuits.Frontier.eventually_weightedSix_lt_four_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 5 → c.Decides I Acc (S n) → (1 + 2 * Real.pi / (3 * Real.arccos (√5 / 3)) - ε) * ↑n < 4 * ↑c.multiarySize

Upgraded fan-in-five frontier lower bound (4 s > (1 + 2π / (3 arccos (√5 / 3)) - ε) n), charging only multiary gates.

theorem Cslib.Circuits.Frontier.eventually_weightedSix_lt_four_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 5 → c.Decides I Acc (S n) → (1 + 2 * Real.pi / (3 * Real.arccos (√5 / 3)) - ε) * ↑n < 4 * ↑c.innerSize

Upgraded fan-in-five frontier lower bound (4 s > (1 + 2π / (3 arccos (√5 / 3)) - ε) n).

theorem Cslib.Circuits.Frontier.eventually_387_div_100_lt_four_mul_multiarySize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 5 → c.Decides I Acc (S n) → (387 / 100 - ε) * ↑n < 4 * ↑c.multiarySize

Rational fan-in-five frontier lower bound (4 s > (3.87 - ε) n), charging only multiary gates.

theorem Cslib.Circuits.Frontier.eventually_387_div_100_lt_four_mul_innerSize {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ n 1), c.FanInAtMost 5 → c.Decides I Acc (S n) → (387 / 100 - ε) * ↑n < 4 * ↑c.innerSize

Rational fan-in-five frontier lower bound (4 s > (3.87 - ε) n).

theorem Cslib.Circuits.Frontier.eventually_weightedSix_lt_four_mul_innerSize_of_nondeterministicDecides {U : Type u} [Finite U] [Nontrivial U] {S : (n : ℕ) → Set (Fin n → U)} {K : ℕ → ℕ} (hSK : DenseRectangleFree S K) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ (k : ℕ) (σ : Signature) (I : Interpretation σ U) (Acc : Set U) (c : Circuit σ (n + k) 1), c.FanInAtMost 5 → c.NondeterministicDecides I Acc (S n) → (1 + 2 * Real.pi / (3 * Real.arccos (√5 / 3)) - ε) * ↑n < 4 * ↑c.innerSize

Nondeterministic fan-in-five frontier lower bound.

Upgraded linear-map lower bounds (r = 3, 4, 5) #

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_innerSize_of_isTotallyRegular {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (N : ℕ) in Filter.atTop, ∀ (F : Type u) [inst : Field F] (σ : Signature) (I : Interpretation σ F) (M : Matrix (Fin N) (Fin N) F) (c : Circuit σ N N), M.IsTotallyRegular → c.FanInAtMost 3 → (c.Computes I fun (x : Fin N → F) => M.mulVec x) → c.LinearCapacity I → (4 - ε) * ↑N < 2 * ↑c.innerSize

Upgraded fan-in-three lower bound (2 s > (4 - ε) N, i.e. s > (2 - ε) N) for totally regular linear maps.

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_innerSize_of_isTotallyRegular_finite {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (N : ℕ) in Filter.atTop, ∀ (F : Type u) [inst : Field F] [Finite F] (σ : Signature) (I : Interpretation σ F) (M : Matrix (Fin N) (Fin N) F) (c : Circuit σ N N), M.IsTotallyRegular → c.FanInAtMost 3 → (c.Computes I fun (x : Fin N → F) => M.mulVec x) → (4 - ε) * ↑N < 2 * ↑c.innerSize

Upgraded fan-in-three lower bound (2 s > (4 - ε) N) for totally regular linear maps over finite fields, over every basis.

theorem Cslib.Circuits.Frontier.eventually_four_sub_mul_lt_two_mul_innerSize_of_isTotallyRegular_isPolynomial {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (N : ℕ) in Filter.atTop, ∀ (F : Type u) [inst : Field F] [Infinite F] (σ : Signature) (I : Interpretation σ F), I.IsPolynomial → ∀ (M : Matrix (Fin N) (Fin N) F) (c : Circuit σ N N), M.IsTotallyRegular → c.FanInAtMost 3 → (c.Computes I fun (x : Fin N → F) => M.mulVec x) → (4 - ε) * ↑N < 2 * ↑c.innerSize

Upgraded fan-in-three lower bound (2 s > (4 - ε) N) for totally regular linear maps over infinite fields, over every polynomial basis.

theorem Cslib.Circuits.Frontier.eventually_weightedFive_lt_three_mul_innerSize_of_isTotallyRegular {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (N : ℕ) in Filter.atTop, ∀ (F : Type u) [inst : Field F] (σ : Signature) (I : Interpretation σ F) (M : Matrix (Fin N) (Fin N) F) (c : Circuit σ N N), M.IsTotallyRegular → c.FanInAtMost 4 → (c.Computes I fun (x : Fin N → F) => M.mulVec x) → c.LinearCapacity I → (1 + 3 * Real.pi / (5 * Real.arccos (4 / 5)) - ε) * ↑N < 3 * ↑c.innerSize

Upgraded fan-in-four lower bound (3 s > (1 + 3π / (5 arccos (4 / 5)) - ε) N) for totally regular linear maps.

theorem Cslib.Circuits.Frontier.eventually_weightedSix_lt_four_mul_innerSize_of_isTotallyRegular {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (N : ℕ) in Filter.atTop, ∀ (F : Type u) [inst : Field F] (σ : Signature) (I : Interpretation σ F) (M : Matrix (Fin N) (Fin N) F) (c : Circuit σ N N), M.IsTotallyRegular → c.FanInAtMost 5 → (c.Computes I fun (x : Fin N → F) => M.mulVec x) → c.LinearCapacity I → (1 + 2 * Real.pi / (3 * Real.arccos (√5 / 3)) - ε) * ↑N < 4 * ↑c.innerSize

Upgraded fan-in-five lower bound (4 s > (1 + 2π / (3 arccos (√5 / 3)) - ε) N) for totally regular linear maps.