Reading an encoded circuit #
Cslib.Circuits.Circuit.encCircuit encodes a circuit as a dependent pair of its number of inputs
and the circuit (Turing.MultiTapeTM.encSigma), whose second component is encoded by its code.
Reading it as the plain pair of the number of inputs and the code is therefore free, after which the
pair projections read either part.
Main results #
Cslib.Circuits.Circuit.computableInPolyTime_arity_code: an encoded circuit as the pair of its number of inputs and its code.
theorem Cslib.Circuits.Circuit.computableInPolyTime_arity_code {σ : Signature} (encOp : σ.Op ↪ List Bool) (m : ℕ) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (c : (n : ℕ) × Circuit σ n m) => (c.fst, c.snd.code)) (encCircuit encOp m)
(Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary (encCode encOp))
Read an encoded circuit as the pair of its number of inputs, in unary, and its code. The encoded words are the same.