depth3_sigmoid_circuit_num_wires
def
The total number of wires in a depth-3 sigmoidal circuit C, defined as the sum of the number of nonzero weights in w₁, w₂, and w₃.
Statement
noncomputable def depth3_sigmoid_circuit_num_wires {n : ℕ} (C : Depth3SigmoidCircuit n) : ℕ
- Defined in
- scout/2611-21910-new-gate-weight-and-wire-complexity-bounds-for-sigmoid-neur.md:375
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 1
- Depth3SigmoidCircuitA feedforward circuit structure on n inputs parameterized solely by the input dimension n : ℕ, containing internal fields for the hidden…
- Used by 1
- symmetric_boolean_func_depth3_sigmoid_circuitFor every symmetric Boolean function f on n ≥ 1 variables, there exists a depth-3 sigmoidal circuit C on n inputs with at most 3n wires…
Read back from the Lean
Given a natural number n and a depth-3 sigmoid circuit C with input dimension n, depth3_sigmoid_circuit_num_wires C is the natural number defined as the total number of non-zero weights in C, specifically the sum of:
1. The number of pairs (j, i) : Fin C.m₁ × Fin n such that C.w₁ j i ≠ 0,
2. The number of pairs (k, j) : Fin C.m₂ × Fin C.m₁ such that C.w₂ k j ≠ 0, and
3. The number of indices k : Fin C.m₂ such that C.w₃ k ≠ 0.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Total number of wires (nonzero weights) in a depth-3 sigmoidal circuit. -/ noncomputable def depth3_sigmoid_circuit_num_wires {n : ℕ} (C : Depth3SigmoidCircuit n) : ℕ := open Classical in (∑ j : Fin C.m₁, (Finset.univ.filter (fun i : Fin n => C.w₁ j i ≠ 0)).card) + (∑ k : Fin C.m₂, (Finset.univ.filter (fun j : Fin C.m₁ => C.w₂ k j ≠ 0)).card) + (Finset.univ.filter (fun k : Fin C.m₂ => C.w₃ k ≠ 0)).card