is_symmetric_boolean_func
def
A Boolean function f on n variables is symmetric if its value on any input depends only on the Hamming weight of the input.
Statement
def is_symmetric_boolean_func {n : ℕ} (f : (Fin n → Bool) → Bool) : Prop
- Defined in
- scout/2611-21910-new-gate-weight-and-wire-complexity-bounds-for-sigmoid-neur.md:889
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 1
- hamming_weightThe Hamming weight of a Boolean vector x is the number of true coordinates.
- 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
For a given natural number $n$ and a function $f : (\text{Fin } n \to \text{Bool}) \to \text{Bool}$, is_symmetric_boolean_func f asserts that there exists a function $F : \mathbb{N} \to \text{Bool}$ such that for every $x : \text{Fin } n \to \text{Bool}$, $f(x) = F(\text{hamming\_weight}(x))$.
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
/-- Predicate asserting that a Boolean function f on {0,1}^n depends only on the Hamming weight of its input. -/ def is_symmetric_boolean_func {n : ℕ} (f : (Fin n → Bool) → Bool) : Prop := ∃ F : ℕ → Bool, ∀ x : Fin n → Bool, f x = F (hamming_weight x)