AFTD Auto-Formalizing Theoretical Domains

depth3_sigmoid_circuit_eval_bool

def

Evaluates a depth-3 sigmoidal circuit C on a Boolean input vector x : Fin n → Bool by converting false to 0 and true to 1 and evaluating C.

Statement

noncomputable def depth3_sigmoid_circuit_eval_bool {n : ℕ} (C : Depth3SigmoidCircuit n) (x : Fin n → Bool) : ℝ
Defined in
scout/2611-21910-new-gate-weight-and-wire-complexity-bounds-for-sigmoid-neur.md:717
Verified
18 Nov 2026
Axioms
none listed
Built on 2
  • Depth3SigmoidCircuitA feedforward circuit structure on n inputs parameterized solely by the input dimension n : ℕ, containing internal fields for the hidden…
  • depth3_sigmoid_circuit_evalEvaluates a depth-3 sigmoidal circuit C on a real input vector x : Fin n → ℝ using Real.sigmoid: layer 1 computes Real.sigmoid ((∑ i : Fin…
Used by 1

Read back from the Lean

The function depth3_sigmoid_circuit_eval_bool defines the evaluation of a depth-3 sigmoid circuit C (with n inputs) on a Boolean input vector x : Fin n → Bool, returning a real number. It evaluates C on the real vector that maps each index i : Fin n to 1 if x i is true and 0 if x i is false.

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

/-- Evaluation of a depth-3 sigmoidal circuit on a Boolean input assignment. -/
noncomputable def depth3_sigmoid_circuit_eval_bool {n : ℕ} (C : Depth3SigmoidCircuit n) (x : Fin n → Bool) : ℝ :=
  depth3_sigmoid_circuit_eval C (fun i => if x i then 1 else 0)
See it in the graphDiscuss this resultChallenge it