Native codes for the half-split balanced De Morgan circuit #
Specializes Cslib.Circuits.Circuit.balancedCode from
CslibFrontier.Computability.Circuit.Encoding.Combinators to De Morgan circuit codes.
Main definitions #
Cslib.Circuits.Boolean.balancedCode: the complete raw code of a balanced De Morgan circuit.
Main results #
Cslib.Circuits.Boolean.balancedCode_eq_code: exact agreement withCircuit.balanced.Cslib.Circuits.Boolean.computableInPolyTime_balancedCode: uniform construction from binary input arity and native generators of the operator, fallback and leaf codes.
References #
theorem Cslib.Circuits.Boolean.computableInPolyTime_balancedCode {α : Type} {enc : α ↪ List Bool} {n : α → ℕ} {op unit : α → List (Op × List ℕ) × List ℕ} {leaves : α → List (List (Op × List ℕ) × List ℕ)} (hn : Turing.MultiTapeTM.ComputableInPolyTime n enc Turing.MultiTapeTM.encNat) (hop : Turing.MultiTapeTM.ComputableInPolyTime op enc encCode) (hu : Turing.MultiTapeTM.ComputableInPolyTime unit enc encCode) (hl : Turing.MultiTapeTM.ComputableInPolyTime leaves enc (Turing.MultiTapeTM.encList encCode)) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (a : α) => balancedCode (n a) (op a) (unit a) (leaves a)) enc encCode
Uniform native generation from the binary shared-input count and the complete operator, fallback and leaf codes.