Exact scalar circuits transfer to CSLib #
The translation preserves every output and all sharing. It adds exactly one gate, for the source's free zero wire. Every addition, subtraction, and scalar multiplication remains a separate gate of fan-in at most two.
theorem
Complexity.ExactFourier.Circuit.toCslib_fanInAtMost
{n : ℕ}
(C : Circuit n)
:
C.toCslib.FanInAtMost 2
Source scalar circuits translate to CSLib circuits of fan-in at most two.