AFTD Auto-Formalizing Theoretical Domains

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

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)
See it in the graphDiscuss this resultChallenge it