Circuit encodings under maps of signatures #
Main results #
Cslib.Circuits.Circuit.code_mapOp: mapping the operations maps the gate list and preserves the output wires.Cslib.Circuits.Circuit.mapOp_injective: an injective map of operations induces an injective map of circuits.Cslib.Circuits.Program.isCodeFrom_map_iff: mapping the operations of a gate list keeps it a program code.
theorem Cslib.Circuits.Circuit.mapOp_injective {σ : Signature} {τ : Signature} (φ : σ.Hom τ) {n m : ℕ} (hφ : Function.Injective ⇑φ) :
Translation along an injective map of operations is injective.
theorem Cslib.Circuits.Program.isCodeFrom_map_iff {σ : Signature} {τ : Signature} (φ : σ.Hom τ) {n k : ℕ} {gates : List (σ.Op × List ℕ)} :
Mapping the operations of a gate list keeps it a program code. A list of gates is the code
of a program over τ after mapping its operations along φ exactly when it is one over σ.