Lower bounds for inner product and Kronecker powers: composite moduli, threshold gates, and linear circuits of every depth
Abstract
Lower bounds against MODm circuits with composite m and against linear circuits for explicit matrices are long-standing open problems. Unconditionally, inner product modulo a prime q on k-bit inputs needs 2Ω(k) gates in depth-two circuits with a MODm top gate, for fixed m coprime to q such as 6, and with bottom gates that depend on one linear form with bounded integer weights; polynomial lower bounds hold against MODm∘THR circuits with restricted gates. Our lower bounds for linear circuits and Boolean inner product assume a theorem of an OpenAI preprint, "Euclidean geometry in the asymptotic spectrum of tensors". Under it, depth-two circuits need N(1+√2)/2 wires for Kronecker products of invertible 2×2 matrices with nonzero entries over any field; in unbounded depth, every invertible nonmonomial 2×2 Kronecker power of order N, such as the Sierpiński matrix in XOR circuits, needs Ω(N√(log N)) gates over every field, while N(log N)1/2+o(1) gates suffice unconditionally. Via the approach of Alman and Li, Boolean inner product, an AC0 function, needs 2Ω(n) gates in SUM∘ETHR and MODp∘THR circuits with arbitrary weights, for every fixed prime p. The depth-two proof extends a price argument for abelian character tables to these Kronecker products by an explicit degeneration.
In plain words
Razborov and Smolensky showed in 1987 that some tasks need many gates in circuits with a fixed number of layers, even when some gates test whether a count of their inputs is divisible by a prime. Their method fails for divisibility by 6, because 6 has two different prime factors. This paper looks at two-layer circuits where the top gate tests for divisibility by 6, and each gate below it sees only one sum of the inputs, with every input multiplied by a small integer. To tell whether 5 divides the number of places where two long strings of bits both have a 1, such a circuit needs a number of gates that grows exponentially with the length of the strings.
Formal statement and axioms
Each main result as stated in Lean, copied verbatim from the published package, with the axioms that the proof rests on. Lean v4.35.0, Mathlib 56a005855ea1. The package.
EpRigidity.M_thm_holds
Theorem M (Theorem 3.3), with no hypothesis: kernel-only
theorem M_thm_holds : M_thmDefinitions used in the statement
def M_thm : Prop :=
∀ q m w : ℕ, 2 ≤ q → 2 ≤ m → Nat.Coprime m q → 1 ≤ w →
∃ k₁ : ℕ, ∀ k s : ℕ, k₁ ≤ k → ModSymComputesIPq q m w k s →
Real.exp (epsM ((2 * w + 1) ^ Dm m) q * k / Dm m) ≤ (s : ℝ) + 1def ModSymComputesIPq (q m w k s : ℕ) : Prop :=
∃ (a : Fin s → ℤ) (A : Set (ZMod m)) (g : Fin s → SymGate k w),
(A = {0} ∨ A = {0}ᶜ) ∧
((∀ x y : BVec k, modTop m A a (fun j => (g j).fires x y) ↔ IPq q x y) ∨
(∀ x y : BVec k, modTop m A a (fun j => (g j).fires x y) ↔ ¬ IPq q x y))def IPq (q : ℕ) {k : ℕ} (x y : BVec k) : Prop := ip x y % q = 0def Dm (m : ℕ) : ℕ := m.primeFactors.sup fun p => p ^ m.factorization p - 1The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.
EpRigidity.I_5_holds
Theorem A (Theorem 4.5) for Kronecker products of 2×2 matrices, assuming PlanarPricesHyp: kernel-only
theorem I_5_holds : I_5Definitions used in the statement
def I_5 : Prop :=
PlanarPricesHyp → ∀ (K : Type) [Field K] (m : ℕ) (A : Fin m → Matrix (Fin 2) (Fin 2) K),
(∀ i, Nondeg2 (A i)) → ∀ D : Depth2 K (BVec m) (BVec m), D.matrix = kronProd A →
(2 ^ m : ℝ) ^ Ed 2 ≤ D.cost ∧ (2 ^ m : ℝ) ^ Ed 2 ≤ D.size ∧
(D.Z = 0 → 2 * (2 ^ m : ℝ) ^ Ed 2 ≤ D.size)The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.
EpRigidity.V3_exact_holds
Theorem E (Corollary 5.10), the upper bound assuming BB_F6 and the lower bound assuming ListPricesHyp and BB_F_L33: kernel-only
theorem V3_exact_holds : V3_exactDefinitions used in the statement
def V3_exact : Prop :=
(BB_F6 → ∀ ε : ℝ, 0 < ε → ∃ C : ℝ, ∀ (K : Type) [Field K] (A : Matrix (Fin 2) (Fin 2) K),
A.det ≠ 0 → ¬ Monomial2 A → ∀ k : ℕ, ∃ s : ℕ,
(s : ℝ) ≤ C * 2 ^ k * (1 + k : ℝ) ^ (1 / 2 + ε) ∧ HasBinCircuit K (kronPow A k) s) ∧
(ListPricesHyp → BB_F_L33 → ∃ c₁ : ℝ, 0 < c₁ ∧
∀ (K : Type) [Field K] (A : Matrix (Fin 2) (Fin 2) K), A.det ≠ 0 → ¬ Monomial2 A →
∀ k s : ℕ, HasBinCircuit K (kronPow A k) s → c₁ * 2 ^ k * Real.sqrt k ≤ s)def HasBinCircuit (R : Type*) [CommRing R] {ι o : Type*} [DecidableEq ι] (T : Matrix o ι R)
(s : ℕ) : Prop :=
∃ C : BinCircuit R ι o, C.WF ∧ C.size ≤ s ∧ C.matrix = Tdef kronPow (A : Matrix (Fin 2) (Fin 2) R) (m : ℕ) : Matrix (BVec m) (BVec m) R :=
kronProd fun _ : Fin m => Adef Monomial2 (A : Matrix (Fin 2) (Fin 2) R) : Prop :=
(A 0 1 = 0 ∧ A 1 0 = 0) ∨ (A 0 0 = 0 ∧ A 1 1 = 0)The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.
2 more formal statements
EpRigidity.I_14_holds
Theorem D for Boolean inner product (Theorem 6.12), assuming PlanarPricesHyp: kernel-only
theorem I_14_holds : I_14Definitions used in the statement
def I_14 : Prop :=
PlanarPricesHyp → ∀ k : ℕ, 1 ≤ k →
(∀ s : ℕ, SumComputes {GateKind.ethr} s (boolToReal (@IPb k)) →
(2 : ℝ) ^ (gam4 * k) / (16 * (2 * (k : ℝ) + 4) ^ 6) ≤ (s : ℝ) + 1) ∧
(∀ s : ℕ, SumComputes {GateKind.thr, GateKind.relu} s (boolToReal (@IPb k)) →
(2 : ℝ) ^ (gam4 * k) / (32 * (2 * (k : ℝ) + 5) ^ 6) ≤ ((s : ℝ) + 1) * ((k : ℝ) + 2)) ∧
(∀ p : ℕ, p.Prime → ∀ s : ℕ, ModComputes p BKind.thr s (@IPb k) →
(2 : ℝ) ^ (gam4 * k) / (32 * (2 * (k : ℝ) + 5) ^ 6) ≤
((s : ℝ) + 1) ^ (p - 1) * ((k : ℝ) + 2) ^ (p - 1)) ∧
(∀ p : ℕ, p.Prime → ∀ s : ℕ, ModComputes p BKind.ethr s (@IPb k) →
(2 : ℝ) ^ (gam4 * k) / (32 * (2 * (k : ℝ) + 5) ^ 6) ≤ ((s : ℝ) + 1) ^ (p - 1))The package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.
EpRigidity.DT.V3_DT_holds
Theorem 7.59, with 256 in place of 17.6, with no hypothesis: kernel-only
theorem V3_DT_holds : V3_DTDefinitions used in the statement
def V3_DT : Prop :=
∀ (m q : ℕ), 2 ≤ m → 2 ≤ q → ∀ (A : Finset (ZMod m)), 1 ≤ min A.card (m - A.card) →
∀ (τ : ℝ), 0 < τ → ∀ (k N : ℕ) (c : Fin N → ZMod m) (g : Fin N → DirGate k),
(∀ l, IsFlat τ (g l).u) → N ≤ k ^ 3 →
∀ W : Set (BVec k × BVec k), SwapClosed W →
(∀ x y, (x, y) ∈ W → (modDirTop m A c g x y ↔ IPq q x y)) →
cW0 q W * ((k : ℝ) - 7 * Real.logb 2 k -
Real.logb 2 (32 * (min A.card (m - A.card) : ℕ) / cW0 q W)) / (256 * τ) ≤
N * Real.logb 2 (1 + 2 * N * (k : ℝ) ^ 2)structure DirGate (k : ℕ) where
/-- the `x`-direction -/
u : Fin k → ℝ
/-- the threshold function -/
t : BVec k → ℝdef IsFlat {k : ℕ} (τ : ℝ) (u : Fin k → ℝ) : Prop :=
u ≠ 0 ∧ ∀ i, |u i| ≤ τ * Real.sqrt (∑ j, u j ^ 2)def SwapClosed {k : ℕ} (W : Set (BVec k × BVec k)) : Prop :=
∀ x y, (x, y) ∈ W → ∀ i j, x i = 0 → x j = 1 → (bswap x i j, y) ∈ Wdef modDirTop {k N : ℕ} (m : ℕ) (A : Finset (ZMod m)) (c : Fin N → ZMod m)
(g : Fin N → DirGate k) (x y : BVec k) : Prop := by
classical exact (∑ l, c l * (if (g l).fires x y then (1 : ZMod m) else 0)) ∈ AThe package does not record Lean’s axiom report for this theorem, but names the axioms in words: propext, Classical.choice, Quot.sound.